/*!
 * 江浙沪国际本硕 - 主样式表 v4.7
 * 专注江浙沪国际本硕升学资讯 SEO 网站
 */

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --accent: #f59e0b;
    --success: #10b981;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 12px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-stack);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================================
   顶部导航栏
   ============================================================ */
.topbar {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo span { color: var(--accent); }
.topbar-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.topbar-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}
.topbar-nav a:hover,
.topbar-nav a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 下拉菜单 */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown .dropdown-trigger { cursor: pointer; }
.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 200;
    margin-top: 6px;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown .dropdown-menu a {
    display: block;
    color: var(--text) !important;
    padding: 10px 18px;
    border-radius: 0 !important;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.15s;
}
.nav-dropdown .dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary) !important;
}
.nav-contact .contact-dropdown {
    min-width: auto;
    left: auto;
    right: 0;
    padding: 0;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   通用布局
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   Hero 区域
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 50%, #1e40af 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.hero h1 { font-size: 36px; margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 700px; margin: 0 auto 24px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 32px; font-weight: 700; color: var(--accent); }
.hero-stat .label { font-size: 14px; opacity: 0.8; }

/* ============================================================
   维度页 Hero
   ============================================================ */
.dim-hero { padding: 50px 0; text-align: center; color: white; }
.dim-hero h1 { font-size: 32px; margin-bottom: 10px; }
.dim-hero p { opacity: 0.9; font-size: 16px; }
.dim-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 10px;
}
.dim-nav a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #f1f5f9;
    color: var(--text);
    transition: all 0.2s;
    border: 2px solid transparent;
}
.dim-nav a:hover,
.dim-nav a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================================
   标题 & 介绍
   ============================================================ */
.section-title {
    font-size: 24px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}
.section-intro {
    font-size: 15px;
    color: var(--text-secondary);
    margin: -10px 0 20px;
}
.group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.group-header .group-icon { font-size: 28px; }
.group-header h2 { font-size: 22px; }
.group-header .group-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* ============================================================
   卡片网格
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 24px;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.card .card-cat {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    color: white;
    margin-bottom: 10px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.4; }
.card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card .card-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
}
.card .card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.card .card-tags .tag {
    font-size: 11px;
    background: #f1f5f9;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 6px;
}

/* ============================================================
   文章页
   ============================================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
}
.article-main {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    min-width: 0;
}
.article-main h1 {
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.article-meta {
    font-size: 13px;
    color: #94a3b8;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.article-body h1,
.article-body h2,
.article-body h3 { margin: 28px 0 12px; }
.article-body h2 {
    font-size: 20px;
    color: var(--primary);
    scroll-margin-top: 80px;
}
.article-body h3 { font-size: 17px; }
.article-body p { margin-bottom: 14px; word-break: break-word; overflow-wrap: break-word; }
.article-body ul,
.article-body ol {
    margin: 10px 0 14px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.article-body th {
    background: #f1f5f9;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border);
}
.article-body td {
    padding: 10px 14px;
    border: 1px solid var(--border);
}
.article-body tr:hover td { background: #f8fafc; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    margin: 16px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* ============================================================
   文章目录 (ToC)
   ============================================================ */
.article-toc {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.article-toc .toc-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}
.article-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0;
    padding: 0;
}
.article-toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 6px;
    padding-left: 0;
}
.article-toc ol li::before {
    content: counter(toc-counter) ". ";
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
}
.article-toc ol li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.article-toc ol li a:hover {
    color: var(--primary);
}

/* ============================================================
   侧边栏
   ============================================================ */
.sidebar { position: sticky; top: 80px; }
.sidebar-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.sidebar-box h4 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-box ul { list-style: none; }
.sidebar-box ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.sidebar-box ul li a:hover { color: var(--primary); }

/* ============================================================
   标签
   ============================================================ */
.tag {
    display: inline-block;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 3px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================================
   声明区块
   ============================================================ */
.article-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}
.article-cta {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg,#faf5ff,#f3e8ff);
    border-radius: 10px;
    border: 1px solid #e9d5ff;
    text-align: center;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--primary-dark); }

