/* =========================================================
   前台样式 site.css（依赖 base.css 的设计令牌）
   ============================================================ */

/* ---------- 品牌 ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none;
  color: #fff; font-size: 24px; background: var(--grad-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 10px 18px -8px var(--p-sh);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.brand-text small { font-family: var(--num); font-size: 10px; letter-spacing: .1em; color: var(--n-400); white-space: nowrap; }
.brand.on-dark .brand-text small { color: rgba(255, 255, 255, .55); }

/* ---------- 页头：悬浮胶囊导航 ---------- */
.site-header { position: sticky; top: 14px; z-index: 60; margin-bottom: calc(-1 * var(--header-real)); }
.site-header + main > section:first-child { margin-top: -14px; }
.header-bar {
  position: relative; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 12px 0 18px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 0 0 1px rgba(15, 27, 45, .05), 0 16px 36px -16px rgba(15, 27, 45, .32);
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 15px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--n-900); transition: background .2s, color .2s; }
.nav a svg { font-size: 16px; color: var(--n-400); }
.nav a:hover { background: var(--n-100); }
.nav a.active { color: var(--p-700); background: var(--p-50); font-weight: 600; }
.nav a.active svg { color: var(--p-500); }
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 176px; padding: 10px; border-radius: var(--r-md);
  background: #fff; box-shadow: var(--sh-lg), 0 0 0 1px var(--n-100);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1), visibility .25s;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.dropdown a::after { content: "›"; color: var(--n-400); font-size: 18px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { height: 42px; }
.menu-toggle { display: none; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--p-950); isolation: isolate;
  padding: calc(var(--header-real) + 52px) 0 150px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .62; z-index: -3; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(100deg, rgba(16, 24, 42, .95) 0%, rgba(20, 29, 49, .74) 46%, rgba(31, 44, 69, .22) 100%),
              linear-gradient(180deg, rgba(16, 24, 42, .3) 0%, rgba(16, 24, 42, 0) 28%, rgba(16, 24, 42, .5) 100%);
}
.hero .blob { opacity: .38; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; align-items: center; gap: 64px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--r-pill);
  font-size: 14px; color: #fff; box-shadow: none; transition: transform .25s, background .25s;
}
.hero-pill:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .24); }
.hero-pill svg { font-size: 16px; opacity: .8; }
.hero-copy .h1 { margin-top: 26px; }
.hero-copy .lead { margin-top: 22px; max-width: 520px; color: rgba(255, 255, 255, .8); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-family: var(--num); font-size: 30px; line-height: 1.1; letter-spacing: .01em; }
.hero-stats b em { font-style: normal; font-size: 18px; margin-left: 2px; color: var(--accent); }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .6); }

