:root {
    --p: #d8a64e;
    --pd: #a87521;
    --ink: #17130d;
    --dark: #0c0c0c;
    --muted: #7a705f;
    --card: rgba(255,255,255,.9);
    --line: rgba(216,166,78,.28);
    --price-fill: #9a6a20;
    --price-fill-2: #d8a64e;
    --price-shadow: rgba(95,64,16,.18);
    --price-ring: rgba(216,166,78,.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--ink);
    background: #0d0b08;
    overflow-x: hidden;
}

.hero-bg,
.overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.hero-bg {
    z-index: -3;
    background-size: cover;
    background-position: center top;
    filter: none;
}

.overlay {
    z-index: -2;
    background: linear-gradient(180deg, rgba(10,9,7,.18), rgba(10,9,7,.08) 52%, rgba(10,9,7,.2));
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 44px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0 22px;
}

.logo,
.admin-link,
.primary-link {
    color: inherit;
    text-decoration: none;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff3cf;
    font-size: clamp(1.15rem, 3vw, 1.7rem);
    font-weight: 900;
    letter-spacing: .04em;
    text-shadow: 0 2px 16px rgba(0,0,0,.42);
}

.logo-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,221,150,.5);
    border-radius: 14px;
    color: #111;
    background: linear-gradient(135deg, #f7d68a, #a87521);
    box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255,221,150,.34);
    border-radius: 999px;
    color: #fff3cf;
    background: rgba(15,14,11,.56);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
    font-weight: 900;
}

.brand-hero {
    max-width: 900px;
    min-height: min(54vh, 540px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(38px, 8vw, 74px) 0 34px;
    color: #fff8e6;
    text-shadow: 0 2px 18px rgba(0,0,0,.42);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    color: #f7d68a;
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-hero h1 {
    max-width: 900px;
    color: #fff4d5;
    font-size: clamp(2.35rem, 7vw, 5.4rem);
    line-height: 1.05;
    font-weight: 900;
}

.brand-hero p:not(.hero-kicker) {
    max-width: 760px;
    margin-top: 18px;
    color: rgba(255,248,230,.9);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.85;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255,221,150,.34);
    border-radius: 999px;
    color: #ffe7aa;
    background: rgba(12,12,12,.52);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.main-card,
.query-section {
    padding: clamp(22px, 5vw, 42px);
    border: 1px solid rgba(216,166,78,.28);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 26px 80px rgba(60,39,8,.18);
    backdrop-filter: blur(18px);
}

.wizard-header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.wizard-header h2,
.query-header h2 {
    color: #251a0a;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
}

.wizard-header p,
.query-header p,
.service-meta,
.summary-box p,
.footer {
    color: var(--muted);
    line-height: 1.8;
}

.steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 34px;
}

.steps-container:before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 2px;
    background: #eadbb9;
}

.step {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #8a7a62;
    font-weight: 800;
}

.step span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #eadbb9;
    border-radius: 999px;
    background: #fffaf0;
    transition: .22s;
}

.step.active span,
.step.completed span {
    border-color: var(--p);
    background: linear-gradient(135deg, #f7d68a, #b37b25);
    color: #1d1406;
    box-shadow: 0 12px 26px rgba(168,117,33,.22);
}

.step.active label { color: #8c5e17; }

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

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(216,166,78,.25);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(50,33,8,.08);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216,166,78,.52);
    box-shadow: 0 20px 44px rgba(50,33,8,.12);
}

.service-card.selected {
    border-color: var(--p);
    background: #fff8e7;
    box-shadow: 0 0 0 3px var(--price-ring), 0 20px 44px rgba(50,33,8,.12);
}

.service-image-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #1b1710;
    cursor: zoom-in;
    overflow: hidden;
}

.service-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.service-zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17,24,39,.78);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(6px);
    transition: .22s;
}

.service-image-button:hover .service-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.service-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.service-name {
    color: #22170a;
    font-size: 1.03rem;
    line-height: 1.55;
    font-weight: 900;
}

