/* ==========================================================================
   海峡基础教育研究院 / 福建西岸网讯科技有限公司
   站点样式表 site.css
   ========================================================================== */

:root {
    --brand: #0b4a9c;
    --brand-dark: #072f66;
    --brand-light: #eaf1fb;
    --accent: #ef9d1f;
    --ink: #1c2534;
    --muted: #5c6675;
    --line: #e4eaf3;
    --soft: #f6f9fd;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(12, 42, 86, .08);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ink);
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

p { margin: 0 0 1em; }

.wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 34px;
}

.topbar .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar a {
    color: rgba(255, 255, 255, .82);
}

.topbar a:hover {
    color: #fff;
}

/* ---------- 头部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(12, 42, 86, .04);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand img {
    height: 46px;
    width: auto;
}

.brand-text strong {
    display: block;
    font-size: 20px;
    letter-spacing: .5px;
    color: var(--brand);
    line-height: 1.3;
}

.brand-text span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink);
}

.nav a:hover {
    background: var(--brand-light);
    color: var(--brand);
}

.nav a.active {
    background: var(--brand);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    padding: 9px 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--brand);
    margin: 4px 0;
    border-radius: 2px;
}

/* ---------- 首屏 ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--brand-dark);
    color: #fff;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slides span {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 21s linear infinite;
}

.hero-slides span:nth-child(1) { animation-delay: 0s; }
.hero-slides span:nth-child(2) { animation-delay: 7s; }
.hero-slides span:nth-child(3) { animation-delay: 14s; }

@keyframes heroFade {
    0%   { opacity: 0; transform: scale(1.02); }
    4%   { opacity: .95; }
    29%  { opacity: .95; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(4, 28, 62, .92) 0%, rgba(6, 42, 92, .82) 46%, rgba(8, 55, 120, .55) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 84px 0 92px;
}

.hero-tag {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .9);
}

.hero h1 {
    color: #fff;
    font-size: 44px;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.hero .hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, .86);
    max-width: 640px;
    margin-bottom: 30px;
}

.hero-points {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: rgba(255, 255, 255, .88);
}

.hero-points li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 2px;
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #3a2500;
}

.btn-primary:hover {
    background: #ffb43c;
    color: #3a2500;
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 76px 0;
}

.section.soft {
    background: var(--soft);
}

.section-head {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.two-col.rev .media {
    order: 2;
}

.media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.prose p {
    color: #3b4757;
}

.fact-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.fact-list li {
    border-left: 3px solid var(--brand-light);
    padding-left: 14px;
}

.fact-list strong {
    display: block;
    font-size: 22px;
    color: var(--brand);
    line-height: 1.3;
}

.fact-list span {
    font-size: 13px;
    color: var(--muted);
}

/* ---------- 卡片网格 ---------- */
.grid {
    display: grid;
    gap: 26px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card .thumb {
    height: 200px;
    overflow: hidden;
    background: var(--brand-light);
}

.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 24px 24px 26px;
}

.card-body h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0;
}

.card-body .meta {
    display: block;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: .5px;
}

.tag-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li {
    font-size: 12.5px;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 999px;
    padding: 3px 11px;
}

/* ---------- 合作单位 ---------- */
.partners {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.partner {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: box-shadow .25s ease;
}

.partner:hover {
    box-shadow: var(--shadow);
}

.partner img {
    height: 76px;
    width: 76px;
    object-fit: contain;
    margin: 0 auto 10px;
    border-radius: 8px;
}

.partner span {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
    line-height: 1.5;
}

/* ---------- 新闻列表 ---------- */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.news-list li {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.news-date {
    flex: 0 0 108px;
    font-size: 13.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.news-desc {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* ---------- 联系区块 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
    display: flex;
    gap: 14px;
    font-size: 15px;
}

.info-list li:last-child {
    border-bottom: 0;
}

.info-list .label {
    flex: 0 0 84px;
    color: var(--muted);
}

.info-list .value {
    color: var(--ink);
    word-break: break-all;
}

.panel {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
}

.panel h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.panel p:last-child {
    margin-bottom: 0;
}

/* ---------- 页内横幅（子页面） ---------- */
.page-hero {
    background: linear-gradient(100deg, var(--brand-dark), #14559f);
    color: #fff;
    padding: 62px 0 56px;
}

.page-hero h1 {
    color: #fff;
    font-size: 34px;
    margin-bottom: 10px;
}

.page-hero p {
    color: rgba(255, 255, 255, .84);
    margin: 0;
    max-width: 720px;
}

.breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .85);
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #0c1a2e;
    color: rgba(255, 255, 255, .72);
    padding: 56px 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 40px;
}

.site-footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    letter-spacing: .5px;
}

.site-footer a {
    color: rgba(255, 255, 255, .72);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-about p {
    color: rgba(255, 255, 255, .6);
    font-size: 13.5px;
    line-height: 1.8;
}

/* 备案信息条：备案号位于页面底部中央 */
.legal {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 22px 0 26px;
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .62);
}

.legal p {
    margin: 0 0 6px;
}

.legal .legal-icp {
    margin: 8px 0;
    font-size: 15px;
    letter-spacing: .5px;
}

.legal .legal-icp a {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    padding-bottom: 1px;
}

.legal .legal-icp a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- 版权说明块（正文内使用） ---------- */
.note {
    background: var(--brand-light);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 14px;
    color: #33445c;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .partners { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-col { gap: 32px; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 10px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 10px 12px; }
    .topbar .wrap { justify-content: center; text-align: center; }
    .hero h1 { font-size: 30px; letter-spacing: 1px; }
    .hero-inner { padding: 60px 0 66px; }
    .hero .hero-sub { font-size: 16px; }
    .two-col, .contact-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .two-col.rev .media { order: 0; }
    .section { padding: 54px 0; }
    h2, .section-head h2 { font-size: 24px; }
    .fact-list { grid-template-columns: 1fr 1fr; }
    .partners { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .news-list li { flex-direction: column; gap: 6px; }
    .news-date { flex: none; }
}

@media (max-width: 480px) {
    .brand img { height: 38px; }
    .brand-text strong { font-size: 17px; }
    .fact-list { grid-template-columns: 1fr; }
}
