:root {
  --accent: #b58a31;
  --page-bg: #f5f6f8;
  --text: #17191d;
  --muted: #9a9da4;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { background: #e9edf1; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.card-page { width: 100%; max-width: 414px; min-height: 100vh; margin: 0 auto; padding: 28px 14px 0; overflow: hidden; background: var(--page-bg); }

.hero-card { position: relative; height: 229px; padding: 27px 22px; overflow: hidden; border-radius: 12px; color: #fff; background: radial-gradient(circle at 82% 18%, #172338 0, #07111f 33%, #050c18 76%); box-shadow: 0 7px 14px rgba(6, 13, 24, .27); }
.hero-card::after { content: ""; position: absolute; inset: auto -30px -105px auto; width: 235px; height: 235px; border: 2px solid rgba(194, 142, 43, .65); border-radius: 50%; box-shadow: 0 0 20px rgba(209, 159, 55, .2); }
.hero-glow { position: absolute; border: 1px solid rgba(207, 157, 54, .42); border-radius: 50%; }
.hero-glow-a { width: 240px; height: 120px; top: -75px; left: 30px; transform: rotate(-12deg); }
.hero-glow-b { width: 230px; height: 230px; right: -160px; bottom: -23px; }
.brand-row { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; min-height: 21px; font-size: 15px; font-weight: 700; }
.brand-logo { width: 21px; height: 21px; border-radius: 4px; object-fit: cover; }
.is-hidden { display: none !important; }
.hero-card h1 { position: relative; z-index: 2; margin: 9px 0 15px; font-size: 30px; line-height: 1; letter-spacing: 0; }
.hero-details { position: relative; z-index: 2; display: grid; gap: 9px; }
.hero-details a, .hero-details button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0; border: 0; color: inherit; background: none; text-decoration: none; text-align: left; font-size: 12px; line-height: 1.3; cursor: pointer; }
.hero-details a span:last-child, .hero-details button span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detail-icon { display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: white; background: var(--accent); }
.detail-icon svg { width: 11px; height: 11px; stroke-width: 2.5; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); height: 139px; align-items: center; padding: 4px 7px 0; }
.quick-actions a, .quick-actions button { display: flex; align-items: center; flex-direction: column; gap: 10px; border: 0; color: #95979c; background: none; text-decoration: none; font-size: 12px; cursor: pointer; }
.quick-icon { display: grid; width: 49px; height: 49px; place-items: center; border-radius: 50%; color: white; box-shadow: 0 6px 14px rgba(30, 35, 45, .13); }
.quick-icon svg { width: 22px; height: 22px; fill: rgba(255,255,255,.2); }
.orange { background: #ff7e43; }
.green { background: #13c875; }
.violet { background: #9175f4; }

.content-card { margin-bottom: 20px; padding: 17px 16px; border-radius: var(--radius); background: #fff; box-shadow: 0 2px 5px rgba(22, 31, 45, .025); }
.section-heading { display: flex; align-items: center; justify-content: space-between; height: 35px; }
.section-heading h2 { margin: 0; font-size: 15px; line-height: 1; }
.section-heading > span { color: #a8abb0; font-family: Arial, sans-serif; font-size: 9px; letter-spacing: 3px; }
.gallery-grid { display: grid; gap: 12px; }
.gallery-grid button { width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 7px; background: #eceef0; cursor: zoom-in; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }

.accent-heading { justify-content: flex-start; height: 25px; padding-left: 10px; border-left: 3px solid var(--accent); }
.contact-card { padding: 17px 16px 18px; }
.contact-list { display: grid; gap: 10px; margin-top: 12px; }
.contact-list a, .contact-list button { display: flex; align-items: center; width: 100%; height: 48px; gap: 11px; padding: 0 12px; border: 0; border-radius: 7px; color: #54575e; background: #fafafa; text-decoration: none; text-align: left; cursor: pointer; }
.contact-icon { display: grid; flex: 0 0 33px; width: 33px; height: 33px; place-items: center; border-radius: 50%; color: white; }
.contact-icon svg { width: 17px; height: 17px; }
.contact-list b { flex: 1; min-width: 0; overflow: hidden; font-size: 12px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.contact-list em { color: var(--accent); font-size: 11px; font-style: normal; }
.contact-list > * > svg { width: 13px; color: #c1c2c5; }

.qr-card { display: grid; min-height: 292px; place-items: center; padding: 28px; }
.qr-image { display: block; width: 230px; max-width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: auto; }
.page-end { display: flex; align-items: center; gap: 12px; width: 120px; margin: 29px auto 18px; color: #c7c9cd; font: 9px Arial, sans-serif; letter-spacing: 6px; }
.page-end::before, .page-end::after { content: ""; flex: 1; height: 1px; background: #e0e2e5; }
.source-pill { display: flex; align-items: center; gap: 6px; max-width: 290px; height: 32px; margin: 0 auto; padding: 0 16px; border: 0; border-radius: 18px; color: #5e91e8; background: #fff; box-shadow: 0 3px 12px rgba(39, 82, 145, .1); font-size: 10px; cursor: pointer; }
.source-pill svg { width: 12px; fill: #5d9dff; }
.bottom-spacer { height: calc(88px + env(safe-area-inset-bottom)); }
.bottom-bar { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; width: min(386px, calc(100% - 28px)); height: 51px; margin: 0 auto calc(10px + env(safe-area-inset-bottom)); overflow: hidden; border-radius: 28px; background: var(--accent); box-shadow: 0 7px 17px rgba(99, 72, 22, .25); }
.bottom-bar::after { content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px; background: rgba(255,255,255,.45); }
.bottom-bar a, .bottom-bar button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; color: white; background: transparent; text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.bottom-bar svg { width: 16px; }

.toast { position: fixed; z-index: 50; bottom: 80px; left: 50%; max-width: calc(100% - 40px); padding: 10px 17px; border-radius: 5px; color: #fff; background: rgba(16, 18, 22, .88); opacity: 0; transform: translate(-50%, 12px); transition: .2s ease; pointer-events: none; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox button { position: fixed; top: 20px; right: 20px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.15); cursor: pointer; }

@media (max-width: 360px) {
  .card-page { padding-right: 10px; padding-left: 10px; }
  .hero-card { padding-right: 18px; padding-left: 18px; }
  .qr-card { min-height: 270px; padding: 20px; }
}

@media (min-width: 700px) {
  .card-page { box-shadow: 0 0 40px rgba(23, 32, 45, .12); }
}
