/* CHNGPU.COM 网站样式 - 政务蓝金配色版 */
:root {
    /* 政务蓝金配色 — 对标 gov.cn */
    --red-primary: #015293;
    --red-dark: #2E5586;
    --red-light: #4B8ABD;
    --gold-primary: #C0B283;
    --gold-light: #D4C89A;
    --gold-dark: #A89B6F;
    --blue-accent: #4B8ABD;
    --bg-light-gold: #F3FAFF;
    --bg-light-red: #E8F0F8;
    --text-dark: #000000;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-gold: 0 2px 12px rgba(1,82,147,.12);
}

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

body {
    font-family: "Microsoft YaHei", "SimHei", "Alibaba PuHuiTi", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(46, 85, 134, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 12px rgba(46, 85, 134, 0.2);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(46, 85, 134, 0.98);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
}

.logo-sub {
    font-size: 14px;
    color: var(--gold-primary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-primary);
}

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

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

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-text {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--gold-primary);
}

.btn-primary {
    background: var(--red-primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(1,82,147,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(1,82,147,0.4);
}

.btn-gold-outline {
    background: rgba(255,255,255,0.3);
    color: #1a1a2e;
    padding: 10px 24px;
    border: 2px solid #1a1a2e;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold-outline:hover {
    background: #1a1a2e;
    color: #fff;
    transform: translateY(-2px);
}

/* Hero区 */
.hero {
    background: linear-gradient(135deg, var(--gold-deep, #A89B6F) 0%, var(--gold-primary) 50%, var(--gold-deep, #A89B6F) 100%);
    color: #1a1a2e;
    padding: 180px 40px 120px;
    text-align: center;
    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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a2e; line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 业务板块 */
.section {
    padding: 100px 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--red-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 16px;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--gold-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: #fff;
    color: #333;
    padding: 60px 40px 30px;
    border-top: 2px solid var(--gold-primary);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--red-primary);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer ul a:hover {
    color: var(--red-primary);
    padding-left: 5px;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 150px 20px 80px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
/* 修复：红色背景上的文字用白色 */

/* Hero区文字 — 金底深字 */
.hero h1 {
    color: #1a1a2e;
}

.hero p {
    color: #555 !important;
}

.hero .btn-primary {
    background: var(--red-primary) !important;
    color: #fff !important;
}

.hero .btn-gold-outline {
    color: #1a1a2e !important;
    border-color: #1a1a2e !important;
    background: rgba(255,255,255,0.3) !important;
}

.hero .btn-gold-outline:hover {
    color: #fff !important;
    background: #1a1a2e !important;
}

/* 页脚文字颜色修复 */
.footer {
    color: #333;
}

.footer h3 {
    color: var(--red-primary) !important;
}

.footer ul a {
    color: #666 !important;
}

.footer ul a:hover {
    color: var(--red-primary) !important;
}

.footer .footer-bottom {
    color: #999 !important;
}

.footer .footer-bottom a {
    color: #999 !important;
}

/* 红色主按钮文字确保白色 */
.btn-primary {
    color: var(--white) !important;
}

/* 底部CTA区按钮 */
section.hero .btn-primary,
section.hero .btn-gold-outline {
    color: var(--white) !important;
}

section.hero .btn-gold-outline {
    color: #1a1a2e !important;
    border-color: #1a1a2e !important;
}

section.hero .btn-gold-outline:hover {
    color: #fff !important;
    background: #1a1a2e !important;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    white-space: nowrap !important;
    display: inline-block !important;
    max-width: none !important;
}

/* 强制下拉箭头和文字在同一行 */




.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: var(--red-primary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}