/* ============================
   八斗才网络 - 全局样式
   ============================ */

:root {
    --primary: #1B3A6B;
    --primary-dark: #0d2147;
    --primary-light: #2a5298;
    --accent: #E8A838;
    --accent-dark: #c88a20;
    --success: #2E8B57;
    --bg: #ffffff;
    --bg-gray: #F5F7FA;
    --bg-dark: #0d1f3c;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(27,58,107,0.08);
    --shadow-lg: 0 8px 30px rgba(27,58,107,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
    font-weight: 700;
    line-height: 1.3;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

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

/* ===== 顶部栏 ===== */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-inner span { color: rgba(255,255,255,0.8); }

/* ===== 导航栏 ===== */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 800;
    font-family: 'Noto Serif SC', serif;
    box-shadow: 0 4px 12px rgba(27,58,107,0.25);
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 18px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-en { font-size: 10px; color: var(--text-muted); letter-spacing: 2px; font-family: 'Inter', sans-serif; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
    display: flex; align-items: center; gap: 4px;
    padding: 24px 16px;
    color: var(--text); font-size: 15px; font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.nav-item > a:hover, .nav-item.active > a { color: var(--primary); }
.nav-item:hover .submenu { display: block; }
.submenu {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
    border-top: 3px solid var(--accent);
    z-index: 100;
    animation: submenuIn 0.2s ease;
}
@keyframes submenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.submenu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}
.submenu a:last-child { border-bottom: none; }
.submenu a:hover { background: var(--bg-gray); color: var(--primary); padding-left: 22px; }

.arrow { font-size: 10px; opacity: 0.6; }

.nav-toggle { display: none; border: none; background: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--primary); margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Banner ===== */
.banner {
    position: relative;
    overflow: hidden;
    height: 520px;
}
.banner-slides { height: 100%; position: relative; }
.banner-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.banner-slide.active { opacity: 1; }
.banner-content {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: 100%;
    padding-top: 40px;
}
.banner-text { max-width: 600px; }
.banner-text h1 {
    font-size: 44px; color: #fff; margin-bottom: 16px;
    opacity: 0; transform: translateY(30px);
    animation: slideUp 0.6s ease 0.2s forwards;
}
.banner-slide.active .banner-text h1 { animation-play-state: running; }
.banner-text p {
    font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 28px;
    opacity: 0; animation: slideUp 0.6s ease 0.4s forwards;
}
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}
.banner-btns { display: flex; gap: 14px; opacity: 0; animation: slideUp 0.6s ease 0.6s forwards; }
.banner-visual { position: relative; width: 360px; height: 360px; display: flex; align-items: center; justify-content: center; }
.bv-circle {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    animation: bvPulse 4s ease-in-out infinite;
}
.bv-circle { width: 360px; height: 360px; }
.bv-circle-2 { width: 280px; height: 280px; animation-delay: 1s; border-color: rgba(232,168,56,0.2); }
@keyframes bvPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}
.bv-icon { font-size: 100px; position: relative; z-index: 1; }
.banner-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: var(--accent); width: 28px; border-radius: 5px; }
.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    font-size: 32px; width: 44px; height: 44px;
    border-radius: 50%; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.banner-arrow:hover { background: var(--accent); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: var(--radius);
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: var(--transition); border: none; text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(232,168,56,0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), #b07818);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,168,56,0.45);
}
.btn-outline {
    background: transparent; color: #fff;
    border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-block { width: 100%; display: flex; }

/* ===== 通用区块 ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-title {
    font-size: 36px; color: var(--primary);
    margin-bottom: 12px; position: relative; display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: var(--accent);
    border-radius: 2px;
}
.section-subtitle { font-size: 16px; color: var(--text-light); margin-top: 18px; }

/* ===== 服务卡片 ===== */
.services { padding: 80px 0; background: var(--bg); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.service-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(20px);
}
.service-card.animated { animation: cardIn 0.5s ease forwards; }
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.sc-icon { font-size: 40px; margin-bottom: 16px; }
.service-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--text-light); margin-bottom: 14px; line-height: 1.6; }
.sc-list { margin-bottom: 14px; }
.sc-list li {
    font-size: 12px; color: var(--text-light);
    padding: 3px 0 3px 14px;
    border-left: 2px solid var(--border);
    margin-bottom: 4px;
    transition: var(--transition);
}
.service-card:hover .sc-list li { border-left-color: var(--accent); }
.sc-more { font-size: 13px; color: var(--accent); font-weight: 500; }
.sc-more:hover { color: var(--accent-dark); }

/* ===== 为什么选择 ===== */
.why-us { padding: 80px 0; background: var(--bg-gray); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0; transform: translateY(20px);
}
.why-card.animated { animation: cardIn 0.5s ease forwards; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.wc-num {
    font-size: 48px; font-weight: 800; color: var(--border);
    font-family: 'Inter', sans-serif; line-height: 1;
    margin-bottom: 14px;
}
.why-card:hover .wc-num { color: var(--accent); }
.why-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== 统计 ===== */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 50px 0;
}
.stats-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 40px;
}
.stat-item { text-align: center; flex: 1; }
.stat-num {
    font-size: 48px; font-weight: 800; color: var(--accent);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { font-size: 15px; color: rgba(255,255,255,0.75); }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.15); }

/* ===== 服务流程 ===== */
.process { padding: 80px 0; background: var(--bg); }
.process-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0;
}
.ps-step {
    text-align: center; padding: 0 30px;
    opacity: 0; transform: translateY(20px);
}
.ps-step.animated { animation: cardIn 0.5s ease forwards; }
.ps-icon { font-size: 52px; margin-bottom: 12px; }
.ps-num {
    font-size: 14px; color: var(--accent); font-weight: 700;
    font-family: 'Inter', sans-serif; margin-bottom: 6px;
}
.ps-step h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.ps-step p { font-size: 13px; color: var(--text-light); }
.ps-arrow { font-size: 24px; color: var(--border); flex-shrink: 0; }