.service-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    align-items: stretch;
    margin-top: auto;
    font-weight: 800;
}

.service-meta .price {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--price-fill), var(--price-fill-2));
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
    text-shadow: 0 1px 1px rgba(15,23,42,.22);
    box-shadow: 0 10px 20px var(--price-shadow), inset 0 1px 0 rgba(255,255,255,.28);
    transform: translateY(0);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.service-card:hover .service-meta .price {
    filter: brightness(1.04) saturate(1.04);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px var(--price-shadow), inset 0 1px 0 rgba(255,255,255,.32);
}

.service-card:active .service-meta .price {
    transform: translateY(1px);
    box-shadow: 0 7px 14px var(--price-shadow), inset 0 1px 0 rgba(255,255,255,.22);
}

.service-card.selected .service-meta .price {
    box-shadow: 0 0 0 3px var(--price-ring), 0 12px 24px var(--price-shadow), inset 0 1px 0 rgba(255,255,255,.3);
}

.d-none { display: none !important; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.py-5 { padding: 40px 0; }
.text-accent { color: #a87521; }
.small { font-size: .9rem; }
.fw-bold { font-weight: 900; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 18px; }
.mt-2 { margin-top: 8px; }
.d-block { display: block; }
.cursor-pointer { cursor: pointer; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.custom-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #e5d3a9;
    border-radius: 12px;
    background: #fff;
    color: #20170a;
    font-family: inherit;
    font-size: 1rem;
}

.custom-input:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 4px rgba(216,166,78,.16);
    outline: none;
}

.panther-calendar {
    padding: 20px;
    border: 1px solid #e5d3a9;
    border-radius: 22px;
    background: #fffdf8;
    box-shadow: 0 18px 50px rgba(91,63,14,.1);
}

.cal-header,
.time-title-row,
.wizard-footer,
.query-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cal-header {
    margin-bottom: 14px;
    color: #5c3d10;
    font-size: 1.2rem;
    font-weight: 900;
}

.cal-header button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #fff2d0;
    color: #8c5e17;
    cursor: pointer;
}

.cal-days,
.cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.cal-days {
    margin-bottom: 8px;
    color: #9a6a20;
    font-weight: 900;
}

.cal-body {
    gap: 2px;
}

.cal-body .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff7e4;
    color: #4b3510;
    cursor: pointer;
    font-weight: 800;
}

.cal-body .day:hover,
.cal-body .day.selected {
    background: #a87521;
    color: #fff;
}

.cal-body .day.disabled {
    opacity: .35;
    cursor: not-allowed;
    filter: grayscale(1);
}

.time-title-row {
    margin: 20px 0 14px;
}

.time-slots-section:focus {
    outline: 0;
}

.time-title-row h4,
.time-group h4 {
    color: #251a0a;
    font-weight: 900;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 10px;
    margin: 10px 0 18px;
}

.time-btn {
    min-height: 42px;
    border: 1px solid #e5d3a9;
    border-radius: 10px;
    background: #fff;
    color: #3b2a0e;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
}

.time-btn small {
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    font-weight: 700;
    opacity: .78;
}

.time-btn:hover,
.time-btn.selected {
    border-color: #a87521;
    background: #a87521;
    color: #fff;
}

.time-btn:disabled {
    opacity: .32;
    cursor: not-allowed;
}

.time-btn.selected:disabled {
    opacity: 1;
    cursor: default;
}

.wizard-footer {
    margin-top: 22px;
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #9a6a20, #d8a64e);
    box-shadow: 0 12px 24px rgba(95,64,16,.18);
}

.btn-secondary,
.btn-outline {
    border: 1px solid #d6bd83;
    color: #8c5e17;
    background: #fffdf8;
}

.btn-line {
    width: 100%;
    margin: 16px 0 10px;
    color: #fff;
    background: #06c755;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.form-grid label {
    color: #3a2b12;
    font-weight: 900;
}

