/* ==================
   基础设置与重置
================== */
:root {
    --primary: #7C51F6;
    --primary-light: #9B7DF8;
    --primary-dark: #5D33D4;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f9f9f9;
    --border-radius: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text);
    font-size: 16px;
    overflow-x: hidden;
    padding-top: 80px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 10px;
}

.highlight {
    color: var(--primary);
}

/* =============
   移动端导航
============= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    height: 70px;
}

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

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

.logo img {
    height: 40px;
    margin-right: 8px;
}

.logo span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

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

.nav-links {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    transition: left 0.3s ease;
    z-index: 999;
}

.nav-links.active {
    left: 0;
}

.nav-links li {
    margin: 15px 0;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.download-btn-nav {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
}

.menu-toggle {
    display: flex;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* =============
   英雄区域
============= */
.hero {
    padding: 40px 0 40px;
    position: relative;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom:40px;
}

.hero-content {
    width: 100%;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
    margin-top: 40px;
    padding-top: 20px;
}

.hero-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn i {
    margin-right: 8px;
}

.hero-image {
    width: 100%;
    margin: 0 auto;
}

.wave {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    z-index:-1;
}

/* =============
   核心特色
============= */
.features {
    padding: 50px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

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

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(124, 81, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =================
   应用功能展示
================= */
.app-showcase {
    padding: 50px 0;
}

.swipe-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-frame {
    width: 80%;
    max-width: 300px;
    margin-bottom: 40px;
    position: relative;
}

.phone-screen {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    position: relative;
}

.swipe-demo {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.photo-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.photo-card img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.swipe-actions {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

.swipe-left, .swipe-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.swipe-left i, .swipe-right i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.showcase-text {
    text-align: center;
}

.showcase-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.showcase-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

.feature-list {
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

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

.feature-list i {
    color: var(--primary);
    margin-right: 10px;
}

/* =================
   适用场景
================= */
.scenarios {
    padding: 50px 0;
    background: var(--bg-light);
}

.scenario-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.scenario-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.scenario-icon {
    width: 60px;
    height: 60px;
    background: rgba(124, 81, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
}

.scenario-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.scenario-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =================
   数据统计展示
================= */
.stats-section {
    padding: 50px 0;
}

.stats-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-content {
    text-align: center;
    margin-bottom: 40px;
}

.stats-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.stats-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

.stats-features {
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(124, 81, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.stat-text p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* .stats-image {
    width: 80%;
    max-width: 300px;
} */

/* =================
   用户评价
================= */
.testimonials {
    padding: 50px 0;
    background: var(--bg-light);
}

.testimonial-slider {
    position: relative;
    height: 220px;
    margin-bottom: 30px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    margin-bottom: 15px;
    color: gold;
}

.testimonial-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
}

.testimonial-arrows {
    display: flex;
    gap: 15px;
}

.arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* =================
   下载区域
================= */
.download {
    padding: 60px 0;
    text-align: center;
}

.download-content {
    max-width: 450px;
    margin: 0 auto;
}

.download h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.download p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

.download-platforms {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.platform-button {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.platform-button i {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--primary);
}

.platform-text {
    text-align: left;
}

.platform-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.platform-text strong {
    font-size: 1.1rem;
}

.qr-code {
    margin-top: 30px;
}

.qr-code img {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    border-radius: 8px;
}

.qr-code p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* =================
   页脚
================= */
footer {
    background: var(--bg-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 80px;
    margin: 0 auto 15px;
}

.footer-logo h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary);
}

.footer-logo p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-group {
    text-align: center;
}

.footer-group h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-group ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-group a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-group a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(124, 81, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================
   媒体查询 - 平板
=================== */
@media screen and (min-width: 768px) {
    .container {
        width: 85%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }
    
    .features-grid, .scenario-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .swipe-showcase {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    
    .phone-frame {
        width: 45%;
        margin-bottom: 0;
    }
    
    .showcase-text {
        width: 45%;
        text-align: left;
    }
    
    .feature-list {
        margin: 0;
    }
    
    .stats-section .container {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    
    .stats-content {
        width: 50%;
        text-align: left;
        margin-bottom: 0;
    }
    
    .stats-image {
        width: 100%;
    }
    
    .download-platforms {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-logo {
        width: 30%;
        text-align: left;
    }
    
    .footer-logo img {
        margin: 0 0 15px;
    }
    
    .footer-links {
        width: 65%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-group {
        text-align: left;
    }
    
    .footer-group ul {
        align-items: flex-start;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
}

/* ===================
   媒体查询 - 桌面
=================== */
@media screen and (min-width: 992px) {
    .container {
        width: 80%;
        max-width: 1200px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        padding: 0;
        background: none;
        gap: 30px;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .hero .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        margin-bottom:40px;
    }
    
    .hero-content {
        width: 55%;
        margin-bottom: 0;
    }
    
    .hero-image {
        width: 90%;
    }
    
    .download-buttons {
        justify-content: flex-start;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .phone-frame {
        width: 40%;
    }

    .phone-frame img {
        height: 80%;
    }
    
    .showcase-text {
        width: 50%;
    }
    
    .showcase-text h2 {
        font-size: 2.2rem;
    }
    
    .scenario-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-content h2 {
        font-size: 2.2rem;
    }
    
    .download h2 {
        font-size: 2.2rem;
    }
    
    .download-content {
        max-width: 900px;
    }
    
    .download-platforms {
        gap: 30px;
    }
    
    .footer-links {
        width: 70%;
    }
}