/* ============================================================
   舞台机械控制系统企业官网 — 深色舞台灯光主题
   ============================================================ */

:root {
  --bg: #0a0e15;
  --bg-2: #0e141e;
  --panel: #121a27;
  --panel-2: #16202f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf4;
  --muted: #93a1b3;
  --gold: #d4a94e;
  --gold-soft: rgba(212, 169, 78, 0.14);
  --cyan: #4cc3e8;
  --cyan-soft: rgba(76, 195, 232, 0.12);
  --danger: #e0564f;
  --ok: #3fbf7f;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1.4;
}
.btn-primary { background: var(--gold); color: #1a1408; }
.btn-primary:hover { background: #e6bd60; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 169, 78, 0.35); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }
.btn-danger { background: rgba(224, 86, 79, 0.12); color: var(--danger); border-color: rgba(224, 86, 79, 0.3); }
.btn-danger:hover { background: rgba(224, 86, 79, 0.22); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 21, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { border-radius: 6px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: var(--gold); }
.nav .nav-cta {
  border: 1px solid var(--border-strong);
  color: var(--text);
  margin-left: 8px;
}
.nav .nav-cta:hover, .nav .nav-cta.active { border-color: var(--gold); color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  transition: all 0.2s;
}
.lang-switch:hover { color: var(--gold); border-color: var(--gold); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: all 0.25s;
}
.nav-toggle span::before { top: -6px; transform: translateX(-50%); }
.nav-toggle span::after { top: 6px; transform: translateX(-50%); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(10, 14, 21, 0.2), rgba(10, 14, 21, 0.85)),
    linear-gradient(to bottom, rgba(10, 14, 21, 0.5), var(--bg));
}
.beam {
  position: absolute;
  top: -20%;
  width: 140px;
  height: 130%;
  filter: blur(28px);
  opacity: 0.5;
  transform-origin: top center;
  animation: beam-sway 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.beam-1 { left: 18%; background: linear-gradient(to bottom, rgba(212, 169, 78, 0.55), transparent 75%); transform: rotate(14deg); }
.beam-2 { left: 48%; background: linear-gradient(to bottom, rgba(76, 195, 232, 0.4), transparent 70%); transform: rotate(-8deg); animation-delay: -3s; animation-duration: 11s; }
.beam-3 { left: 74%; background: linear-gradient(to bottom, rgba(212, 169, 78, 0.35), transparent 70%); transform: rotate(-18deg); animation-delay: -6s; animation-duration: 13s; }
@keyframes beam-sway {
  from { transform: rotate(10deg) translateX(-12px); }
  to { transform: rotate(18deg) translateX(12px); }
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-tag {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(212, 169, 78, 0.4);
  background: var(--gold-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-sub { font-size: 17px; color: #c3cdd9; max-width: 640px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 数据带 ---------- */
.stats-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-n { font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.stat-t { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }
.sec-head { margin-bottom: 44px; }
.sec-head h2 { font-size: 32px; font-weight: 700; }
.sec-head p { color: var(--muted); margin-top: 8px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-line { display: block; width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin-top: 16px; border-radius: 2px; }
.more-link { color: var(--gold); font-size: 15px; white-space: nowrap; font-weight: 600; }
.more-link:hover { text-decoration: underline; }

/* ---------- 特性 / 价值卡 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.25s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(212, 169, 78, 0.4); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- 内容卡片 ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(212, 169, 78, 0.45); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 19px; margin: 6px 0 10px; }
.card-body p { font-size: 14.5px; color: var(--muted); }
.badge {
  display: inline-block;
  font-size: 12px;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(76, 195, 232, 0.3);
  padding: 3px 12px;
  border-radius: 999px;
}
.ph {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 169, 78, 0.25), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(76, 195, 232, 0.2), transparent 55%),
    linear-gradient(135deg, #1a2333, #10161f);
}
.ph-lg { border-radius: var(--radius); min-height: 320px; }

/* ---------- 列表页头 ---------- */
.page-head {
  padding: 150px 0 56px;
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(212, 169, 78, 0.12), transparent),
    linear-gradient(to bottom, #0d1420, var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: 38px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 10px; }
.kicker { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.detail-head h1 { font-size: clamp(28px, 4vw, 40px); }
.detail-meta { display: flex; gap: 16px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.detail-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--panel-2); }
.detail-img img { width: 100%; }
.detail-img.wide { margin-bottom: 40px; }
.detail-side {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.detail-summary { font-size: 15.5px; color: #c3cdd9; margin-bottom: 24px; }
.back-link { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--gold); }
.prose { font-size: 16px; color: #c9d3df; max-width: 900px; }
.prose h3 { color: var(--text); font-size: 20px; margin: 28px 0 12px; padding-left: 12px; border-left: 3px solid var(--gold); }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- 新闻列表 ---------- */
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.news-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.news-item:hover { border-color: rgba(212, 169, 78, 0.45); transform: translateX(4px); }
.news-date { color: var(--gold); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-title { font-size: 16.5px; font-weight: 600; }
.news-summary {
  font-size: 14px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.home-news .news-arrow { margin-left: auto; }
.news-arrow { color: var(--muted); transition: transform 0.25s, color 0.25s; margin-left: auto; }
.news-item:hover .news-arrow { color: var(--gold); transform: translateX(4px); }
.pagination {
  display: flex; align-items: center; gap: 18px;
  margin-top: 36px; max-width: 900px;
}
.page-info { color: var(--muted); font-size: 14px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 36px; align-items: start; }
.contact-info {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.contact-info h3 { font-size: 18px; margin-bottom: 20px; color: var(--gold); }
.info-row { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--muted); }
.contact-form-wrap { min-width: 0; }
.contact-form label, .admin-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.contact-form label i, .admin-form label i { color: var(--gold); font-style: normal; font-size: 12px; }
.contact-form input, .contact-form textarea,
.admin-form input, .admin-form textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus,
.admin-form input:focus, .admin-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
/* 蜜罐字段：视觉上移出屏幕，真人不可见，机器人仍会填写 */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form label { margin-bottom: 18px; }
.contact-form .btn { margin-top: 4px; }
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 14.5px;
}
.alert.ok { background: rgba(63, 191, 127, 0.12); border: 1px solid rgba(63, 191, 127, 0.35); color: #7edcae; }
.alert.err { background: rgba(224, 86, 79, 0.12); border: 1px solid rgba(224, 86, 79, 0.35); color: #ef8f8a; }

/* ---------- CTA 带 / 404 ---------- */
.cta-band { background: linear-gradient(120deg, rgba(212, 169, 78, 0.12), rgba(76, 195, 232, 0.08)); border-top: 1px solid var(--border); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 0; flex-wrap: wrap; }
.cta-inner h2 { font-size: 26px; }
.cta-inner p { color: var(--muted); margin-top: 6px; }
.notfound { padding: 180px 0 120px; text-align: center; }
.nf-code { font-size: 110px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 20px; opacity: 0.85; }
.notfound p { color: var(--muted); margin-bottom: 32px; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.about-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ---------- 页脚 ---------- */
.site-footer { background: #080b11; border-top: 1px solid var(--border); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-about p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4, .footer-contact h4 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact p { color: var(--muted); font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #5c6878; font-size: 13px; }
.footer-bottom a { color: #5c6878; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 滚动显现动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   后台
   ============================================================ */
.admin-body { background: var(--bg-2); display: flex; min-height: 100vh; }
.admin-side {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.admin-nav { display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; flex: 1; }
.admin-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  transition: all 0.2s;
}
.admin-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.admin-nav a.active { color: var(--gold); background: var(--gold-soft); }
.admin-side-foot { padding: 16px 20px; border-top: 1px solid var(--border); font-size: 13.5px; }
.admin-side-foot a { color: var(--muted); }
.admin-side-foot a:hover { color: var(--gold); }
.admin-user { display: flex; justify-content: space-between; margin-top: 10px; color: var(--text); }
.admin-main { flex: 1; padding: 32px 36px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-head h1 { font-size: 24px; }
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.admin-panel + .admin-panel { margin-top: 20px; }
.admin-panel-title { font-size: 16px; margin-bottom: 8px; }
.admin-code {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  word-break: break-all;
  resize: vertical;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-head h2 { font-size: 17px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.stat-card .stat-n { font-size: 32px; }
.stat-card .stat-t { font-size: 13px; }
.stat-card.has-unread { border-color: rgba(224, 86, 79, 0.5); }
.stat-card.has-unread .stat-n { color: var(--danger); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.unread td { background: rgba(212, 169, 78, 0.05); }
.admin-table .clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table .msg-content { max-width: 320px; white-space: pre-wrap; }
.admin-table .actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.admin-table .actions form { display: inline; }
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
.tag-ok { background: rgba(63, 191, 127, 0.14); color: #7edcae; }
.tag-new { background: rgba(224, 86, 79, 0.14); color: #ef8f8a; }
.thumb { width: 72px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
span.thumb { display: inline-block; }
.current-img { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.admin-form { max-width: 100%; }
.admin-form .form-row { margin-bottom: 0; }
.admin-form label { margin-bottom: 18px; }
.admin-form .check-label { flex-direction: row; align-items: center; gap: 10px; color: var(--text); margin-top: 30px; }
.admin-form .check-label input { width: auto; }
.admin-form input[type="file"] { padding: 9px; }
.admin-form input[type="file"]::file-selector-button {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 14px;
  margin-right: 12px;
  cursor: pointer;
  font-family: inherit;
}
.form-sec {
  font-size: 15px;
  color: var(--gold);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin: 26px 0 18px;
}
.form-sec:first-child { margin-top: 0; }
.form-actions { margin-top: 8px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
code { background: rgba(255, 255, 255, 0.07); padding: 2px 8px; border-radius: 5px; font-size: 13px; }

/* 登录页 */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 169, 78, 0.1), transparent),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-brand h1 { font-size: 20px; }
.login-card label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.login-card input {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
}
.login-card input:focus { outline: none; border-color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-side { width: 190px; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10, 14, 21, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  .hero { min-height: 78vh; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .admin-body { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; padding: 8px 12px; }
  .admin-side-foot { border-top: none; display: flex; gap: 16px; align-items: center; padding: 8px 16px; }
  .admin-user { margin-top: 0; gap: 10px; }
  .admin-main { padding: 20px 16px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-table { font-size: 13px; }
  .admin-table .clip, .admin-table .msg-content { max-width: 160px; }
  .page-head { padding: 120px 0 44px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .stat-n { font-size: 30px; }
  .nf-code { font-size: 72px; }
  .news-item { flex-wrap: wrap; gap: 8px; }
  .news-summary { white-space: normal; }
}

/* ============================================================
   客户登录 / 注册 / 客户中心
   ============================================================ */
.auth-wrap { padding: 140px 0 90px; }
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.auth-card-wide { max-width: 640px; }
.auth-card h1 { font-size: 24px; margin: 6px 0 8px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--muted); margin-bottom: 16px;
}
.auth-form input {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  width: 100%;
}
.auth-form input:focus { outline: none; border-color: var(--gold); }
.auth-form .btn { margin-top: 6px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-alt { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--gold); }

.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.account-side {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.account-side h3 { font-size: 19px; margin: 14px 0 2px; }
.account-meta { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; font-size: 14px; }
.account-meta span { color: var(--muted); font-size: 13px; }
.account-meta strong { color: var(--text); font-weight: 500; word-break: break-all; }
.account-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.table-wrap { overflow-x: auto; }

/* 后台：标签页 / 操作行 / 下拉框 */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.admin-tabs a {
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}
.admin-tabs a.active { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.filter-links { display: flex; gap: 14px; font-size: 13.5px; }
.filter-links a { color: var(--muted); }
.filter-links a.active { color: var(--gold); }
.admin-action-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.admin-action-row form { display: inline; }
.admin-inline-form { display: flex; gap: 14px; align-items: flex-end; margin-top: 18px; flex-wrap: wrap; }
.admin-inline-form label { margin-bottom: 0; flex: 1; min-width: 220px; }
.doc-actions { margin-top: 22px; }
.admin-form select {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  width: 100%;
}
.admin-form select:focus { outline: none; border-color: var(--gold); }
.admin-panel + .admin-panel { margin-top: 24px; }
.admin-actions-panel { margin-top: 24px; }

@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .auth-wrap { padding: 110px 0 60px; }
  .auth-card { padding: 30px 24px; }
}
