/* =========================================================
   宝塔面板专题页
   ========================================================= */

.grad-text-dark {
  background: linear-gradient(100deg, #0fbd86 0%, #2f8f7a 45%, #3f6fd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bt-hero {
  position: relative;
  overflow: hidden;
  min-height: 80svh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px;
  color: #eaf2ff;
  background:
    radial-gradient(880px 480px at 78% 18%, rgba(55, 230, 173, 0.16), transparent 62%),
    radial-gradient(720px 520px at 4% 88%, rgba(91, 140, 255, 0.14), transparent 62%),
    linear-gradient(180deg, #04080f 0%, #060c17 65%, #050a12 100%);
}

.bt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 55% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 55% 40%, #000 25%, transparent 75%);
  pointer-events: none;
}

.bt-hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.bt-hero .eyebrow {
  justify-content: center;
}

.bt-hero .hero-actions {
  justify-content: center;
}

.bt-hero .hero-facts {
  justify-content: center;
}

.bt-hero h1 {
  margin: 24px 0 26px;
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.bt-free-tag {
  display: inline-block;
  margin-left: 14px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #ff5a4f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 14px;
  transform: rotate(-3deg);
  box-shadow: 0 8px 20px -8px rgba(255, 90, 79, 0.8);
}

.bt-hero .lead {
  max-width: 680px;
  margin-inline: auto;
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(234, 242, 255, 0.68);
}

.bt-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bt-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bt-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(55, 230, 173, 0.4);
  box-shadow: 0 28px 56px -40px rgba(11, 21, 38, 0.4);
}

.bt-feature h3 {
  margin: 0 0 9px;
  font-size: 18.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.bt-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.bt-functions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bt-function {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bt-function:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.28);
}

.bt-fn-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  color: var(--mint-3);
  background: linear-gradient(140deg, rgba(55, 230, 173, 0.15), rgba(91, 140, 255, 0.1));
  border: 1px solid rgba(55, 230, 173, 0.2);
}

.bt-fn-icon svg {
  width: 19px;
  height: 19px;
}

.bt-function h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 650;
}

.bt-function p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.bt-operation {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 40px;
  align-items: start;
}

.bt-tabs {
  display: grid;
  gap: 8px;
}

.bt-tab {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(234, 242, 255, 0.62);
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bt-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 242, 255, 0.85);
}

.bt-tab.is-active {
  border-color: rgba(55, 230, 173, 0.4);
  background: linear-gradient(135deg, rgba(55, 230, 173, 0.14), rgba(55, 230, 173, 0.04));
  color: #eaf2ff;
}

.bt-tab-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(55, 230, 173, 0.75);
  padding-top: 1px;
}

.bt-tab strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.bt-tab em {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  line-height: 1.65;
  color: rgba(234, 242, 255, 0.45);
}

.bt-tab.is-active em {
  color: rgba(234, 242, 255, 0.58);
}

.bt-preview {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a1424;
  aspect-ratio: 1004 / 780;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}

.bt-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bt-shot.is-active {
  opacity: 1;
}

.bt-install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px;
  align-items: start;
}

.bt-install-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.bt-install-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 650;
}

.bt-install-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.bt-os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.bt-os-tab {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  transition: all 0.2s ease;
}

.bt-os-tab:hover {
  border-color: var(--mint-2);
  color: var(--mint-3);
}

.bt-os-tab.is-active {
  border-color: var(--mint-2);
  background: rgba(55, 230, 173, 0.12);
  color: var(--mint-3);
  font-weight: 600;
}

.bt-code {
  position: relative;
  padding: 20px 18px;
  border-radius: 14px;
  background: #07101c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bt-code pre {
  margin: 0;
  padding-right: 82px;
  overflow-x: auto;
}

.bt-code code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
  color: #b9f7dd;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
}

.bt-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 242, 255, 0.8);
  font-size: 11.5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.bt-copy:hover {
  background: rgba(55, 230, 173, 0.18);
  color: #9dfbd7;
}

.bt-install-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted-2);
}

.bt-install-side {
  display: grid;
  gap: 20px;
}

.bt-req {
  display: grid;
  gap: 10px;
}

.bt-req p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.bt-req strong {
  color: var(--text);
  font-weight: 600;
}

.bt-note-strip {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(55, 230, 173, 0.24);
  background: rgba(55, 230, 173, 0.07);
  font-size: 13px;
  line-height: 1.85;
  color: #2f5a4c;
}

.bt-note-strip strong {
  color: var(--mint-3);
}

.bt-disclaimer {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted-2);
}

@media (max-width: 1080px) {
  .bt-operation,
  .bt-install-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .bt-hero {
    padding-top: 140px;
  }

  .bt-functions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-install-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bt-hero {
    min-height: auto;
    padding: 128px 0 72px;
  }

  .bt-feature-grid,
  .bt-functions,
  .bt-install-side {
    grid-template-columns: 1fr;
  }

  .bt-feature {
    padding: 22px;
  }

  .bt-install-card {
    padding: 22px;
  }

  .bt-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .bt-tab {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .bt-copy {
    position: static;
    margin-bottom: 8px;
  }

  .bt-code pre {
    padding-right: 0;
  }

  .bt-free-tag {
    vertical-align: 8px;
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .bt-code code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .bt-hero h1 {
    font-size: 38px;
  }

  .bt-tab {
    flex-basis: 88%;
  }
}
