/* 全局样式 */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #FF6B6B;
    --accent-color: #FF6B6B;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #222222;
    --light-bg: #f5f5f5;
    --border-color: #dddddd;
    --transition: all 0.3s ease;
    --hero-gradient: linear-gradient(135deg, #FF8A65 0%, #FF6B6B 100%);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #ff6b6b;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.btn-secondary:hover {
    background-color: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-divider {
    height: 4px;
    width: 70px;
    background-color: #ff6b6b;
    margin: 0 auto;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6b6b;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu .nav-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: -5px;
}

.nav-menu .nav-btn::after {
    display: none;
}

.nav-menu .nav-btn i {
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* 英雄区域 */
.hero {
    padding: 150px 0 100px;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/wave-bg.svg');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% auto;
    opacity: 0.3;
    pointer-events: none;
    animation: wave-animation 10s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/wave-pattern.svg');
    background-repeat: repeat-x;
    background-position: top;
    background-size: 100% auto;
    opacity: 0.2;
    pointer-events: none;
    animation: wave-animation-reverse 15s linear infinite;
}

@keyframes wave-animation {
    0% { background-position: 0 bottom; }
    100% { background-position: 100% bottom; }
}

@keyframes wave-animation-reverse {
    0% { background-position: 100% top; }
    100% { background-position: 0 top; }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    color: white;
    max-width: 600px;
    z-index: 100;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 80%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-10deg);
}

.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 70px;
}

/* 关于部分 */
.about {
    margin-top: -10px;
    padding-top: 120px;
    background-color: #ffffff;
    position: relative;
    z-index: 3;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 90%;
}

/* 功能特点 */
.features {
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
}

/* 作品展示区域 */
.showcase {
    background-color: var(--light-color);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.showcase-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 280px;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transition: var(--transition);
}

.showcase-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.showcase-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 工作流程 */
.workflow {
    background-color: white;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.workflow-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.workflow-step h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.workflow-step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.workflow-connector {
    flex: 0.5;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
    max-width: 100px;
}

.workflow-connector::after {
    content: '›';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--border-color);
}

/* 下载体验 */
.download {
    background-color: var(--light-color);
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 200px;
    height: 200px;
    border: 8px solid white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.qrcode p {
    margin-top: 15px;
    font-weight: 500;
}

.download-text {
    max-width: 500px;
}

.download-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.download-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.download-features {
    margin-bottom: 20px;
}

.download-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.download-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.download-note {
    font-style: italic;
    font-size: 0.9rem;
}

/* 常见问题 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-toggle {
    color: #ff6b6b;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, padding 0.3s ease;
    opacity: 0;
    will-change: max-height, opacity, padding;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 300px; /* 更合理的高度值 */
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in, padding 0.3s ease;
}

/* 创作者平台按钮 */
.creator-platform-cta {
    text-align: center;
    margin-top: 50px;
}

.creator-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, var(--accent-color) 100%);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.creator-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
}

.creator-btn .icon {
    width: 1.2em;
    height: 1.2em;
}

/* 页脚 */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer-links-column {
    margin-bottom: 30px;
    min-width: 150px;
}

.footer-links-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6b6b;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column a {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-links-column a:hover {
    color: #ff6b6b;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: #ff6b6b;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-bottom a:hover {
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .workflow-connector {
        display: none;
    }
    
    .workflow-step {
        margin-bottom: 30px;
        flex-basis: 45%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .workflow-step {
        flex-basis: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer-links {
        justify-content: space-between;
    }
    
    .footer-links-column {
        flex-basis: 45%;
    }
}
