:root {
    /* 金兰风格配色 - 绿色主调 + 黄色点缀 */
    --primary-color: #008a4b;      /* 金兰绿 */
    --primary-dark: #006838;       /* 深绿 */
    --secondary-color: #475569;    /* 中性灰 */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f0fdf4;           /* 浅绿背景 */
    --bg-white: #ffffff;
    --bg-dark: #064e3b;            /* 深绿背景 */
    --accent: #facc15;             /* 金兰黄 */
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* 导航栏 */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: 70px;
    border-bottom: 3px solid var(--accent); /* VI装饰：金兰黄底边 */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
}

/* Hero 区域 */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* VI装饰：几何图案背景 */
    background-image: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.1) 0%, transparent 20%),
                      radial-gradient(circle at 80% 80%, rgba(250, 204, 21, 0.1) 0%, transparent 20%),
                      url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}
/* 打字机光标效果 */
.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: var(--accent);
    margin-left: 8px;
    vertical-align: text-bottom;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 确保标题高度固定，防止文字切换时页面抖动 */
.hero h1 {
    min-height: 2.4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 通用 Section */
.section {
    padding: 80px 0;
    text-align: center; /* 让section内的内容（如标题）居中 */
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* 核心价值卡片 */
.values-section {
    margin-top: -60px;
    padding-top: 0;
    position: relative;
    z-index: 10;
}

.values-section .grid-4 {
    margin-top: -60px;
}

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

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light); /* 使用新的浅绿背景 */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    border: 2px solid var(--border-color); /* 增加边框增加层次感 */
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: left;
}

/* 核心功能行 */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    text-align: left;
}

.feature-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.feature-svg:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* 
.mockup-bg {
    width: 100%;
    height: 300px;
    background-color: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
} 
*/

.badge {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color); /* 增加边框 */
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.feature-text p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.check-list li {
    margin-bottom: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: var(--primary-color);
}

/* 智能化部分 */
.dark-section {
    background-color: var(--bg-dark);
    color: white;
}

.text-white {
    color: white !important;
}

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

.tech-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.tech-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.tech-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.tech-card p {
    color: #94a3b8;
    line-height: 1.7;
    text-align: left;
}

/* 统计与合规 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.info-block {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.info-block h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
}

.info-block i {
    color: var(--primary-color);
}

.info-block p {
    text-align: left;
}

/* Footer */
footer {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 400px;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
    /* 导航栏适配 */
    .navbar {
        height: auto;
        padding: 15px 0;
    }

    .navbar .container {
        flex-wrap: wrap; /* 允许折行，菜单折叠时占一行，展开时占新行 */
    }

    .menu-toggle {
        display: block; /* 显示汉堡菜单按钮 */
    }

    .nav-links {
        display: none; /* 默认隐藏菜单 */
        flex-direction: column;
        width: 100%;
        gap: 15px;
        text-align: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex; /* 激活时显示 */
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
    }

    /* Hero 区域适配 */
    .hero {
        margin-top: 70px; /* 恢复为导航栏的标准高度，因为菜单默认是折叠的 */
        height: auto;
        min-height: auto;
        padding: 60px 0 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    /* 布局调整 */
    .section {
        padding: 40px 0;
    }

    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }

    /* 功能行适配 */
    .feature-row {
        flex-direction: column;
        gap: 40px;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    /* 让图片显示在文字上方，增强视觉吸引力 */
    .feature-img {
        order: -1;
    }

    .check-list li {
        justify-content: center;
    }

    .feature-text h3 {
        font-size: 1.75rem;
    }

    /* 页脚适配 */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links, .footer-contact {
        align-items: center;
    }
}
