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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== 导航栏样式 ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #6C171D;
    background: #f8f9fa;
}

.nav-link.active {
    color: #fff;
    background: #6C171D
    ;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ===== 页面头部样式 ===== */
.page-header {
    background: linear-gradient(135deg, #6C171D, #73191f);
    color: #fff;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 英雄区域样式 ===== */
.hero {
    background: linear-gradient(135deg, #6C171D, #761a20);
    color: #fff;
    padding: 8rem 0 4rem;
    margin-top: 80px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #e74c3c;
    color: #fff;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #6C171D;
}

.hero-image {
    text-align: center;
}

.phone-mockup {
    position: relative;
    display: inline-block;
}

.app-screenshot {
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-decoration {
    display: none;
}

/* ===== 特性区域样式 ===== */
.features {
    padding: 5rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #6C171D;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== 截图展示区域 ===== */
.screenshots {
    padding: 5rem 0;
    background: #f8f9fa;
}

/* ===== App Showcase Section ===== */
.app-showcase {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    border-color: #6C171D;
    color: #6C171D;
}

.tab-btn.active {
    background: #6C171D;
    border-color: #6C171D;
    color: #fff;
}

/* Tab Content */
.tab-content-container {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.content-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #555;
    font-weight: 500;
}

.feature-list i {
    color: #27ae60;
    font-size: 1rem;
    width: 16px;
}

/* Phone Frame */
.content-image {
    text-align: center;
}

.phone-frame {
    position: relative;
    display: inline-block;
    background: linear-gradient(145deg, #667eea, #764ba2);
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 2;
}

.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    z-index: 2;
}

.screen-img {
    width: 280px;
    height: auto;
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

/* Responsive Design for App Showcase */
@media (max-width: 768px) {
    .tab-navigation {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }
    
    .content-text h3 {
        font-size: 1.5rem;
    }
    
    .screen-img {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .app-showcase {
        padding: 3rem 0;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .screen-img {
        width: 200px;
    }
    
    .phone-frame {
        padding: 15px;
    }
}
    
    .screenshot-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }

    .screenshot-item {
        text-align: center;
        background: #fff;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .screenshot-item:hover {
        transform: translateY(-5px);
    }

    .screenshot-item img {
        max-width: 200px;
        height: auto;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .screenshot-item h4 {
        color: #2c3e50;
        font-weight: 600;
    }

    .carousel-controls {
        display: none;
    }

    /* ===== 下载区域 ===== */
    .download {
        padding: 5rem 0;
        background: linear-gradient(135deg, #2c3e50, #34495e);
        color: #fff;
        text-align: center;
    }

    .download-content h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .download-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    .download-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .download-btn img {
        height: 60px;
        transition: all 0.3s ease;
    }

    .download-btn:hover img {
        transform: scale(1.05);
    }

    /* ===== 关于我们页面样式 ===== */
    .about-content {
        padding: 5rem 0;
        background: #fff;
    }

    .about-intro {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        margin-bottom: 5rem;
    }

    .intro-text h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: #2c3e50;
    }

    .intro-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #666;
        margin-bottom: 1.5rem;
    }

    .intro-image {
        text-align: center;
    }

    .wayang-illustration img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .mission-vision {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .mission, .vision {
        background: #f8f9fa;
        padding: 2.5rem;
        border-radius: 12px;
        text-align: center;
    }

    .mission .icon, .vision .icon {
        font-size: 3rem;
        color: #6C171D;
        margin-bottom: 1.5rem;
    }

    .mission h3, .vision h3 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #2c3e50;
    }

    .mission p, .vision p {
        color: #666;
        line-height: 1.6;
    }

    .team-section h2 {
        text-align: center;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 3rem;
        color: #2c3e50;
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .team-member {
        background: #fff;
        border-radius: 12px;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .team-member:hover {
        transform: translateY(-5px);
    }

    .member-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
        border-radius: 50%;
        overflow: hidden;
    }

    .member-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .team-member h4 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #2c3e50;
    }

    .role {
        color: #6C171D;
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .team-member p {
        color: #666;
        line-height: 1.6;
    }

    /* ===== 联系我们页面样式 ===== */
    .contact-content {
        padding: 5rem 0;
        background: #fff;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        margin-bottom: 5rem;
    }

    .contact-info h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 2rem;
        color: #2c3e50;
    }

    .contact-item {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        background: #6C171D;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .contact-details h4 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #2c3e50;
    }

    .contact-details p {
        color: #666;
        line-height: 1.6;
    }

    .contact-form h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 2rem;
        color: #2c3e50;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #2c3e50;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #6C171D;
    }

    .faq-section {
        background: #f8f9fa;
        padding: 3rem;
        border-radius: 12px;
    }

    .faq-section h2 {
        text-align: center;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 2rem;
        color: #2c3e50;
    }

    .faq-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .faq-item {
        background: #fff;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .faq-item h4 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #2c3e50;
    }

    .faq-item p {
        color: #666;
        line-height: 1.6;
    }

    /* ===== 条款页面样式 ===== */
    .terms-content {
        padding: 5rem 0;
        background: #fff;
    }

    .terms-text {
        max-width: 800px;
        margin: 0 auto;
    }

    .terms-text h2 {
        font-size: 1.8rem;
        font-weight: 600;
        margin: 2rem 0 1rem;
        color: #2c3e50;
    }

    .terms-text p {
        margin-bottom: 1rem;
        line-height: 1.8;
        color: #666;
    }

    .terms-text ul {
        margin: 1rem 0 1rem 2rem;
        color: #666;
    }

    .terms-text li {
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }

    .last-updated {
        background: #f8f9fa;
        padding: 1.5rem;
        border-radius: 8px;
        margin-top: 3rem;
        text-align: center;
    }

    .last-updated p {
        margin: 0;
        color: #666;
    }

    /* ===== 页脚样式 ===== */
    .footer {
        background: #2c3e50;
        color: #fff;
        padding: 3rem 0 1rem;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section h4 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #fff;
    }

    .footer-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .footer-logo img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .footer-logo span {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .footer-section p {
        color: #bdc3c7;
        line-height: 1.6;
    }

    .footer-section ul {
        list-style: none;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

    .footer-section ul li a {
        color: #bdc3c7;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-section ul li a:hover {
        color: #3498db;
    }

    .social-links {
        display: flex;
        gap: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        background: #34495e;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .social-links a:hover {
        background: #6C171D;
        transform: translateY(-2px);
    }

    .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid #34495e;
        color: #bdc3c7;
    }

    /* ===== 响应式设计 ===== */
    @media (max-width: 768px) {
        .nav-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: #fff;
            flex-direction: column;
            padding: 1rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .nav-menu.active {
            display: flex;
        }
        
        .hamburger {
            display: flex;
        }
        
        .hamburger.active .bar:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        
        .hamburger.active .bar:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger.active .bar:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }
        
        .hero-content {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 2rem;
        }
        
        .hero-text h1 {
            font-size: 2.5rem;
        }
        
        .page-header h1 {
            font-size: 2.5rem;
        }
        
        .about-intro {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        .mission-vision {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        .contact-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        .container {
            padding: 0 1rem;
        }
    }

    @media (max-width: 480px) {
        .hero-text h1 {
            font-size: 2rem;
        }
        
        .page-header h1 {
            font-size: 2rem;
        }
        
        .section-title {
            font-size: 2rem;
        }
        
        .hero-buttons {
            flex-direction: column;
        }
        
        .btn {
            text-align: center;
        }
    }

    /* ===== 动画和特效 ===== */
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .slide-in-left {
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.6s ease;
    }

    .slide-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .slide-in-right {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.6s ease;
    }

    .slide-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* ===== 加载动画 ===== */
    .loading {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #667eea, #764ba2);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.5s ease;
    }

    .loading.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* ===== 滚动条样式 ===== */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(45deg, #ff6b6b, #feca57);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(45deg, #feca57, #ff6b6b);
    }