/* Modern Style CSS - 高科技风格 */
:root {
    /* 主色调 - 改为红色基调 */
    --primary-color: #BB2E2E;
    --primary-dark: #9a1a1a;
    --primary-light: #e05252;
    --accent-color: #4a69bd;
    
    /* 文本颜色 */
    --text-dark: #2c3e50;
    --text-light: #636e72;
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-dark: #2c2c2c;
    
    /* 边框颜色 */
    --border-color: #e8e8e8;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 按钮 */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

/* 确保 .btn-primary 明确使用白色文字 */
.btn.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* 确保 .btn-primary 悬停时文字也是白色 */
.btn.btn-primary:hover {
    color: white !important;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #3a5cbd;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* 修复头部导航样式 */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(187, 46, 46, 0.1);
}

/* 新增：移动端菜单切换按钮样式 */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 10px;
}

/* 英雄区域 - 修复显示问题 */
.hero, 
.tools-hero,
.api-docs-hero {
    background: linear-gradient(135deg, #BB2E2E 0%, #9a1a1a 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2,
.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p,
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* 特别为Hero部分的按钮添加的样式 */
.hero .btn-outline {
    color: white;
    border: 2px solid white;
    background-color: transparent;
}

.hero .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* 特性部分 */
.capabilities {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient( 90deg, #545A7C 0%, #1E2653 100%);;
    color: #fcdfc3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    background-color: rgba(187, 46, 46, 0.1);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-card a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.feature-card a:hover {
    color: var(--primary-dark);
}

/* 工具部分 */
.tools-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* 修复各类特殊页面的hero部分 */
.tools-hero {
    background: linear-gradient(135deg, #BB2E2E 0%, #9a1a1a 100%);
}

.guide-hero {
    background: linear-gradient(135deg, #BB2E2E 0%, #9a1a1a 100%);
}

.help-hero {
    background: linear-gradient(135deg, #BB2E2E 0%, #9a1a1a 100%);
}

/* 快速开始部分 */
.quick-start {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.steps {
    max-width: 800px;
    margin: 40px auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    padding-top: 5px;
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--text-light);
}

.cta-button {
    text-align: center;
    margin-top: 40px;
}

/* API导入部分 */
.api-import {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.api-categories {
    margin-top: 40px;
}

.row {
    display: flex;
    gap: 30px;
}

.col {
    flex: 1;
}

.api-category-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.api-category-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.api-category-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.api-category-card .btn {
    margin-top: 10px;
}

/* 页脚 */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* 阴影 */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* 响应式调整 */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo {
        margin-bottom: 0;
    }

    /* 隐藏桌面导航 */
    .nav {
         display: none !important; /* 尝试加强优先级 */
    }

    /* 显示移动端切换按钮 */
    .menu-toggle {
        display: block !important; /* 尝试加强优先级 */
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 10px 0;
        z-index: 99;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
        gap: 0;
    }

    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(187, 46, 46, 0.1);
    }

    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .row {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 动画 - 修改为直接显示 */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s forwards;
    opacity: 1 !important;
}

.stagger-item {
    opacity: 1 !important;
} 