/* AU源码网 — frontend (aligned to mock UI) */

:root {
  --bg: #eef3f8;
  --bg-soft: #e3ebf3;
  --panel: #ffffff;
  --text: #0f2744;
  --muted: #6b7c90;
  --teal: #0d8a96;
  --teal-hover: #0a727c;
  --cyan: var(--teal);
  --accent: var(--teal);
  --accent-2: #2563eb;
  --navy: #0f2744;
  --danger: #e11d48;
  --ok: #059669;
  --warn: #d97706;
  --line: rgba(15, 39, 68, 0.1);
  --line-bright: rgba(13, 138, 150, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 39, 68, 0.06);
  --font-body: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-brand: var(--font-body);
  --header-h: 64px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(238, 243, 248, 0.35) 0%, rgba(238, 243, 248, 0.55) 100%),
    url("bg/page-bg.jpg");
  background-size: cover, cover;
  background-position: center top, center top;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-hover); }
img { max-width: 100%; display: block; }

.icon {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: -0.2em;
  flex-shrink: 0;
  display: inline-block;
  fill: currentColor;
  stroke: none;
}
/* Lucide 描边图标：保留空心 */
.icon.lucide {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; }
.req { color: var(--danger); }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--teal); }
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}
.brand-text span { color: var(--teal); }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.nav-link::-webkit-details-marker { display: none; }
.nav-link:hover,
.nav-link.is-active { color: var(--teal); background: rgba(13, 138, 150, 0.08); }

