/* ==========================================================================
   潮码科技 · 企业官网 UI 原型
   设计系统 Design Tokens —— 未来科技感 / Future-Tech
   ========================================================================== */

:root {
  /* 背景层级 */
  --bg-0: #03060E;
  --bg-1: #070C1A;
  --bg-2: #0B1226;
  --bg-3: #101A33;

  /* 玻璃面板 */
  --panel: rgba(14, 22, 45, 0.72);
  --panel-solid: #0E162D;
  --panel-hi: rgba(24, 36, 68, 0.85);

  /* 描边 */
  --line: rgba(120, 160, 230, 0.14);
  --line-2: rgba(120, 160, 230, 0.26);
  --line-cyan: rgba(0, 229, 255, 0.42);

  /* 文字 */
  --t0: #EAF2FF;
  --t1: #A9BAD9;
  --t2: #6D7EA5;
  --t3: #4A597C;

  /* 品牌色 */
  --cyan: #00E5FF;
  --violet: #7C4DFF;
  --magenta: #FF2E93;
  --lime: #29F5B0;
  --amber: #FFB020;

  --grad: linear-gradient(120deg, #00E5FF 0%, #7C4DFF 100%);
  --grad-soft: linear-gradient(120deg, rgba(0, 229, 255, .16), rgba(124, 77, 255, .16));
  --glow-cyan: 0 0 24px rgba(0, 229, 255, .35);
  --glow-violet: 0 0 28px rgba(124, 77, 255, .35);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;

  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--t0);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 未来科技感背景：网格 + 光晕 + 噪点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(0, 229, 255, .14), transparent 62%),
    radial-gradient(800px 520px at 92% 4%, rgba(124, 77, 255, .16), transparent 60%),
    radial-gradient(700px 420px at 50% 108%, rgba(255, 46, 147, .09), transparent 62%),
    linear-gradient(180deg, #04070F 0%, #060B18 45%, #04070F 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.page { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(5, 9, 19, .72);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .55), rgba(124, 77, 255, .55), transparent);
  opacity: .7;
}
.nav-row { display: flex; align-items: center; gap: 34px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 46px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, .4));
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 9px; color: var(--t2); letter-spacing: 2.4px; font-family: var(--mono); text-transform: uppercase; line-height: 1; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; color: var(--t1);
  position: relative; transition: .22s; white-space: nowrap;
}
.nav a:hover { color: var(--t0); background: rgba(0, 229, 255, .07); }
.nav a.active { color: #04070F; background: var(--grad); font-weight: 600; box-shadow: var(--glow-cyan); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); color: var(--t0);
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: .22s; white-space: nowrap;
}
.btn:hover { border-color: var(--line-cyan); background: rgba(0, 229, 255, .08); color: var(--cyan); }
.btn-primary {
  background: var(--grad); border: none; color: #04070F; font-weight: 700;
  box-shadow: 0 6px 22px rgba(0, 229, 255, .28);
}
.btn-primary:hover { color: #04070F; filter: brightness(1.1); box-shadow: 0 8px 30px rgba(0, 229, 255, .45); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-icon { padding: 9px; width: 36px; height: 36px; border-radius: 10px; }

/* ===================== 通用区块 ===================== */
.section { padding: 82px 0; position: relative; }
.section-sm { padding: 54px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--cyan); padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 229, 255, .07); border: 1px solid rgba(0, 229, 255, .28);
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.h1 { font-size: 50px; line-height: 1.16; font-weight: 800; letter-spacing: -.6px; }
.h2 { font-size: 34px; line-height: 1.24; font-weight: 700; letter-spacing: -.4px; }
.h3 { font-size: 20px; font-weight: 650; }
.h4 { font-size: 16px; font-weight: 650; }
.lead { color: var(--t1); font-size: 15px; line-height: 1.9; }
.muted { color: var(--t2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin: 16px 0 14px; }

/* ===================== 卡片 / 玻璃 ===================== */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: .28s;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-cyan);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 229, 255, .12);
}
.card-glow::before {
  content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .55;
}

/* 图标容器 */
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan); flex-shrink: 0;
}
.ico-sm { width: 34px; height: 34px; border-radius: 10px; }
.ico-lg { width: 56px; height: 56px; border-radius: 16px; }

/* ===================== 网格 ===================== */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }

