:root {
  --bg: #070708;
  --panel: #131315;
  --panel-soft: #1c1b1d;
  --gold: #c9a45a;
  --gold-light: #f4ddb0;
  --text: #f8f3e7;
  --muted: #a8a096;
  --line: rgba(201, 164, 90, 0.22);
  --red: #d84a3a;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 12%, rgba(201, 164, 90, 0.22), transparent 30rem),
    linear-gradient(135deg, #050505 0%, #111 58%, #2a1d0f 100%);
}

button,
input,
textarea,
a {
  font: inherit;
}

.phone {
  position: relative;
  width: min(430px, 100vw);
  height: min(920px, 100vh);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.app {
  height: calc(100% - 64px);
  overflow-y: auto;
  padding: 0 16px 22px;
  scrollbar-width: none;
}

.app::-webkit-scrollbar,
.chips::-webkit-scrollbar {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 312px;
  margin: 8px -16px 18px;
  padding: 22px 18px;
  background: linear-gradient(145deg, #121212, #2a1d10);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(201, 164, 90, 0.35);
  border-radius: 50%;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.brand-row strong,
.brand-row small {
  display: block;
}

.brand-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.search {
  width: 100%;
  height: 38px;
  margin-bottom: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  padding: 0 13px;
}

.hero-media {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: #0f0f10;
  border: 1px solid var(--line);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
}

.hero-media strong,
.hero-media span {
  display: none;
}

.hero-media strong {
  bottom: 38px;
  color: var(--gold-light);
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-media span {
  bottom: 14px;
  color: rgba(248, 243, 231, 0.78);
  font-size: 12px;
}

.hero-carousel-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.active {
  width: 20px;
  background: var(--gold);
}

.hero-counter {
  color: var(--muted);
  font-size: 12px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.section-title span {
  color: var(--gold);
  font-size: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-card {
  min-height: 116px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(155deg, #171719, #261d13);
  border: 1px solid var(--line);
  padding: 14px;
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
}

.category-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

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

.case-card {
  overflow: hidden;
  color: var(--text);
  text-align: left;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0;
}

.case-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  display: block;
  object-fit: contain;
  background: #050505;
}

.case-card div {
  padding: 11px;
}

.case-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.case-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.chip {
  flex: 0 0 auto;
  color: var(--muted);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 12px;
}

.chip.active {
  color: #101010;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.case-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin: 16px 0 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-pagination button {
  min-width: 34px;
  padding: 8px 10px;
  color: var(--gold-light);
  background: #111;
  border: 1px solid rgba(201, 164, 90, 0.32);
  font-size: 12px;
  line-height: 1;
}

.case-pagination button.active {
  color: #101010;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.case-pagination button:disabled {
  opacity: 0.42;
}

.detail-hero {
  margin: 0 -16px;
  position: relative;
  background: #050505;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.detail-hero.is-loading img {
  opacity: 0.72;
}

.detail-hero.is-loading::after {
  content: "加载中";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  color: var(--gold-light);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid var(--line);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: -20px 0 16px;
  position: relative;
  z-index: 3;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.dot.active {
  width: 18px;
  border-radius: 99px;
  background: var(--gold);
}

.detail-title {
  padding: 16px 0 7px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 10px;
  align-items: center;
  padding-right: 12px;
}

.detail-title h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  min-width: 68px;
  height: 38px;
  padding: 0;
  color: #0e0e0e;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 0;
}

.share-label {
  display: block;
  color: #0e0e0e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

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

.tags span {
  color: var(--gold-light);
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-size: 11px;
}

.info-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.info-list strong {
  color: var(--text);
}

.detail-image {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  vertical-align: top;
}

.protected-case-image {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  cursor: zoom-in;
}

.consult-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, transparent, var(--bg) 35%);
}

.consult-bar button,
.consult-bar a,
.copy-wechat {
  border: 0;
  color: #0e0e0e;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 13px 12px;
  text-align: center;
  text-decoration: none;
}

.consult-bar button:first-child,
.consult-bar a:first-child {
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.about-card {
  margin-top: 16px;
  padding: 20px;
  background: linear-gradient(145deg, #151515, #241a10);
  border: 1px solid var(--line);
}

.about-card h1 {
  margin: 0 0 12px;
}

.about-card p {
  color: var(--muted);
  line-height: 1.8;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 64px;
  background: #09090a;
  border-top: 1px solid var(--line);
}

.album-grid { display:grid; gap:16px; }
.album-card { display:grid; grid-template-columns:112px minmax(0,1fr); gap:16px; padding:12px; color:var(--text); text-decoration:none; background:linear-gradient(145deg,#171719,#0c0c0d); border:1px solid rgba(244,221,176,.16); }
.album-cover { position:relative; overflow:hidden; aspect-ratio:3/4; background:#050505; box-shadow:0 10px 24px rgba(0,0,0,.35); }
.album-cover::after { content:""; position:absolute; inset:0 auto 0 0; width:6px; background:linear-gradient(90deg,rgba(0,0,0,.7),rgba(255,255,255,.12)); }
.album-cover img { width:100%; height:100%; object-fit:cover; }
.album-cover span { position:absolute; right:6px; bottom:6px; padding:4px 7px; color:#111; font-size:11px; font-weight:900; background:var(--gold-light); }
.album-card > div:last-child { display:flex; min-width:0; flex-direction:column; justify-content:center; }
.album-card strong { font-size:17px; }
.album-card p { display:-webkit-box; overflow:hidden; margin:8px 0 12px; color:var(--muted); font-size:13px; line-height:1.6; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.album-card em { color:var(--gold-light); font-size:13px; font-style:normal; }

.tabbar button {
  color: var(--muted);
  background: transparent;
  border: 0;
}

.tabbar button.active {
  color: var(--gold-light);
  font-weight: 800;
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.94);
  touch-action: pan-y;
  outline: 0;
}

.image-preview[hidden] {
  display: none;
}

.image-preview img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

body.preview-open {
  overflow: hidden;
}

.preview-arrow {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  padding: 0;
  color: var(--text);
  font-size: 42px;
  line-height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
}

.preview-previous {
  left: 20px;
}

.preview-next {
  right: 20px;
}

@media (max-width: 640px) {
  .preview-arrow {
    top: auto;
    bottom: 28px;
    width: 56px;
    height: 48px;
    line-height: 40px;
    transform: none;
  }

  .preview-previous {
    left: calc(50% - 72px);
  }

  .preview-next {
    right: calc(50% - 72px);
  }
}

.close-preview {
  position: fixed;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 28px;
}

#imageCounter {
  position: fixed;
  top: 38px;
  left: 28px;
  color: var(--muted);
}

dialog {
  width: min(360px, calc(100vw - 30px));
  color: var(--text);
  background: #111;
  border: 1px solid var(--line);
  padding: 22px;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-title h2 {
  margin: 0;
}

.dialog-title button {
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 26px;
}

.wechat-panel {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(218, 171, 76, 0.1));
  border: 1px solid var(--line);
}

.wechat-panel span,
.wechat-steps span {
  color: var(--muted);
}

.wechat-panel strong {
  color: var(--gold-light);
  font-size: 34px;
  letter-spacing: 0;
}

.wechat-panel p {
  min-height: 20px;
  margin: 0;
  color: var(--gold-light);
  font-size: 13px;
}

.wechat-qr {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.wechat-qr img {
  width: min(100%, 230px);
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
}

.wechat-qr span {
  color: #222;
  font-size: 13px;
  font-weight: 700;
}

.wechat-steps {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wechat-steps strong {
  color: var(--text);
}

.share-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.share-panel > strong {
  color: var(--gold-light);
  font-size: 20px;
}

.share-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.share-qr img {
  width: min(100%, 240px);
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
}

.share-qr span {
  color: #222;
  font-size: 13px;
  font-weight: 800;
}

.share-link {
  display: grid;
  gap: 8px;
}

.share-link span,
.share-panel p {
  color: var(--muted);
  font-size: 13px;
}

.share-link input {
  width: 100%;
  box-sizing: border-box;
  color: var(--text);
  background: #050505;
  border: 1px solid var(--line);
  padding: 11px;
  font: inherit;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.share-actions button,
.share-actions a {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #0e0e0e;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 0;
  padding: 10px 8px;
}

.share-actions button[hidden] {
  display: none;
}

.share-actions:has(button[hidden]) {
  grid-template-columns: repeat(2, 1fr);
}

.share-panel p {
  min-height: 20px;
  margin: 0;
  color: var(--gold-light);
}

.phone-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 12;
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 13px 16px;
  color: var(--text);
  background: rgba(12, 12, 13, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
  transform: translateX(-50%);
}

.phone-toast[hidden] {
  display: none;
}

.phone-toast span,
.phone-toast em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.phone-toast strong {
  color: var(--gold-light);
  font-size: 22px;
  letter-spacing: 0;
}

@media (max-height: 740px) {
  .phone {
    height: 100vh;
  }
}
