/* ============================================================
   山海灵境 · 图文设计制作信息发布平台
   ============================================================ */
:root {
  --brand: #1B4965;
  --brand-2: #2C7DA0;
  --brand-ink: #14304D;
  --accent: #F2A65A;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --line: #E3E9F0;
  --txt: #22313F;
  --muted: #64748B;
  --ok: #2F855A;
  --ok-bg: #E9F7EF;
  --warn: #B7791F;
  --warn-bg: #FDF3E2;
  --no: #C0392B;
  --no-bg: #FBEAE7;
  --r: 12px;
  --shadow: 0 1px 2px rgba(20, 48, 77, .05), 0 6px 18px rgba(20, 48, 77, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg); color: var(--txt);
  font-size: 15px; line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* 内联图标尺寸兜底（必须放在最前） */
svg.i { width: 17px; height: 17px; flex: 0 0 auto; vertical-align: -3px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; cursor: pointer; border-radius: 9px;
  font-size: 14px; padding: 10px 20px; line-height: 1.4;
  transition: filter .15s, background .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { filter: brightness(1.12); }
.btn--line { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn--line:hover { background: #EEF4F8; }
.btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--brand); border-color: var(--brand-2); }
.btn--sm { padding: 7px 14px; font-size: 13.5px; }
.btn--lg { padding: 13px 30px; font-size: 15.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 页头 ---------- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hd__row { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; min-width: 0; }
.logo-mark { flex: 0 0 auto; }
.brand-txt { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--brand-ink); letter-spacing: .4px; white-space: nowrap; }
.brand-sub { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--brand-2); letter-spacing: 2px; }
.brand-sub::before { content: ''; flex: 0 0 12px; width: 12px; height: 1px; background: currentColor; opacity: .5; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 9px; font-size: 14.5px; color: var(--txt);
  white-space: nowrap;
}
.nav__link:hover { background: #EEF3F7; color: var(--brand); }
.nav__link.is-cur { background: #EAF1F6; color: var(--brand); font-weight: 600; }
.head-account { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: none; color: var(--brand); cursor: pointer; padding: 8px; }
.only-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #14304D 0%, #1B4965 55%, #2C7DA0 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242, 166, 90, .22), transparent 65%);
}
.hero__inner { padding: 66px 0 58px; position: relative; z-index: 1; max-width: 660px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  padding: 5px 15px; font-size: 12.5px; letter-spacing: 2px; color: #DCE9F2;
}
.hero h1 { font-size: 34px; line-height: 1.35; margin: 20px 0 14px; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #C9D8E4; font-size: 15.5px; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; margin-top: 28px; }
.hero .btn--primary { background: var(--accent); color: #3A2A12; font-weight: 600; }
.hero .btn--ghost { color: #E4EDF3; border-color: rgba(255, 255, 255, .4); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero__stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.stat b { font-size: 26px; font-weight: 700; color: #fff; display: block; }
.stat span { font-size: 12.5px; color: #AFC6D6; letter-spacing: 1px; }

/* ---------- 通用区块 ---------- */
.sec { padding: 52px 0; }
.sec--band { background: #fff; border-block: 1px solid var(--line); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec__title { display: flex; align-items: center; gap: 10px; font-size: 21px; color: var(--brand-ink); letter-spacing: .5px; }
.sec__title .i { color: var(--accent); width: 22px; height: 22px; }
.sec__sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.sec__more { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-2); font-size: 14px; }
.sec__more:hover { color: var(--brand); }

/* ---------- 类目九宫格 ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 18px; display: flex; align-items: center; gap: 14px;
  transition: transform .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #CBDBE7; }
.cat-card__ic {
  width: 46px; height: 46px; border-radius: 11px; background: #EAF1F6; color: var(--brand);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.cat-card__ic .i { width: 23px; height: 23px; }
.cat-card b { display: block; font-size: 15px; color: var(--brand-ink); }
.cat-card span { font-size: 12.5px; color: var(--muted); }

/* ---------- 信息卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.lcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lcard__cover { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #E8EEF3; }
.lcard__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lcard:hover .lcard__cover img { transform: scale(1.04); }
.lcard__cat {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(20, 48, 77, .82); color: #fff;
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
}
.lcard__cat .i { width: 13px; height: 13px; }
.lcard__body { padding: 15px 17px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.lcard__title { font-size: 15.5px; line-height: 1.5; font-weight: 600; }
.lcard__title a { color: var(--brand-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__title a:hover { color: var(--brand-2); }
.lcard__meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.lcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.lcard__meta .i { width: 13.5px; height: 13.5px; }
.lcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.lcard__pub { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard__views { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }

/* ---------- 筛选条 ---------- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--txt);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; cursor: pointer;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .i { width: 14px; height: 14px; }
.searchbar { display: flex; gap: 9px; margin-left: auto; }
.searchbar input {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px;
  font-size: 14px; width: 220px; min-width: 0; background: #fff;
}
.searchbar input:focus { outline: none; border-color: var(--brand-2); }

/* ---------- 详情页 ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; }
.panel + .panel { margin-top: 18px; }
.detail__cover { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.detail__cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.detail h1 { font-size: 23px; color: var(--brand-ink); line-height: 1.45; margin: 18px 0 12px; }
.detail__tags { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; border-radius: 999px; padding: 4px 12px; }
.tag--cat { background: #EAF1F6; color: var(--brand); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--wait { background: var(--warn-bg); color: var(--warn); }
.tag--no { background: var(--no-bg); color: var(--no); }
.detail__lead {
  margin: 16px 0 6px; padding: 14px 18px; border-left: 3px solid var(--accent);
  background: #FBF6EF; border-radius: 0 9px 9px 0; color: #5A4A33; font-size: 14.5px;
}
.detail__content p { margin: 13px 0; color: var(--txt); font-size: 15px; }
.detail__meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 16px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); }
.detail__meta span { display: inline-flex; align-items: center; gap: 6px; }
.side__title { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--brand-ink); margin-bottom: 14px; }
.contact-rows { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.contact-rows > div { display: flex; gap: 10px; align-items: flex-start; }
.contact-rows .i { color: var(--brand-2); margin-top: 3px; }
.contact-rows b { color: var(--brand-ink); }
.contact-rows .lbl { color: var(--muted); flex: 0 0 64px; }
.login-tip {
  margin-top: 14px; padding: 11px 14px; border-radius: 9px;
  background: #EEF4F8; color: var(--brand); font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.login-tip a { text-decoration: underline; }
.side__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }

/* ---------- 平台说明 ---------- */
.feat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.feat__ic { width: 48px; height: 48px; border-radius: 11px; background: #FBF3E8; color: #B7791F; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat__ic .i { width: 24px; height: 24px; }
.feat h3 { font-size: 16px; color: var(--brand-ink); margin-bottom: 8px; }
.feat p { font-size: 13.5px; color: var(--muted); }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 17px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--brand-ink); margin-bottom: 7px; font-weight: 600; }
.field label .req { color: var(--no); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 14px; font-size: 14.5px; font-family: inherit; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.checks { display: flex; flex-direction: column; gap: 9px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--txt); font-weight: 400; cursor: pointer; }
.checks input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--brand); flex: 0 0 auto; }
.checks a { color: var(--brand-2); text-decoration: underline; }
.form__actions { display: flex; gap: 12px; align-items: center; }

/* ---------- 个人中心 / 后台 ---------- */
.acc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.acc__menu { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; border-bottom: 1px solid var(--line);
  padding: 14px 20px; font-size: 14.5px; color: var(--txt); cursor: pointer; text-align: left;
}
.acc__menu button:last-child { border-bottom: none; }
.acc__menu button.is-on { background: #EAF1F6; color: var(--brand); font-weight: 600; }
.acc__main { min-width: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kv > div { background: #F7FAFC; border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px; }
.kv b { display: block; font-size: 17px; color: var(--brand-ink); }
.kv span { font-size: 12.5px; color: var(--muted); }
.hist { display: flex; flex-direction: column; gap: 11px; }
.hist > a { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: #fff; }
.hist img { width: 96px; height: 54px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; }
.hist .g { min-width: 0; flex: 1; }
.hist .g b { display: block; font-size: 14px; color: var(--brand-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist .g span { font-size: 12.5px; color: var(--muted); }
.hist .t { flex: 0 0 auto; font-size: 12.5px; color: var(--brand-2); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; }
.empty .i { width: 38px; height: 38px; color: #B9C8D4; margin-bottom: 10px; }
.note { background: #EEF4F8; border-radius: 9px; padding: 13px 16px; font-size: 13.5px; color: var(--brand); }

/* ---------- 后台表格 ---------- */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 13.5px; }
table.data th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data th:first-child { min-width: 200px; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #F7FAFC; }
.row-actions { display: flex; gap: 8px; flex-wrap: nowrap; }
.row-actions .btn { padding: 5px 12px; font-size: 12.5px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin-bottom: 22px; }
.statgrid > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.statgrid b { font-size: 24px; color: var(--brand-ink); display: block; }
.statgrid span { font-size: 12.5px; color: var(--muted); }

/* ---------- 文档页 ---------- */
.pagehead { background: linear-gradient(135deg, #14304D, #2C7DA0); color: #fff; padding: 44px 0 40px; }
.pagehead h1 { font-size: 26px; margin-bottom: 8px; letter-spacing: 1px; }
.pagehead p { color: #C9D8E4; font-size: 14px; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 40px; }
.doc h2 { font-size: 19px; color: var(--brand-ink); margin: 26px 0 12px; padding-left: 11px; border-left: 3px solid var(--accent); }
.doc h2:first-of-type { margin-top: 0; }
.doc p { margin: 10px 0; font-size: 14.5px; }
.doc ul { margin: 10px 0 10px 22px; }
.doc li { margin: 6px 0; font-size: 14.5px; }
.side__row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side__row:last-child { border-bottom: none; }
.side__row .k { flex: 0 0 88px; color: var(--muted); }
.side__row .v { flex: 1; color: var(--brand-ink); }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq summary { display: flex; align-items: center; gap: 9px; padding: 14px 17px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--brand-ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 12px 17px 15px; color: var(--txt); font-size: 14px; }

/* ---------- 页脚 ---------- */
.ft { background: #14304D; color: #B9CBDA; margin-top: 60px; padding: 46px 0 26px; font-size: 13.5px; }
.ft a { color: #B9CBDA; }
.ft a:hover { color: #fff; }
.ft__top { display: grid; grid-template-columns: 1.5fr 1.1fr .8fr .8fr; gap: 34px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ft__logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ft__name { color: #fff; font-size: 15.5px; font-weight: 600; }
.ft__slogan { font-size: 11.5px; color: #8FA9BE; letter-spacing: 2px; margin-top: 3px; }
.ft__contact { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft__contact li { display: flex; gap: 8px; align-items: flex-start; }
.ft__contact .i { width: 14px; height: 14px; margin-top: 3px; color: #7F9DB4; }
.ft__col h4 { color: #fff; font-size: 14px; margin-bottom: 13px; letter-spacing: 1px; }
.ft__col a { display: block; padding: 4px 0; font-size: 13px; }
.ft__legal { padding-top: 20px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; font-size: 12.5px; color: #8FA9BE; }

/* ---------- Toast / 顶部按钮 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(16px);
  background: var(--brand-ink); color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200;
  box-shadow: 0 8px 24px rgba(20, 48, 77, .3);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.totop {
  position: fixed; right: 26px; bottom: 40px; width: 44px; height: 44px;
  border-radius: 50%; border: none; background: #fff; color: var(--brand);
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90;
  display: flex; align-items: center; justify-content: center;
}
.totop.is-show { opacity: 1; pointer-events: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .brand-name { font-size: 14.5px; }
  .brand-sub { font-size: 10px; letter-spacing: 1px; }
  .hd__row { gap: 12px; }
  .head-account { display: none; }
  .site-head .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 18px 16px; gap: 2px;
    box-shadow: 0 12px 24px rgba(20, 48, 77, .1);
  }
  .nav.open { display: flex; }
  .nav__link { padding: 12px 10px; border-radius: 8px; }
  .only-mobile { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; gap: 2px; }
  .only-mobile a { padding: 11px 10px; border-radius: 8px; font-size: 14.5px; }
  .only-mobile a:hover { background: #EEF3F7; }
  .detail { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feat-row { grid-template-columns: 1fr; }
  .ft__top { grid-template-columns: 1fr 1fr; }
  .acc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero__inner { padding: 46px 0 44px; }
  .hero__cta { flex-wrap: wrap; }
  .hero__stats { gap: 22px; }
  .searchbar { margin-left: 0; flex: 1 1 100%; }
  .searchbar input { flex: 1 1 auto; width: auto; }
  .form__row { grid-template-columns: 1fr; }
  .doc { padding: 24px 20px; }
  .ft__top { grid-template-columns: 1fr; gap: 26px; }
  .ft__col a { display: inline-block; margin-right: 16px; }
  .ft__col { display: flex; flex-direction: column; }
}