/* ===================== 徽标 / 标签 ===================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--t1);
}
.badge-cyan { color: var(--cyan); border-color: rgba(0, 229, 255, .4); background: rgba(0, 229, 255, .1); }
.badge-violet { color: #B39BFF; border-color: rgba(124, 77, 255, .45); background: rgba(124, 77, 255, .13); }
.badge-lime { color: var(--lime); border-color: rgba(41, 245, 176, .4); background: rgba(41, 245, 176, .1); }
.badge-amber { color: var(--amber); border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .1); }
.badge-magenta { color: #FF7CB8; border-color: rgba(255, 46, 147, .4); background: rgba(255, 46, 147, .1); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11.5px;
  font-family: var(--mono); background: rgba(120, 170, 255, .08);
  border: 1px solid var(--line); color: var(--t1);
}

/* 勾选框（登录页 / 后台表格 / 表单通用） */
.check {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; font-size: 13px; color: var(--t1); cursor: pointer;
  user-select: none;
}
.check i {
  width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--line-2);
  display: grid; place-items: center; flex-shrink: 0; transition: .2s;
  font-style: normal; position: relative;
}
.check:hover i { border-color: var(--line-cyan); }
.check.on i { background: var(--grad); border-color: transparent; }
.check.on i::after { content: "✓"; font-size: 10px; color: #04070F; font-weight: 900; line-height: 1; }

/* 图文条目（带勾的行内列表） */
.feat-line { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 13.2px; color: var(--t1); }
.feat-line svg { flex-shrink: 0; margin-top: 4px; }

/* ===================== 表单 ===================== */
.field { margin-bottom: 18px; }
.label { display: block; font-size: 13px; color: var(--t1); margin-bottom: 8px; font-weight: 500; }
.label .req { color: var(--magenta); margin-left: 3px; }
.input, .textarea, .select {
  width: 100%; padding: 12px 15px; border-radius: var(--r-sm);
  background: rgba(6, 11, 24, .82); border: 1px solid var(--line-2);
  color: var(--t0); font-size: 13.5px; transition: .2s; outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--t3); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .12); background: rgba(6, 11, 24, .95);
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.7; }
.select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236D7EA5' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.hint { font-size: 11.5px; color: var(--t2); margin-top: 6px; }

/* ===================== 表格 ===================== */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 13px 16px; color: var(--t2); font-weight: 500;
  font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2); background: rgba(8, 14, 30, .6); white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--t1); vertical-align: middle; }
.table tbody tr { transition: .18s; }
.table tbody tr:hover { background: rgba(0, 229, 255, .045); }
.table tbody tr:last-child td { border-bottom: none; }

/* ===================== 面包屑 ===================== */
.crumb { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--t2); }
.crumb a:hover { color: var(--cyan); }
.crumb .sep { color: var(--t3); }
.crumb .cur { color: var(--t0); }

/* ===================== 页头 Banner ===================== */
.pagehead {
  padding: 54px 0 44px; position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 229, 255, .05), transparent 70%);
}
.pagehead .h2 { margin: 14px 0 10px; }

/* ===================== 占位图（原型用） ===================== */
.mock {
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .12), rgba(124, 77, 255, .14)),
    repeating-linear-gradient(45deg, rgba(120, 170, 255, .05) 0 8px, transparent 8px 16px);
  border: 1px solid var(--line-2);
  border-radius: var(--r); display: grid; place-items: center;
  color: var(--t2); font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px;
  position: relative; overflow: hidden;
}
.mock::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 229, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ===================== 页脚 ===================== */
.site-footer { border-top: 1px solid var(--line); background: rgba(4, 7, 15, .8); margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 54px 0 40px; }
.footer-col h5 { font-size: 13.5px; margin-bottom: 16px; color: var(--t0); font-weight: 650; }
.footer-col a, .footer-col li { display: block; font-size: 13px; color: var(--t2); padding: 5px 0; transition: .2s; }
.footer-col a:hover { color: var(--cyan); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--t3); flex-wrap: wrap; gap: 10px;
}

/* ===================== 工具类 ===================== */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-40 { gap: 40px; }
.mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; } .mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; } .mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; } .text-right { text-align: right; }
.f1 { flex: 1; } .w-full { width: 100%; }
.relative { position: relative; }
.small { font-size: 12.5px; }
.strong { font-weight: 650; color: var(--t0); }

