/* 
   创作者合伙人计划 - 样式表
   主色调: #1E3A8A (深蓝)
   辅助色: #3B82F6 (亮蓝), #8B5CF6 (紫色), #F97316 (橙色)
   中性色: #FFFFFF (白色), #F3F4F6 (浅灰), #4B5563 (深灰), #111827 (黑色)
*/

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

:root {
    --primary: #1E3A8A;
    --primary-light: #3B82F6;
    --secondary: #8B5CF6;
    --accent: #F97316;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --gray: #9CA3AF;
    --dark-gray: #4B5563;
    --black: #111827;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 16px;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* 导航栏 */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: var(--dark-gray);
    font-weight: 500;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover:after, .nav-links a.active:after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.nav-buttons .btn {
    margin-left: 1rem;
}

#openMenu, #closeMenu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-gray);
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080?text=Hero+Background') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1, .hero h2, .hero p {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.9;
}

/* 价值主张区 */
.benefits {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.benefits:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: -1;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    position: relative;
}

.benefit-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    transform: scale(1.2);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.benefit-card p {
    color: var(--dark-gray);
    font-size: 1rem;
}

/* 成功案例区 */
.cases {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.case-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--dark-gray);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

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

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.case-platform {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.case-content {
    padding: 1.5rem;
}

.case-stats {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.case-desc {
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--dark-gray);
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.case-link:hover {
    color: var(--secondary);
    gap: 0.8rem;
}

.cases-more {
    text-align: center;
    margin-top: 2rem;
}

/* 加入流程区 */
.join-process {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
    flex-wrap: wrap;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--light-gray);
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 3;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

.join-action {
    text-align: center;
    margin-top: 3rem;
}

/* 收益计算器 */
.calculator {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.calculator:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080?text=Calculator+Background') no-repeat center center/cover;
    opacity: 0.05;
    z-index: 0;
}

.calculator .section-header h2,
.calculator .section-header p {
    color: var(--white);
}

.calculator .section-header h2:after {
    background: var(--white);
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.calculator-form {
    flex: 1;
    min-width: 300px;
}

.calculator-result {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    color: var(--dark-gray);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-range {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
}

.range-value {
    display: flex;
    justify-content: center;
    color: var(--white);
    font-weight: 500;
    margin-top: 0.5rem;
}

.calculator-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.result-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-align: center;
}

.result-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-details {
    margin-bottom: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.result-note {
    font-size: 0.8rem;
    color: var(--gray);
    text-align: center;
}

.result-note p {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

/* 常见问题区 */
.faq {
    background-color: var(--white);
    position: relative;
}

.faq-search {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
}

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

.faq-search i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow);
}

.faq-item.active .faq-question {
    background-color: var(--light-gray);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-more {
    text-align: center;
    margin-top: 2rem;
}

/* 社区展示区 */
.community {
    background-color: var(--light-gray);
    position: relative;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.community-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.community-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.community-card:hover img {
    transform: scale(1.1);
}

.community-content {
    padding: 1.5rem;
}

.community-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.community-join {
    text-align: center;
}

/* 行动召唤区 */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080?text=CTA+Background') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta p {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta .btn {
    margin: 0 0.5rem;
}

/* 页脚区 */
.footer {
    background-color: var(--black);
    color: var(--light-gray);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about {
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
    height: 40px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3, .footer-subscribe h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h3:after, .footer-contact h3:after, .footer-subscribe h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    transition: var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-subscribe {
    margin-top: 2rem;
}

.subscribe-form {
    display: flex;
    margin-top: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--white);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.subscribe-form .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-policy {
    display: flex;
    gap: 1.5rem;
}

.footer-policy a {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-policy a:hover {
    color: var(--white);
}

.footer-language select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    outline: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        z-index: 1001;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    #openMenu {
        display: block;
    }
    
    #closeMenu {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 1.5rem;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .process-timeline:before {
        display: none;
    }
    
    .process-step {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
    
    .calculator-container {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-policy {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .benefits-grid, .cases-grid, .community-grid {
        grid-template-columns: 1fr;
    }
    
    .case-filter {
        flex-wrap: wrap;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* 加载动画 */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loader-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

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

/* 聊天悬浮按钮 */
.chat-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.chat-button:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.chat-button.active {
    transform: scale(0);
}

.chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    height: 450px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: scale(0);
    transform-origin: bottom right;
    transition: var(--transition);
}

.chat-container.active {
    transform: scale(1);
}

.chat-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.2rem;
}

.chat-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}

.chat-input button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

.chat-input button:hover {
    background: var(--primary-light);
}
