/* ============================================
   益吉科技官网 · 蓝色企业风
   ============================================ */
:root {
  --brand: #1668dc;
  --brand-2: #0a3fa0;
  --brand-deep: #08225c;
  --brand-light: #e8f1fd;
  --brand-light-2: #d6e6fb;
  --ink: #182640;
  --muted: #5c6c86;
  --line: #e4eaf3;
  --bg: #f6f9fd;
  --card: #ffffff;
  --ok: #0f9d6f;
  --warn: #c77700;
  --shadow-sm: 0 1px 3px rgba(16, 42, 90, 0.06);
  --shadow-md: 0 8px 28px rgba(16, 42, 90, 0.12);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
.hidden { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-light { background: #fff; color: var(--brand-2); }
.btn-light:hover { background: var(--brand-light); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost { background: var(--brand-light); color: var(--brand-2); }
.btn-ghost:hover { background: var(--brand-light-2); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #e5484d; color: #fff; }
.btn-danger:hover { background: #c93a3f; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-img-light { height: 40px; filter: brightness(0) invert(1); opacity: .95; }
img.logo-img { max-height: 42px; max-width: 170px; object-fit: contain; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff; font-weight: 700; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 17px; letter-spacing: .5px; }
.logo-text i { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: #33415c; transition: all .18s;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-light); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-cta { margin-left: 4px; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 40px; height: 40px; font-size: 18px; color: var(--ink);
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #081f52 0%, #0a3fa0 55%, #1668dc 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -180px; background: rgba(255,255,255,.06); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -200px; background: rgba(255,255,255,.05); }
.hero-inner { position: relative; z-index: 1; }
.hero-slides { position: relative; min-height: 480px; display: flex; align-items: center; }
.hero-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  max-width: 780px; padding: 72px 0; opacity: 0; transition: opacity .6s ease; pointer-events: none;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-eyebrow {
  display: inline-flex; align-self: flex-start; padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  font-size: 13px; letter-spacing: 1px; margin-bottom: 20px;
}
.hero-title { font-size: 44px; line-height: 1.28; font-weight: 700; letter-spacing: 1px; margin-bottom: 18px; }
.hero-sub { font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.85); max-width: 660px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.hero-dots button {
  width: 26px; height: 5px; border-radius: 99px; border: none;
  background: rgba(255,255,255,.35); transition: all .25s;
}
.hero-dots button.active { background: #fff; width: 40px; }

/* ---------- 数字亮点 ---------- */
.stats-section { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; }
.stat-item { text-align: center; padding: 6px 12px; }
.stat-item + .stat-item { border-left: 1px solid var(--line); }
.stat-item b { display: block; font-size: 32px; font-weight: 700; color: var(--brand); line-height: 1.3; }
.stat-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- 通用 Section ---------- */
.section { padding: 78px 0; }
.section-gray { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 3px;
  color: var(--brand); text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15px; }
.section-head .head-more { margin-top: 16px; display: inline-block; font-size: 14px; color: var(--brand); font-weight: 600; }
.section-head .head-more:hover { text-decoration: underline; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-cover { position: relative; aspect-ratio: 16/9; background: var(--brand-light); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.chip-img {
  position: absolute; left: 12px; top: 12px; padding: 3px 12px; border-radius: 999px;
  background: rgba(10,63,160,.85); color: #fff; font-size: 12px; backdrop-filter: blur(4px);
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.8; flex: 1; }
.card-more { margin-top: 14px; font-size: 13.5px; color: var(--brand); font-weight: 600; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px;
}
.card-quote { position: relative; padding: 18px 20px; background: var(--brand-light); border-radius: 10px; font-size: 13.5px; color: #33456b; margin-top: 14px; flex: 1; }
.card-quote::before { content: "“"; position: absolute; left: 12px; top: 2px; font-size: 34px; color: var(--brand); opacity: .35; font-family: Georgia, serif; }
.card-quote p { padding-left: 18px; color: #33456b; }

/* ---------- 新闻列表 ---------- */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: flex; align-items: center; gap: 22px; padding: 22px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .2s; box-shadow: var(--shadow-sm);
}
.news-item:hover { box-shadow: var(--shadow-md); border-color: var(--brand-light-2); transform: translateY(-2px); }
.news-date { flex: none; text-align: center; width: 64px; padding: 10px 0; border-radius: 12px; background: var(--brand-light); }
.news-date b { display: block; font-size: 22px; color: var(--brand-2); line-height: 1.2; }
.news-date span { font-size: 12px; color: var(--muted); }
.news-body { flex: 1; min-width: 0; }
.news-body h3 { font-size: 17px; margin-bottom: 5px; }
.news-item:hover .news-body h3 { color: var(--brand); }
.news-body p { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-cat { flex: none; font-size: 12px; color: var(--brand); background: var(--brand-light); padding: 3px 12px; border-radius: 999px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff; padding: 58px 0; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.05); right: -100px; top: -160px; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 27px; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.82); font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1f45; color: #c5d3ec; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 44px; padding: 54px 0 44px; }
.footer-brand .logo-text b { color: #fff; }
.footer-brand .logo-text i { color: #7e93bd; }
.footer-slogan { margin: 16px 0 8px; color: #fff; font-size: 16px; font-weight: 600; }
.footer-intro { color: #8fa3c6; line-height: 1.9; font-size: 13.5px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: #8fa3c6; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 10px; padding: 5px 0; color: #8fa3c6; align-items: baseline; }
.footer-contact-item b { color: #c5d3ec; font-weight: 600; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7e93bd; }
.footer-bottom-inner a { color: #7e93bd; }
.footer-bottom-inner a:hover { color: #fff; }

/* ---------- 子页 Hero ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand-2) 60%, var(--brand));
  color: #fff; padding: 58px 0 54px; position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); right: -90px; top: -150px; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: 32px; letter-spacing: 1px; }
.page-hero p { margin-top: 10px; color: rgba(255,255,255,.8); font-size: 15px; max-width: 720px; }

/* ---------- 筛选 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip-btn {
  padding: 7px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 14px; transition: all .18s;
}
.chip-btn:hover { color: var(--brand); border-color: var(--brand-light-2); }
.chip-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 详情页 ---------- */
.detail-wrap { max-width: 860px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--brand); }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 44px; box-shadow: var(--shadow-sm); }
.article-cover { border-radius: 10px; margin-bottom: 24px; max-height: 420px; object-fit: cover; width: 100%; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.article-meta time { font-size: 13px; color: var(--muted); }
.chip { display: inline-block; padding: 3px 13px; border-radius: 999px; background: var(--brand-light); color: var(--brand-2); font-size: 12.5px; font-weight: 600; }
.article h1 { font-size: 28px; line-height: 1.5; margin-bottom: 16px; }
.article-summary { font-size: 15.5px; color: var(--muted); border-left: 3px solid var(--brand); padding-left: 16px; margin-bottom: 26px; }
.article-content { font-size: 15.5px; line-height: 2; }
.article-content h2, .article-content h3 { margin: 26px 0 12px; font-size: 19px; position: relative; padding-left: 14px; }
.article-content h2::before, .article-content h3::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 4px; background: var(--brand); }
.article-content p { margin: 12px 0; }
.article-content ul, .article-content ol { margin: 12px 0 12px 22px; }
.article-content li { margin: 7px 0; }
.article-content img { border-radius: 10px; margin: 16px 0; }
.article-content blockquote {
  margin: 18px 0; padding: 14px 20px; background: var(--brand-light);
  border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; color: #2c3e60;
}
.article-content b { color: var(--ink); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.contact-card .card-icon { width: 46px; height: 46px; font-size: 22px; margin: 0; border-radius: 12px; }
.contact-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-card span { color: var(--muted); font-size: 14px; word-break: break-all; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 19px; margin-bottom: 6px; }
.form-card .form-tip { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.form-field label em { color: #e5484d; font-style: normal; margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; outline: none; transition: border .18s, box-shadow .18s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,104,220,.12);
}
.form-field textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { padding: 14px 18px; border-radius: 10px; background: #e7f7f0; color: var(--ok); font-size: 14px; margin-bottom: 16px; }

/* ---------- 状态 ---------- */
.loading-box { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; }
.loading-box::before {
  content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 14px;
  border: 3px solid var(--brand-light-2); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; color: var(--muted); padding: 70px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state .big { font-size: 40px; display: block; margin-bottom: 10px; }
.error-box { text-align: center; color: #a03236; background: #fdf0f0; border: 1px solid #f3d6d6; padding: 16px; border-radius: 10px; font-size: 14px; }

/* ---------- 管理后台 ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #081f52, #0a3fa0 60%, #1668dc); padding: 24px; }
.auth-card { width: 420px; max-width: 100%; background: #fff; border-radius: 18px; padding: 38px 36px; box-shadow: 0 20px 60px rgba(4,16,44,.35); }
.auth-card .logo { justify-content: center; margin-bottom: 8px; }
.auth-title { text-align: center; font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.auth-error { color: #e5484d; font-size: 13.5px; min-height: 20px; margin: 10px 0 4px; }
.auth-note { color: var(--muted); font-size: 12.5px; line-height: 1.8; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.otp-row button { flex: none; width: 118px; }
.auth-actions .btn { width: 100%; }

.admin-shell { display: flex; min-height: 100vh; background: var(--bg); }
.admin-side { width: 224px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-side .logo { padding: 20px 18px; border-bottom: 1px solid var(--line); }
.admin-nav { padding: 14px 10px; flex: 1; }
.admin-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 14px; border: none; background: none; border-radius: 10px;
  font-size: 14.5px; color: #33415c; margin-bottom: 2px; transition: all .16s;
}
.admin-nav button:hover { background: var(--brand-light); color: var(--brand); }
.admin-nav button.active { background: var(--brand); color: #fff; font-weight: 600; }
.admin-nav button i { font-style: normal; font-size: 17px; width: 22px; text-align: center; }
.admin-user { padding: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.admin-user b { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; word-break: break-all; }
.admin-user button { margin-top: 10px; width: 100%; padding: 7px; border: 1px solid var(--line); background: #fff; border-radius: 8px; color: var(--muted); font-size: 12.5px; }
.admin-user button:hover { color: #e5484d; border-color: #f3d6d6; }
.admin-main { flex: 1; padding: 26px 30px; min-width: 0; }
.admin-page-title { font-size: 21px; font-weight: 700; margin-bottom: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.admin-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.overview-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.overview-item b { font-size: 30px; color: var(--brand); display: block; line-height: 1.3; }
.overview-item span { color: var(--muted); font-size: 13.5px; }

.type-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.type-tab { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.type-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid #f0f4fa; vertical-align: middle; }
.admin-table tr:hover td { background: #f8fbff; }
.admin-table .t-title { font-weight: 600; max-width: 320px; }
.badge { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: #e7f7f0; color: var(--ok); }
.badge-draft { background: #fdf3e4; color: var(--warn); }
.row-actions { display: flex; gap: 10px; white-space: nowrap; }
.row-actions button { border: none; background: none; font-size: 13.5px; color: var(--brand); padding: 0; }
.row-actions button.del { color: #e5484d; }
.row-actions button:hover { text-decoration: underline; }

.dynamic-rows { display: flex; flex-direction: column; gap: 12px; }
.dynamic-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: start; }
.dynamic-row .icon-btn, .slide-block .icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: #e5484d; font-size: 15px; flex: none;
}
.dynamic-row.wide { grid-template-columns: 1fr 1fr auto; }
.slide-block { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; background: #fbfdff; }
.slide-block .form-row { margin-bottom: 12px; }
.slide-block .slide-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.cover-picker { display: flex; align-items: center; gap: 12px; }
.cover-picker img { width: 110px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--brand-light); }
.cover-picker .cover-btns { display: flex; flex-direction: column; gap: 8px; }
.cover-picker .cover-btns input[type=file] { display: none; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(8, 31, 74, .5); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; width: 760px; max-width: 100%;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(4,16,44,.4);
}
.modal-sm { width: 430px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.modal-close { border: none; background: none; font-size: 22px; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.confirm-text { font-size: 15px; line-height: 1.9; color: var(--ink); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.toast-root { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: #16233c; color: #fff; font-size: 14px; padding: 11px 22px;
  border-radius: 999px; opacity: 0; transform: translateY(10px); transition: all .3s;
  box-shadow: 0 10px 30px rgba(4,16,44,.35); max-width: 86vw;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-err { background: #c93a3f; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(3) { border-left: none; }
  .stat-item { padding: 14px 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .hero-slides { min-height: 420px; }
  .hero-title { font-size: 32px; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; }
  .admin-nav { display: flex; overflow-x: auto; padding: 10px; }
  .admin-nav button { width: auto; white-space: nowrap; }
  .admin-user { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo-img { height: 34px !important; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .hero-slides { min-height: 380px; }
  .hero-actions { flex-wrap: wrap; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .stat-item b { font-size: 24px; }
  .news-item { flex-direction: row; padding: 16px; gap: 14px; }
  .article { padding: 24px 20px; }
  .article h1 { font-size: 22px; }
  .dynamic-row, .dynamic-row.wide { grid-template-columns: 1fr; }
  .dynamic-row .icon-btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .admin-main { padding: 16px; }
}
