﻿/* 菠萝TV · boluoapp.net.cn — 深色参数说明风 */

:root {
  --bg: #0a0e0b;
  --panel: #101711;
  --panel-2: #0d130e;
  --line: #223027;
  --line-soft: #1a251d;
  --text: #e9f2e9;
  --muted: #8fa294;
  --pine: #ffc10e;
  --leaf: #4dd07f;
  --frame: 1140px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, figure, dl, dd, dt { margin: 0; }

ol { margin: 0; padding: 0; list-style: none; }

.frame {
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 26px;
}

/* ---------- 控制台顶栏 ---------- */

.console {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 14, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.console-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 68px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mark img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.mark-name {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.4px;
}

.mark-name em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.tabs {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}

.tabs a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tabs a:hover,
.tabs a.is-on {
  color: var(--pine);
  border-color: var(--pine);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(77, 208, 127, 0.16);
}

/* ---------- 概览 ---------- */

.brief {
  padding: 82px 0 76px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 44px 100%,
    radial-gradient(700px 340px at 82% 0%, rgba(255, 193, 14, 0.09), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.brief-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--pine);
}

.brief h1 {
  margin-top: 16px;
  font-size: clamp(30px, 3.9vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.8px;
  font-weight: 700;
}

.brief h1 span {
  display: block;
  margin-top: 14px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.2px;
  line-height: 1.7;
}

.brief-lead {
  margin-top: 22px;
  max-width: 540px;
  color: #b7c7ba;
  font-size: 15px;
}

.brief-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.brief-stats > div {
  padding: 14px 16px;
  background: var(--panel-2);
}

.brief-stats dt {
  font-size: 11.5px;
  color: var(--muted);
}

.brief-stats dd {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--pine);
  line-height: 1.35;
}

.brief-stats dd span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 2px;
}

.brief-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.btn-primary {
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: var(--pine);
  color: #16140a;
  font-weight: 700;
  font-size: 14.5px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s;
}

.btn-primary:not([hidden]) { display: inline-flex; }

.btn-primary:hover { background: #ffd54a; }

.btn-text {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
}

.btn-text:hover { color: var(--pine); }

.brief-shot {
  position: relative;
  padding: 34px 26px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  justify-self: center;
  width: min(340px, 100%);
}

.brief-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--line);
}

.shot-label {
  position: absolute;
  top: 10px;
  left: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.shot-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--pine);
}

.shot-corner-a {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}

.shot-corner-b {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}

/* ---------- 区块头 ---------- */

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.3px;
}

.panel-head p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 分区矩阵 ---------- */

.matrix {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  padding: 20px 18px 18px;
  background: var(--panel-2);
  transition: background 0.2s;
}

.tile:hover { background: #16211a; }

.tile-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #5c7163;
}

.tile h3 {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
}

.tile p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 40px;
}

.tile strong {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
  color: var(--pine);
}

/* ---------- 参数表 ---------- */

.spec {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.spec-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.spec-table thead th {
  background: #121a14;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
}

.spec-table tbody th {
  background: #0f1611;
  font-weight: 600;
  font-size: 13.5px;
  color: #d3e3d6;
  white-space: nowrap;
}

.spec-table td { color: #b7c7ba; }

.spec-table tbody tr:hover td,
.spec-table tbody tr:hover th { background: #131d16; }

.spec-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.spec-gallery figure {
  border: 1px solid var(--line);
  padding: 10px 10px 12px;
  background: var(--panel);
}

.spec-gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

.spec-gallery figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 版本 ---------- */

.log {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.log-list {
  position: relative;
  padding-left: 26px;
}

.log-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.log-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 0 0 26px;
}

.log-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--pine);
  transform: rotate(45deg);
}

.log-item:last-child { padding-bottom: 0; }

.log-ver {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--pine);
  letter-spacing: 0.5px;
}

.log-item h3 {
  font-size: 16.5px;
  font-weight: 600;
}

.log-item p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 560px;
}

/* ---------- 安装 ---------- */

.install {
  padding: 76px 0 84px;
  background:
    radial-gradient(620px 300px at 12% 100%, rgba(255, 193, 14, 0.08), transparent 70%),
    var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.install-list {
  display: grid;
  gap: 12px;
}

.install-row {
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}

.install-row:not([hidden]) { display: grid; grid-template-columns: 44px 1fr auto; }

.install-row:hover {
  border-color: rgba(255, 193, 14, 0.5);
  transform: translateX(4px);
}

.install-no {
  font-family: var(--mono);
  font-size: 12px;
  color: #5c7163;
}

.install-name {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.install-name em {
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.install-go {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pine);
  white-space: nowrap;
}

.install-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: #6d8074;
}

/* ---------- 页脚 ---------- */

.foot {
  padding: 38px 0 40px;
  background: #070a08;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.foot-info {
  display: flex;
  align-items: center;
  gap: 11px;
}

.foot-info img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.foot-info span {
  display: flex;
  flex-direction: column;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.foot-info em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
}

.foot-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.foot-nav a:hover { color: var(--pine); }

.foot-copy {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: #5c7163;
  font-family: var(--mono);
}

/* ---------- 进入动画 ---------- */

.enter {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.enter.is-shown {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1000px) {
  .brief-grid { grid-template-columns: 1fr; gap: 40px; }
  .brief-shot { width: min(300px, 100%); }
  .matrix-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { display: none; }
  .status { margin-left: auto; }
}

@media (max-width: 680px) {
  .frame { padding: 0 18px; }
  .brief { padding: 56px 0 52px; }
  .brief-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix { padding: 56px 0; }
  .matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile p { min-height: 0; }
  .spec, .log, .install { padding: 56px 0; }
  .log-item { grid-template-columns: 1fr; gap: 4px; }
  .install-row:not([hidden]) { grid-template-columns: 30px 1fr; gap: 10px 12px; }
  .install-go { grid-column: 2; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--bg);
}

.error-inner { max-width: 460px; }

.error-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--pine);
}

.error-inner h1 {
  margin-top: 18px;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.3;
}

.error-inner p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
}

.error-inner .btn-primary { margin-top: 32px; }