/* ===== 合作伙伴 ===== */
.partners { padding: 60px 0; background: var(--bg-gray); }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.partner-item {
    background: #fff; border-radius: var(--radius);
    padding: 24px; text-align: center;
    font-size: 15px; font-weight: 600; color: var(--text-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
    letter-spacing: 2px;
}
.partner-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }

/* ===== 联系咨询 ===== */
.contact { padding: 80px 0; background: var(--bg); }
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.contact-info h2 { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.contact-info > p { font-size: 16px; color: var(--text-light); margin-bottom: 28px; }
.ci-list { display: flex; flex-direction: column; gap: 20px; }
.ci-item { display: flex; align-items: center; gap: 16px; }
.ci-icon { font-size: 28px; }
.ci-label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.ci-value { font-size: 16px; color: var(--text); font-weight: 600; }
.contact-form {
    background: #fff; border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 20px; color: var(--primary); margin-bottom: 24px; text-align: center; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row input { flex: 1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-family: inherit;
    transition: var(--transition); margin-bottom: 16px;
    background: var(--bg-gray);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27,58,107,0.08);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 8px; }

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { width: 36px; height: 36px; font-size: 16px; }
.footer-logo span { font-size: 16px; color: #fff; font-weight: 700; }
.footer-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.5); }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 16px; font-family: 'Noto Sans SC', sans-serif; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== 子页面通用 ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { font-size: 36px; color: #fff; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 16px; }
.page-breadcrumb {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.6);
}
.page-breadcrumb a { color: rgba(255,255,255,0.6); }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb span { color: rgba(255,255,255,0.3); }

.page-content { padding: 60px 0; }
.page-section { margin-bottom: 60px; }
.page-section h2 {
    font-size: 24px; color: var(--primary);
    padding-bottom: 12px; margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.page-section h2::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 60px; height: 2px; background: var(--accent);
}
.page-section h3 { font-size: 18px; color: var(--primary-dark); margin: 20px 0 12px; }
.page-section p { font-size: 15px; color: var(--text-light); margin-bottom: 12px; line-height: 1.8; }

.two-col {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}
.sidebar-nav {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
    position: sticky; top: 90px;
}
.sidebar-title {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; padding: 16px 20px;
    font-size: 16px; font-weight: 700;
}
.sidebar-nav ul li a {
    display: block; padding: 13px 20px;
    font-size: 14px; color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.sidebar-nav ul li a:hover, .sidebar-nav ul li a.active {
    background: var(--bg-gray); color: var(--primary); padding-left: 24px;
    border-left: 3px solid var(--accent);
}
.sidebar-nav ul li:last-child a { border-bottom: none; }

.info-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.info-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 16px; }
.info-card ul { padding-left: 20px; }
.info-card ul li { font-size: 14px; color: var(--text-light); margin-bottom: 8px; list-style: disc; line-height: 1.7; }

.table-box { overflow-x: auto; margin: 16px 0; }
table {
    width: 100%; border-collapse: collapse;
    font-size: 14px;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
th { background: var(--bg-gray); color: var(--primary); font-weight: 600; white-space: nowrap; }
tr:hover { background: var(--bg-gray); }
tr:nth-child(even) { background: rgba(245,247,250,0.5); }

.flow-steps { margin: 20px 0; }
.flow-step {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 0; border-bottom: 1px dashed var(--border);
}
.flow-step:last-child { border-bottom: none; }
.fs-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.fs-content h4 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.fs-content p { font-size: 13px; color: var(--text-light); }

.alert-box {
    padding: 16px 20px; border-radius: var(--radius);
    margin: 16px 0;
}
.alert-info { background: #e8f0fe; border-left: 4px solid var(--primary); }
.alert-warn { background: #fff8e1; border-left: 4px solid var(--accent); }
.alert-success { background: #e8f5e9; border-left: 4px solid var(--success); }
.alert-box p { font-size: 14px; color: var(--text); margin: 0; }

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 40px; text-align: center;
    color: #fff; margin: 40px 0;
}
.cta-box h3 { font-size: 24px; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.cta-box .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    font-size: 16px; padding: 14px 40px;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; }
    .sidebar-nav { position: static; }
    .contact-inner { grid-template-columns: 1fr; }
    .stats-inner { flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .banner { height: 400px; }
    .banner-text h1 { font-size: 28px; }
    .banner-visual { display: none; }
    .banner-content { justify-content: center; text-align: center; }
    .banner-btns { justify-content: center; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .process-steps { flex-wrap: wrap; gap: 20px; }
    .ps-arrow { display: none; }
    .ps-step { padding: 0 15px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .form-row { flex-direction: column; }
    .section-title { font-size: 28px; }
    .stat-num { font-size: 36px; }
    .nav-toggle { display: block; }
    .nav-menu {
        display: none; position: absolute;
        top: 70px; left: 0; right: 0;
        background: #fff; flex-direction: column;
        box-shadow: var(--shadow-lg);
        max-height: 80vh; overflow-y: auto;
    }
    .nav-menu.open { display: flex; }
    .nav-item { width: 100%; }
    .nav-item > a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
    .submenu {
        position: static; box-shadow: none;
        border-top: none; border-left: 3px solid var(--accent);
        background: var(--bg-gray);
    }
    .submenu a { padding: 10px 30px; }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 28px; }
    .stat-label { font-size: 12px; }
    .stat-divider { display: none; }
}