/* ============================================================
   404 页面
   ============================================================ */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-page .error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    opacity: 0.15;
    margin-bottom: -40px;
}
.error-page h1 {
    font-size: 28px;
    margin-bottom: 16px;
}
.error-page p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
}
.footer a { color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: white; }

/* ============================================================
   正文内部交叉引用链接
   风格：底部虚线，hover 变实线，融入正文不突兀
   ============================================================ */
.inline-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed rgba(26,86,219,0.35);
    transition: border-color 0.2s;
}
.inline-link:hover {
    border-bottom-color: var(--primary);
    border-bottom-style: solid;
}

/* ============================================================
   文章底部相关推荐区块
   ============================================================ */
.related-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}
.related-section h2 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.related-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.related-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--primary);
    width: fit-content;
}
.related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-keywords {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ============================================================
   站内搜索页面
   ============================================================ */
.search-page { padding-bottom: 60px; }

/* 搜索 Hero 区域 */
.search-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 50%, #1e40af 100%);
    color: white;
    padding: 50px 0 40px;
    text-align: center;
}
.search-hero h1 { font-size: 30px; margin-bottom: 10px; }
.search-hero p { font-size: 16px; opacity: 0.85; margin-bottom: 24px; }

/* 搜索输入框 */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}
.search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 17px;
    border: none;
    border-radius: 30px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.search-input::placeholder { color: rgba(255,255,255,0.55); font-size: 15px; }
.search-input:focus {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
}

/* 热门搜索快捷词 */
.search-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.search-quick a {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    padding: 4px 14px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
}
.search-quick a:hover { background: rgba(255,255,255,0.25); color: white; }

/* 搜索结果统计 */
.search-stats {
    padding: 18px 0 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 搜索空状态 */
.search-empty {
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: var(--text);
}

/* 搜索结果卡片 */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 40px;
}
.search-result-card {
    display: block;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
}
.search-result-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.search-result-card h3 {
    font-size: 18px;
    margin: 8px 0 6px;
    line-height: 1.4;
}
.search-result-card h3 mark {
    background: #fef3c7;
    color: inherit;
    padding: 1px 0;
}
.search-result-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-result-card p mark {
    background: #fef3c7;
    color: inherit;
    padding: 1px 0;
}
.search-cat {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
}
.search-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}
.search-meta span {
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 4px;
}
.search-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.search-tags .tag {
    font-size: 11px;
    background: #f1f5f9;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 6px;
}

/* 加载中状态 */
.search-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* 导航栏搜索按钮 */
.search-nav-btn {
    font-weight: 500;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
    .topbar-nav {
        gap: 2px;
    }
    .topbar-nav a {
        padding: 5px 8px;
        font-size: 12px;
    }
    .nav-dropdown .dropdown-menu {
        min-width: 150px;
    }
}

@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 20px; }
    .hero-stat .num { font-size: 24px; }
    .article-main { padding: 20px; }
    .card-grid { grid-template-columns: 1fr; }
    .dim-nav { gap: 6px; }
    .dim-nav a { padding: 6px 14px; font-size: 12px; }
    .error-page .error-code { font-size: 80px; margin-bottom: -30px; }
    .error-page h1 { font-size: 22px; }

    /* 移动端汉堡菜单 */
    .hamburger { display: block; }
    .topbar-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1e40af;
        flex-direction: column;
        padding: 12px;
        gap: 2px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 99;
    }
    .topbar-nav.mobile-open {
        display: flex;
    }
    .topbar-nav a {
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 14px;
    }
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        margin-top: 2px;
        padding: 4px 0 4px 12px;
    }
    .nav-dropdown .dropdown-menu a {
        color: rgba(255,255,255,0.85) !important;
        padding: 8px 12px;
        font-size: 13px;
    }
    .nav-dropdown .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: white !important;
    }
    .nav-contact .contact-dropdown {
        text-align: center;
    }
    .nav-contact .contact-dropdown img {
        width: 140px !important;
        height: 140px !important;
    }

    /* 汉堡按钮动画 */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 480px) {
    .hero { padding: 40px 0; }
    .dim-hero { padding: 36px 0; }
    .container { padding: 0 16px; }
}
