/* ============================================================
   theme_v4.css —— 视觉精修层（在 theme_v3.css 之后加载）
   只做观感增强：层次、留白、圆角、阴影、微交互
   不改布局结构与栅格，保证与既有页面兼容
   ============================================================ */

:root {
    --v4-radius: 16px;
    --v4-radius-sm: 10px;
    --v4-shadow-1: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 10px rgba(16, 24, 40, .05);
    --v4-shadow-2: 0 6px 22px rgba(16, 24, 40, .10), 0 1px 3px rgba(16, 24, 40, .05);
    --v4-shadow-hover: 0 14px 34px rgba(16, 38, 74, .13), 0 2px 6px rgba(16, 24, 40, .06);
    --v4-line: #e7ecf3;
    --v4-text: #1c2739;
    --v4-text-2: #5d6a7d;
    --v4-text-3: #8e9aab;
    --v4-gold: #c8a24a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--v4-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

/* ---------------- 头部 ---------------- */
.header-main {
    box-shadow: 0 1px 0 rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 38, 74, .06);
    backdrop-filter: saturate(180%) blur(8px);
}

.header-top {
    background: linear-gradient(90deg, #16305c 0%, #1a3f7a 50%, #23539a 100%);
}

.header-top .welcome { letter-spacing: .3px; opacity: .92; }

.header-links a {
    transition: color .2s, opacity .2s;
    opacity: .86;
}
.header-links a:hover { opacity: 1; color: #fff; }

/* 导航：悬停与选中更清晰 */
.nav a {
    transition: color .2s ease, background .2s ease;
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
}
.nav a:hover { background: rgba(26, 63, 122, .06); color: var(--primary); }
.nav a.active { background: rgba(26, 63, 122, .08); }

/* ---------------- 首屏 ---------------- */
.hero-slider {
    box-shadow: inset 0 -80px 90px -60px rgba(8, 18, 34, .35);
}

.hero-overlay {
    background: linear-gradient(100deg,
        rgba(10, 22, 42, .88) 0%,
        rgba(13, 29, 54, .70) 38%,
        rgba(16, 34, 62, .28) 66%,
        rgba(16, 34, 62, .06) 100%) !important;
}

.hero-caption h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.3;
    text-shadow: 0 2px 18px rgba(6, 14, 28, .35);
}

.hero-caption p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(233, 240, 250, .9);
    margin-top: 14px;
    max-width: 620px;
}

.hero-btn {
    margin-top: 24px;
    padding: 13px 30px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    background: linear-gradient(135deg, #c8a24a, #d8b566);
    box-shadow: 0 6px 20px rgba(200, 162, 74, .35);
    transition: transform .22s, box-shadow .22s;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(200, 162, 74, .45);
}

.hero-arrow {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .22);
    transition: background .2s, transform .2s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }

/* ---------------- 快捷宫格 ---------------- */
.quick-band {
    position: relative;
    z-index: 5;
    margin-top: -56px;
}

.quick-grid {
    background: #fff;
    border: 1px solid var(--v4-line);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(16, 38, 74, .13);
    padding: 8px 4px;
}

.quick-item {
    border-radius: 14px;
    padding: 18px 6px 16px;
    transition: transform .24s ease, background .24s ease;
}
.quick-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, #f6f9ff, #ffffff);
}
.quick-item:hover .quick-icon {
    background: linear-gradient(135deg, #1a3f7a, #2b64b0);
    color: #fff;
    box-shadow: 0 8px 18px rgba(26, 63, 122, .28);
    transform: translateY(-2px) scale(1.04);
}

.quick-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(160deg, #f1f6fd, #e6eefb);
    color: var(--primary);
    border: 1px solid #e2ebf7;
    transition: all .24s ease;
}

.quick-item span.lbl {
    margin-top: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #24324a;
    letter-spacing: .3px;
}

/* ---------------- 区块标题 ---------------- */
.section { padding-top: 46px; padding-bottom: 46px; }

.section-title span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #15223a;
    padding-left: 14px;
}
.section-title span::before {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #2b64b0, #1a3f7a);
    height: 18px;
}
.section-title a {
    font-size: 13px;
    color: var(--v4-text-3);
    transition: color .2s;
}
.section-title a:hover { color: var(--primary); }

