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

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: #ffffff;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    height: 50px;
    width: 50px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 菜单切换按钮（默认隐藏） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA 按钮样式 */
.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #f5576c;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #fff5f6;
}

.cta-button-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-button-secondary:hover {
    background: linear-gradient(135deg, #7e8ef5 0%, #8a5bb8 100%);
}

/* 访问建议样式 */
.access-tips {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-left: 4px solid #ff9800;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin: 2rem 0 3rem 0;
}

.access-tips.hero-tips {
    margin-top: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.access-tips h4 {
    color: #ff6f00;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.tips-list li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.tips-list li::before {
    content: "•";
    color: #ff9800;
    margin-right: 0.5rem;
}

.tips-list strong {
    color: #ff6f00;
    font-weight: 600;
}

.recommended {
    color: #ff9800;
    font-weight: 600;
}

.access-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.access-btn {
    flex: 1;
    min-width: 180px;
    padding: 0.7rem 1.5rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-domestic {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    color: white;
}

.btn-domestic:hover {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.btn-official {
    background: white;
    color: #666;
    border: 2px solid #ddd;
}

.btn-official:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 内容区域 */
.intro, .features, .capabilities, .applications, .summary {
    padding: 4rem 0;
}

/* 图文混排通用样式 */
.text-image-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.text-image-container.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.image-content img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-content:hover img {
    transform: scale(1.05);
}

.intro {
    background: #f7fafc;
}

.intro h2, .features h2, .capabilities h2, .applications h2, .summary h2 {
    font-size: 2.2rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.intro h3, .features h3, .capabilities h3, .applications h3 {
    font-size: 1.6rem;
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    color: #4a5568;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
}

/* 功能卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #667eea;
}

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

.feature-card h3 {
    color: #667eea;
    margin-top: 0;
    font-size: 1.4rem;
}

.feature-card h4 {
    color: #764ba2;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 1rem;
}

/* 特性图片 */
.feature-image, .app-image {
    margin: 3rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-image img, .app-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.feature-image:hover img, .app-image:hover img {
    transform: scale(1.05);
}

/* 技术能力区域 */
.capabilities {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #1a202c;
}

.capabilities h2 {
    color: #1a202c;
}

.capabilities h3 {
    color: #2d3748;
}

/* 应用场景网格 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.app-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.app-item h3 {
    color: #f5576c;
    margin-top: 0;
    font-size: 1.3rem;
}

/* 总结区域 */
.summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.summary h2 {
    color: white;
}

.summary p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
}

/* 页脚 */
footer {
    background: #1a202c;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .access-buttons {
        flex-direction: column;
    }

    .access-btn {
        min-width: 100%;
    }

    .text-image-container, .text-image-container.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    /* 移动端导航样式 */
    .menu-toggle {
        display: block;
    }

    header .container {
        position: relative;
    }

    nav ul {
        display: none; /* 默认隐藏 */
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #764ba2;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
        overflow: hidden;
    }

    nav ul.active {
        display: flex; /* 激活时显示 */
    }

    nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
    }

    nav a:hover {
        background: rgba(255,255,255,0.1);
        transform: none;
    }

    nav li:last-child a {
        border-bottom: none;
    }

    .intro h2, .features h2, .capabilities h2, .applications h2, .summary h2 {
        font-size: 1.8rem;
    }

    .intro h3, .features h3, .capabilities h3, .applications h3 {
        font-size: 1.4rem;
    }

    .feature-grid, .app-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .site-logo {
        height: 40px;
        width: 40px;
    }
}
