/* 基础与主题 */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --faint: rgba(255,255,255,.58);
  --line: rgba(255,255,255,.12);
  --brand: #66e3ff;
  --brand2: #7c5cff;
  --danger: #ff4d6d;
  --shadow: 0 20px 80px rgba(0,0,0,.35);
  --r: 16px;
  --r2: 22px;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
html{ background: var(--bg); }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background-color: var(--bg);
}
a{ color: inherit; text-decoration: none; }
code{
  padding: .15em .35em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.25);
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.65);
  border: 1px solid var(--line);
}
.skip-link:focus{ left: 12px; z-index: 50; }

/* 头部 */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, .62);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand-mark{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(0,0,0,.88);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 14px 36px rgba(124,92,255,.22);
}
.brand-name{ font-weight: 800; font-size: 15px; }
.brand-sub{ font-size: 12px; color: var(--faint); margin-top: 2px; }

.nav{ display:flex; gap: 14px; }
.nav-link{
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}

/* Hero */
.hero{
  padding: 44px 0 26px;
}
.hero-title{
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.08;
}
.hero-desc{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.hero-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.meta-item{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.meta-k{ font-size: 12px; color: var(--faint); }
.meta-v{ font-size: 13px; font-weight: 700; margin-top: 2px; }

/* Section */
.section{ padding: 34px 0; }
.section.muted{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section-head{ margin-bottom: 14px; }
.section-title{ margin: 0 0 6px; font-size: 22px; letter-spacing: -.01em; }
.section-sub{ margin: 0; color: var(--muted); line-height: 1.7; font-size: 13.5px; }

/* Toolbar */
.toolbar{
  margin-top: 16px;
  display:flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--r2);
  padding: 12px;
}
.field{ display:flex; flex-direction: column; gap: 6px; min-width: 220px; flex: 1; }
.field-label{ font-size: 12px; color: var(--faint); }
.input,.select{
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  outline: none;
  color: var(--text);
  background: rgba(0,0,0,.18);
}
.input:focus,.select:focus{
  border-color: rgba(102,227,255,.38);
  box-shadow: 0 0 0 4px rgba(102,227,255,.10);
}
.toolbar-right{ display:flex; gap: 10px; align-items:center; margin-left: auto; }
.stat{
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}

/* Buttons */
.btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 700;
}
.btn:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.btn-primary{
  border-color: transparent;
  color: rgba(0,0,0,.86);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.btn-primary:hover{ filter: brightness(1.04); }
.btn-ghost{ background: transparent; }
.btn-ghost:hover{ background: rgba(255,255,255,.05); }

/* Grid */
.grid{
  margin-top: 14px;
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
.product{
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  overflow:hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  display:flex;
  flex-direction: column;
  min-height: 250px;
}
.product--image-only{
  min-height: 0;
}
.product--image-only .thumb{
  flex: 1;
}
.thumb{
  aspect-ratio: 4/3;
  background: rgba(0,0,0,.20);
  position: relative;
  overflow:hidden;
}
.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.0001);
  transition: transform .25s ease;
}
.product:hover .thumb img{ transform: scale(1.04); }
.badge{
  position:absolute;
  left: 10px;
  top: 10px;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.product-body{
  padding: 12px 12px 12px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-title{
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.product-desc{ color: var(--muted); font-size: 12.5px; line-height: 1.6; min-height: 38px; }
.product-meta{
  margin-top: auto;
  display:flex;
  align-items:center;
  justify-content: flex-end;
  gap: 10px;
}
.pill{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.link{
  font-weight: 800;
  color: var(--brand);
}
.link:hover{ text-decoration: underline; }

/* About */
.two-col{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}
.para{ color: var(--muted); line-height: 1.8; margin: 10px 0 10px; }
.list{ margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.9; }
.card{
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 14px;
}
.card-title{ font-weight: 900; margin-bottom: 10px; }
.tags{ display:flex; gap: 8px; flex-wrap: wrap; }
.tag{
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
  color: var(--muted);
}
.divider{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 12px 0;
}
.small{ font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* Contact */
.contact-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.contact-item{
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 14px;
}
.contact-k{ font-size: 12px; color: var(--faint); }
.contact-v{ font-weight: 900; margin-top: 6px; }

/* Footer */
.site-footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.footer-inner{
  display:flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 0;
}
.footer-left{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: min(100%, 280px);
}
.footer-brand{ font-weight: 900; }
.footer-sub{ color: var(--muted); font-size: 12.5px; margin-top: 0; }
.footer-legal-line{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 0;
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
}
.footer-beian-link{
  font-size: inherit;
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
}
.footer-beian-link:hover{
  color: var(--text);
  text-decoration: underline;
}
.footer-legal-sep{
  flex-shrink: 0;
  color: var(--faint);
  user-select: none;
}
.footer-right{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 2px;
}
.footer-link{ color: var(--muted); }
.footer-link:hover{ color: var(--text); text-decoration: underline; }

.footer-gongan-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.footer-gongan-link:hover{
  color: var(--text);
  text-decoration: underline;
}
.footer-gongan-icon{
  height: 17px;
  width: auto;
  flex-shrink: 0;
  vertical-align: middle;
}
.footer-gongan-text{
  white-space: nowrap;
}

/* Modal */
.modal[hidden]{ display:none; }
.modal{
  position: fixed;
  inset: 0;
  z-index: 60;
  display:grid;
  place-items: center;
}
.modal-backdrop{
  position:absolute;
  inset: 0;
  background: rgba(0,0,0,.60);
}
.modal-panel{
  position: relative;
  width: min(980px, calc(100% - 30px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10, 14, 22, .88);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.modal-close:hover{ background: rgba(255,255,255,.10); }
.modal-figure{ margin: 0; }
.modal-figure img{
  width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  object-fit: contain;
  display:block;
  background: rgba(0,0,0,.15);
}
.modal-cap{
  padding: 12px 14px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  line-height: 1.7;
}

/* 响应式 */
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .two-col{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .nav{ display:none; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .field{ min-width: 160px; }
  .footer-inner{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .footer-legal-line{
    flex-wrap: wrap;
  }
  .footer-right{
    padding-top: 0;
    width: 100%;
  }
}
@media (max-width: 420px){
  .grid{ grid-template-columns: 1fr; }
  .footer-legal-line{
    flex-wrap: wrap;
    font-size: 11.5px;
    gap: 6px 8px;
  }
  .footer-gongan-icon{
    height: 15px;
  }
}