.nav-dd { position: relative; }
.nav-dd-trigger {
  border: 1px solid transparent;
  padding-right: 10px;
}
.nav-dd-trigger:hover,
.nav-dd.is-active > .nav-dd-trigger,
.nav-dd[open] > .nav-dd-trigger {
  color: var(--teal);
  background: rgba(13, 138, 150, 0.08);
  border-color: rgba(13, 138, 150, 0.18);
}
.nav-dd-caret {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
  transition: transform .18s ease, opacity .15s ease;
  flex-shrink: 0;
}
.nav-dd[open] > .nav-dd-trigger .nav-dd-caret {
  transform: rotate(225deg) translateY(-1px);
  opacity: 1;
}
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 50;
  display: none;
  transform-origin: top left;
}
.nav-dd[open] > .nav-dd-panel {
  display: grid;
  gap: 2px;
  animation: nav-dd-in .16s ease-out;
}
@keyframes nav-dd-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-dd-panel-right { left: auto; right: 0; min-width: 200px; }
.nav-dd-panel a,
.nav-dd-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.nav-dd-panel a:hover,
.nav-dd-logout:hover { background: rgba(13, 138, 150, 0.08); color: var(--teal); }
.nav-dd-panel a.is-active { background: rgba(13, 138, 150, 0.12); color: var(--teal); }
.nav-dd-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.nav-account::-webkit-details-marker { display: none; }
.nav-account-name { font-size: 0.88rem; font-weight: 600; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* —— Notice bar —— */
.notice-bar {
  background: linear-gradient(90deg, rgba(13, 138, 150, 0.12), rgba(37, 99, 235, 0.08));
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.notice-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.notice-bar-marquee { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.notice-bar-sep { margin: 0 8px; color: var(--muted); }
.notice-bar-more { color: var(--teal); font-weight: 600; flex-shrink: 0; }

/* —— Flash —— */
.flash {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.flash.success { border-color: rgba(5, 150, 105, 0.35); background: rgba(5, 150, 105, 0.08); color: var(--ok); }
.flash.error { border-color: rgba(225, 29, 72, 0.3); background: rgba(225, 29, 72, 0.06); color: var(--danger); }

main { padding-bottom: 24px; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 6px 16px rgba(13, 138, 150, 0.25);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--teal-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(13, 138, 150, 0.08); color: var(--teal-hover); border-color: var(--teal-hover); }
.btn-danger { background: linear-gradient(135deg, #ff6b8a, #e03e5c); box-shadow: 0 6px 16px rgba(224, 62, 92, 0.25); }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }

/* —— Tags —— */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(13, 138, 150, 0.1);
  color: var(--teal);
  border: 1px solid rgba(13, 138, 150, 0.2);
}
.tag.vip { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; border-color: rgba(37, 99, 235, 0.22); }
.tag.paid { background: rgba(217, 119, 6, 0.12); color: #b45309; border-color: rgba(217, 119, 6, 0.25); }

/* —— Cards / panels —— */
.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel { padding: 22px 24px; margin-bottom: 16px; }
.panel-glow { box-shadow: var(--shadow); }
.panel-title,
.page-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card {
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card .cover {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.card .body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 600; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--teal); }
.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* Horizontal product row (home VIP section) */
.product-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.product-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.product-row .cover {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
  background: var(--bg-soft);
}
.product-row .body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-row h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 650;
}
.product-row h3 a { color: var(--text); }
.product-row .summary {
  margin: 0 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-row .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.product-row .foot .price-sm {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .product-row-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 110px 1fr; }
}

/* —— Hero (home) —— */
.hero-home {
  text-align: center;
  padding: clamp(48px, 9vw, 88px) 0 clamp(28px, 5vw, 40px);
  position: relative;
}
.hero-home h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.hero-home h1 .accent { color: var(--teal); }
.hero-home > p,
.hero-home .hero-desc {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-search {
  margin: 28px auto 0;
  max-width: 560px;
}
.search-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.search-bar:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 138, 150, 0.15);
}
.search-bar .search-icon {
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  color: var(--muted);
}
.search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  color: var(--text);
}
.search-bar .btn {
  border-radius: 999px;
  margin: 6px;
  padding-inline: 20px;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 138, 150, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-pill:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.cat-pill .cat-count {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Home shortcuts — 简雅 */
.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.home-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.home-shortcut:hover {
  color: var(--text);
  background: #fff;
  border-color: rgba(15, 39, 68, 0.18);
}
.home-shortcut-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
  background: transparent;
}
.home-shortcut-ico .icon {
  width: 20px;
  height: 20px;
}
.home-shortcut:hover .home-shortcut-ico {
  color: var(--teal);
}
.home-shortcut-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.home-shortcut-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.home-shortcut-text small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 400;
}
@media (max-width: 960px) {
  .home-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .home-shortcuts { grid-template-columns: 1fr; }
}

.empty-illust {
  text-align: center;
  padding: 28px 12px;
}
.empty-illust .empty-ico {
  width: 96px;
  height: 74px;
  margin: 0 auto 10px;
  opacity: 0.45;
  display: block;
}
.empty-illust p { margin: 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-head a {
  font-size: 0.88rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-head a:hover { color: var(--teal); }
.home-section { margin-bottom: 40px; }

/* —— Filters / category —— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-pills .label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-right: 4px;
}
.filter-pill {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.filter-pill:hover { color: var(--teal); }
.filter-pill.is-active {
  background: var(--teal);
  color: #fff;
}
.filters select,
.filters input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.filter-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 180px;
}
.filter-search-wrap input {
  border: 0;
  padding: 9px 0;
  outline: none;
  width: 100%;
  background: transparent;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 20px 0 40px;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
}
.pager .is-active,
.pager a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* —— Product detail —— */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  padding: 28px 0 40px;
}
.product-main.panel,
.product-sidebar.panel { margin-bottom: 0; }
.gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-bottom: 18px;
}
.gallery img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.meta-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(13, 138, 150, 0.08);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 550;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.product-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product-content { margin-top: 12px; line-height: 1.7; }
.product-content img { max-width: 100%; border-radius: var(--radius-sm); cursor: zoom-in; }
.changelog-panel { margin-top: 12px; }
.changelog-body { font-size: 0.92rem; color: var(--muted); }
.price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 12px;
}
.price small { font-size: 0.55em; color: var(--muted); font-weight: 500; }
.action-stack { display: flex; flex-direction: column; gap: 10px; }
.action-stack .btn,
.action-stack form { width: 100%; }
.action-stack form .btn { width: 100%; }
.owned-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.22);
  color: var(--ok);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-side-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 550;
}
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
}

/* —— VIP page —— */
.vip-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
  padding: 32px 0 48px;
}
.vip-page .panel { margin-bottom: 0; }
.vip-buy-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 0;
}
.vip-buy-card::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--teal);
  margin: 0 -24px 20px;
}
.vip-buy-card .price {
  color: var(--teal);
  font-size: 2rem;
  margin: 8px 0 18px;
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
}
.compare-table th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(13, 138, 150, 0.04);
}
.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) { text-align: center; }
@media (max-width: 900px) {
  .vip-page { grid-template-columns: 1fr; }
}

