/* 全局样式 */
:root {
    --primary-color: #06c1c0;
    --primary-dark: #059b9a;
    --secondary-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #6c757d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #e9ecef;
    --border-color: #dee2e6;
    --shadow-color: rgba(0,0,0,0.1);
    --graffiti-accent: #ff9900;
    --graffiti-secondary: #9933cc;
    --card-bg: #ffffff;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.08);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #2c3e50;
    --footer-text: #3498db;
}

/* 暗色模式变量 */
.dark-mode {
    --primary-color: #00e2e2;
    --primary-dark: #00b3b3;
    --secondary-color: #ff8585;
    --text-color: #ffd519;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --bg-dark: #2d2d2d;
    --border-color: #444444;
    --shadow-color: rgba(0,0,0,0.3);
    --card-bg: #1e1e1e;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.2);
    --navbar-bg: rgba(18, 18, 18, 0.95);
    --footer-bg: #0f1620;
    --footer-text: #5dade2;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* 涂鸦风格元素 */
.hero-bg-element {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.hero-bg-1 {
    background: var(--graffiti-accent);
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.hero-bg-2 {
    background: var(--graffiti-secondary);
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* 导航栏样式 */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.logo-text {
    background: linear-gradient(45deg, var(--primary-color), var(--graffiti-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--graffiti-accent));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-text::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 5px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    width: 200px;
}

.search-input {
    width: 100%;
    padding: 8px 15px;
    padding-right: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--bg-light);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-color);
}

/* 主题切换按钮 */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg);
    color: var(--primary-color);
}

/* 英雄区域样式 */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--graffiti-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-btns .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    animation: float-image 6s ease-in-out infinite;
}

.hero-image img {
    border: 8px solid white;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

@keyframes float-image {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* 通用部分样式 */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--graffiti-accent));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* 模板库样式 */
.templates-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.template-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.template-image {
    position: relative;
    overflow: hidden;
}

.template-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-card:hover .template-image img {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.template-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.template-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.template-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-rating {
    color: #ffc107;
}

.pagination .page-link {
    color: var(--text-color);
    border-color: var(--border-color);
    margin: 0 3px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 功能特点样式 */
.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--graffiti-accent));
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    transition: all 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    transform: scale(3);
    opacity: 0.05;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-text {
    color: var(--text-light);
    margin-bottom: 0;
}

/* 使用教程样式 */
.tutorial-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tutorial-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--primary-color), var(--graffiti-accent));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 20px 0;
}

.tutorial-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.tutorial-text {
    color: var(--text-light);
    margin-bottom: 0;
}

/* 用户案例样式 */
.case-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 20px;
}

.case-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-text {
    color: var(--text-light);
    margin-bottom: 15px;
    font-style: italic;
}

/* FAQ样式 */
.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

/* 关于我们样式 */
.about-card {
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgb(90, 78, 59);
}

.accordion-button {
    background-color: var(--card-bg);
    color: var(--text-color);
    font-weight: 600;
    padding: 20px;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-button::after {
    background-size: 16px;
    transition: all 0.3s ease;
}

.accordion-body {
    padding: 20px;
    color: var(--text-light);
}

/* 联系我们样式 */
.contact-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    padding: 30px;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.contact-list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form .form-control {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(6, 193, 192, 0.2);
    border-color: var(--primary-color);
}

.contact-form .form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 70px 0 20px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--graffiti-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social .social-link:hover {
    background-color: var(--primary-color);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 50px;
}

.copyright, .icp {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* 响应式样式 */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 140px 0 80px;
    }
    
    .main-title {
        font-size: 2.8rem;
    }
    
    .sub-title {
        font-size: 1.5rem;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .main-title {
        font-size: 2.3rem;
    }
    
    .sub-title {
        font-size: 1.3rem;
    }
    
    .hero-btns .btn {
        padding: 10px 20px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .search-container {
        width: 150px;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-title {
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .main-title {
        font-size: 2rem;
    }
    
    .hero-btns .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .templates-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        right: 20px;
        bottom: 20px;
    }
}

/* 给求职者的一封信样式 */
.letter-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.letter-content-wrapper {
    position: relative;
    min-height: 200px;
}

.letter-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    padding: 20px;
    text-align: center;
}

.letter-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.letter-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.letter-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.letter-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.letter-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.letter-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .letter-card {
        padding: 25px;
    }
    
    .letter-title {
        font-size: 1.5rem;
    }
    
    .letter-text {
        font-size: 1rem;
    }
}