/* ============================================================
   Reverie · 技术服务页 —— 技术风视觉层
   只在 body.tech 下生效，不影响玩家主页那 6 个页面
   ============================================================ */

body.tech {
  --tech-bg: #05070b;
  --tech-bg-2: #080c12;
  --tech-line: #1a2432;
  --tech-line-2: #26313f;
  --tech-cyan: #37e6c8;
  --tech-blue: #6ea8ff;
  --tech-dim: #7d8b9c;
  --tech-ink: #dfe8f2;
  --tech-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;

  background:
    linear-gradient(180deg, rgba(55, 230, 200, 0.045), transparent 420px),
    radial-gradient(1000px 620px at 78% -12%, rgba(110, 168, 255, 0.14), transparent 62%),
    radial-gradient(760px 480px at 8% 8%, rgba(55, 230, 200, 0.10), transparent 60%),
    var(--tech-bg);
  color: var(--tech-ink);
  font-family: var(--tech-mono);
  line-height: 1.7;
}

/* 网格底纹 */
body.tech::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(55, 230, 200, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 230, 200, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

body.tech main,
body.tech .site-header,
body.tech .site-footer { position: relative; z-index: 1; }

/* ---------------- 顶栏在技术页的强调色 ---------------- */
body.tech .site-header {
  background: rgba(5, 7, 11, 0.86);
  border-bottom-color: var(--tech-line);
}
body.tech .brand small { color: var(--tech-cyan); letter-spacing: 0.22em; }
body.tech .nav-menu a:not(.btn) {
  font-family: var(--tech-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}
body.tech .nav-menu a:not(.btn):hover { color: var(--tech-cyan); }
body.tech .nav-menu a[aria-current="page"] { color: var(--tech-cyan); }
body.tech .nav-menu a[aria-current="page"]::after { background: var(--tech-cyan); }
body.tech .nav-cta.btn-primary {
  background: var(--tech-cyan);
  color: #04120f;
  clip-path: var(--clip-angle-sm);
}
body.tech .nav-cta.btn-primary:hover { background: #61f2da; }

/* 技术页里模式切换的选中态用青绿，别用玩家页的红色 */
body.tech .mode-opt.is-active { background: var(--tech-cyan); color: #04120f; }

/* ---------------- 通用排版 ---------------- */
.t-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--tech-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tech-cyan);
}
.t-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--tech-cyan);
  opacity: 0.7;
}

/* ---------------- Hero ---------------- */
.t-hero {
  padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(2rem, 4vw, 3rem);
}
.t-cmd {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--tech-dim);
  border: 1px solid var(--tech-line);
  background: rgba(8, 12, 18, 0.85);
  padding: 0.45rem 0.85rem;
  border-radius: 3px;
  margin-bottom: 1.6rem;
}
.t-cmd b { color: var(--tech-cyan); font-weight: 600; }
.t-cmd i { color: var(--tech-blue); font-style: normal; }
.t-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--tech-cyan);
  animation: t-blink 1.1s steps(1) infinite;
  translate: 0 1px;
}
@keyframes t-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.t-h1 {
  font-family: var(--tech-mono);
  font-size: clamp(1.9rem, 5.2vw, 3.35rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 1.1rem;
}
.t-h1 .t-em {
  color: var(--tech-cyan);
  text-shadow: 0 0 26px rgba(55, 230, 200, 0.35);
}
.t-sub {
  color: var(--tech-dim);
  font-size: 0.95rem;
  max-width: 42rem;
  margin: 0 0 1.8rem;
}
.t-sub strong { color: var(--tech-ink); }

.t-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.6rem; }
.t-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tech-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--tech-cyan);
  color: #04120f;
  background: var(--tech-cyan);
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.t-btn:hover { background: #61f2da; transform: translateY(-1px); box-shadow: 0 12px 30px -14px rgba(55, 230, 200, 0.9); }
.t-btn.ghost {
  background: transparent;
  color: var(--tech-ink);
  border-color: var(--tech-line-2);
}
.t-btn.ghost:hover { border-color: var(--tech-cyan); color: var(--tech-cyan); box-shadow: none; }

/* ---------------- 概览数字 ---------------- */
.t-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--tech-line);
  border-radius: 3px;
  background: rgba(8, 12, 18, 0.6);
}
.t-stat { padding: 1.05rem 1.1rem; border-right: 1px solid var(--tech-line); }
.t-stat:last-child { border-right: 0; }
.t-stat b {
  display: block;
  font-size: 1.5rem;
  color: var(--tech-cyan);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.t-stat span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tech-dim); }

/* ---------------- 区块 ---------------- */
.t-section { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.t-sec-head { margin-bottom: 2rem; }
.t-sec-head h2 {
  font-family: var(--tech-mono);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  margin: 0.55rem 0 0.4rem;
}
.t-sec-head p { color: var(--tech-dim); font-size: 0.9rem; margin: 0; max-width: 40rem; }
.t-sec-index {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--tech-cyan);
  text-transform: uppercase;
}

/* ---------------- 服务卡 ---------------- */
.t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.t-card {
  position: relative;
  border: 1px solid var(--tech-line);
  background: linear-gradient(170deg, rgba(20, 28, 38, 0.75), rgba(8, 12, 18, 0.85));
  padding: 1.35rem 1.3rem 1.25rem;
  border-radius: 3px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.t-card:hover { border-color: rgba(55, 230, 200, 0.55); transform: translateY(-2px); }
.t-card::after {
  content: "";
  position: absolute;
  top: -1px; left: 1.3rem;
  width: 40px; height: 2px;
  background: var(--tech-cyan);
  opacity: 0.75;
}
.t-card h3 {
  font-family: var(--tech-mono);
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.01em;
}
.t-card p { margin: 0; font-size: 0.84rem; color: var(--tech-dim); line-height: 1.65; }
.t-card .t-price {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  border-top: 1px dashed var(--tech-line-2);
  font-size: 0.78rem;
  color: var(--tech-dim);
}
.t-card .t-price b { color: var(--tech-cyan); font-size: 1.05rem; }

/* ---------------- 标签 ---------------- */
.t-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.t-tag {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tech-blue);
  border: 1px solid rgba(110, 168, 255, 0.35);
  background: rgba(110, 168, 255, 0.07);
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
}

