/* 
 * Sakura AI Player - 官方网站样式
 * 现代风格与樱花元素设计
 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFB6C1;
    --primary-light: #FFDBE0;
    --primary-dark: #FF8A9A;
    --secondary-color: #8c82fc;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #ffffff;
    --background-alt: #f8f8f8;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #FFB6C1;
    --gradient-end: #8c82fc;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 樱花飘落动画 */
.cherry-blossom-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.petal {
    position: absolute;
    background-color: var(--primary-light);
    border-radius: 150% 0 150% 0;
    animation: falling linear infinite;
    opacity: 0.7;
}

.petal:nth-child(1) {
    width: 15px;
    height: 15px;
    top: -10%;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    width: 12px;
    height: 12px;
    top: -10%;
    left: 20%;
    animation-duration: 16s;
    animation-delay: 1s;
}

.petal:nth-child(3) {
    width: 10px;
    height: 10px;
    top: -10%;
    left: 30%;
    animation-duration: 13s;
    animation-delay: 2s;
}

.petal:nth-child(4) {
    width: 14px;
    height: 14px;
    top: -10%;
    left: 40%;
    animation-duration: 15s;
    animation-delay: 0.5s;
}

.petal:nth-child(5) {
    width: 16px;
    height: 16px;
    top: -10%;
    left: 50%;
    animation-duration: 14s;
    animation-delay: 1.5s;
}

.petal:nth-child(6) {
    width: 11px;
    height: 11px;
    top: -10%;
    left: 60%;
    animation-duration: 17s;
    animation-delay: 2.5s;
}

.petal:nth-child(7) {
    width: 13px;
    height: 13px;
    top: -10%;
    left: 70%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.petal:nth-child(8) {
    width: 15px;
    height: 15px;
    top: -10%;
    left: 80%;
    animation-duration: 16s;
    animation-delay: 0s;
}

.petal:nth-child(9) {
    width: 12px;
    height: 12px;
    top: -10%;
    left: 90%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.petal:nth-child(10) {
    width: 14px;
    height: 14px;
    top: -10%;
    left: 25%;
    animation-duration: 13s;
    animation-delay: 1.5s;
}

.petal:nth-child(11) {
    width: 10px;
    height: 10px;
    top: -10%;
    left: 65%;
    animation-duration: 14s;
    animation-delay: 0.7s;
}

.petal:nth-child(12) {
    width: 16px;
    height: 16px;
    top: -10%;
    left: 35%;
    animation-duration: 18s;
    animation-delay: 3s;
}

@keyframes falling {
    0% {
        transform: translateY(-10%) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 5rem;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/sakura-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease;
}

.hero-image {
    flex: 1;
    max-width: 600px;
    text-align: center;
    animation: fadeInRight 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 特性区域样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.features {
    padding: 5rem 5%;
    background-color: var(--background-alt);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    height: 60px;
    width: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.8) 100%);
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* 演示区域样式 */
.demo {
    padding: 5rem 5%;
    background-color: var(--background-color);
}

.demo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.demo-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-tab {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-tab:hover {
    color: var(--primary-color);
}

.demo-tab.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
}

.demo-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.demo-panel.active {
    display: block;
}

.demo-panel video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 1.5rem;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 1.5rem;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: white;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-handle::after {
    content: '←→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.demo-description {
    padding: 1rem;
}

.demo-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* 技术亮点区域样式 */
.tech-section {
    padding: 5rem 5%;
    background-color: var(--background-alt);
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.tech-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* 下载区域样式 */
.download {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/sakura-pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.download-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.download-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.download-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.download-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-10px);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.download-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.download-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
    color: white;
}

.system-requirements {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.system-requirements h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.requirement-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.requirement-item ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.requirement-item li {
    margin-bottom: 0.5rem;
}

/* FAQ区域样式 */
.faq {
    padding: 5rem 5%;
    background-color: var(--background-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .tech-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 10px var(--shadow-color);
        padding: 2rem 0;
        gap: 0;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .comparison-slider {
        height: 250px;
    }
}