:root {
  --bg: #090b10;
  --bg-2: #10141c;
  --accent-rgb: 214, 177, 95;
  --panel: rgba(20, 25, 35, 0.82);
  --panel-solid: #151a24;
  --line: rgba(214, 177, 95, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d6b15f;
  --gold-2: #f3d78f;
  --gold-3: #a97f32;
  --red: #b93d32;
  --text: #f5f2e9;
  --muted: #9aa2af;
  --muted-2: #6d7683;
  --radius: 14px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(var(--accent-rgb), 0.13), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(88, 118, 168, 0.1), transparent 34%),
    linear-gradient(160deg, #080a0e 0%, #0d1119 48%, #090b10 100%);
}

.bg-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 62%);
  filter: blur(10px);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 80%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(9, 11, 16, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1240px, calc(100% - 40px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-2);
  text-shadow: 0 0 24px rgba(243, 215, 143, 0.2);
}

.brand-sub {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--gold-2);
}

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

.account-area {
  position: relative;
}

.account-btn {
  max-width: 220px;
}

#accountLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 200px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #131821;
  box-shadow: var(--shadow);
}

.account-head {
  padding: 10px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-name {
  font-weight: 800;
  word-break: break-all;
}

.account-points {
  color: var(--gold-2);
  font-size: 13px;
}

.account-item {
  width: 100%;
  margin-top: 8px;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  text-align: left;
  color: var(--muted);
  background: transparent;
}

.account-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.auth-panel {
  position: relative;
  width: min(400px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #11161f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.auth-tab.is-active {
  color: #1b1508;
  border-color: transparent;
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  outline: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
}

.auth-form input:focus {
  border-color: rgba(214, 177, 95, 0.55);
}

.auth-submit {
  height: 44px;
  margin-top: 4px;
}

.auth-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-message.is-error {
  color: #f08a84;
}

.cdk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cdk-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(25, 31, 43, 0.96), rgba(14, 18, 25, 0.98));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.cdk-card.is-disabled {
  opacity: 0.62;
}

.cdk-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cdk-card-name {
  font-size: 18px;
  font-weight: 900;
}

.cdk-card-stock {
  padding: 3px 9px;
  border-radius: 999px;
  color: #a8e6b8;
  background: rgba(79, 191, 159, 0.14);
  font-size: 12px;
}

.cdk-card-stock.empty {
  color: #f0a08a;
  background: rgba(200, 86, 63, 0.16);
}

.cdk-card-price {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.cdk-card-price strong {
  font-size: 30px;
  color: var(--gold-2);
}

.cdk-card-note {
  margin: 10px 0 18px;
  min-height: 40px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.7;
}

.cdk-buy {
  width: 100%;
  margin-top: auto;
}

.cdk-buy[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.4);
}

.cdk-empty {
  padding: 44px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--muted-2);
  text-align: center;
}

.cdk-tip {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 13px;
}

.cdk-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cdk-panel {
  text-align: center;
}

.cdk-panel.wide {
  width: min(620px, 100%);
  text-align: left;
}

.cdk-modal-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.cdk-modal-sub {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 13px;
}

.cdk-code {
  padding: 16px;
  margin-bottom: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--gold-2);
  background: rgba(0, 0, 0, 0.28);
  font-family: Consolas, Monaco, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  word-break: break-all;
  user-select: all;
}

.orders-list {
  max-height: 60vh;
  overflow: auto;
  margin-top: 6px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-row:last-child {
  border-bottom: none;
}

.order-label {
  font-weight: 800;
}

.order-time {
  color: var(--muted-2);
  font-size: 12px;
}

.order-code {
  color: var(--gold-2);
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
  text-align: right;
  user-select: all;
}

.orders-empty {
  padding: 30px 10px;
  color: var(--muted-2);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.btn-icon svg,
.icon-btn svg,
.search-icon svg {
  width: 100%;
  height: 100%;
}

.btn-primary {
  color: #1c1608;
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 26px rgba(214, 177, 95, 0.2);
}

.btn-outline {
  color: var(--gold-2);
  border-color: var(--line);
  background: rgba(214, 177, 95, 0.05);
}

.btn-outline:hover {
  border-color: rgba(214, 177, 95, 0.52);
  background: rgba(214, 177, 95, 0.1);
}

.btn-ghost {
  height: 38px;
  padding: 0 14px;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 72px 0 46px;
}

.hero-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(214, 177, 95, 0.07);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-title {
  margin: 22px 0 16px;
  line-height: 1.1;
}

.hero-title-main {
  display: block;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: transparent;
  background: linear-gradient(180deg, #fff7df 4%, var(--gold-2) 42%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 12px 28px rgba(214, 177, 95, 0.22));
}

.hero-title-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #d8dde6;
}

.hero-desc {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-bottom: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-2);
}

.stat-label {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card-stack {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
}

.stack-card {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(214, 177, 95, 0.2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 34, 47, 0.96), rgba(12, 16, 23, 0.98));
  box-shadow: var(--shadow);
}

.stack-back {
  transform: translate(22px, 22px) rotate(4deg);
  opacity: 0.42;
}

.stack-mid {
  transform: translate(11px, 11px) rotate(2deg);
  opacity: 0.72;
}

.stack-front {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.stack-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 177, 95, 0.24), transparent 42%),
    linear-gradient(180deg, transparent 34%, rgba(7, 9, 13, 0.92) 100%);
}