/* ---------------- 案例 ---------------- */
.t-cases { display: grid; gap: 1rem; }
.t-case {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  border: 1px solid var(--tech-line);
  background: rgba(8, 12, 18, 0.62);
  padding: 1.25rem 1.35rem;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.t-case:hover { border-color: var(--tech-line-2); background: rgba(14, 20, 28, 0.9); }
.t-case-no {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--tech-cyan);
}
.t-case-no b { display: block; font-size: 1.5rem; color: var(--tech-ink); letter-spacing: 0; margin-top: 0.3rem; }
.t-case h3 { font-size: 0.98rem; margin: 0 0 0.35rem; font-family: var(--tech-mono); }
.t-case p { margin: 0 0 0.55rem; font-size: 0.83rem; color: var(--tech-dim); }
.t-case a.t-link {
  font-size: 0.78rem;
  color: var(--tech-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(55, 230, 200, 0.5);
  white-space: nowrap;
}
.t-case a.t-link:hover { border-bottom-style: solid; }

/* ---------------- 流程 ---------------- */
.t-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: s; }
.t-step {
  border: 1px solid var(--tech-line);
  border-top: 2px solid var(--tech-cyan);
  background: rgba(8, 12, 18, 0.6);
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: 3px;
}
.t-step::before {
  counter-increment: s;
  content: "0" counter(s);
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--tech-cyan);
  margin-bottom: 0.55rem;
}
.t-step h3 { font-size: 0.9rem; margin: 0 0 0.4rem; font-family: var(--tech-mono); }
.t-step p { margin: 0; font-size: 0.8rem; color: var(--tech-dim); }

/* ---------------- 报价表 ---------------- */
.t-table-wrap { border: 1px solid var(--tech-line); border-radius: 3px; overflow-x: auto; background: rgba(8, 12, 18, 0.6); }
.t-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 640px; }
.t-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tech-dim);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--tech-line);
  background: rgba(255, 255, 255, 0.02);
}
.t-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(26, 36, 50, 0.7); color: var(--tech-dim); vertical-align: top; }
.t-table tr:last-child td { border-bottom: 0; }
.t-table td:first-child { color: var(--tech-ink); font-weight: 600; white-space: nowrap; }
.t-table .t-money { color: var(--tech-cyan); white-space: nowrap; }

/* ---------------- 联系卡 ---------------- */
.t-contact {
  border: 1px solid rgba(55, 230, 200, 0.4);
  background:
    radial-gradient(600px 240px at 15% 0%, rgba(55, 230, 200, 0.13), transparent 70%),
    rgba(6, 10, 14, 0.9);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 3px;
}
.t-contact h2 { font-family: var(--tech-mono); font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 0.7rem; }
.t-contact p { color: var(--tech-dim); font-size: 0.88rem; margin: 0 0 1.4rem; max-width: 38rem; }
.t-id {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px dashed var(--tech-line-2);
  padding: 0.6rem 0.9rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.4rem;
}
.t-id small { display: block; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tech-dim); }
.t-id b { font-size: 1.1rem; color: var(--tech-cyan); letter-spacing: 0.04em; }
.t-copy {
  font-family: var(--tech-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--tech-line-2);
  background: transparent;
  color: var(--tech-dim);
  border-radius: 2px;
  cursor: pointer;
}
.t-copy:hover { border-color: var(--tech-cyan); color: var(--tech-cyan); }
.t-copy.copied { border-color: var(--tech-cyan); color: var(--tech-cyan); }

/* ---------------- FAQ ---------------- */
.t-faq { border-top: 1px solid var(--tech-line); }
.t-faq details { border-bottom: 1px solid var(--tech-line); }
.t-faq summary {
  cursor: pointer;
  padding: 1rem 0.2rem;
  font-size: 0.88rem;
  color: var(--tech-ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary::before { content: ">"; color: var(--tech-cyan); font-size: 0.8rem; }
.t-faq details[open] summary::before { content: "v"; }
.t-faq details p { margin: 0 0 1rem 1.4rem; font-size: 0.83rem; color: var(--tech-dim); }

/* ---------------- 不接清单 ---------------- */
.t-nope {
  border-left: 2px solid #ff6b6b;
  background: rgba(255, 107, 107, 0.05);
  padding: 1rem 1.2rem;
  border-radius: 2px;
}
.t-nope b { color: #ff8f8f; font-size: 0.8rem; letter-spacing: 0.1em; display: block; margin-bottom: 0.45rem; }
.t-nope p { margin: 0; font-size: 0.82rem; color: var(--tech-dim); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-stat:nth-child(2) { border-right: 0; }
  .t-stat:nth-child(1),
  .t-stat:nth-child(2) { border-bottom: 1px solid var(--tech-line); }
}
@media (max-width: 680px) {
  .t-grid { grid-template-columns: 1fr; }
  .t-steps { grid-template-columns: 1fr; }
  .t-case { grid-template-columns: 1fr; gap: 0.7rem; }
  .t-case-no { display: flex; align-items: baseline; gap: 0.6rem; }
  .t-case-no b { margin-top: 0; font-size: 1.1rem; }
  .t-actions .t-btn { width: 100%; justify-content: center; }
}
