/* ==========================================================================
   Design System & Styling for "盘个串" Landing Page
   Aesthetic: Modern x Warm Oriental (现代极简 × 东方温润)
   ========================================================================== */

/* 全局变量与设计 Token */
:root {
    --bg-page: #0c1514;       /* 极深墨绿色，玉石原矿底色 */
    --bg-card: rgba(24, 62, 57, 0.4); /* 磨砂半透明墨绿卡片背景 */
    --border-color: rgba(226, 156, 53, 0.15); /* 蜜蜡黄半透明边框 */
    --primary: #E29C35;       /* 蜜蜡黄 (主强调色) */
    --primary-glow: rgba(226, 156, 53, 0.4);
    --secondary: #4DB6AC;     /* 冰玻绿 */
    --accent: #C0392B;        /* 朱砂红 */
    --text-primary: #f0f4f3;   /* 暖白文本 */
    --text-secondary: #a3b8b5; /* 灰绿次要文本 */
    --text-tertiary: #6b827e;  /* 辅助暗文 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Noto Serif SC', Georgia, serif;
    --font-outfit: 'Outfit', sans-serif;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(24, 62, 57, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(226, 156, 53, 0.05) 0%, transparent 40%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(12, 21, 20, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(24, 62, 57, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 0 10px var(--primary-glow);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.btn-nav {
    background: linear-gradient(135deg, rgba(226, 156, 53, 0.15) 0%, rgba(226, 156, 53, 0.3) 100%);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(226, 156, 53, 0.1);
}

.btn-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary) 0%, #f39c12 100%) !important;
    color: #0c1514 !important;
    box-shadow: 0 6px 20px rgba(226, 156, 53, 0.3) !important;
    text-shadow: none !important;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    display: flex;
    align-items: center;
    min-height: 95vh;
}

.hero-bg-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-color: var(--primary);
    filter: blur(160px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: rgba(226, 156, 53, 0.1);
    color: var(--primary);
    border: 1px solid rgba(226, 156, 53, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 54px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary) 30%, #ffd085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(226, 156, 53, 0.2));
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon-svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #d35400 100%);
    color: #0c1514;
    box-shadow: 0 8px 30px rgba(226, 156, 53, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(226, 156, 53, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(24, 62, 57, 0.7);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-preview {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background-color: #1a2d2a;
    border-radius: 44px;
    border: 8px solid rgba(24, 62, 57, 0.8);
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.6), 
        0 0 40px rgba(226, 156, 53, 0.15);
    overflow: hidden;
    position: relative;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 30px 70px -10px rgba(0, 0, 0, 0.7), 
        0 0 50px rgba(226, 156, 53, 0.25);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-page);
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Section */
.features {
    padding: 100px 0;
    position: relative;
    background-color: rgba(12, 21, 20, 0.4);
}

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

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 
        0 15px 35px -10px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(226, 156, 53, 0.1);
}

.card-icon {
    margin-bottom: 24px;
    color: var(--primary);
    display: inline-flex;
}

.card-icon svg {
    width: 42px;
    height: 42px;
    stroke-width: 1.5;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 14px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Compare Section (WOW Slide) */
.compare-section {
    padding: 120px 0;
    background-color: var(--bg-page);
    position: relative;
    border-top: 1px solid rgba(24, 62, 57, 0.4);
    border-bottom: 1px solid rgba(24, 62, 57, 0.4);
}

.compare-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.compare-info h2 {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.compare-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.compare-meta {
    display: flex;
    gap: 40px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-num {
    font-family: var(--font-outfit);
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.meta-lbl {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 1px;
}

.compare-visual {
    display: flex;
    justify-content: center;
}

.slider-wrapper {
    position: relative;
    width: 440px;
    height: 440px;
    border-radius: var(--radius-lg);
    border: 3px solid rgba(24, 62, 57, 0.8);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(226, 156, 53, 0.05);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.compare-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.img-after {
    z-index: 1;
}

.img-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* 默认宽度50% */
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.img-before {
    width: 434px; /* 减去border的大小，适配外框 */
    height: 434px;
    max-width: none;
}

/* 滑动把手 */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--primary);
    z-index: 3;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(226, 156, 53, 0.8);
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #0c1514;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(226, 156, 53, 0.5);
    pointer-events: none;
}

.handle-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Stats Showcase Section */
.stats-preview-section {
    padding: 100px 0;
    background-color: rgba(12, 21, 20, 0.3);
}

.stats-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-img-box {
    display: flex;
    justify-content: center;
    position: relative;
}

.stats-showcase-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}

.badge-accent {
    background-color: rgba(77, 182, 172, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(77, 182, 172, 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

.stats-text-box h2 {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.stats-text-box p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.stats-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-features li {
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.list-icon-svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
    margin-right: 12px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Download Section */
.download-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    background-image: linear-gradient(180deg, var(--bg-page) 0%, #060a0a 100%);
}

.download-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 500px;
    height: 300px;
    background-color: var(--secondary);
    filter: blur(140px);
    opacity: 0.05;
    pointer-events: none;
}

.download-container h2 {
    font-family: var(--font-serif);
    font-size: 44px;
    margin-bottom: 20px;
}

.download-container p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 48px;
    font-size: 16px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-download-ios, .btn-download-android {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 32px;
    border-radius: 16px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.dl-icon {
    display: inline-flex;
}

.dl-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.5;
    color: var(--text-primary);
}

.dl-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.dl-text span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dl-text strong {
    font-size: 17px;
    font-weight: 600;
}

.btn-download-ios:hover {
    transform: translateY(-4px);
    background-color: rgba(24, 62, 57, 0.7);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(226, 156, 53, 0.15);
}

.btn-download-ios:hover .dl-icon svg {
    color: var(--primary);
}

.btn-download-android:hover {
    transform: translateY(-4px);
    background-color: rgba(24, 62, 57, 0.7);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(77, 182, 172, 0.15);
}

.btn-download-android:hover .dl-icon svg {
    color: var(--secondary);
}

.download-tip {
    font-size: 12px !important;
    color: var(--text-tertiary) !important;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background-color: #060a0a;
    border-top: 1px solid rgba(24, 62, 57, 0.3);
    text-align: center;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.logo-img-small {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 0 6px var(--primary-glow);
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.icp {
    font-size: 12px;
    color: var(--text-tertiary);
}

.icp-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.icp-link:hover {
    color: #f0b84d;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .compare-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .stats-preview-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .stats-img-box {
        order: 2;
    }
}

@media (max-width: 576px) {
    .navbar {
        height: 70px;
    }
    
    .nav-links {
        display: none; /* 移动端可隐藏或简化 */
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .slider-wrapper {
        width: 320px;
        height: 320px;
    }
    
    .img-before {
        width: 314px;
        height: 314px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .compare-info h2, .stats-text-box h2 {
        font-size: 30px;
    }
}

/* ==========================================================================
   法律条款 & 联系我们页面 (Legal / Contact Pages)
   ========================================================================== */

.legal-page {
    padding: 140px 0 100px;
}

.legal-container {
    max-width: 800px;
}

.legal-header {
    margin-bottom: 48px;
}

.legal-header h1 {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 12px;
}

.legal-update-date {
    font-size: 14px;
    color: var(--text-tertiary);
}

.legal-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(226, 156, 53, 0.3);
    transition: var(--transition);
}

.legal-content a:hover {
    color: #f0b84d;
    border-bottom-color: var(--primary);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 联系我们卡片 */
.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: rgba(226, 156, 53, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(226, 156, 53, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.contact-card h2 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.contact-email {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
    padding-bottom: 2px;
    margin: 8px 0;
    transition: var(--transition);
}

.contact-email:hover {
    color: #f0b84d !important;
}

.contact-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Footer 链接 */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-sep {
    font-size: 13px;
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* 响应式 */
@media (max-width: 576px) {
    .legal-page {
        padding: 110px 0 60px;
    }

    .legal-header h1 {
        font-size: 32px;
    }

    .contact-card {
        padding: 24px;
    }
}