.stack-front > * {
  position: relative;
}

.stack-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #1b1508;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  font-size: 12px;
  font-weight: 800;
}

.stack-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.stack-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.stack-line {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

.stack-tags {
  display: flex;
  gap: 8px;
}

.stack-tags span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: #cbd2dc;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.section-desc {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 14px;
}

.link-more {
  color: var(--gold-2);
  font-size: 14px;
  border-bottom: 1px solid rgba(214, 177, 95, 0.4);
}

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

.featured-card {
  position: relative;
  min-width: 0;
  min-height: 240px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 13, 0.95) 0%, rgba(7, 9, 13, 0.58) 52%, rgba(7, 9, 13, 0.12) 100%);
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-content {
  position: relative;
  z-index: 2;
  width: min(62%, 420px);
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1b1508;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  font-size: 12px;
  font-weight: 800;
}

.featured-name {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.featured-desc {
  margin: 0;
  color: #c3cad5;
  font-size: 14px;
}

.featured-meta {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.toolbar > * {
  min-width: 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .search-icon,
.search-modal-head .search-icon {
  position: absolute;
  left: 13px;
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}

.search-box input,
.search-modal-head input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  outline: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

.search-box input:focus,
.search-modal-head input:focus {
  border-color: rgba(214, 177, 95, 0.5);
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.filter-btn {
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.18s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(214, 177, 95, 0.34);
}

.filter-btn.is-active {
  color: #1b1508;
  border-color: transparent;
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  font-weight: 700;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sort-label {
  color: var(--muted-2);
  font-size: 13px;
}

.sort-box select {
  height: 38px;
  max-width: 100%;
  padding: 0 30px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: #151a24;
}

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

.version-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(25, 31, 43, 0.96), rgba(14, 18, 25, 0.98));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.version-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 177, 95, 0.46);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
}

.version-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0e14;
}

.version-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.version-card:hover .version-cover img {
  transform: scale(1.06);
}

.version-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 13, 18, 0.86) 100%);
}

.version-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1b1508;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  font-size: 12px;
  font-weight: 800;
}

.version-featured-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  background: rgba(185, 61, 50, 0.84);
  font-size: 11px;
  font-weight: 700;
}

.version-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}

.version-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.version-desc {
  margin: 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.version-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.version-tags span {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  color: #aeb6c2;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.version-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.version-date {
  color: var(--muted-2);
  font-size: 12px;
}

.version-enter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 700;
}

.version-enter svg {
  width: 14px;
  height: 14px;
}

.empty-state {
  padding: 54px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-align: center;
}

.empty-title {
  font-size: 20px;
  font-weight: 800;
}

.empty-desc {
  margin: 8px 0 20px;
  color: var(--muted-2);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-load-more {
  min-width: 180px;
}

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

.guide-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.guide-num {
  color: rgba(214, 177, 95, 0.5);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.guide-name {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

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

.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(214, 177, 95, 0.09), rgba(214, 177, 95, 0.02));
}

.contact-text {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-label {
  color: var(--muted-2);
  font-size: 13px;
}

.contact-value {
  color: var(--gold-2);
  font-size: 18px;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-mark {
  color: var(--gold-2);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-sub,
.footer-note {
  color: var(--muted-2);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--gold-2);
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding-top: 12vh;
}

.search-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.search-modal-panel {
  position: relative;
  width: min(620px, calc(100% - 32px));
  max-height: 68vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #11161f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.search-modal-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-modal-head input {
  border: none;
  background: transparent;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.search-results {
  max-height: calc(68vh - 66px);
  overflow: auto;
  padding: 10px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.045);
}

.search-result img {
  width: 72px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 7px;
  object-fit: cover;
}

.search-result-name {
  font-weight: 800;
}

.search-result-meta {
  color: var(--muted-2);
  font-size: 12px;
}

.search-empty {
  padding: 30px 14px;
  color: var(--muted-2);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 120;
  transform: translateX(-50%) translateY(8px);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--gold-2);
  background: rgba(17, 22, 31, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1080px) {
  .version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr auto;
  }

  .filter-group {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-card-stack {
    width: min(460px, 100%);
  }

  .featured-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .featured-card img {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .featured-card::after {
    display: none;
  }

  .featured-content {
    width: 100%;
    padding: 20px;
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.96), rgba(12, 16, 23, 0.98));
  }

  .stack-front {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .hero-inner,
  .section,
  .footer-inner {
    width: min(1240px, calc(100% - 28px));
  }

  .brand-sub {
    display: none;
  }

  .account-btn {
    max-width: 150px;
  }

  .account-menu {
    right: -8px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-stats {
    gap: 22px;
  }

  .version-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .sort-box {
    justify-content: space-between;
  }

  .sort-box select {
    flex: 1;
    min-width: 0;
  }

  .filter-group {
    width: 100%;
  }

  .filter-btn {
    padding: 0 11px;
    font-size: 13px;
  }

  .contact-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    margin-left: 0;
  }
}
