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

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

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

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #8B4513; /* 深棕色，易学传统色 */
    text-decoration: none;
}

.logo img {
    height: 40px; /* 调整图片高度 */
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #8B4513; /* 深棕色，易学传统色 */
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #8B4513;
    border-radius: 2px;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #4a148c 100%); /* 深蓝到深紫，神秘感 */
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #D4AF37; /* 金色，象征财富和智慧 */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #B8860B; /* 深金色 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* 功能特色 */
.features-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 50px;
}

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

.feature-card {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 25px;
}

/* 六爻排盘图标 - 金色，与整体主题统一 */
.feature-card:nth-child(1) .feature-icon {
    color: #D4AF37;
    text-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
}

/* 四柱八字图标 - 金色，象征财富和传统 */
.feature-card:nth-child(2) .feature-icon {
    color: #D4AF37;
}

/* 专业书库图标 - 深紫色，象征知识和神秘 */
.feature-card:nth-child(3) .feature-icon {
    color: #4a148c;
}

.feature-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

/* APP展示区域 */
.app-showcase-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.app-carousel {
    position: relative;
    overflow: hidden;
    margin: 40px auto 0;
    padding: 20px 0;
}

.app-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    padding: 10px;
}

.app-screenshot {
    flex: 0 0 auto;
    width: 280px;
    height: 606px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.app-screenshot:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #8B4513;
    color: #8B4513;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.carousel-btn:hover {
    background: #8B4513;
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #8B4513;
    transform: scale(1.2);
}

/* 响应式调整 - APP展示 */
@media (max-width: 992px) {
    .app-screenshot {
        width: 240px;
        height: 430px;
    }
}

@media (max-width: 768px) {
    .app-showcase-section {
        padding: 60px 0;
    }
    
    .app-screenshot {
        width: 220px;
        height: 390px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .app-screenshot {
        width: 200px;
        height: 355px;
    }
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%); /* 浅蓝灰背景 */
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

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

.platform-icon {
    font-size: 64px;
    margin-bottom: 25px;
}

/* Android图标 - 金色 (对应易学五行中的土/金，象征财富) */
.platform-android .platform-icon {
    color: #D4AF37;
}

/* iOS图标 - 深蓝色 (对应易学五行中的水，象征智慧和流动) */
.platform-ios .platform-icon {
    color: #1a237e;
}

/* 鸿蒙图标 - 红色 (对应易学五行中的火，象征热情和活力) */
.platform-harmony .platform-icon {
    color: #C41E3A; /* 中国红 */
}

.platform-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.platform-card p {
    color: #666;
    margin-bottom: 8px;
    font-size: 15px;
}

.btn-platform {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

/* Android下载按钮 - 金色 */
.btn-android {
    background: #D4AF37;
}

.btn-android:hover {
    background: #B8860B;
}

/* iOS下载按钮 - 深蓝色 */
.btn-ios {
    background: #1a237e;
}

.btn-ios:hover {
    background: #0d1a5c;
}

/* 鸿蒙下载按钮 - 红色 */
.btn-harmony {
    background: #C41E3A;
}

.btn-harmony:hover {
    background: #a0172e;
}

/* 页脚 */
.footer {
    background: #1a1a1a; /* 深灰色背景 */
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #D4AF37; /* 金色标题 */
}

.footer-column p,
.footer-column a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: #D4AF37; /* 金色悬停效果 */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 20px;
    color: white;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #D4AF37; /* 金色悬停效果 */
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

.footer-bottom a {
    color: #D4AF37;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        margin-top: 20px;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid,
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}
/* 在CSS中设置固定的宽度，或者使用flex布局 */
.app-screenshot {
    flex: 0 0 auto;
    width: 280px; /* 使用固定的宽度，而不是动态计算 */
    height: 606px;
    /* ... 其他样式不变 ... */
}