/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* 头部导航 */
.header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 主页横幅 */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 20,70 35,70 35,90 65,90 65,70 80,70" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px 200px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.app-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.app-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.app-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: 1.5rem auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.app-slogan {
    font-size: 1.3rem;
    opacity: 0.9;
    font-style: italic;
}

/* 功能介绍 */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    margin: 1.5rem auto 0;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* 独特特点卡片 */
.features-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.highlight-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.highlight-card:hover::before {
    transform: scaleX(1);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.highlight-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

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

.highlight-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight-card p {
    color: #666;
    font-size: 1rem;
}

/* 功能部分标题 */
.functions-section {
    margin-top: 3rem;
}

.functions-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
}

.functions-title::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* 功能详情卡片 */
.feature-detail-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
}

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

.feature-detail-card:nth-child(3) { animation-delay: 0.1s; }
.feature-detail-card:nth-child(4) { animation-delay: 0.2s; }
.feature-detail-card:nth-child(5) { animation-delay: 0.3s; }
.feature-detail-card:nth-child(6) { animation-delay: 0.4s; }
.feature-detail-card:nth-child(7) { animation-delay: 0.5s; }

.feature-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #f0f0f0;
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.feature-title-box {
    flex: 1;
}

.feature-title-box h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.feature-slogan {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.feature-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

/* 图片展示 */
.feature-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.feature-image-wrapper:hover .feature-screenshot {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid white;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.3);
}

/* 功能详情列表 */
.feature-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.detail-item:hover {
    border-left-color: var(--gradient-start);
    background: linear-gradient(135deg, #fff 0%, #f0f4ff 100%);
    transform: translateX(10px);
}

.detail-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.detail-content {
    flex: 1;
}

.detail-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.detail-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* 海拔高度带 */
.altitude-bands {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.8rem;
}

.altitude-band {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.altitude-band.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.altitude-band.yellow {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.altitude-band.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.altitude-band.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.band-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0.5;
}

/* 关于我们 */
.about {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
    color: white;
}

.about .section-title {
    color: white;
}

.about-text {
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 隐私和安全部分 */
.privacy-section {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.privacy-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.privacy-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.privacy-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.privacy-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.privacy-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.link-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.privacy-link:hover .link-icon {
    transform: translateX(5px);
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .feature-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu {
        margin-top: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .app-name {
        font-size: 2rem;
    }
    
    .app-slogan {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-detail-card {
        padding: 2rem;
    }

    .feature-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-number {
        font-size: 2.5rem;
    }

    .feature-title-box h3 {
        font-size: 1.8rem;
    }

    .detail-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .detail-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .altitude-bands {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .app-icon {
        width: 120px;
        height: 120px;
    }
    
    .mountain-icon {
        width: 80px;
        height: 80px;
    }

    .features-highlights {
        grid-template-columns: 1fr;
    }

    .functions-title {
        font-size: 1.8rem;
    }

    .feature-title-box h3 {
        font-size: 1.5rem;
    }

    .feature-slogan {
        font-size: 0.95rem;
    }

    .privacy-section {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .privacy-title {
        font-size: 1.5rem;
    }

    .privacy-text {
        font-size: 1rem;
    }

    .privacy-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 图片灯箱效果 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