/* ---------------- 新闻主卡 ---------------- */
.news-hero {
    border-radius: var(--v4-radius);
    overflow: hidden;
    box-shadow: var(--v4-shadow-1);
    transition: box-shadow .28s ease;
}
.news-hero:hover { box-shadow: var(--v4-shadow-hover); }
.news-hero img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.news-hero:hover img { transform: scale(1.05); }

.news-hero-info {
    background: linear-gradient(0deg, rgba(8, 18, 34, .82) 0%, rgba(8, 18, 34, .30) 55%, transparent 100%);
    padding: 26px 24px 22px;
}
.news-hero-info h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: .2px;
}
.news-hero-info p { font-size: 12.5px; opacity: .82; margin-top: 6px; }

.news-hero-tag {
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11.5px;
    letter-spacing: .5px;
    background: rgba(200, 162, 74, .92);
}

/* 右侧新闻列表：日期块卡片化 */
.news-side-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 12px;
    border-radius: 12px;
    border-bottom: 1px solid transparent;
    transition: background .2s ease, transform .2s ease;
}
.news-side-item:hover {
    background: #f7f9fd;
    transform: translateX(2px);
}
.news-side-item .date {
    flex: 0 0 54px;
    text-align: center;
    background: linear-gradient(160deg, #f4f8ff, #eaf1fb);
    border: 1px solid #e3ecf8;
    border-radius: 10px;
    padding: 6px 0 5px;
    line-height: 1.15;
}
.news-side-item .date b {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    font-variant-numeric: tabular-nums;
}
.news-side-item .date span {
    font-size: 10.5px;
    color: var(--v4-text-3);
    display: block;
    margin-top: 2px;
}
.news-side-item h4 {
    font-size: 14px;
    line-height: 1.65;
    font-weight: 500;
    color: #253349;
    transition: color .2s;
}
.news-side-item:hover h4 { color: var(--primary); }

/* ---------------- 数据看板 ---------------- */
.stats-band {
    background:
        radial-gradient(900px 300px at 15% 0%, rgba(43, 100, 176, .55), transparent),
        radial-gradient(700px 260px at 85% 100%, rgba(200, 162, 74, .22), transparent),
        linear-gradient(100deg, #16305c 0%, #1a3f7a 55%, #23539a 100%) !important;
    position: relative;
    overflow: hidden;
}

.stats-band::before {
    content: "";
    position: absolute;
    right: -60px; top: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .10);
    pointer-events: none;
}

.stats-band .stat-num {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff 20%, #cfe0f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.stats-band .stat-num small {
    font-size: 13px;
    -webkit-text-fill-color: rgba(233, 241, 252, .7);
    margin-left: 6px;
    letter-spacing: 0;
}

.stats-band .stat-label {
    font-size: 12.5px;
    letter-spacing: 1.2px;
    color: rgba(233, 241, 252, .68);
    margin-top: 8px;
}

/* ---------------- 院系卡 ---------------- */
.dept-grid { gap: 20px; }

.dept-card {
    border-radius: var(--v4-radius);
    border: 1px solid var(--v4-line);
    box-shadow: var(--v4-shadow-1);
    padding: 24px 22px;
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}
.dept-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v4-shadow-hover);
    border-color: rgba(26, 63, 122, .22);
}
.dept-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: .3px;
}
.dept-card h3 .dt-icon {
    width: 36px; height: 36px;
    border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #f1f6fd, #e6eefb);
    border: 1px solid #e2ebf7;
}
.dept-card p {
    font-size: 13px;
    line-height: 1.85;
    color: var(--v4-text-2);
    margin-top: 10px;
}
.dept-card .dept-more {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    transition: gap .2s ease;
}
.dept-card:hover .dept-more { gap: 10px; }