.summary-box {
    margin: 20px 0;
    padding: 18px;
    border: 1px dashed #d6bd83;
    border-radius: 16px;
    background: #fff8e8;
}

.summary-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #3a2b12;
}

.summary-box p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.total-price-text {
    color: #8c5e17 !important;
    font-size: 1.15rem;
    font-weight: 900;
}

.success-message {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.check-icon {
    color: #0f9f4d;
    font-size: 4rem;
}

.query-section {
    margin-top: 26px;
}

.query-header {
    margin-bottom: 18px;
    text-align: center;
}

.query-box {
    max-width: 560px;
    margin: 0 auto;
    align-items: stretch;
}

.booking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #eadbb9;
    border-radius: 12px;
    background: #fff;
}

.footer {
    padding: 36px 0 0;
    color: #6d604d;
    text-align: center;
    font-size: .86rem;
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(10px);
}

.image-viewer.is-open { display: flex; }
.image-viewer-panel {
    width: min(96vw, 980px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.image-viewer-panel img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 70px);
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.38);
    background: #fff;
}

.image-viewer-title {
    max-width: 920px;
    color: #fff;
    text-align: center;
    font-weight: 900;
}

.image-viewer-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
}

body.image-viewer-open { overflow: hidden; }

@media (max-width: 760px) {
    .container { width: min(100% - 24px, 1120px); padding-top: 12px; }
    .header { align-items: stretch; flex-direction: column; }
    .top-nav, .admin-link { width: 100%; }
    .brand-hero { min-height: 66vh; padding-bottom: 26px; }
    .brand-hero h1 { font-size: clamp(2.05rem, 12vw, 3.6rem); }
    .hero-badges span { width: 100%; }
    .main-card, .query-section { padding: 22px 16px; border-radius: 20px; }
    .steps-container { margin-bottom: 26px; }
    .step label { font-size: .78rem; }
    .services-grid, .form-grid { grid-template-columns: 1fr; }
    .service-meta .price { min-height: 44px; font-size: 1rem; }
    .time-title-row, .wizard-footer, .query-box { align-items: stretch; flex-direction: column; }
    .btn-primary, .btn-secondary, .btn-outline { width: 100%; }
}

/* ===== 瀏覽數統計列 ===== */
.visitor-counter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px clamp(14px, 4vw, 30px);
    background: #080604;
    border-top: 1px solid rgba(216,166,78,.22);
    border-bottom: 1px solid rgba(216,166,78,.12);
    color: #a89070;
    font-size: .9rem;
}
.visitor-counter:before {
    content: "瀏覽數統計";
    color: #d8a64e;
    font-weight: 950;
    margin-right: 4px;
}
.visitor-counter > span,
.visitor-counter-link > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(216,166,78,.32);
    border-radius: 999px;
    background: rgba(12,10,6,.88);
    box-shadow: 0 8px 18px rgba(0,0,0,.28);
    color: #f0d9a0;
    font-size: .9rem;
    line-height: 1;
    white-space: nowrap;
}
.visitor-counter-link {
    display: inline-flex;
    text-decoration: none;
}
.visitor-counter-link:hover > span,
.visitor-counter-link:focus > span {
    border-color: #d8a64e;
    color: #fff;
    background: rgba(216,166,78,.14);
}
.visitor-counter-map-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(125,255,174,.28);
    border-radius: 999px;
    background: rgba(12,10,6,.88);
    color: #7dffae;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.visitor-counter-map-link:hover,
.visitor-counter-map-link:focus {
    border-color: #22c55e;
    color: #fff;
    background: rgba(34,197,94,.14);
}
.visitor-counter-label {
    color: inherit;
    font-size: .9rem;
    font-weight: 950;
    line-height: 1;
}
.visitor-counter strong {
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
}
@media (max-width: 760px) {
    .visitor-counter { gap: 6px; padding: 12px 14px; font-size: .84rem; }
}
