/* =========================================================
   tech.html 技术说明页独有样式
   版式：代码窗口 hero + SVG 图标栈卡 + 性能指标卡 + 兼容矩阵 + 安全双栏 + 规范小方卡
   ========================================================= */

/* ---------- 1. Hero 代码窗口 ---------- */
.tech-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--topbar-h) + 56px) 0 90px;
  background: linear-gradient(150deg, #EDE4CF 0%, var(--cream) 60%, var(--green) 140%);
  overflow: hidden;
}
.tech-hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
}
.tech-bread { margin-bottom: 18px; font-size: .88rem; color: var(--ink-3); }
.tech-bread a { font-weight: 600; color: var(--ink-2); }
.tech-bread span { margin: 0 8px; }
.tech-bread em { font-style: normal; color: var(--green-3); font-weight: 600; }
.tech-kicker { font-size: .82rem; letter-spacing: 3px; color: var(--green-3); font-weight: 700; margin-bottom: 12px; }
.tech-hero-copy h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.tech-sub { max-width: 540px; margin-bottom: 26px; }
.tech-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.tech-window {
  overflow: hidden;
  background: #2E2A24;
  border-radius: 18px;
  box-shadow: var(--clay-shadow-lg);
}
.tech-window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #3A352D;
}
.tw-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow-2); }
.tw-dot:nth-child(2) { background: var(--green-2); }
.tw-dot:nth-child(3) { background: #E8A9A0; }
.tech-window-bar em {
  margin-left: 10px; font-style: normal; font-size: .78rem; color: #C9BFA9;
}
.tech-window-code {
  padding: 20px 22px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: .86rem; line-height: 1.75;
  color: #EDE4CF;
  overflow-x: auto;
}
.c-tag { color: #A7C99A; }
.c-attr { color: #EED191; }
.c-str { color: #E8A9A0; }
.c-comment { color: #8A8172; }

/* ---------- 2. 技术栈图标组 ---------- */
.tech-stack-sec { background: var(--cream); }
.tech-stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tech-stack { padding: 34px 28px; text-align: center; border-radius: 30px; }
.tech-stack-ico {
  width: 96px; height: 96px; margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FDF6E4, var(--yellow));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--clay-shadow-sm);
}
.tech-stack h3 { margin-bottom: 10px; }
.tech-stack p { font-size: .94rem; }

/* ---------- 3. 性能指标卡 + 图 ---------- */
.tech-perf-sec { background: var(--cream-2); }
.tech-perf-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px;
}
.tech-perf { padding: 30px 18px; text-align: center; }
.tech-perf b { display: block; font-size: 1.7rem; color: var(--green-3); margin-bottom: 6px; }
.tech-perf span { font-size: .86rem; color: var(--ink-2); }
.tech-perf-note { text-align: center; font-size: .93rem; margin: -18px 0 30px; }
.tech-perf-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--clay-shadow); position: relative; }
.tech-perf-img img { width: 100%; height: 380px; object-fit: cover; }
.tech-perf-cap {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(255,249,239,.94);
  padding: 8px 18px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--ink);
}

/* ---------- 4. 兼容矩阵 ---------- */
.tech-compat-sec { background: var(--cream); }
.tech-compat-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--clay-shadow-sm); }
.tech-compat-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #FFFDF6; }
.tech-compat-table th, .tech-compat-table td {
  padding: 16px 22px; text-align: left; font-size: .95rem;
  border-bottom: 1px dashed var(--line);
}
.tech-compat-table thead th { background: var(--green); color: #3F5238; }
.tech-compat-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 5. 安全与备份 ---------- */
.tech-security-sec { background: var(--cream-2); }
.tech-security-wrap {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.tech-security-copy .sec-kicker {
  display: inline-block; font-size: .82rem; letter-spacing: 3px;
  color: var(--green-3); font-weight: 700; margin-bottom: 10px;
}
.tech-security-copy h2 { margin-bottom: 20px; }
.tech-security-card { padding: 30px 28px; border-radius: 36px; }
.tech-security-card h3 { margin-bottom: 12px; }
.tech-security-card p { font-size: .94rem; margin-bottom: 12px; }

/* ---------- 6. 开发规范 ---------- */
.tech-rule-sec { background: var(--cream); }
.tech-rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-rule { padding: 26px 22px; }
.tech-rule b {
  display: inline-block; margin-bottom: 10px;
  background: var(--yellow); padding: 4px 14px; border-radius: 999px; font-size: .92rem;
}
.tech-rule p { font-size: .92rem; }

/* ---------- 6b. 收尾 ---------- */
.tech-final-copy { max-width: 720px; margin: 26px auto 0; text-align: center; font-size: 1.02rem; line-height: 1.9; }

/* ---------- 6a. 技术问答 ---------- */
.tech-qa { max-width: 760px; margin: 40px auto 0; display: grid; gap: 12px; }
.tech-qa h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tech-qa-item { background: #FFFDF6; border-radius: var(--radius); box-shadow: var(--clay-shadow-sm); padding: 4px 24px; }
.tech-qa-item summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; }
.tech-qa-item summary::-webkit-details-marker { display: none; }
.tech-qa-item p { padding: 0 0 16px; font-size: .95rem; }

/* ---------- 7. CTA ---------- */
.tech-cta-sec {
  background: linear-gradient(150deg, #3A352D 0%, #5B5346 100%);
  padding: clamp(56px, 8vw, 96px) 0;
}
.tech-cta-inner { text-align: center; }
.tech-cta-inner h2 { color: #F6E3B4; margin-bottom: 14px; }
.tech-cta-inner p { color: #EDE4CF; margin-bottom: 26px; }
.tech-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .tech-hero-inner { grid-template-columns: 1fr; }
  .tech-stack-grid { grid-template-columns: 1fr; }
  .tech-perf-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-security-wrap { grid-template-columns: 1fr; }
  .tech-rule-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tech-perf-grid { grid-template-columns: 1fr; }
  .tech-rule-grid { grid-template-columns: 1fr; }
}