/* ---------------- 通知公告 ---------------- */
.notice-row {
    padding: 13px 12px;
    border-radius: 10px;
    transition: background .2s ease;
}
.notice-row:hover { background: #f7f9fd; }
.notice-row .tag {
    border-radius: 5px;
    font-size: 11px;
    padding: 2px 7px;
    background: var(--primary-soft);
    color: var(--primary);
    letter-spacing: .3px;
}
.notice-row .title {
    font-size: 13.5px;
    color: #253349;
    transition: color .2s;
}
.notice-row:hover .title { color: var(--primary); }
.notice-row .date {
    font-size: 11.5px;
    color: var(--v4-text-3);
    font-variant-numeric: tabular-nums;
}

/* ---------------- 招生卡 ---------------- */
.admission-panel {
    border-radius: var(--v4-radius);
    background:
        radial-gradient(500px 200px at 100% 0%, rgba(43, 100, 176, .5), transparent),
        linear-gradient(150deg, #16305c, #1a3f7a 60%, #24559b);
    box-shadow: 0 16px 40px rgba(16, 38, 74, .2);
    overflow: hidden;
}
.admission-panel h3 { font-size: 21px; font-weight: 700; letter-spacing: .4px; }
.admission-panel .btn-gold {
    border-radius: 9px;
    box-shadow: 0 6px 18px rgba(200, 162, 74, .34);
}
.admission-links a {
    opacity: .85;
    transition: opacity .2s;
}
.admission-links a:hover { opacity: 1; }

/* ---------------- 图片墙 ---------------- */
.gallery-strip a { border-radius: 14px; overflow: hidden; }
.gallery-strip a:hover img { transform: scale(1.07); }
.gallery-strip img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }

/* ---------------- 内页 banner ---------------- */
.page-banner {
    position: relative;
    background:
        radial-gradient(760px 260px at 12% 0%, rgba(43, 100, 176, .55), transparent),
        linear-gradient(105deg, #16305c 0%, #1a3f7a 60%, #24559b 100%) !important;
    padding: 62px 0 58px;
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.page-banner p {
    font-size: 14px;
    letter-spacing: .3px;
    color: rgba(226, 236, 250, .82);
    margin-top: 12px;
}

/* ---------------- 列表页卡片 ---------------- */
.article-card {
    border-radius: var(--v4-radius);
    border: 1px solid var(--v4-line);
    box-shadow: var(--v4-shadow-1);
    transition: transform .24s ease, box-shadow .24s ease;
    padding: 20px 22px;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--v4-shadow-hover);
}

/* ---------------- 领导 / 师资 ---------------- */
.leader-card {
    border-radius: var(--v4-radius);
    border: 1px solid var(--v4-line);
    box-shadow: var(--v4-shadow-1);
    transition: transform .24s, box-shadow .24s;
}
.leader-card:hover { transform: translateY(-4px); box-shadow: var(--v4-shadow-hover); }
.leader-avatar { border-radius: 14px; }

/* ---------------- 页脚 ---------------- */
.footer {
    background:
        radial-gradient(700px 240px at 20% 0%, rgba(43, 100, 176, .28), transparent),
        linear-gradient(180deg, #101f39 0%, #0c1729 100%) !important;
}

.footer h3 {
    font-size: 14.5px;
    letter-spacing: .6px;
    position: relative;
    padding-bottom: 10px;
}
.footer h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 22px; height: 2px;
    border-radius: 2px;
    background: var(--v4-gold);
}

.footer-col a {
    font-size: 13px;
    line-height: 2.1;
    opacity: .82;
    transition: opacity .2s, transform .2s;
    display: inline-block;
}
.footer-col a:hover { opacity: 1; transform: translateX(3px); color: #fff; }

/* ---------------- 滚动淡入（由 JS 添加 .reveal） ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------------- 响应式微调 ---------------- */
@media (max-width: 1024px) {
    .hero-caption h2 { font-size: 30px; }
    .stats-band .stat-num { font-size: 34px; }
    .quick-band { margin-top: -34px; }
    .page-banner { padding: 46px 0 42px; }
    .page-banner h1 { font-size: 26px; }
}

@media (max-width: 640px) {
    .hero-caption h2 { font-size: 23px; letter-spacing: .5px; }
    .hero-caption p { font-size: 13px; }
    .hero-btn { padding: 11px 22px; font-size: 13px; }
    .quick-grid { border-radius: 16px; }
    .quick-icon { width: 42px; height: 42px; border-radius: 12px; }
    .section { padding-top: 34px; padding-bottom: 34px; }
    .section-title span { font-size: 17px; }
    .stats-band .stat-num { font-size: 30px; }
    .dept-card { padding: 18px 16px; }
    .news-hero-info h3 { font-size: 16px; }
}
