:root {
    --primary-color: #8e2a2a; /* 中式朱砂红 */
    --text-dark: #2c2c2c;
    --text-gray: #5a5a5a;
    --bg-light: #f9f6f2;
    --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

/* 背景图层 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/wanxiang_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.8; /* 调整透明度以确保文字清晰 */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(249, 246, 242, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(142, 42, 42, 0.1);
}

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

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

.app-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-name {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: 2px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 30px;
    font-size: 15px;
    transition: color 0.3s;
}

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

.download-btn-top {
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color) !important;
}

.download-btn-top:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 400px;
}

.app-store-badge img {
    height: 60px;
    transition: transform 0.3s;
}

.app-store-badge:hover img {
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.floating-phone {
    max-width: 100%;
    height: auto;
    max-height: 650px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.4);
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse .feature-text {
    direction: ltr;
}

.feature-text h4 {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.feature-text h4::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.feature-text p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
}

.feature-img-wrapper {
    display: flex;
    justify-content: center;
}

.feature-img-wrapper img {
    max-width: 100%;
    max-height: 550px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Download Section */
.download-section {
    padding: 120px 0;
    text-align: center;
}

.download-section h3 {
    font-family: var(--font-serif);
    font-size: 42px;
    margin-bottom: 20px;
}

.download-section p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.final-cta img {
    height: 70px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.icp-info a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.icp-info a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-gray);
    transition: color 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

    header {
        height: 60px;
    }

    .app-name {
        font-size: 20px;
    }

    .app-icon-placeholder {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    header nav {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero .container {
        display: flex;
        flex-direction: column; /* 文字在上，图片在下 */
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        margin: 0 auto 30px;
        font-size: 16px;
    }

    .app-store-badge img {
        height: 50px;
    }

    .floating-phone {
        max-height: 500px;
    }

    .features {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-grid {
        gap: 80px;
    }

    .feature-item {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .feature-item.reverse {
        direction: ltr;
    }

    .feature-text h4 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .feature-text p {
        font-size: 16px;
    }

    .feature-img-wrapper img {
        max-height: 450px;
    }

    .download-section {
        padding: 80px 0;
    }

    .download-section h3 {
        font-size: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px 25px;
    }
}

