/* ============================================================
   前台样式 · 深色卡片风，移动优先
   主题通过 <html data-theme="xxx"> 切换
   ============================================================ */

:root {
    --accent: #d2698d;
    --accent-2: #e2bd79;
    --accent-soft: rgba(210, 105, 141, .14);
    --bg: #16111c;
    --bg-2: #241826;
    --glow: rgba(210, 105, 141, .20);
    --card: linear-gradient(150deg, rgba(48, 32, 54, .92), rgba(25, 17, 32, .96));
    --text: #f4eef5;
    --muted: #a89aae;
    --line: rgba(255, 255, 255, .09);
    --radius: 24px;
    --shadow: 0 18px 46px rgba(0, 0, 0, .38);
}

html[data-theme="gold"] {
    --accent: #d8a94f;
    --accent-2: #f0d79a;
    --accent-soft: rgba(216, 169, 79, .14);
    --bg: #15110c;
    --bg-2: #211a11;
    --glow: rgba(216, 169, 79, .18);
    --card: linear-gradient(150deg, rgba(44, 35, 22, .92), rgba(22, 17, 12, .96));
    --text: #f6efe2;
    --muted: #b3a48c;
}

html[data-theme="mint"] {
    --accent: #3fbf9f;
    --accent-2: #9fe3cf;
    --accent-soft: rgba(63, 191, 159, .14);
    --bg: #0e1716;
    --bg-2: #14231f;
    --glow: rgba(63, 191, 159, .16);
    --card: linear-gradient(150deg, rgba(23, 42, 38, .92), rgba(14, 23, 22, .96));
    --text: #e9f5f1;
    --muted: #8fb0a8;
}

html[data-theme="ocean"] {
    --accent: #59a6d9;
    --accent-2: #a8d6f0;
    --accent-soft: rgba(89, 166, 217, .14);
    --bg: #0d1420;
    --bg-2: #121d2c;
    --glow: rgba(89, 166, 217, .18);
    --card: linear-gradient(150deg, rgba(23, 36, 55, .92), rgba(13, 20, 32, .96));
    --text: #eaf2fa;
    --muted: #90a4bb;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg);
    background-image:
        radial-gradient(900px 520px at 50% -8%, var(--glow), transparent 62%),
        radial-gradient(700px 420px at 110% 100%, var(--accent-soft), transparent 60%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

.page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 34px 18px calc(40px + env(safe-area-inset-bottom));
}

/* ---------------- hero ---------------- */

.hero {
    padding: 6px 2px 20px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .04em;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

h1 {
    margin: 18px 0 0;
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.2;
    letter-spacing: -.01em;
    font-weight: 800;
}

h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    letter-spacing: .18em;
}

.hours {
    display: inline-block;
    margin: 14px 0 0;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 12px;
}

/* ---------------- 轮播 ---------------- */

.carousel {
    position: relative;
    margin-top: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--bg-2);
    aspect-ratio: 4 / 3;
}

.carousel .slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity .6s ease;
}

.slide.is-active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(10, 8, 14, .42);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 0 0 3px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s ease;
}

.carousel .arrow:hover {
    background: rgba(10, 8, 14, .68);
}

.carousel .arrow.prev { left: 12px; }
.carousel .arrow.next { right: 12px; }

.carousel .dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel .dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.carousel .dots button.active {
    width: 18px;
    border-radius: 99px;
    background: var(--accent-2);
}

/* ---------------- 卡片 ---------------- */

.card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.kicker {
    display: block;
    color: var(--accent-2);
    font-size: 11px;
    letter-spacing: .22em;
    opacity: .85;
}

.card h2 {
    margin: 6px 0 12px;
    font-size: 19px;
    font-weight: 700;
}

.intro-text {
    margin: 0;
    color: var(--muted);
    white-space: pre-line;
    line-height: 1.9;
}

.notice {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}

.info {
    padding: 8px 18px 18px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.info-row:last-of-type {
    border-bottom: 0;
}

.info-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 15px;
}

.info-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.info-body small {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
}

.info-body strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    word-break: break-all;
}

.secondary-action {
    display: block;
    margin-top: 14px;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, .03);
    transition: background .2s ease, border-color .2s ease;
}

.secondary-action:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* ---------------- 二维码 ---------------- */

.qr-card {
    text-align: center;
}

.qr-card .muted {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.qr-frame {
    width: min(62%, 220px);
    margin: 0 auto;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.qr-frame img {
    width: 100%;
    border-radius: 10px;
}

.wechat-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px dashed var(--accent);
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .04em;
}

/* ---------------- 页脚 ---------------- */

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 4px 10px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.admin-link {
    opacity: .62;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    transition: opacity .2s ease, border-color .2s ease, color .2s ease;
}

.admin-link:hover {
    opacity: 1;
    border-color: var(--accent);
    color: var(--accent-2);
}

@media (min-width: 640px) {
    .page { padding-top: 52px; }
    .card { padding: 26px; }
    .carousel { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}