/* —— Auth —— */
.auth-page {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}
.auth-card {
  width: min(400px, 100%);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
}
.auth-card .auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.auth-card .auth-brand {
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--navy);
}
.auth-card h1 {
  margin: 0 0 22px;
  font-size: 1.45rem;
  font-weight: 800;
}
.auth-card .form-row { text-align: left; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.auth-card .auth-foot {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

/* —— Forms —— */
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 138, 150, 0.12);
}
.form-hint { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* —— Member shell —— */
.member-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 28px 0 48px;
}
.member-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.member-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.member-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.member-tab:hover { color: var(--text); background: var(--bg-soft); }
.member-tab.is-active {
  background: var(--teal);
  color: #fff;
}
.member-main .panel:last-child { margin-bottom: 0; }
.member-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.stat-card .label { margin: 0 0 6px; color: var(--muted); font-size: 0.85rem; }
.stat-card .value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.stat-card .value.teal { color: var(--teal); font-size: 1.45rem; }
.quota-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  margin: 10px 0 0;
}
.quota-bar > span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
}
.wallet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.preset-chip {
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.preset-chip:hover,
.preset-chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
@media (max-width: 900px) {
  .member-shell { grid-template-columns: 1fr; }
  .member-side { position: static; }
  .member-tabs { flex-direction: row; flex-wrap: wrap; }
  .member-stats,
  .wallet-layout { grid-template-columns: 1fr; }
}

/* —— Tables —— */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th,
.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.table th {
  background: rgba(13, 138, 150, 0.06);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}
.table tbody tr:hover td { background: rgba(13, 138, 150, 0.03); }

/* —— USDT pay —— */
.pay-usdt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px 0 48px;
  align-items: start;
}
.pay-usdt-layout .panel { margin-bottom: 0; }
.pay-usdt-qr {
  text-align: center;
}
.pay-usdt-qr img {
  margin: 16px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
.pay-usdt-countdown {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--danger);
  margin: 8px 0 6px;
  letter-spacing: 0.04em;
}
.pay-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--bg-soft);
}
.pay-copy-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}
.pay-usdt-tips {
  margin: 12px 0;
  padding-left: 18px;
  font-size: 0.85rem;
}
.pay-usdt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pay-usdt-actions .btn { flex: 1; min-width: 140px; }
@media (max-width: 800px) {
  .pay-usdt-layout { grid-template-columns: 1fr; }
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 48px;
  width: 100%;
}
.footer-label {
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--teal); }
.footer-tech {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.footer-copy { color: var(--muted); font-size: 0.8rem; }
.footer-deco { display: none; }

/* —— Float support —— */
.float-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 138, 150, 0.35);
  font-weight: 600;
  font-size: 0.88rem;
}
.float-support:hover { color: #fff; background: var(--teal-hover); }

/* —— Lightbox —— */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 18, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  cursor: zoom-out;
}
.img-lightbox.is-open { opacity: 1; visibility: visible; }
.img-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: default;
}
.img-lightbox-close,
.img-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.img-lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.4rem; }
.img-lightbox-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.5rem; }
.img-lightbox-prev { left: 16px; }
.img-lightbox-next { right: 16px; }
.img-lightbox-nav[hidden] { display: none; }

/* —— Misc legacy helpers —— */
.cover-placeholder { object-fit: contain; padding: 24px; opacity: 0.55; }
.hero { padding: 32px 0 16px; }
.hero-tech, .hero-bleed, .hero-bg, .hero-deco { /* legacy no-ops kept safe */ }
.hero-inner h1 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 750; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  border-radius: 999px;
  background: rgba(13, 138, 150, 0.1);
}
.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 138, 150, 0.3);
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
}
.cat-chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.vip-cta, .vip-cta-visual { /* handled by vip-strip / vip-page */ }
.security-profile, .security-form-card, .security-meta, .security-tips, .security-avatar, .security-name, .security-form .btn {
  /* password page still uses these */
}
.security-profile { text-align: center; padding: 8px 0; }
.security-avatar {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem; font-weight: 700;
  color: var(--teal); background: rgba(13, 138, 150, 0.12); border: 1px solid var(--line-bright);
}
.security-name { margin: 0; font-size: 1.15rem; font-weight: 700; }
.security-meta {
  list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
  text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.security-meta li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.security-tips {
  list-style: none; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.84rem;
}
.page-panel { margin-bottom: 48px; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
