:root {
    --primary-color: #2962ff;
    --secondary-color: #0039cb;
    --accent-color: #FFD700;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #1a237e;
    --card-bg: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #f8f9fa;
}

.container {
    width: min(100% - 30px, 1200px);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* 导航栏样式 */
.nav-bar {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 58px;
    width: 58px;
    object-fit: contain;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: clamp(10px, 3vw, 30px);
    align-items: center;
}

.nav-links a {
    margin: 0;
    white-space: nowrap;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero区域样式 */
.hero {
    width: 100%;
    padding: 0;
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-color));
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 600;
}

.highlight-number {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
}

.download-hero {
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.users-count {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.9;
}

/* 核心功能区域 */
.core-features {
    padding: 80px 20px;
    background: white;
}

.core-features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5em;
    color: var(--dark-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(10px, 3vw, 30px);
    width: 100%;
    padding: 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 产品展示区域 */
.app-showcase {
    padding: 80px 20px;
    background: #f8f9fa;
}

.showcase-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 5vw, 50px);
    margin-top: clamp(30px, 5vw, 50px);
}

.phone-slider {
    width: min(280px, 100%);
    flex-shrink: 0;
    position: relative;
}

.phone-frame {
    position: relative;
    width: 100%;
    padding-top: 200%; /* 2:1 的长宽比 */
    background: var(--dark-bg);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.screenshot-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.screenshot-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screenshot-wrapper img.active {
    opacity: 1;
}

/* 轮播点样式 */
.slider-dots {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-bg);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    opacity: 0.7;
}

.dot.active {
    opacity: 1;
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 展示内容样式 */
.showcase-content {
    flex: 1;
}

.showcase-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

.showcase-item.active {
    display: block;
}

.showcase-item h3 {
    color: var(--dark-bg);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.showcase-item ul {
    list-style: none;
    margin-top: 20px;
}

.showcase-item ul li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.showcase-item ul li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 下载区域 */
.download-section {
    width: 100%;
    padding: clamp(40px, 5vw, 80px) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: var(--light-text);
    text-align: center;
}

.download-options {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 5vw, 50px);
    margin-top: 40px;
}

.qr-code img {
    width: 200px;
    height: 200px;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background: white;
    color: var(--dark-bg);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
}

.download-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-btn i {
    margin-right: 10px;
}

/* 页脚 */
footer {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 40px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    margin-left: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .showcase-container {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .phone-slider {
        flex: 0 0 auto;
        width: 280px;
        margin: 0 auto 60px;
    }

    .phone-frame {
        padding-top: 180%;
        margin: 0 auto;
    }

    .screenshot-wrapper {
        padding: 8px;
    }

    .screenshot-wrapper img {
        border-radius: 15px;
    }

    .slider-dots {
        bottom: -40px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .showcase-content {
        width: 100%;
        text-align: center;
    }

    .showcase-item ul {
        text-align: left;
        max-width: 300px;
        margin: 20px auto;
    }

    .download-options {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

    .footer-links a {
        margin: 0;
    }

    .core-features {
        padding: 40px 15px;
    }

    .app-showcase {
        padding: 40px 15px;
    }

    .features-grid {
        padding: 0 10px;
        gap: 15px;
    }

    .showcase-container {
        padding: 0;
        margin-top: 30px;
    }

    .phone-slider {
        width: 100%;
        max-width: 280px;
    }

    .nav-bar {
        padding: 15px;
    }

    .nav-links a {
        margin-left: 15px;
        font-size: 0.9em;
    }

    .hero-content {
        padding: 40px 15px;
    }

    .download-section {
        padding: 40px 15px;
    }

    .download-buttons {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    footer {
        padding: 30px 15px;
    }

    .container {
        width: min(100% - 1px, 768px);
    }

    .phone-slider {
        width: min(100%, 280px);
        margin: 0 auto 60px;
    }

    .showcase-content {
        width: 100%;
        padding: 0 10px;
    }

    .download-buttons {
        width: min(100%, 280px);
    }

    .hero-content,
    .core-features,
    .app-showcase,
    .download-section,
    footer {
        padding: clamp(20px, 5vw, 40px) 0;
    }

    .features-grid {
        gap: 15px;
    }

    .showcase-content {
        width: 100%;
    }

    .showcase-item ul {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .phone-slider {
        flex: 0 0 250px;
    }

    .showcase-container {
        gap: 30px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .showcase-container {
        -webkit-overflow-scrolling: touch;
    }

    .phone-frame {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1.2em;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .nav-links {
        display: flex;
        gap: 10px;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.85em;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .container {
        width: min(100% - 1px, 390px);
    }

    .nav-bar {
        padding: 10px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.8em;
        padding: 5px;
    }

    .feature-card {
        padding: 15px;
    }

    .hero h1 {
        font-size: clamp(1.5em, 5vw, 2em);
    }

    .tagline {
        font-size: clamp(1em, 4vw, 1.2em);
    }

    .feature-card {
        padding: clamp(10px, 3vw, 15px);
    }

    .cta-button {
        padding: clamp(8px, 3vw, 12px) clamp(15px, 5vw, 25px);
        font-size: clamp(0.9em, 3vw, 1em);
    }
} 