/* ============================================================
   HorizonX - 灰白简约主题（正规站点版）
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f6f8;
  --text:      #23262b;
  --text-muted:#7a7f88;
  --line:      #e6e8ec;
  --dark:      #1d2025;
  --dark-2:    #33373e;
  --radius:    16px;
  --shadow:    0 10px 32px rgba(23, 28, 36, .08);
  --shadow-sm: 0 4px 14px rgba(23, 28, 36, .06);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

[hidden] { display: none !important; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1080px 540px at 88% -180px, rgba(122, 150, 190, .20), transparent 62%),
    radial-gradient(880px 470px at 2% 6%, rgba(118, 168, 166, .16), transparent 58%),
    radial-gradient(780px 470px at 99% 56%, rgba(166, 152, 200, .13), transparent 62%),
    radial-gradient(940px 540px at 44% 108%, rgba(140, 162, 192, .17), transparent 66%),
    linear-gradient(180deg, #fcfdfe 0%, #f2f5f9 32%, #f5f7fa 64%, #fdfeff 100%);
  background-attachment: fixed;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: Consolas, Menlo, monospace; }

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* ---------- 背景装饰层（点阵 + 细网格 + 两团漂浮光斑） ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-image:
    radial-gradient(rgba(30, 34, 40, .05) 1px, transparent 1.6px),
    linear-gradient(rgba(30, 34, 40, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 34, 40, .022) 1px, transparent 1px);
  background-size: 28px 28px, 152px 152px, 152px 152px;
  background-position: 0 0, -1px -1px, -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .38) 42%, rgba(0, 0, 0, .88));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .38) 42%, rgba(0, 0, 0, .88));
}
.bg-decor::before,
.bg-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.bg-decor::before {
  width: 460px; height: 460px;
  top: 8%; left: -140px;
  background: radial-gradient(circle at 32% 32%, #cfe0f3, rgba(207, 224, 243, 0));
  animation: hxFloatA 26s ease-in-out infinite;
}
.bg-decor::after {
  width: 560px; height: 560px;
  bottom: 2%; right: -170px;
  background: radial-gradient(circle at 60% 40%, #e3dcf1, rgba(227, 220, 241, 0));
  animation: hxFloatB 34s ease-in-out infinite;
}
@keyframes hxFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(64px, 46px, 0) scale(1.08); }
}
@keyframes hxFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-72px, -54px, 0) scale(1.06); }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 232, 236, .9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  flex: none;
}
.brand span { color: var(--text-muted); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 auto;
}
.nav a { position: relative; transition: color .2s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--dark);
  transition: right .25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  padding: 108px 0 72px;
  text-align: center;
  overflow: hidden;
  /* 顶部改成纯色（原来透出 body 的彩色渐变，显得花）；白色与半透明的顶部导航衔接最自然。
     这块白色一直延续到下面的截图墙，由 .gallery 的渐变柔和地过渡回页面背景，所以这里不画分隔线。 */
  background: var(--bg);
}
.hero .container { position: relative; z-index: 2; }

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* 顶部改为纯色后不再显示山景插画；想恢复原来的场景图，删掉下面这一行即可 */
  display: none;
}
.hero-scene svg {
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.hero-tag {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fade-up .7s ease both;
}

.hero-title {
  margin: 18px 0 10px;
  font-size: clamp(46px, 8.5vw, 80px);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.12;
  background: linear-gradient(180deg, #171a1f 30%, #4a4f58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fade-up .7s .08s ease both;
}
.hero-title span {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(180deg, #6d727c 20%, #b9bec7 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  animation: fade-up .7s .16s ease both;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 34px;
  animation: fade-up .7s .24s ease both;
}

.badge {
  padding: 6px 18px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  animation: fade-up .7s .32s ease both;
}

/* 地址 / QQ群 / 状态 信息条 */
.hero-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
  animation: fade-up .7s .4s ease both;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}
.chip-label { font-size: 13px; color: var(--text-muted); }
.chip-value { font-size: 15px; color: var(--text); }

.mini-btn {
  padding: 4px 14px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.mini-btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.mini-btn-link { background: var(--dark); border-color: var(--dark); color: #fff; }
.mini-btn-link:hover { background: var(--dark-2); }

/* 在线状态圆点 */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c3c8cf;
  box-shadow: 0 0 0 4px rgba(195, 200, 207, .25);
  flex: none;
}
.status-dot.online { background: #4caf7d; box-shadow: 0 0 0 4px rgba(76, 175, 125, .25); }
.status-dot.offline { background: #b3524e; box-shadow: 0 0 0 4px rgba(179, 82, 78, .22); }

/* ---------- 通用区块标题 ---------- */
.section-title {
  position: relative;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--dark), #9aa0a9);
}
.section-desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- 服务器信息 ---------- */
.info {
  padding: 88px 0 80px;
  background: rgba(245, 246, 248, .7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card {
  padding: 26px 24px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #d3d7dd;
}

.info-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.info-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}
.info-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- 图片展示 ---------- */
.gallery {
  padding: 88px 0 80px;
}

.gallery-row {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(.92); }

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ---------- 如何加入 ---------- */
.join {
  padding: 88px 0 84px;
  background: rgba(245, 246, 248, .7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.step {
  position: relative;
  padding: 34px 28px 30px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.step-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e5e7eb;
  line-height: 1;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
}
.step p strong { color: var(--text); }

.join-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

/* ---------- 服务器介绍 ---------- */
.about {
  padding: 88px 0 96px;
  background: var(--bg);
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.about-block + .about-block { margin-top: 72px; }
.about-block.reverse .about-media { order: 2; }

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-media img { width: 100%; height: auto; transition: transform .5s ease; }
.about-media:hover img { transform: scale(1.03); }

.about-text h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.about-text p { color: var(--text-muted); font-size: 15px; }
.about-text strong { color: var(--text); font-weight: 700; }

/* ---------- 联系我们 ---------- */
.contact {
  padding: 88px 0 96px;
  background: rgba(245, 246, 248, .7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  margin-top: 42px;
  display: grid;
  /* 每行两个：原来 auto-fit 在宽屏上会把 5 张卡片挤成一行，2026-10-06 按用户要求改成两列 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* 卡片总数是奇数时（现在是 5 张），最后一张占满整行，避免右边空一格 */
.contact-grid > .contact-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.contact-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.contact-value {
  font-size: 16px;
  font-weight: 700;
  word-break: break-all;
}
.contact-note {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
}
.contact-card .btn {
  align-self: flex-start;
  margin-top: 10px;
  padding: 9px 22px;
  font-size: 14px;
}

/* ---------- 底部 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px 320px at 50% -92px, rgba(104, 118, 140, .30), transparent 72%),
    radial-gradient(520px 320px at 8% 120%, rgba(74, 96, 128, .22), transparent 70%),
    linear-gradient(180deg, #23272e 0%, var(--dark) 55%, #16181d 100%);
  color: #d9d9d9;
  padding: 54px 0 34px;
  text-align: center;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22) 22%, rgba(255, 255, 255, .22) 78%, transparent);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 70%);
}
.site-footer .footer-inner { position: relative; z-index: 1; }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.footer-brand .brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}
.footer-brand .brand span { color: #9fb6d6; }
.footer-tagline {
  font-size: 13px;
  color: #9aa1ac;
  letter-spacing: .5px;
}

.footer-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.footer-divider {
  width: min(640px, 88%);
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
}
.footer-meta { display: flex; flex-direction: column; gap: 7px; }
.copyright {
  font-size: 13px;
  color: #b9bec7;
  letter-spacing: .4px;
}
.copyright .footer-mark { color: #e8eaee; font-weight: 700; }
.copyright-sub { font-size: 12px; color: #8b919b; }
.copyright-tip { font-size: 11.5px; color: #6f747c; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 15px;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, #2a2e35, #171a1f);
  color: #fff;
  box-shadow: 0 6px 18px rgba(23, 26, 31, .25);
}
.btn-primary:hover { background: linear-gradient(180deg, #363b44, #20242b); }

.btn-ghost { border-color: var(--dark); color: var(--text); background: rgba(255,255,255,.6); }
.btn-ghost:hover { background: var(--dark); color: #fff; }

.btn-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-light:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* ---------- 玩家登录 / 管理员登录（同一个入口） ---------- */
.nav-auth { position: relative; flex: none; }

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}
.auth-btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.auth-btn-on { font-weight: 700; }
.auth-btn-on:hover { background: rgba(255, 255, 255, .9); color: var(--text); border-color: #d3d7dd; }

.auth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf7d;
  box-shadow: 0 0 0 3px rgba(76, 175, 125, .22);
  flex: none;
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 27, 33, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in .2s ease both;
}

.modal {
  position: relative;
  width: min(400px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 24, 30, .22);
  animation: modal-up .26s ease both;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }

.modal-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .5px;
}
.modal-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.modal-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.auth-form { margin-top: 22px; }

.auth-field { display: block; margin-bottom: 16px; }
.auth-field span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.auth-field input:focus {
  outline: none;
  background: #fff;
  border-color: #b9bfc7;
}

.auth-msg {
  margin: -4px 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #b3524e;
}
.auth-msg.warn { color: #a4761f; }

.auth-submit { width: 100%; }
.auth-submit:disabled { opacity: .65; cursor: default; transform: none; }

/* ---------- 登录后的下拉菜单 ---------- */
.auth-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 24, 30, .18);
  animation: modal-up .18s ease both;
}
.auth-menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
}
.auth-menu-name { font-size: 15px; font-weight: 800; word-break: break-all; }
.auth-menu-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}
.auth-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.auth-menu-item:hover { background: var(--bg-soft); }
.auth-menu-out { color: #b3524e; }
.auth-menu-badge {
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #d0554f;
  border-radius: 999px;
}
.auth-caret { font-size: 10px; color: var(--text-muted); }

/* ---------- 站内反馈 ---------- */
.modal-wide { width: min(640px, 100%); }

.fb-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.fb-tab {
  padding: 7px 16px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.fb-tab:hover { color: var(--text); }
.fb-tab.on { color: #fff; background: var(--dark); border-color: var(--dark); font-weight: 700; }

.fb-form { margin-top: 18px; }

.fb-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fb-type {
  padding: 7px 15px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-muted);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.fb-type:hover { color: var(--text); border-color: #c6ccd4; }
.fb-type.on { color: var(--text); font-weight: 700; background: var(--bg-soft); border-color: var(--dark); }

.auth-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  transition: border-color .2s, background .2s;
}
.auth-field textarea:focus { outline: none; background: #fff; border-color: #b9bfc7; }

.fb-counter {
  margin: -8px 0 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.fb-filters { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.fb-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-filter-label { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }
.fb-filter {
  padding: 5px 13px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.fb-filter:hover { color: var(--text); }
.fb-filter.on { color: #fff; background: var(--dark); border-color: var(--dark); }

.fb-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.fb-summary { font-size: 12px; color: var(--text-muted); }

.fb-item {
  padding: 15px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.fb-item-done { opacity: .74; }
.fb-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.fb-tag {
  padding: 2px 10px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.fb-tag-feature { color: #2f6f8f; background: #f2f9fc; border-color: #bcd8e4; }
.fb-tag-bug { color: #a8503f; background: #fdf5f3; border-color: #e8c6bd; }
.fb-tag-other { color: #5c6270; }
.fb-tag-status.open { color: #8a6417; background: #fdf8ea; border-color: #e8d8ad; }
.fb-tag-status.done { color: #3d6b52; background: #f1f9f4; border-color: #c2ddcd; }

.fb-time { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.fb-author,
.fb-contact { margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.fb-content {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fb-mini { padding: 6px 14px; font-size: 12px; }
.fb-del { color: #b3524e; border-color: #e6c4c1; }
.fb-del:hover { color: #fff; background: #b3524e; border-color: #b3524e; }
.fb-empty { padding: 26px 0; font-size: 13px; color: var(--text-muted); text-align: center; }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 120;
  padding: 12px 24px;
  font-size: 14px;
  color: #fff;
  background: rgba(29, 32, 37, .94);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(20, 24, 30, .28);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-up {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 滚动浮现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 赞助商店（本站页面 shop.html） ---------- */
.btn-sm { padding: 9px 22px; font-size: 14px; }

.shop-page { padding: 56px 0 72px; }
.shop-notes { margin-top: 26px; }

/* 面板：公告 / 购买 / 订单，与全站卡片风格保持一致 */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(20, 24, 32, 0.05);
  overflow: hidden;
}
.panel + .panel { margin-top: 22px; }
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfd, #f4f5f7);
}
.panel-icon { font-size: 15px; line-height: 1; }
.panel-title { font-size: 16px; font-weight: 600; }
.panel-tools { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.panel-body { padding: 20px; }
.panel-text { color: var(--text-muted); font-size: 14px; line-height: 1.9; }
.panel-text + .shop-orders { margin-top: 14px; }
/* 导航当前页高亮 */
.nav a.is-active { color: var(--text); font-weight: 600; }
.nav a.is-active::after { transform: scaleX(1); }

/* 图标：SVG 用遮罩着色，颜色跟随 color，和全站灰白配色统一 */
.icon {
  display: block;
  flex: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.icon[hidden] { display: none !important; }
.icon-chip { width: 15px; height: 15px; }
.icon-group { width: 24px; height: 24px; }
.icon-card { width: 40px; height: 40px; }
.icon-pay { width: 20px; height: 20px; }
.icon-buy { width: 30px; height: 30px; }

/* 标题区 */
.shop-hero { margin-bottom: 20px; }
.shop-hero .section-desc { max-width: 660px; }
.shop-me {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* 公告：只占一行 */
.shop-notice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--dark);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
.shop-notice-tag { flex: none; color: var(--text); font-weight: 600; }

/* 筛选栏 */
.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.shop-cats, .shop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.shop-chip:hover { color: var(--text); border-color: #d5d9df; background: #fbfbfc; }
.shop-chip.is-active { color: #fff; background: var(--dark); border-color: var(--dark); }
.shop-chip-name { white-space: nowrap; }
.shop-chip-count { font-style: normal; font-size: 12px; opacity: .62; }

.shop-search { display: inline-flex; align-items: center; }
.shop-search input {
  font: inherit;
  font-size: 13px;
  width: 200px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}
.shop-search input:focus { outline: none; border-color: #c3c8d0; box-shadow: 0 0 0 3px rgba(29, 32, 37, .06); }

/* 商品：按分类分组 */
.shop-groups { display: flex; flex-direction: column; gap: 32px; }
.shop-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}
.shop-group-meta { min-width: 0; }
.shop-group-name { color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.5; }
.shop-group-desc { margin-top: 2px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.shop-group-count { flex: none; margin-left: auto; color: var(--text-muted); font-size: 12px; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.shop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dfe2e7; }
.shop-card.is-off { opacity: .72; }
.shop-card.is-off:hover { transform: none; box-shadow: none; border-color: var(--line); }
.shop-card-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-muted);
}
.shop-card:hover .shop-card-cover { color: var(--text); }
.shop-card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.shop-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 14px 0; }
.shop-card-name { font-size: 15px; font-weight: 600; line-height: 1.5; }
.shop-card-note { flex: 1; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.shop-card-meta { color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px; }
.shop-card-price { font-size: 17px; font-weight: 600; }
.shop-card-price i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* 订单区块 */
.shop-block { margin-top: 44px; }
.shop-block-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.shop-block-title { font-size: 18px; font-weight: 600; }
.shop-block-head .shop-chips { margin-left: auto; }
.shop-line { margin-bottom: 12px; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.shop-line-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.shop-orders { display: flex; flex-direction: column; gap: 14px; }
.shop-orders:empty { display: none; }

/* 折叠的订单查询 */
.shop-fold { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.shop-fold > summary { padding: 14px 18px; color: var(--text-muted); font-size: 14px; cursor: pointer; list-style: none; }
.shop-fold > summary::-webkit-details-marker { display: none; }
.shop-fold > summary::after { content: "＋"; float: right; color: var(--text-muted); }
.shop-fold[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); }
.shop-fold[open] > summary::after { content: "－"; }
.shop-fold-body { padding: 16px 18px 18px; }

/* 订单卡片 */
.order-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.order-card.is-done { background: #fbfcfd; }
.order-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.order-name { font-size: 15px; font-weight: 600; }
.order-badge {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.order-badge.is-pending { color: #8a6a12; background: #fdf8e8; border-color: #f0e2b6; }
.order-badge.is-paid { color: #1f5b8a; background: #eef5fb; border-color: #c6ddf0; }
.order-badge.is-done { color: #2f6b3a; background: #eef8f0; border-color: #c9e6d0; }
.order-badge.is-closed { color: var(--text-muted); background: #f4f5f7; border-color: var(--line); }
.order-amount { margin-left: auto; font-weight: 600; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 20px; }
.order-field { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13px; }
.order-field i { flex: none; font-style: normal; color: var(--text-muted); }
.order-field b { font-weight: 600; word-break: break-all; }
.order-code { padding: 1px 7px; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg-soft); letter-spacing: .5px; }
.order-code.is-plain { border-style: solid; }
.order-code[data-copy], .order-card-code[data-copy], .buy-card-code[data-copy] { cursor: pointer; }
.order-cards {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.order-cards i { flex: none; font-style: normal; color: var(--text-muted); }
.order-card-code, .buy-card-code {
  padding: 3px 9px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  word-break: break-all;
}
.order-remark { margin-top: 10px; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.order-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.order-hint { color: var(--text-muted); font-size: 13px; }

/* 订单查询表单 */
.query-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 14px; }
.query-form .buy-field { margin-bottom: 0; }
.query-form .btn { white-space: nowrap; }

/* 下单弹窗 */
.shop-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 27, 31, .45);
  animation: fade-in .2s ease both;
}
.shop-dialog {
  display: flex;
  flex-direction: column;
  width: min(540px, 100%);
  max-height: 100%;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 60px rgba(18, 21, 26, .22);
  animation: modal-up .24s ease both;
}
.shop-dialog-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.shop-dialog-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.shop-dialog-close {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.shop-dialog-close:hover { color: var(--text); border-color: #d5d9df; background: #fbfbfc; }
.shop-dialog-body { padding: 18px; overflow: auto; }
.shop-dialog-foot { display: flex; gap: 10px; padding: 0 18px 18px; }
.shop-dialog-foot .btn { flex: 1; justify-content: center; }

.buy-item { display: flex; gap: 14px; margin-bottom: 16px; }
.buy-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text-muted);
}
.buy-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.buy-price { font-size: 17px; font-weight: 600; }
.buy-stock, .buy-delivery { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.buy-note { color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buy-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.buy-field > span { color: var(--text-muted); font-size: 13px; }
.buy-field input, .buy-field select, .buy-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.buy-field input:focus, .buy-field select:focus, .buy-field textarea:focus {
  outline: none;
  border-color: #c3c8d0;
  box-shadow: 0 0 0 3px rgba(29, 32, 37, .06);
}
.buy-field-block { margin-bottom: 12px; }

/* 支付方式 */
.pay-list { display: flex; flex-direction: column; gap: 8px; }
.pay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pay-item:hover { color: var(--text); border-color: #d5d9df; background: #fbfbfc; }
.pay-item.is-active { color: var(--text); border-color: var(--dark); background: #f7f8fa; box-shadow: 0 0 0 3px rgba(29, 32, 37, .06); }
.pay-item.is-off { opacity: .55; cursor: not-allowed; }
.pay-item .icon-pay { color: var(--text); }
.pay-item.is-off .icon-pay { color: var(--text-muted); }
.pay-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-meta b { color: var(--text); font-size: 14px; font-weight: 600; }
.pay-meta i { font-style: normal; font-size: 12px; line-height: 1.7; }

.buy-balance { margin-top: 2px; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.buy-balance.is-warn { color: #b3261e; }
.buy-total { margin-top: 10px; color: var(--text-muted); font-size: 14px; }
.buy-total strong { margin-left: 6px; color: var(--text); font-size: 20px; }

.buy-msg {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
.buy-msg.is-warn { border-color: #f0e2b6; background: #fdf8e8; color: #8a6a12; }
.buy-msg.is-error { border-color: #e7c3c0; background: #fdf6f5; color: #b3261e; }

/* 下单结果 */
.buy-done-title { margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.buy-result-grid { display: grid; gap: 8px; margin-bottom: 12px; }
.buy-result-field { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.buy-result-field i { flex: none; font-style: normal; color: var(--text-muted); }
.buy-result-field b { font-weight: 600; word-break: break-all; }
.buy-code { padding: 2px 8px; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg-soft); letter-spacing: .5px; }
.buy-code[data-copy] { cursor: pointer; }
.buy-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.buy-cards-title { color: var(--text-muted); font-size: 13px; }
.buy-card-code { background: #fff; }

/* 人工收款：管理员配置的收款码 */
.buy-qr {
  display: block;
  width: 168px;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* 脚本用 hidden 控制显示的元素（作者样式的 display 会盖掉浏览器默认规则） */
.shop-page [hidden], .shop-mask [hidden], .shop-fold [hidden] { display: none !important; }
/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero { padding: 84px 0 72px; }

  .nav { gap: 14px; font-size: 13px; }

  .about-block,
  .about-block.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-block.reverse .about-media { order: 0; }

  .gallery-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

  .chip { flex-wrap: wrap; justify-content: center; }

  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .shop-group-count { display: none; }
  .shop-fold > summary { padding: 13px 16px; }
  .shop-fold-body { padding: 14px 16px 16px; }
}

@media (max-width: 620px) {
  .contact-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; justify-content: center; }
  .nav-auth { width: 100%; text-align: center; }
  .auth-btn { justify-content: center; }
  .auth-menu { left: 0; right: 0; min-width: 0; }
  .modal { padding: 26px 20px 22px; }
  .modal-wide { width: 100%; }
  .fb-tabs { flex-wrap: wrap; }
  .fb-time { margin-left: 0; }
  .fb-actions .btn { flex: 1; }

  .panel-body { padding: 16px; }
  .panel-head { padding: 12px 16px; }

  .shop-page { padding: 40px 0 56px; }
  .shop-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .shop-search, .shop-search input { width: 100%; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .shop-card-cover { height: 84px; }
  .shop-block-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .shop-block-head .shop-chips { margin-left: 0; }
  .shop-mask { padding: 12px; align-items: flex-start; }
  .shop-dialog { max-height: calc(100% - 8px); }
  .buy-item { flex-direction: column; gap: 10px; }
  .buy-cover { width: 52px; height: 52px; }
  .buy-row { grid-template-columns: 1fr; }
  .query-form { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .order-amount { margin-left: 0; }
}

/* ============================================================
   背景氛围与细节装饰（新增）
   —— 光束、噪点、主视觉粒子、区块氛围、卡片质感
   ============================================================ */

/* ---------- 全局：柔和光束 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -12% -8%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 16% 6%, rgba(148, 176, 212, .30), transparent 62%),
    radial-gradient(52% 38% at 88% 34%, rgba(178, 168, 210, .20), transparent 64%),
    radial-gradient(58% 40% at 62% 96%, rgba(140, 180, 178, .20), transparent 62%);
  filter: blur(6px);
  animation: hxBreathe 22s ease-in-out infinite;
}
@keyframes hxBreathe {
  0%, 100% { opacity: .78; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* ---------- 全局：细噪点（让灰白不那么“平”） ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

/* ---------- 主视觉：背后光晕 + 漂浮粒子 ---------- */
.hero::before {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  width: min(920px, 130%); height: 520px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%);
  /* 白色光晕在纯色背景上没有意义，关掉；删掉这一行即可恢复 */
  display: none;
}
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 9% 26%, rgba(88, 118, 158, .45), transparent 60%),
    radial-gradient(2px 2px at 21% 64%, rgba(88, 118, 158, .30), transparent 60%),
    radial-gradient(1.6px 1.6px at 33% 18%, rgba(120, 108, 158, .40), transparent 60%),
    radial-gradient(2px 2px at 46% 74%, rgba(88, 118, 158, .26), transparent 60%),
    radial-gradient(1.8px 1.8px at 61% 30%, rgba(120, 108, 158, .34), transparent 60%),
    radial-gradient(2px 2px at 74% 66%, rgba(88, 118, 158, .30), transparent 60%),
    radial-gradient(1.6px 1.6px at 86% 22%, rgba(120, 108, 158, .38), transparent 60%),
    radial-gradient(2px 2px at 94% 58%, rgba(88, 118, 158, .26), transparent 60%);
  animation: hxTwinkle 9s ease-in-out infinite alternate;
}
@keyframes hxTwinkle {
  0%   { opacity: .35; transform: translateY(0); }
  100% { opacity: .9;  transform: translateY(-8px); }
}

/* ---------- 区块氛围：两侧柔光，避免大片纯色 ---------- */
.info, .about, .contact { position: relative; }
.info::before,
.about::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(420px 260px at 4% 12%, rgba(150, 176, 210, .14), transparent 68%),
    radial-gradient(420px 260px at 98% 88%, rgba(172, 176, 208, .12), transparent 68%);
}
.info > .container,
.about > .container,
.contact > .container { position: relative; z-index: 1; }

.info {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 255, 255, .9), transparent 70%),
    linear-gradient(180deg, rgba(245, 246, 248, .82), rgba(238, 241, 245, .72));
}

/* ---------- 卡片质感：玻璃感 + 顶部高光 ---------- */
.info-card,
.contact-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(24, 30, 40, .07);
}
.info-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(120, 150, 190, .55), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.info-card:hover::after,
.contact-card:hover::after { opacity: 1; }

/* ---------- 区块标题：加一点光晕 ---------- */
.section-title { text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.section-title::after {
  box-shadow: 0 4px 14px rgba(29, 32, 37, .18);
}

/* ---------- 底部按钮：描边按钮更“实”一点 ---------- */
.btn-light {
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn-light:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* ---------- 面板与按钮：更细腻的层次与反馈 ---------- */
.panel {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(24, 30, 40, .06);
}
.btn {
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease,
              color .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[disabled] { transform: none; }
.chip { transition: transform .18s ease, background .2s ease, border-color .2s ease; }
.chip:hover { transform: translateY(-1px); }
.badge {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .85);
  transition: transform .18s ease, box-shadow .22s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(24, 30, 40, .08); }

/* ---------- 小屏与省电模式：收敛装饰 ---------- */
@media (max-width: 768px) {
  .bg-decor::before, .bg-decor::after { opacity: .38; filter: blur(70px); }
  body::before { animation: none; opacity: .7; }
  .hero-scene::after { animation: none; opacity: .55; }
  .site-footer { padding: 42px 0 28px; }
  .footer-tagline { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-decor::before, .bg-decor::after, body::before, .hero-scene::after { animation: none !important; }
}

/* ---------- 截图墙：两行反向滚动的服务器实拍 ----------
   图片放在 images/marquee/，源图在根目录的“滚动图片”文件夹（已压缩到宽 720）。
   每一行里同一组图各出现两遍，所以轨道平移 -50% 时能无缝接上。 */
.gallery {
  position: relative;
  padding: 6px 0 58px;
  overflow: hidden;
  /* 与上面的主视觉连成一整块白色，再在底部慢慢渐隐回页面背景：
     这样顶部不会被切成生硬的色块，截图墙像是首屏的一部分。 */
  background: linear-gradient(180deg, #fff 0%, #fff 52%, rgba(255, 255, 255, .62) 80%, rgba(255, 255, 255, 0) 100%);
}
.gallery-row {
  position: relative;
  overflow: hidden;
  padding: 9px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.gallery-track {
  display: flex;
  width: max-content;
  animation: hxMarqueeLeft 46s linear infinite;
  will-change: transform;
}
.gallery-row--right .gallery-track {
  animation-name: hxMarqueeRight;
  animation-duration: 52s;
}
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-item {
  flex: 0 0 auto;
  width: auto;
  height: 196px;
  margin-right: 16px;          /* 用外边距而不是 gap，平移 -50% 才是无缝循环 */
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(24, 30, 40, .08);
  object-fit: cover;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(24, 30, 40, .16);
}
@keyframes hxMarqueeLeft {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes hxMarqueeRight {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@media (max-width: 768px) {
  .gallery { padding: 4px 0 40px; }
  .gallery-item { height: 132px; margin-right: 12px; }
}
/* 截图墙一直保持自动滚动（需求如此），只额外允许手动横向拖动看清细节 */
@media (prefers-reduced-motion: reduce) {
  .gallery-row { overflow-x: auto; }
}