.hero-visual { position: relative; display: flex; justify-content: flex-end; }
.query-card { width: 460px; max-width: 100%; padding: 28px; border-radius: var(--r-lg); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.query-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.query-head strong { display: block; font-size: 20px; }
.query-head small { font-size: 13px; color: rgba(255, 255, 255, .7); }
.query-card .input { background: rgba(255, 255, 255, .94); }
.query-card .input-wrap > svg { color: var(--p-500); }
.query-card .stack { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.query-card .btn { margin-top: 18px; }
.query-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.query-note svg { font-size: 15px; color: var(--accent); }

.float-cert {
  position: absolute; left: -150px; bottom: -46px; width: 320px; z-index: -1;
  transform: rotate(-9deg); border-radius: 16px; box-shadow: var(--sh-xl);
  animation: float-y 6s ease-in-out infinite alternate; transition: transform .35s;
}
.verified-chip {
  position: absolute; right: -14px; top: -26px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
}
.verified-chip .ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #065f46; background: var(--accent); font-size: 15px; }
.verified-chip.light { color: var(--ink); background: #fff; border-color: transparent; box-shadow: var(--sh-md); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--bg); height: 120px; z-index: 1; }

/* ---------- 内页头图 ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--grad-brand); padding: calc(var(--header-real) + 36px) 0 150px; isolation: isolate; }
.page-hero .blob { opacity: .45; }
.page-hero-in { position: relative; z-index: 2; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; color: rgba(255, 255, 255, .85); box-shadow: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs svg { font-size: 14px; opacity: .6; }
.page-title { font-size: clamp(32px, 4vw, 48px); margin-top: 18px; letter-spacing: -.01em; }
.page-desc { margin-top: 10px; max-width: 600px; font-size: 16px; color: rgba(255, 255, 255, .82); }
.page-hero-art { position: absolute; right: 9%; top: 50%; transform: translateY(-58%); z-index: 1; width: 300px; height: 300px; display: grid; place-items: center; }
.page-hero-art .tile { position: relative; z-index: 2; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); }
.ring.r1 { inset: 40px; } .ring.r2 { inset: -20px; border-style: dashed; opacity: .7; }
.page-wave { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--bg); height: 100px; z-index: 1; }

/* ---------- 首页区块 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.quick { display: flex; align-items: center; gap: 16px; padding: 22px 22px 22px 20px; }
.quick > div { min-width: 0; }
.quick strong { display: block; font-size: 17px; }
.quick span:not(.tile) { display: block; margin-top: 2px; font-size: 13px; color: var(--n-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick .arrow { margin-left: auto; font-size: 20px; color: var(--n-300); transition: transform .3s, color .3s; }
.quick:hover .arrow { color: var(--p-500); transform: translateX(4px); }

.about-teaser { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.about-visual { position: relative; padding: 16px 0 56px 56px; }
.about-main { width: 100%; aspect-ratio: 1 / 1; max-height: 520px; box-shadow: var(--sh-lg); }
.about-sub { position: absolute; left: 0; bottom: 0; width: 42%; padding: 10px; border-radius: var(--r-md); transform: rotate(-5deg); }
.about-sub img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; }
.about-badge { position: absolute; right: -18px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 16px; border-radius: var(--r-md); transform: rotate(3deg); }
.about-badge b { font-family: var(--num); font-size: 34px; line-height: 1; color: var(--p-600); }
.about-badge span { font-size: 12px; line-height: 1.35; color: var(--n-500); }
.about-copy .h2 { margin-top: 14px; }
.about-copy > p { margin-top: 16px; color: var(--n-500); line-height: 1.85; }
.feature-list { display: grid; gap: 16px; margin: 26px 0 30px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list b { display: block; font-size: 16px; }
.feature-list span:not(.tile) { display: block; font-size: 14px; color: var(--n-500); margin-top: 2px; }

.news-bento { display: grid; grid-template-columns: 1.12fr 1fr; gap: 28px; align-items: stretch; }
.news-feature { display: flex; flex-direction: column; overflow: hidden; }
.news-feature .cover { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; }
.news-feature .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 24, 40, 0) 55%, rgba(16, 24, 40, .45) 100%); }
.news-feature .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.news-feature:hover .cover img { transform: scale(1.06); }
.news-feature .cover .badge { position: absolute; left: 18px; top: 18px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--p-700); box-shadow: var(--sh-sm); }
.news-feature .body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.news-feature .h3 { font-size: 23px; line-height: 1.4; }
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--n-400); }
.meta svg { font-size: 14px; }
.meta + .meta { margin-left: 14px; }
.news-list-card { display: flex; flex-direction: column; padding: 10px 22px; }
.news-row { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px dashed var(--n-200); }
.news-row:last-child { border-bottom: 0; }
.news-row img { width: 128px; height: 86px; border-radius: 14px; object-fit: cover; flex: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.news-row:hover img { transform: scale(1.04); }
.news-row h4 { font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.news-row:hover h4 { color: var(--p-600); }
.news-row .meta { margin-top: 6px; }
.news-row .date { margin-left: auto; font-family: var(--num); font-size: 13px; color: var(--n-400); flex: none; }

.cert-show { background: linear-gradient(180deg, #fff 0%, var(--p-50) 50%, #fff 100%); overflow: hidden; }
.cert-show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.cert-show-visual { position: relative; padding: 30px 0 30px 30px; }
.ecert-stage { padding: 22px; border-radius: var(--r-lg); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.ecert-stage .ecert { border-radius: 16px; }
.cert-show-visual .verified-chip { right: 6px; top: 0; }
.check-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--n-900); }
.check-list svg { font-size: 22px; color: var(--p-500); margin-top: 1px; }
.check-list small { display: block; color: var(--n-500); font-size: 13px; margin-top: 1px; }

.gallery-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 196px; gap: 18px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--sh-sm); display: block; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 24, 40, 0) 55%, rgba(16, 24, 40, .62) 100%); opacity: 0; transition: opacity .35s; }
.g-item:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-item .cap { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: all .35s cubic-bezier(.2, .8, .2, 1); }
.g-item:hover .cap { opacity: 1; transform: none; }
.g-item.big { grid-column: span 2; grid-row: span 2; } .g-item.tall { grid-row: span 2; } .g-item.wide { grid-column: span 2; }

.logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.logo-tile { display: flex; align-items: center; gap: 14px; padding: 20px; }
.logo-tile .mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; flex: none; color: #fff; font-size: 22px; background: var(--grad-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .1), 0 8px 14px -8px var(--p-sh); }
.logo-tile .mark.m2 { background: linear-gradient(135deg, #0ea5a4, #34d399); } .logo-tile .mark.m3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.logo-tile .mark.m4 { background: linear-gradient(135deg, #7c3aed, #a855f7); } .logo-tile .mark.m5 { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.logo-tile .mark.m6 { background: linear-gradient(135deg, #be123c, #f43f5e); } .logo-tile .mark.m7 { background: linear-gradient(135deg, #4d7c0f, #84cc16); }
.logo-tile .mark.m8 { background: linear-gradient(135deg, #334155, #64748b); }
.logo-tile b { display: block; font-size: 15px; }
.logo-tile span { display: block; font-size: 12px; color: var(--n-400); }

/* ---------- 电子证书 ---------- */
.ecert { color: var(--ink); }
.ecert-paper {
  position: relative; aspect-ratio: 16 / 10.4; padding: 3.2%; overflow: hidden; border-radius: var(--r-md);
  background:
    radial-gradient(circle at 0 0, rgba(201, 162, 39, .14), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(201, 162, 39, .14), transparent 42%),
    repeating-radial-gradient(circle at 50% 50%, rgba(201, 162, 39, .05) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, #fffdf6 0%, #fbf5e4 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .35), inset 0 1px 0 #fff, var(--sh-md);
}
.ecert-frame {
  position: relative; z-index: 2; height: 100%; padding: 5% 6%; display: flex; flex-direction: column;
  border-radius: 10px; border: 1.5px solid rgba(201, 162, 39, .65);
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 4px #fffdf6, inset 0 0 0 5px rgba(201, 162, 39, .35);
}
.ecert-frame::before, .ecert-frame::after { content: "❝"; position: absolute; font-size: 22px; color: #c9a227; opacity: .7; line-height: 1; }
.ecert-frame::before { left: 10px; top: 8px; } .ecert-frame::after { right: 10px; bottom: 8px; transform: rotate(180deg); }
.ecert-top { display: flex; align-items: center; gap: 8px; }
.ecert-logo { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .55em; color: #fff; font-size: .62vw; background: var(--grad-brand); }
.ecert-org { font-size: clamp(11px, .78vw, 15px); font-weight: 700; letter-spacing: .08em; color: #7a5a0c; }
.ecert-kind { margin-top: 4%; text-align: center; font-family: var(--paper); font-size: clamp(18px, 1.75vw, 34px); font-weight: 700; letter-spacing: .32em; color: #8a1c22; text-indent: .32em; }
.ecert-kind span { display: block; margin-top: 4px; font: 600 clamp(8px, .5vw, 10px)/1 var(--num); letter-spacing: .3em; color: #b08a2c; text-indent: .3em; }
.ecert-body { margin-top: 5%; font-family: var(--paper); font-size: clamp(10px, .84vw, 16px); line-height: 2; color: #3a2d14; text-align: justify; }
.ecert-body b { font-size: 1.18em; color: #8a1c22; padding: 0 .12em; border-bottom: 1px solid rgba(138, 28, 34, .45); }
.ecert-foot { display: flex; gap: 8%; margin-top: auto; padding-top: 4%; }
.ecert-foot small { display: block; font-size: clamp(8px, .5vw, 10px); color: #a08545; letter-spacing: .12em; }
.ecert-foot b { font-size: clamp(10px, .74vw, 14px); color: #3a2d14; font-weight: 600; }
.ecert-qr { position: absolute; right: 6%; bottom: 7%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ecert-qr .qr { width: clamp(30px, 4.6vw, 58px); height: auto; aspect-ratio: 1; padding: 3px; border-radius: 5px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(201, 162, 39, .4); }
.ecert-qr span { font-size: clamp(7px, .42vw, 9px); color: #a08545; letter-spacing: .12em; }
.ecert-seal {
  position: absolute; right: 16%; bottom: 5%; width: 19%; color: #d7263d; opacity: .88;
  transform: rotate(-16deg); mix-blend-mode: multiply; filter: saturate(1.05);
}
.ecert-sm .ecert-paper { aspect-ratio: 16 / 10; }
.ecert-sm .ecert-seal { right: 14%; bottom: 4%; }
/* 缩略图尺寸（后台模板选择等小场景） */
.ecert-micro .ecert-org { font-size: 6px; }
.ecert-micro .ecert-kind { margin-top: 2%; font-size: 11px; letter-spacing: .2em; }
.ecert-micro .ecert-kind span { font-size: 4px; }
.ecert-micro .ecert-body { margin-top: 3%; font-size: 6px; line-height: 1.9; }
.ecert-micro .ecert-foot { padding-top: 2%; } .ecert-micro .ecert-foot small { font-size: 4.5px; } .ecert-micro .ecert-foot b { font-size: 6px; }
.ecert-micro .ecert-logo { font-size: 4px; }
.ecert-micro .ecert-qr { right: 5%; bottom: 5%; } .ecert-micro .ecert-qr .qr { width: 18px; padding: 1px; } .ecert-micro .ecert-qr span { display: none; }
.ecert-micro .ecert-seal { width: 20%; right: 14%; }
.ecert-micro .ecert-frame::before, .ecert-micro .ecert-frame::after { font-size: 8px; }
.qr { color: var(--ink); }
.qr-svg { width: 100%; height: 100%; display: block; }

/* ---------- 证书查询页 ---------- */
.cert-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 28px; align-items: start; }
.cert-side { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 18px; }
.query-panel .card-title { margin-bottom: 18px; }
.query-panel .tabs { width: 100%; margin-bottom: 18px; }
.query-panel .tab { flex: 1; justify-content: center; padding: 0 10px; }
.query-panel .stack { display: flex; flex-direction: column; gap: 16px; }
.query-panel .btn { margin-top: 6px; }
.cert-tips { padding: 8px 20px; }
.cert-tips li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 14px; color: var(--n-500); }
.cert-tips li + li { border-top: 1px dashed var(--n-200); }
.cert-tips svg { font-size: 20px; color: var(--p-500); margin-top: 1px; }
.cert-tips b { display: block; color: var(--n-900); font-size: 14px; margin-bottom: 1px; }

.result { overflow: hidden; }
.result-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; color: #fff; overflow: hidden; isolation: isolate; }
.result-head-bg { position: absolute; inset: 0; z-index: -1; background: var(--grad-brand); }
.result-head-bg::after { content: ""; position: absolute; width: 420px; height: 420px; right: -90px; top: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .38), transparent 65%); }
.result-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.result-photo { width: 84px; height: 84px; border-radius: 26px; object-fit: cover; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 12px 24px -10px rgba(15, 27, 45, .55); background: #fff; }
.result-id h2 { font-size: 26px; letter-spacing: .02em; }
.result-id .badge + .badge { margin-left: 0; }
.result-no { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); }
.result-no small { display: block; font-size: 11px; color: rgba(255, 255, 255, .7); letter-spacing: .08em; }
.result-no b { font-size: 17px; letter-spacing: .04em; }
.result-no .icon-btn { background: rgba(255, 255, 255, .92); }
.result-body { position: relative; padding: 26px 34px 30px; }
.cert-switch { margin-bottom: 18px; }
.result-tabs { margin-bottom: 22px; }
.result-sub { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 6px 0 14px; }
.result-sub .bar { width: 5px; height: 18px; border-radius: 3px; background: var(--grad-accent); box-shadow: 0 4px 10px -2px var(--p-sh); }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; margin: 0 0 22px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 13px 4px; border-bottom: 1px dashed var(--n-200); font-size: 15px; }
.kv dt { color: var(--n-500); flex: none; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.kv dd.mono { font-family: var(--num); letter-spacing: .05em; }
.watermark { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; z-index: 3; }
.watermark::before {
  content: ""; position: absolute; inset: -30%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='220' viewBox='0 0 360 220'%3E%3Ctext x='18' y='60' font-size='17' font-family='sans-serif' font-weight='700' fill='%23019fe6' fill-opacity='.9'%3E云海武协 · 仅供查询验证%3C/text%3E%3Ctext x='180' y='170' font-size='17' font-family='sans-serif' font-weight='700' fill='%23019fe6' fill-opacity='.9'%3E云海武协 · 仅供查询验证%3C/text%3E%3C/svg%3E");
  background-size: 360px 220px; transform: rotate(-26deg); opacity: .07;
}
[data-theme="red"] .watermark::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='220' viewBox='0 0 360 220'%3E%3Ctext x='18' y='60' font-size='17' font-family='sans-serif' font-weight='700' fill='%23c21732' fill-opacity='.9'%3E云海武协 · 仅供查询验证%3C/text%3E%3Ctext x='180' y='170' font-size='17' font-family='sans-serif' font-weight='700' fill='%23c21732' fill-opacity='.9'%3E云海武协 · 仅供查询验证%3C/text%3E%3C/svg%3E"); }
[data-theme="ink"] .watermark::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='220' viewBox='0 0 360 220'%3E%3Ctext x='18' y='60' font-size='17' font-family='sans-serif' font-weight='700' fill='%232d3850' fill-opacity='.9'%3E云海武协 · 仅供查询验证%3C/text%3E%3Ctext x='180' y='170' font-size='17' font-family='sans-serif' font-weight='700' fill='%232d3850' fill-opacity='.9'%3E云海武协 · 仅供查询验证%3C/text%3E%3C/svg%3E"); }
.wm-seal { position: absolute; right: -40px; bottom: -30px; width: 260px; color: var(--p-500); opacity: .09; transform: rotate(-18deg); }
.scan-row { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: center; margin-top: 22px; }
.scan { display: block; overflow: hidden; padding: 8px; border-radius: var(--r-md); transition: transform .3s, box-shadow .3s; }
.scan:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--sh-lg); }
.scan img { border-radius: 12px; }
.scan-row h4 { font-size: 16px; }
.scan-row p { margin-top: 6px; font-size: 14px; color: var(--n-500); }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--n-100); }
.result-foot { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; color: var(--n-400); }
.result-foot svg { font-size: 15px; color: var(--ok); }
.empty-state { padding: 72px 32px; }
.empty-state .tile { margin: 0 auto 18px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { max-width: 420px; margin: 8px auto 0; font-size: 14px; color: var(--n-500); }
.empty-state .btn { margin-top: 24px; }

/* ---------- 新闻列表 ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.filter-bar { margin-bottom: 22px; }
.news-hero { position: relative; display: block; overflow: hidden; margin-bottom: 26px; }
.news-hero img { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; object-position: 46% 58%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.news-hero:hover img { transform: scale(1.04); }
.news-hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 32px 28px; color: #fff; background: linear-gradient(180deg, rgba(16, 24, 40, 0), rgba(16, 24, 40, .82)); }
.news-hero-cap h2 { margin-top: 12px; font-size: 26px; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.news-hero-cap p { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.news-hero-cap .meta { margin-top: 12px; color: rgba(255, 255, 255, .7); }
.article-list { display: grid; gap: 18px; }
.article-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); overflow: hidden; }
.article-row .cover { overflow: hidden; }
.article-row .cover img { width: 100%; height: 100%; min-height: 176px; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.article-row:hover .cover img { transform: scale(1.06); }
.article-row .body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; }
.article-row h3 { font-size: 19px; line-height: 1.45; transition: color .2s; }
.article-row:hover h3 { color: var(--p-600); }
.article-row .body .meta { margin-top: auto; }
.article-row .body p { color: var(--n-500); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag.pin { color: #b54708; background: var(--warn-bg); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-pill); font-family: var(--num); font-size: 15px; font-weight: 600; color: var(--n-700); background: #fff; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--n-200); transition: all .2s; }
.pager a:hover { color: var(--p-700); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--p-200); transform: translateY(-1px); }
.pager .on { color: #fff; background: var(--grad-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 16px -8px var(--p-sh); }
.news-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 30px); }
.rank-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.rank-list li + li { border-top: 1px dashed var(--n-200); }
.rank-list .no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; flex: none; font-family: var(--num); font-size: 13px; font-weight: 700; color: var(--p-700); background: var(--p-50); }
.rank-list li:nth-child(-n+2) .no { color: #fff; background: var(--grad-accent); }
.rank-list a { font-size: 15px; line-height: 1.5; transition: color .2s; }
.rank-list a:hover { color: var(--p-600); }
.rank-list .meta { margin-top: 3px; }
.cloud { display: flex; gap: 8px; flex-wrap: wrap; }
.side-cta { display: block; padding: 26px; background: linear-gradient(135deg, var(--p-800), var(--p-500) 70%, var(--p-300)); color: #fff; overflow: hidden; isolation: isolate; }
.side-cta::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.side-cta .tile { background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(255, 255, 255, .3); }
.side-cta h3 { margin-top: 18px; font-size: 20px; }
.side-cta p { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.side-cta .btn { margin-top: 20px; background: #fff; color: var(--p-700); box-shadow: 0 10px 20px -8px rgba(15, 27, 45, .4); }
.side-cta .btn:hover { transform: translateY(-2px); }

/* ---------- 文章详情 ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.article { overflow: hidden; }
.article-head { padding-bottom: 4px; }
.article-head h1 { margin-top: 16px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.4; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.article-meta b { display: block; font-size: 14px; }
.article-meta small { font-size: 12px; color: var(--n-400); }
.article-meta .meta { margin-left: 6px; }
.article-cover { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; }
.article-body { padding-top: 30px; }
.rich { font-size: 17px; line-height: 1.95; color: #27344a; }
.rich > * + * { margin-top: 18px; }
.rich h2 { margin-top: 36px; padding-left: 14px; border-left: 4px solid var(--p-500); font-size: 21px; line-height: 1.4; }
.rich h3 { margin-top: 26px; font-size: 18px; }
.rich blockquote { padding: 18px 22px; border-radius: var(--r-md); background: var(--p-50); border: 1px solid var(--p-100); color: var(--p-900); font-weight: 500; box-shadow: inset 0 1px 0 #fff; }
.rich ul, .rich ol { padding-left: 24px; list-style: disc; } .rich ol { list-style: decimal; }
.rich li + li { margin-top: 6px; }
.rich figure { margin: 26px 0; } .rich figure img { border-radius: var(--r-md); box-shadow: var(--sh-md); }
.rich figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--n-400); }
.rich table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--n-200); }
.rich th { padding: 13px 16px; text-align: left; background: var(--p-50); color: var(--p-900); }
.rich td { padding: 13px 16px; border-top: 1px solid var(--n-100); }
.rich .callout { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r-md); background: var(--warn-bg); border: 1px solid #fedf89; }
.rich .callout svg { font-size: 24px; color: var(--warn); margin-top: 2px; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--n-100); }
.article-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 30px); }
.toc a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--n-700); transition: all .2s; }
.toc a:hover, .toc a.on { color: var(--p-700); background: var(--p-50); }
.toc a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--n-300); }
.toc a.on::before { background: var(--p-500); }
.pn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.pn { display: block; padding: 22px 26px; }
.pn small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--n-400); }
.pn.next small { justify-content: flex-end; }
.pn b { display: block; margin-top: 8px; font-size: 16px; line-height: 1.5; }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rel { display: block; overflow: hidden; }
.rel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.rel:hover img { transform: scale(1.06); }
.rel .body { padding: 18px 20px 20px; }
.rel h4 { font-size: 16px; line-height: 1.5; }
.rel .meta { margin-top: 8px; }

/* ---------- 协会简介 ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.intro-copy p { margin-top: 16px; color: var(--n-500); line-height: 1.9; }
.intro-copy p + p { margin-top: 12px; }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.intro-stats .card { padding: 18px 16px; text-align: center; }
.intro-stats b { display: block; font-family: var(--num); font-size: 30px; line-height: 1.1; color: var(--p-700); }
.intro-stats b em { font-style: normal; font-size: 17px; color: var(--accent) !important; filter: saturate(.2) brightness(.6); }
.intro-stats span { font-size: 13px; color: var(--n-500); }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv { padding: 30px; background: linear-gradient(180deg, #fff, var(--p-50)); }
.mvv h3 { margin-top: 20px; font-size: 21px; }
.mvv p { margin-top: 8px; font-size: 15px; color: var(--n-500); line-height: 1.8; }
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: var(--grad-primary); box-shadow: 0 0 0 4px var(--p-50); }
.timeline li { position: relative; padding: 0 0 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-primary); box-shadow: 0 0 0 5px #fff, 0 6px 12px -4px var(--p-sh); }
.timeline .year { font-family: var(--num); font-size: 24px; font-weight: 700; color: var(--p-700); line-height: 1.2; }
.timeline .card { display: inline-block; margin-top: 10px; padding: 18px 22px; }
.timeline b { font-size: 17px; }
.timeline p { margin-top: 4px; font-size: 14px; color: var(--n-500); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team { padding: 30px 22px 26px; text-align: center; }
.team .avatar-xl { margin: 0 auto; box-shadow: 0 0 0 5px #fff, 0 14px 26px -10px var(--p-sh); }
.team h3 { margin-top: 18px; font-size: 19px; }
.team .role { display: inline-block; justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--p-700); padding: 4px 12px; border-radius: var(--r-pill); background: var(--p-50); }
.team p { margin-top: 12px; font-size: 14px; color: var(--n-500); line-height: 1.7; }
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.honor { padding: 26px; }
.honor h4 { margin-top: 18px; font-size: 16px; }
.honor > span:not(.tile) { display: block; margin-top: 4px; font-size: 13px; color: var(--n-400); }

/* ---------- 协会风采 ---------- */
.gallery-page { grid-auto-rows: 220px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card { padding: 22px; }
.contact-card .tile { margin-bottom: 16px; }
.contact-card > b { display: block; font-size: 15px; color: var(--n-500); font-weight: 600; }
.contact-card > span:not(.tile) { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; }
.map-card { position: relative; overflow: hidden; min-height: 300px; margin-top: 18px; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #e8f3ff, #f4f8fd); }
.map-pin-big { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50% 50% 50% 12px; transform-origin: center bottom; rotate: -45deg; color: #fff; font-size: 26px; background: var(--grad-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 28px -10px var(--p-sh); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.map-pin-big svg { rotate: 45deg; }
.map-label { position: absolute; left: 50%; top: 54%; transform: translateX(-50%); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; white-space: nowrap; background: #fff; box-shadow: var(--sh-md); }
.form-card { padding: 32px; }
.form-card .form-grid { margin-top: 22px; }

/* ---------- 常见问题 ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.acc { display: grid; gap: 14px; }
.acc-item { background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-sm); border: 1px solid rgba(255, 255, 255, .9); overflow: hidden; transition: box-shadow .25s; }
.acc-item.open { box-shadow: var(--sh-md); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 24px; text-align: left; font-size: 17px; font-weight: 600; color: var(--ink); }
.acc-head svg { font-size: 20px; color: var(--n-400); transition: transform .3s, color .3s; }
.acc-item.open .acc-head svg { transform: rotate(180deg); color: var(--p-500); }
.acc-body { display: none; padding: 0 24px 20px; color: var(--n-500); font-size: 15px; line-height: 1.85; }
.acc-item.open .acc-body { display: block; animation: fade-up .3s ease; }
.contact-card small.muted { display: block; margin-top: 6px; font-size: 13px; }

/* ---------- 页脚 ---------- */
.footer { position: relative; display: flow-root; margin-top: 40px; padding: 0 0 28px; border-radius: 44px 44px 0 0; color: rgba(255, 255, 255, .74); isolation: isolate; }
.footer-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; background: var(--p-950); }
.footer-bg span { position: absolute; border-radius: 50%; }
.footer-bg span:first-child { left: -10%; top: -40%; width: 60%; height: 80%; background: var(--p-800); opacity: .55; filter: blur(90px); }
.footer-bg span:last-child { right: -10%; bottom: -50%; width: 50%; height: 80%; background: var(--glow-2); opacity: .22; filter: blur(100px); }
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: -88px; padding: 30px 36px;
  color: var(--ink);
  background: linear-gradient(120deg, #fff 0%, var(--p-50) 100%); overflow: hidden; isolation: isolate;
}
.footer-cta::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: var(--p-100); opacity: .8; z-index: -1; }
.footer-cta .h3 { margin-top: 10px; font-size: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.4fr auto; gap: 44px; padding: 56px 0 40px; }
.footer h5 { margin-bottom: 16px; color: #fff; font-size: 16px; }
.footer-brand .brand-text strong { font-size: 18px; }
.footer-brand > p { margin-top: 18px; max-width: 360px; font-size: 14px; line-height: 1.85; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials .icon-btn { color: rgba(255, 255, 255, .8); }
.socials .icon-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.footer-links a { display: block; padding: 6px 0; font-size: 14px; transition: color .2s, transform .2s; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; line-height: 1.6; }
.footer-contact svg { font-size: 18px; color: var(--p-300); margin-top: 3px; }
.footer-qr { display: flex; gap: 20px; }
.footer-qr figure { text-align: center; }
.footer-qr .qr { width: 100px; height: 100px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 16px 30px -12px rgba(0, 0, 0, .6); }
.footer-qr figcaption { margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .48); }
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 浮层 / 工具条 ---------- */
.layer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(15, 27, 45, .62); backdrop-filter: blur(10px); animation: fade-up .3s ease; }
.layer-box { position: relative; max-width: min(1080px, 92vw); }
.layer-box img { max-height: 80vh; width: auto; max-width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-xl); }
.layer-cap { margin-top: 14px; text-align: center; color: #fff; font-size: 15px; }
.layer-close { position: absolute; right: -12px; top: -12px; z-index: 2; }
.search-box { display: flex; align-items: center; gap: 14px; width: min(760px, 88vw); height: 76px; padding: 0 12px 0 26px; border-radius: var(--r-pill); background: #fff; color: var(--n-400); box-shadow: var(--sh-xl); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font-size: 18px; background: transparent; }
.search-hot { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .8); flex-wrap: wrap; }
.proto-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 150;
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px; border-radius: var(--r-pill);
  font-size: 13px; color: var(--n-700); background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(15, 27, 45, .06), 0 18px 40px -14px rgba(15, 27, 45, .4);
}
.proto-bar a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--p-700); }
.proto-bar .sep { width: 1px; height: 18px; background: var(--n-200); }
.proto-bar .lbl { color: var(--n-400); }
.proto-bar .page { padding-right: 8px; color: var(--n-500); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proto-bar button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--n-200); transition: transform .2s; }
.proto-bar button i { width: 18px; height: 18px; border-radius: 50%; }
.proto-bar button:hover { transform: scale(1.12); }
.proto-bar button[data-set-theme="blue"] i { background: linear-gradient(135deg, #2a3d94, #019fe6); }
.proto-bar button[data-set-theme="red"] i { background: linear-gradient(135deg, #8f1021, #e0243f); }
.proto-bar button[data-set-theme="ink"] i { background: linear-gradient(135deg, #10151f, #c9a227); }
html.shot .proto-bar { display: none; }

/* ---------- 响应式 ---------- */
/* 网格子元素允许收缩，避免被内容撑宽后在手机上横向溢出 */
.hero-grid > *, .news-bento > *, .about-teaser > *, .cert-show-grid > *, .cert-layout > *, .news-layout > *, .article-layout > *,
.intro-grid > *, .contact-grid > *, .contact-cards > *, .quick-grid > *, .logo-wall > *, .gallery-bento > *, .mvv-grid > *,
.team-grid > *, .honor-grid > *, .rel-grid > *, .footer-grid > *, .news-side > *, .article-side > * { min-width: 0; }
.query-card { width: min(460px, 100%); }
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 430px; gap: 36px; }
  .float-cert { left: -110px; width: 280px; }
  .cert-layout { grid-template-columns: 360px minmax(0, 1fr); }
  .kv-grid { column-gap: 20px; }
}
@media (max-width: 1020px) {
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px;
    border-radius: var(--r-lg); background: rgba(255, 255, 255, .97); backdrop-filter: blur(20px);
    box-shadow: var(--sh-lg), 0 0 0 1px var(--n-100);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1), visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { height: 50px; padding: 0 16px; font-size: 16px; }
  .nav-item { display: flex; flex-direction: column; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; background: transparent; display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-bottom: 130px; }
  .hero-visual { justify-content: center; }
  .hero-copy .lead { max-width: 620px; }
  .float-cert { display: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .about-teaser, .cert-show-grid, .intro-grid { grid-template-columns: 1fr; gap: 44px; }
  .news-bento { grid-template-columns: 1fr; }
  .gallery-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall { grid-template-columns: 1fr 1fr; }
  .news-layout, .article-layout { grid-template-columns: 1fr; }
  .news-side, .article-side, .cert-side { position: static; }
  .news-side { grid-template-columns: 1fr 1fr; } .news-side .side-cta { grid-column: 1 / -1; }
  .cert-layout { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .team-grid, .honor-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  :root { --header-real: 62px; }
  .site-header { top: 10px; }
  .header-bar { height: 62px; padding: 0 8px 0 12px; }
  .brand { gap: 10px; } .brand-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 21px; }
  .brand-text strong { font-size: 15px; } .brand-text small { display: none; }
  .header-cta { display: none; }
  .hero { padding: calc(var(--header-h) + 8px) 0 110px; }
  .hero-copy .h1 { margin-top: 20px; font-size: 34px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-stats { gap: 22px; margin-top: 34px; } .hero-stats b { font-size: 24px; }
  .query-card { padding: 22px; border-radius: var(--r-md); }
  .verified-chip { right: 6px; top: -20px; height: 38px; font-size: 12px; padding: 0 12px 0 8px; }
  .hero-wave { height: 64px; }
  .page-hero { padding: 38px 0 110px; }
  .page-hero-art { right: -84px; top: -30px; transform: none; opacity: .4; width: 200px; height: 200px; }
  .quick-grid { grid-template-columns: 1fr; gap: 12px; } .quick { padding: 16px; }
  .about-visual { padding: 0 0 44px 24px; }
  .about-badge { right: -6px; bottom: 12px; padding: 10px 14px; } .about-badge b { font-size: 26px; }
  .news-feature .h3 { font-size: 19px; }
  .news-list-card { padding: 6px 16px; }
  .news-row { gap: 12px; } .news-row img { width: 104px; height: 76px; border-radius: 12px; } .news-row h4 { font-size: 15px; } .news-row .date { display: none; }
  .gallery-bento, .gallery-page { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
  .g-item.big { grid-column: span 2; } .g-item.tall, .g-item.wide { grid-column: auto; grid-row: span 1; }
  .g-item .cap { opacity: 1; transform: none; font-size: 13px; left: 12px; bottom: 10px; }
  .ecert-stage { padding: 12px; }
  .result-head { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px; }
  .result-no { width: 100%; justify-content: space-between; }
  .result-body { padding: 20px 20px 24px; }
  .result-id { gap: 14px; } .result-photo { width: 70px; height: 70px; border-radius: 22px; } .result-id h2 { font-size: 22px; }
  .kv-grid { grid-template-columns: 1fr; column-gap: 0; }
  .scan-row { grid-template-columns: 1fr; }
  .result-actions .btn { flex: 1; min-width: 130px; }
  .article-row { grid-template-columns: 1fr; } .article-row .cover img { min-height: 0; aspect-ratio: 16 / 9; } .article-row .body { padding: 18px; }
  .article-row h3 { font-size: 17px; }
  .news-hero img { aspect-ratio: 16 / 11; } .news-hero-cap { padding: 70px 20px 20px; } .news-hero-cap h2 { font-size: 20px; }
  .news-side { grid-template-columns: 1fr; }
  .pn-grid { grid-template-columns: 1fr; gap: 14px; }
  .rich { font-size: 16px; }
  .rich table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .rich table thead, .rich table tbody { display: table; width: max-content; min-width: 100%; }
  .article-head, .article-body { padding-left: 18px; padding-right: 18px; }
  .team-grid, .honor-grid { grid-template-columns: 1fr; gap: 14px; }
  .team { display: grid; grid-template-columns: auto 1fr; text-align: left; gap: 0 18px; align-items: center; padding: 20px; }
  .team .avatar-xl { grid-row: span 3; width: 76px; height: 76px; font-size: 26px; } .team h3, .team .role, .team p { margin-top: 6px; }
  .timeline { padding-left: 36px; }
  .contact-cards { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 16px; padding: 16px 18px; }
  .contact-card .tile { grid-row: span 3; margin-bottom: 0; }
  .contact-card > b, .contact-card > span:not(.tile), .contact-card small.muted { margin-top: 0; }
  .contact-card > span:not(.tile) { font-size: 16px; }
  .form-card { padding: 22px; }
  .footer { margin-top: 76px; border-radius: 30px 30px 0 0; }
  .footer-cta { flex-direction: column; align-items: flex-start; margin-top: -70px; padding: 24px; } .footer-cta .h3 { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom a { display: inline-block; margin: 0 16px 0 0; }
  .search-box { height: 64px; padding-left: 18px; } .search-box input { font-size: 16px; } .search-box kbd { display: none; }
  .proto-bar .page { display: none; }
}
