/* CHNGPU.COM 网站样式 - 金红配色版 */
:root {
    --red-primary: #C8102E;
    --red-dark: #9E0B24;
    --red-light: #E83A4F;
    --gold-primary: #D4AF37;
    --gold-light: #F5D680;
    --gold-dark: #B8941F;
    --blue-accent: #1E88E5;
    --bg-light-gold: #FFF8E7;
    --bg-light-red: #FFF0F0;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
}

* {
    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(200, 16, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(200, 16, 46, 0.3);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(200, 16, 46, 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: linear-gradient(135deg, var(--red-primary), var(--red-light));
    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 4px 15px rgba(200, 16, 46, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.6);
}

.btn-gold-outline {
    background: transparent;
    color: var(--gold-primary);
    padding: 10px 24px;
    border: 2px solid var(--gold-primary);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Hero区 */
.hero {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 50%, var(--red-light) 100%);
    color: var(--white);
    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;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: var(--gold-light);
    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(auto-fit, minmax(280px, 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: linear-gradient(90deg, var(--red-primary), 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: linear-gradient(135deg, var(--red-primary), var(--red-light));
    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: var(--red-dark);
    color: var(--white);
    padding: 60px 40px 30px;
}

.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(--gold-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: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    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 {
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--gold-light) !important;
}

/* Hero区按钮文字 */
.hero .btn-primary {
    color: var(--white) !important;
}

.hero .btn-gold-outline {
    color: var(--gold-primary) !important;
    border-color: var(--gold-primary) !important;
}

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

/* 页脚文字颜色修复 */
.footer {
    color: var(--white);
}

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

.footer ul a {
    color: rgba(255, 255, 255, 0.9) !important;
}

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

.footer .footer-bottom {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.7) !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: var(--gold-primary) !important;
}

section.hero .btn-gold-outline:hover {
    color: var(--white) !important;
}
