/* ============================================================
   创客智诚官网 - 全局样式 v2.0 (多页版)
   Brand: Red #C8102E | Navy #1B3A5C
   ============================================================ */

/* ========== CSS Variables ========== */
:root {
    --red: #C8102E;
    --navy: #1B3A5C;
    --dark: #1A1A1A;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --red-light: rgba(200,16,46,0.1);
    --navy-light: rgba(27,58,92,0.08);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ========== Reset ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-weight: 700;
    line-height: 1.3;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section-alt { background: var(--light-gray); }

.section-title {
    font-size: 2.5em;
    color: var(--red);
    text-align: center;
    margin-bottom: 8px;
}
.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1em;
    margin-bottom: 60px;
}

/* ========== Navigation (Shared) ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: "Microsoft YaHei", sans-serif;
    font-weight: 700; font-size: 1.2em; color: var(--dark);
}
.nav-logo img { height: 36px; }
.nav-menu { display: flex; gap: 8px; align-items: center; }
.nav-link {
    padding: 8px 16px; border-radius: 6px; font-size: 0.95em;
    transition: var(--transition); color: var(--dark);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--red-light); color: var(--red); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; position: relative; width: 28px; height: 20px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--dark); position: absolute; left: 0; transition: var(--transition); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 140px; border-radius: 8px;
    box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
    display: block; padding: 8px 16px; font-size: 0.9em;
    color: var(--dark); white-space: nowrap; transition: var(--transition);
}
.nav-dropdown-menu li a:hover { background: var(--red-light); color: var(--red); }

/* CTA Nav Link */
.nav-link-cta {
    background: var(--red) !important; color: #fff !important; border-radius: 6px;
}
.nav-link-cta:hover { background: #a00d24 !important; color: #fff !important; }

/* ========== Buttons ========== */
.btn {
    display: inline-block; padding: 14px 36px; border-radius: 6px;
    font-size: 1em; font-weight: 700; transition: var(--transition);
    font-family: "Microsoft YaHei", sans-serif; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn-primary:hover { background: transparent; color: var(--red); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); margin-left: 12px; }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ========== Cards (Shared) ========== */
.card-hover { transition: var(--transition); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Tags */
.tag {
    display: inline-block; background: var(--navy-light); color: var(--navy);
    padding: 4px 14px; border-radius: 20px; font-size: 0.8em;
}
.tag-highlight { background: var(--red-light); color: var(--red); font-weight: 600; }

/* ========== Animations ========== */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible, .fade-in-up.visible, .fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: none !important; }
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%; border: none;
    background: var(--red); color: #fff; font-size: 1.2em;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: var(--transition); box-shadow: var(--shadow-lg);
}
.back-to-top.show { opacity: 0.9; visibility: visible; }
.back-to-top:hover { opacity: 1; transform: translateY(-2px); }

/* ========== Footer (Shared) ========== */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 48px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: "Microsoft YaHei", sans-serif; font-size: 1.1em; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.footer-logo img { height: 28px; filter: brightness(0) invert(1); }
.footer-desc { max-width: 360px; font-size: 0.9em; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-links h4 { color: rgba(255,255,255,0.8); margin-bottom: 12px; font-size: 1em; }
.footer-links a { display: block; color: rgba(255,255,255,0.5); font-size: 0.9em; padding: 4px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--red); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.85em; color: rgba(255,255,255,0.4); }

/* ========== Breadcrumb ========== */
.breadcrumb {
    padding: 84px 0 0; background: var(--light-gray);
}
.breadcrumb-inner {
    display: flex; align-items: center; gap: 8px; font-size: 0.9em; color: var(--gray);
}
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: #ccc; }

/* ========== Inner Page Hero ========== */
.inner-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #0a1628 0%, #1B3A5C 50%, #0d2040 100%);
    text-align: center; color: #fff;
}
.inner-hero h1 { font-size: 2.8em; margin-bottom: 16px; }
.inner-hero p { font-size: 1.2em; color: rgba(255,255,255,0.7); max-width: 640px; margin: 0 auto; }

/* ========== Nav Language Toggle ========== */
.nav-lang-btn {
    background: var(--red);
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-lang-btn:hover {
    background: #a00d24;
    color: #fff;
}
.navbar .nav-container {
    position: relative;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .policy-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .summary-cards { grid-template-columns: repeat(2, 1fr); }
    .container { max-width: 960px; padding: 0 24px; }
    .nav-container { max-width: 960px; padding: 0 24px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 16px; box-shadow: var(--shadow);
    }
    .nav-menu.open { display: flex; }
    /* Mobile: move lang toggle inside menu */
    .nav-lang-btn {
        position: static;
        transform: none;
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 8px;
        padding: 8px;
    }
    .hero-title, .inner-hero h1 { font-size: 2em; }
    .hero-buttons { flex-direction: column; gap: 12px; align-items: center; }
    .hero-buttons .btn { width: 80%; max-width: 280px; }
    .section { padding: 70px 0; }
    .section-title { font-size: 1.8em; margin-bottom: 6px; }
    .section-subtitle { margin-bottom: 36px; font-size: 1em; }
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .form-row { grid-template-columns: 1fr; }

    /* Dropdown on mobile */
    .nav-dropdown-menu {
        position: static !important; box-shadow: none;
        background: var(--light-gray); border-radius: 8px; margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .section { padding: 50px 0; }
    .section-title { font-size: 1.5em; }
    .container { padding: 0 16px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 8px; }
    .summary-cards { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 1em; }
}
/* Wide screen enhancements */
@media (min-width: 1400px) {
    .container { max-width: 1320px; padding: 0 48px; }
    .nav-container { max-width: 1320px; padding: 0 48px; }
    .hero-content { max-width: 1400px !important; width: 85% !important; }
}

/* Section title boost for wide screens */
@media (min-width: 1600px) {
    .section-title { font-size: 2.4em !important; }
    .section-subtitle { font-size: 1.25em !important; }
    .hero-title { font-size: 4.5em !important; }
    .hero-subtitle { font-size: 1.5em !important; }
}

@media (min-width: 1920px) {
    .container { max-width: 1600px; padding: 0 64px; }
    .nav-container { max-width: 1600px; padding: 0 64px; }
}

/* Footer section headings */
.footer-heading {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 16px;
  color: inherit;
}