/* 分隔线 */
.hr { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.hr-glow { height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .5), transparent); }

/* ===================== 原型交互补充样式 ===================== */

/* 通用隐藏（Tab 面板 / 后台视图 / FAQ 答案） */
[hidden] { display: none !important; }

/* 轻提示 */
.proto-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 18px);
  padding: 11px 22px; border-radius: 999px; z-index: 9999;
  background: rgba(10, 17, 36, .96); border: 1px solid var(--line-cyan);
  color: var(--cyan); font-size: 13px; white-space: nowrap;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 22px rgba(0, 229, 255, .22);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  backdrop-filter: blur(12px); max-width: 86vw; overflow: hidden; text-overflow: ellipsis;
}
.proto-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 交互元素手型 */
.chip, .tags-cloud span, .check, .flist li, .sorts button, .pager a,
.tabs button, .tabs2 button, .thumbs .mock, .faq .q, .quick, .link-act,
.switch-code, .tb-icon, .upload, .amenu a { cursor: pointer; }

.tabs button, .sorts button, .chip, .pager a, .third a, .btn, .amenu a {
  user-select: none; -webkit-user-select: none;
}

@keyframes protoFade { from { opacity: .25; } to { opacity: 1; } }

/* FAQ 展开态 */
.faq .q.open { color: var(--cyan); }
.faq .a { animation: protoFade .3s ease; }

/* 产品详情 Tab 面板 */
[data-pane] { animation: protoFade .32s ease; }

/* ===================== 产品列表：筛选联动 ===================== */

/* 视图切换：网格 / 列表 */
.plist.list { grid-template-columns: 1fr; gap: 14px; }
.plist.list .pcard { flex-direction: row; }
.plist.list .pcard .mock {
  width: 238px; min-width: 238px; height: auto; min-height: 168px;
  border-bottom: none; border-right: 1px solid var(--line);
}
.plist.list .pbody { padding: 18px 22px; }
.plist.list .pbody .desc { max-width: 760px; }
.plist.list .pfoot { border-top: none; padding-top: 2px; }

/* 产品卡进出场 */
.pcard { animation: protoFade .3s ease; }

/* 已选筛选条件条 */
.active-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 16px; margin-bottom: 16px; border-radius: var(--r);
  background: rgba(0, 229, 255, .05); border: 1px dashed var(--line-cyan);
  animation: protoFade .28s ease;
}
.active-filters .af {
  font-size: 12px; padding: 3px 11px; border-radius: 999px; cursor: pointer;
  background: rgba(0, 229, 255, .12); border: 1px solid var(--line-cyan); color: var(--cyan);
  transition: .2s; user-select: none;
}
.active-filters .af:hover { background: rgba(0, 229, 255, .24); color: var(--t0); }
.active-filters .af::after { content: "×"; margin-left: 6px; opacity: .75; font-weight: 700; }
.active-filters .clear-all { margin-left: auto; font-size: 12.5px; color: var(--t2); }
.active-filters .clear-all:hover { color: var(--magenta); }

/* 空结果态 */
.plist-empty {
  grid-column: 1 / -1; text-align: center; padding: 62px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--t1);
  background: rgba(8, 14, 30, .45);
}
.plist-empty .em-ico { font-size: 40px; opacity: .4; margin-bottom: 14px; line-height: 1; }
.plist-empty .em-t { font-size: 15.5px; color: var(--t0); font-weight: 600; margin-bottom: 6px; }

/* 侧边分组标题右侧的「重置」 */
.fgroup h4 .fg-reset { margin-left: auto; font-size: 11.5px; color: var(--t3); cursor: pointer; font-weight: 400; }
.fgroup h4 .fg-reset:hover { color: var(--magenta); }
.fgroup h4 { position: relative; }

/* 筛选分组内筛选生效的计数高亮 */
.flist li.dim { color: var(--t3); }
.flist li.dim .cnt { opacity: .6; }

@media (max-width: 1080px) {
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .h1 { font-size: 38px; }
  .h2 { font-size: 27px; }
}

@media (max-width: 720px) {
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .section { padding: 54px 0; }
  .plist.list .pcard { flex-direction: column; }
  .plist.list .pcard .mock {
    width: auto; min-width: 0; height: 150px; min-height: 0;
    border-right: none; border-bottom: 1px solid var(--line);
  }
}
