/* ============================================================
   云上祈福 · 云上祈福 —— 用户端全局样式
   设计基调：宣纸米黄 + 朱红描金 + 水墨远山
   @author 云上祈福项目组
   @date 2026-08-10
   ============================================================ */

:root {
    --red: #b62c22;
    --red-deep: #8d1a12;
    --red-light: #d9543c;
    --gold: #d9a441;
    --gold-soft: #eccb87;
    --gold-pale: #f6e3b6;
    --ink: #4a3222;
    --ink-light: #7a5a3c;
    --paper: #fdf3dc;
    --paper-deep: #f4e2bd;
    --shadow: 0 10px 26px rgba(96, 60, 28, .22);
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "SimSun", serif;
    color: var(--ink);
    background: #e3d6ba;
    background-image:
        radial-gradient(circle at 50% -10%, #f7eed9 0%, #e7dbc0 42%, #d8c8a6 100%),
        repeating-linear-gradient(45deg, rgba(130, 95, 50, .05) 0 2px, transparent 2px 7px);
    display: flex;
    justify-content: center;
    line-height: 1.7;
}

/* 手机画布：移动端全屏，桌面端居中放大以适配网页浏览 */
.phone {
    position: relative;
    width: 100%;
    max-width: 540px;
    min-height: 100vh;
    overflow: hidden;
    background-color: #fbf0d6;
    background-image:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .82), transparent 52%),
        radial-gradient(circle at 82% 72%, rgba(255, 250, 230, .75), transparent 60%),
        repeating-linear-gradient(0deg, rgba(176, 132, 70, .06) 0 1px, transparent 1px 5px);
    box-shadow: 0 0 46px rgba(83, 54, 22, .3);
}

@media (min-width: 600px) {
    body {
        padding: 0;
    }
    .phone {
        max-width: 560px;
        font-size: 16px;
        box-shadow: 0 0 0 1px rgba(180, 140, 80, .35), 0 24px 70px rgba(70, 45, 18, .35);
    }
}

@media (min-width: 900px) {
    .phone {
        max-width: 600px;
        font-size: 17px;
        box-shadow: 0 0 0 1px rgba(180, 140, 80, .35), 0 28px 80px rgba(70, 45, 18, .38);
    }
}

/* ---------- 顶部导航 ---------- */
.nav {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 14px;
    background: linear-gradient(180deg, rgba(253, 243, 220, .96), rgba(253, 243, 220, .55) 70%, rgba(253, 243, 220, 0));
}

.nav-title {
    font-size: 18px;
    letter-spacing: 3px;
    color: #6b4525;
    text-shadow: 0 1px 0 #fff8e8;
}

.nav-back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #7a5636;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.nav-action {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(182, 44, 34, .45);
    background: rgba(255, 250, 236, .75);
    color: var(--red);
    border-radius: 999px;
    font-size: 12px;
    padding: 4px 12px;
    cursor: pointer;
    font-family: inherit;
}

/* ---------- 通用纸张卡片 ---------- */
.paper-card {
    position: relative;
    background: linear-gradient(160deg, #fffaf0 0%, #fbeecf 58%, #f5e3bc 100%);
    border: 2px solid #dfb96e;
    border-radius: 16px;
    box-shadow:
        inset 0 0 0 4px rgba(255, 248, 231, .9),
        inset 0 0 36px rgba(209, 168, 92, .25),
        var(--shadow);
}

.paper-card::before,
.paper-card::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(182, 44, 34, .38);
    pointer-events: none;
}

.paper-card::before {
    left: 8px;
    top: 8px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 8px 0 0 0;
}

.paper-card::after {
    right: 8px;
    bottom: 8px;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 8px 0;
}

/* ---------- 印章标题 ---------- */
.seal-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--red);
    font-size: 26px;
    letter-spacing: 6px;
}

.seal-heading::before,
.seal-heading::after {
    content: "";
    width: 54px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(182, 44, 34, .55));
}

.seal-heading::after {
    background: linear-gradient(90deg, rgba(182, 44, 34, .55), transparent);
}

/* ---------- 红金主按钮 ---------- */
.btn-seal {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 13px 40px;
    border: 2px solid #eccb87;
    border-radius: 999px;
    background: linear-gradient(180deg, #d24a35 0%, #b62c22 48%, #97190f 100%);
    color: #ffeec4;
    font-family: inherit;
    font-size: 21px;
    letter-spacing: 6px;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 3px rgba(255, 236, 190, .16),
        inset 0 8px 14px rgba(255, 200, 150, .22),
        0 8px 18px rgba(140, 30, 20, .35);
    text-shadow: 0 1px 2px rgba(110, 20, 10, .6);
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-seal:active {
    transform: translateY(2px) scale(.98);
    box-shadow: inset 0 0 0 3px rgba(255, 236, 190, .16), 0 3px 8px rgba(140, 30, 20, .35);
}

.btn-seal::before,
.btn-seal::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%) rotate(45deg);
    border: 1px solid #f0d59a;
    opacity: .65;
}

.btn-seal::before {
    left: 12px;
}

.btn-seal::after {
    right: 12px;
}

.btn-seal::after,
.btn-seal::before {
    background: rgba(255, 226, 170, .16);
}

.btn-seal[disabled] {
    filter: grayscale(.35);
    opacity: .65;
    cursor: not-allowed;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border: 1px solid rgba(182, 44, 34, .4);
    border-radius: 999px;
    background: rgba(255, 248, 231, .7);
    color: #9c3326;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
}

.btn-ghost:active {
    background: rgba(244, 226, 189, .9);
}

/* ---------- 底部山水装饰 ---------- */
.foot-scene {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}

.page-main {
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 56px);
    padding-bottom: 40px;
}

/* ---------- 轻提示 ---------- */
.toast {
    position: fixed;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%) scale(.94);
    max-width: min(86vw, 380px);
    padding: 14px 26px;
    border: 2px solid #dfb96e;
    border-radius: 12px;
    background: rgba(255, 249, 232, .98);
    color: var(--red);
    font-size: 16px;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: var(--shadow);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    line-height: 1.6;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ---------- 弹窗 ---------- */
.dialog-mask {
    position: fixed;
    inset: 0;
    background: rgba(52, 33, 16, .42);
    backdrop-filter: blur(2px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.dialog-mask.show {
    opacity: 1;
    pointer-events: auto;
}

.dialog-card {
    width: min(100%, 360px);
    padding: 26px 22px 20px;
    border: 2px solid #dfb96e;
    border-radius: 16px;
    background: linear-gradient(160deg, #fffaf0, #f7e6c6);
    box-shadow:
        inset 0 0 0 4px rgba(255, 248, 231, .9),
        0 24px 50px rgba(60, 35, 12, .38);
    transform: translateY(10px);
    transition: transform .2s ease;
    text-align: center;
}

.dialog-mask.show .dialog-card {
    transform: translateY(0);
}

.dialog-title {
    color: var(--red);
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.dialog-content {
    color: #6a4a2e;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 18px;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dialog-btn {
    min-width: 104px;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
    border: 1px solid #d7b46c;
    background: rgba(255, 251, 238, .85);
    color: #7c5637;
}

.dialog-btn.primary {
    background: linear-gradient(180deg, #d24a35, #a8221a);
    border-color: #eccb87;
    color: #fff0cf;
}

/* ---------- 特别声明 ---------- */
.notice-main {
    padding: 6px 16px 40px;
}

.notice-card {
    padding: 34px 24px 30px;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.notice-title {
    text-align: center;
    color: #7c2f1f;
    font-size: 28px;
    letter-spacing: 8px;
    margin-bottom: 26px;
    text-shadow: 0 1px 0 #fff8e6;
}

.notice-text {
    flex: 1;
    font-size: 16px;
    line-height: 2.15;
    color: #4c3420;
    letter-spacing: 1px;
    text-indent: 2em;
}

.notice-text p {
    margin: 0 0 20px;
}

.notice-footer {
    margin-top: 24px;
    padding: 0 4px;
    font-size: 13px;
    color: #7b5734;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.notice-footer::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #b58355;
}

.notice-actions {
    text-align: center;
    padding: 10px 0 34px;
}

/* ---------- 地图首页 ---------- */
.map-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: -56px;
    overflow: hidden;
    background: #eef1da;
}

.map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-brand {
    position: absolute;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 6px 22px;
    background: linear-gradient(180deg, rgba(255, 249, 232, .88), rgba(255, 249, 232, .55));
    border: 1px solid rgba(198, 160, 96, .6);
    border-radius: 999px;
    color: #7a3a22;
    letter-spacing: 4px;
    font-size: 15px;
    box-shadow: 0 3px 12px rgba(90, 60, 20, .15);
}

.map-node {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 12;
    cursor: pointer;
    user-select: none;
    text-align: center;
    transition: transform .25s ease, filter .25s ease;
}

.map-node:active {
    transform: translate(-50%, -50%) scale(.96);
}

.map-node .art {
    width: 176px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 12px rgba(74, 50, 24, .28));
}

.map-node .label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: -6px;
}

.map-node .plaque {
    display: inline-block;
    padding: 6px 14px 7px;
    border: 2px solid #c9a05c;
    outline: 3px double rgba(255, 248, 228, .95);
    background: linear-gradient(180deg, #fff9e8, #f2ddb2);
    box-shadow: 0 3px 8px rgba(100, 65, 30, .2);
    transform: rotate(-1.5deg);
}

.map-node .plaque .name {
    display: block;
    color: #5c3a21;
    font-size: 20px;
    letter-spacing: 4px;
    line-height: 1.3;
}

.map-node .plaque .enter {
    display: block;
    color: var(--red);
    font-size: 11px;
    letter-spacing: 2px;
    line-height: 1.4;
}

.map-node.label-left .label {
    flex-direction: row-reverse;
}

.map-tip {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 12px;
    color: #8a6a43;
    background: rgba(255, 250, 236, .7);
    border: 1px solid rgba(198, 160, 96, .5);
    border-radius: 999px;
    padding: 5px 16px;
    letter-spacing: 2px;
}

/* ---------- 寺院介绍 ---------- */
.temple-main {
    position: relative;
    min-height: calc(100vh - 56px);
    padding: 0 16px 46px;
}

.temple-bg {
    position: absolute;
    inset: -56px 0 0;
    opacity: .55;
}

/* 寺院写实背景图（南海观音等） */
.temple-scene {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.temple-card {
    position: relative;
    z-index: 6;
    margin-top: 6vh;
    padding: 34px 26px 30px;
    text-align: center;
}

/* 扇形卷轴面板（南海观音页） */
.fan-panel {
    background: linear-gradient(180deg, #fffbeb 0%, #f8eccb 100%);
    border: 2px solid #b62c22;
    border-radius: 24px 24px 18px 18px / 40px 40px 12px 12px;
    box-shadow:
        inset 0 0 0 3px rgba(255, 248, 224, .9),
        0 12px 30px rgba(80, 40, 15, .3);
    padding-top: 40px;
}

.fan-panel::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #b62c22, transparent);
    opacity: .6;
}

.temple-name {
    font-size: 34px;
    letter-spacing: 10px;
    color: #96281d;
    text-shadow: 0 2px 0 rgba(255, 250, 235, .9);
}

.temple-subtitle {
    display: inline-block;
    margin: 10px 0 18px;
    padding: 3px 16px;
    border: 1px solid rgba(182, 44, 34, .28);
    border-radius: 999px;
    color: #8d5c2e;
    font-size: 12px;
    letter-spacing: 3px;
}

.temple-desc {
    text-align: left;
    color: #4d3521;
    font-size: 15.5px;
    line-height: 2.05;
    letter-spacing: .6px;
    text-indent: 2em;
}

.temple-desc p {
    margin: 0 0 12px;
}

.temple-actions {
    margin-top: 26px;
    text-align: center;
}

/* ---------- 商品选择 ---------- */
.products-head {
    position: relative;
    margin: 0 16px 16px;
    padding: 12px;
    border: 2px solid #d8b26b;
    border-radius: 12px;
    background: linear-gradient(150deg, #fdf5e2, #f2ddb2);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(110, 70, 30, .15);
}

.products-head .banner {
    width: 130px;
    height: 88px;
    flex: 0 0 auto;
    border: 1px solid #b88a4c;
    border-radius: 6px;
    overflow: hidden;
    background: #f6e8c9;
}

.temple-banner-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-head .titles {
    color: #8d241b;
    text-align: center;
    flex: 1;
    font-size: 19px;
    letter-spacing: 3px;
    line-height: 1.5;
}

.products-sub {
    text-align: center;
    font-size: 12px;
    color: #8a6a43;
    letter-spacing: 2px;
    margin: 4px 0 12px;
}

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

.product-card {
    position: relative;
    padding: 14px 8px 12px;
    border: 1.5px solid #d6b577;
    border-radius: 10px;
    background: linear-gradient(160deg, #fffdf6, #f7e8c9);
    box-shadow:
        inset 0 0 0 3px rgba(255, 250, 238, .85),
        0 4px 10px rgba(112, 74, 32, .16);
    text-align: center;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

/* 回纹角花装饰（参考图四角纹样） */
.product-card::before,
.product-card::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1.5px solid #c08a3e;
    pointer-events: none;
}

.product-card::before {
    top: 3px;
    left: 3px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 3px 0 0 0;
}

.product-card::after {
    bottom: 3px;
    right: 3px;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 3px 0;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #c08a3e;
    box-shadow:
        inset 0 0 0 3px rgba(255, 250, 238, .9),
        0 8px 16px rgba(112, 74, 32, .22);
}

.product-card:active {
    transform: scale(.985);
}

.product-card.selected {
    border-color: #b62c22;
    background: linear-gradient(160deg, #fff8e7, #f3dcb0);
    box-shadow:
        inset 0 0 0 3px rgba(255, 244, 212, .95),
        0 0 0 2px rgba(217, 164, 65, .9),
        0 10px 20px rgba(150, 65, 30, .26);
}

.product-card.selected::after {
    content: "✓";
    position: absolute;
    right: 7px;
    top: 6px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d24a35, #a8221a);
    color: #ffefcb;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(120, 30, 20, .4);
}

.product-art {
    width: 96px;
    height: 96px;
    margin: 4px auto 6px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff8eb;
}

.product-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-subtitle {
    display: inline-block;
    padding: 1px 10px;
    margin-bottom: 2px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #b26a14;
    background: rgba(217, 164, 65, .14);
    border: 1px solid rgba(217, 164, 65, .45);
    border-radius: 999px;
}

.product-card.selected .product-subtitle {
    color: #a02418;
    background: rgba(182, 44, 34, .08);
    border-color: rgba(182, 44, 34, .32);
}

.product-name {
    font-size: 14px;
    color: #4d3420;
    line-height: 1.5;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

.product-price {
    color: #b62c22;
    font-size: 15px;
    margin-top: 2px;
}

.product-price .yen {
    font-size: 11px;
    margin-right: 1px;
}

.product-detail-btn {
    margin-top: 7px;
    padding: 3px 16px;
    border: 1px solid #e8c27a;
    border-radius: 999px;
    background: linear-gradient(180deg, #c9422f, #a41f16);
    color: #ffefcb;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(130, 30, 20, .28);
}

.products-hint {
    margin: 16px 0 4px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    color: #8a6a43;
}

.products-hint strong {
    color: var(--red);
    font-weight: normal;
    margin: 0 3px;
}

.floating-tip {
    position: fixed;
    left: 50%;
    bottom: 112px;
    transform: translateX(-50%) translateY(10px);
    width: min(88vw, 420px);
    padding: 10px 36px;
    z-index: 80;
    border: 1px solid #d8b26b;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 249, 232, .97), rgba(250, 238, 206, .97), rgba(255, 249, 232, .97));
    color: #a5301f;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(100, 65, 25, .22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.floating-tip::before,
.floating-tip::after {
    content: "❀";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #d9a441;
}

.floating-tip::before {
    left: 12px;
}

.floating-tip::after {
    right: 12px;
}

.floating-tip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bottom-bar {
    position: relative;
    z-index: 20;
    padding: 22px 16px 26px;
    text-align: center;
}

/* ---------- 日历 ---------- */
.calendar-wrap {
    padding: 4px 16px 40px;
    position: relative;
    z-index: 5;
}

.calendar-card {
    padding: 20px 14px 24px;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px 14px;
    border-bottom: 2px solid rgba(217, 164, 65, .45);
}

.calendar-head .month-title {
    color: #8e241a;
    font-size: 20px;
    letter-spacing: 2px;
}

.calendar-arrow {
    width: 34px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #a3472c;
    font-size: 18px;
    cursor: pointer;
    font-family: inherit;
}

.calendar-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: 12px;
    padding: 5px 0;
    background: linear-gradient(180deg, #b62c22, #981d14);
    color: #ffeec9;
    font-size: 13px;
    text-align: center;
    border-radius: 8px 8px 4px 4px;
    letter-spacing: 1px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px 2px;
    margin-top: 8px;
}

.cal-cell {
    position: relative;
    min-height: 56px;
    padding: 5px 0 3px;
    border: 0;
    background: transparent;
    color: #4c3220;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.cal-cell .solar {
    font-size: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.cal-cell .lunar {
    font-size: 11px;
    color: #8a6642;
    line-height: 1.2;
    letter-spacing: 1px;
}

.cal-cell.lunar-first .lunar {
    color: #b62c22;
}

.cal-cell.locked {
    opacity: .34;
    cursor: not-allowed;
}

.cal-cell.selected {
    background: transparent;
}

.cal-cell.selected .solar {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e0644c, #a61f16 72%);
    color: #ffefc9;
    box-shadow: 0 3px 8px rgba(140, 30, 20, .35);
}

.cal-cell.selected .lunar {
    color: #b62c22;
}

.cal-empty {
    grid-column: 1 / -1;
    padding: 34px 0;
    text-align: center;
    color: #8a6a43;
    font-size: 14px;
    letter-spacing: 2px;
}

.calendar-title {
    position: relative;
    margin: 22px 0 16px;
    text-align: center;
    color: #96281d;
    font-size: 26px;
    letter-spacing: 5px;
}

.calendar-title::after {
    content: "";
    position: absolute;
    right: calc(50% - 128px);
    top: 2px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(182, 44, 34, .45);
    border-radius: 8px;
    transform: rotate(-9deg);
    pointer-events: none;
}

.cal-info {
    min-height: 118px;
    margin: 0 4px;
    padding: 16px 18px;
    border: 1px solid rgba(190, 148, 84, .6);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 248, 228, .85), rgba(244, 224, 184, .72));
    box-shadow: inset 0 0 18px rgba(205, 165, 95, .18);
}

.cal-info .label {
    color: #8c2a20;
    font-size: 13px;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 6px;
}

.cal-info .date-line {
    color: #4d3420;
    font-size: 15px;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.cal-info .note-title {
    color: #a3352a;
    font-size: 13px;
    margin-bottom: 2px;
}

.cal-info .note {
    color: #654832;
    font-size: 12.5px;
    line-height: 1.85;
}

.cal-info.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c6b48;
    font-size: 14px;
    letter-spacing: 2px;
}

/* ---------- 祈福信息表单 ---------- */
/* 祈福类型：悬挂许愿牌（可横向滑动，适配 7 个类型） */
.tag-row {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 16px 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tag-row::-webkit-scrollbar {
    display: none;
}

.tibet-tag {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    padding: 12px 4px 18px;
    text-align: center;
    border: 1px solid #b8863e;
    border-radius: 4px 4px 10px 10px;
    background:
        linear-gradient(180deg, #fdf3cf 0%, #efcf86 55%, #e0b85e 100%);
    color: #9c2418;
    font-size: 16px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    box-shadow:
        inset 0 0 0 2px rgba(255, 246, 220, .7),
        0 4px 10px rgba(120, 80, 30, .28);
    transform-origin: top center;
    margin-top: 16px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: tagSway 4s ease-in-out infinite;
}

.tibet-tag:nth-child(2n) {
    animation-delay: -1.2s;
}

.tibet-tag:nth-child(3n) {
    animation-delay: -2.4s;
}

@keyframes tagSway {
    0%, 100% { transform: rotate(-1.5deg); }
    50% { transform: rotate(1.5deg); }
}

.tibet-tag:hover {
    box-shadow:
        inset 0 0 0 2px rgba(255, 246, 220, .85),
        0 0 0 2px rgba(182, 44, 34, .55),
        0 6px 14px rgba(120, 80, 30, .32);
}

.tibet-tag.active {
    background: linear-gradient(180deg, #fde7b8 0%, #f3c76a 55%, #e6a93a 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255, 246, 220, .9),
        0 0 0 2px rgba(182, 44, 34, .7),
        0 6px 16px rgba(150, 50, 30, .35);
}

/* 许愿牌顶部挂绳 */
.tibet-tag::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -16px;
    width: 1px;
    height: 16px;
    background: #8a6333;
}

/* 许愿牌底部红色流苏 */
.tibet-tag::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 12px solid #b62c22;
    filter: drop-shadow(0 1px 1px rgba(120, 30, 20, .4));
}

/* 许愿牌顶部孔位 */
.tibet-tag .tag-hole {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7a4a1e;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5);
}

.form-card {
    padding: 6px 18px 16px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 10px 2px;
    border-bottom: 1.5px solid rgba(190, 148, 84, .42);
}

.form-row:last-child {
    border-bottom: 0;
}

.form-row.column {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
}

.form-row .lantern {
    width: 20px;
    height: 26px;
    flex: 0 0 auto;
    opacity: .85;
}

.form-row .field-label {
    width: 62px;
    flex: 0 0 auto;
    color: #9b2a20;
    font-size: 14px;
    letter-spacing: 1px;
}

.form-row .field-body {
    flex: 1;
    min-width: 0;
}

.form-control {
    width: 100%;
    border: 0;
    background: transparent;
    color: #4a3222;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    padding: 5px 2px;
}

.form-control::placeholder {
    color: #a58b6d;
    font-size: 13.5px;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #a4472c 50%), linear-gradient(135deg, #a4472c 50%, transparent 50%);
    background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color: #7c5637;
    font-size: 14px;
    padding-right: 28px;
}

textarea.form-control {
    min-height: 96px;
    resize: none;
    background: rgba(255, 250, 236, .72);
    border: 1px solid rgba(196, 155, 92, .5);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #4a3222;
}

.counter {
    text-align: right;
    font-size: 12px;
    color: #93724c;
    padding-top: 2px;
}

.form-hint {
    text-align: center;
    font-size: 12px;
    color: #8a6a43;
    letter-spacing: 1.5px;
    padding: 8px 0 0;
}

/* ---------- 订单确认 ---------- */
.confirm-wrap {
    padding: 8vh 18px 40px;
}

.confirm-card {
    padding: 28px 24px 24px;
}

.confirm-lead {
    color: #7f2a1e;
    font-size: 16px;
    letter-spacing: 1px;
    text-align: center;
    line-height: 2.1;
}

.confirm-lead .strong {
    color: #b62c22;
    font-size: 18px;
    margin: 0 2px;
}

.cost-panel {
    margin: 20px 0 12px;
    padding: 16px 18px;
    border: 1px solid rgba(196, 155, 92, .6);
    border-radius: 10px;
    background: rgba(255, 250, 236, .6);
}

.cost-panel .cost-title {
    color: #96382a;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    color: #4c3420;
    font-size: 14px;
}

.cost-row .cost-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: #fff8eb;
    border: 1px solid #d6b577;
}

.cost-row .name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cost-row .price {
    flex: 0 0 auto;
}

.total-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin: 22px 0 18px;
    color: #b62c22;
    letter-spacing: 2px;
}

.total-row .total-label {
    font-size: 16px;
}

.total-row .total-value {
    font-size: 26px;
}

.total-row .total-value .yen {
    font-size: 14px;
    margin-right: 2px;
}

/* ---------- 订单结果 ---------- */
.result-wrap {
    padding: 4vh 18px 40px;
    position: relative;
    min-height: calc(100vh - 56px);
}

.scroll-wrap {
    position: relative;
    z-index: 6;
    padding: 34px 18px 0;
}

.scroll-rod {
    height: 14px;
    margin: 0 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #c98c4e, #a4542c 55%, #8b3d1c);
    box-shadow: 0 4px 8px rgba(90, 45, 18, .3);
    position: relative;
}

.scroll-rod::before,
.scroll-rod::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 20px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #e2b070, #96501f);
    box-shadow: 0 3px 6px rgba(80, 40, 15, .3);
}

.scroll-rod::before {
    left: -12px;
}

.scroll-rod::after {
    right: -12px;
}

.scroll-body {
    padding: 26px 20px 30px;
    background: linear-gradient(180deg, #f7e9c6 0%, #fdf5e1 20%, #fdf5e1 84%, #f3e0b7 100%);
    border-left: 1px solid rgba(180, 130, 70, .35);
    border-right: 1px solid rgba(180, 130, 70, .35);
    box-shadow: inset 0 0 30px rgba(196, 150, 80, .25);
    text-align: center;
}

.result-seal {
    width: 178px;
    height: 178px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 3px solid rgba(182, 44, 34, .78);
    outline: 2px dashed rgba(182, 44, 34, .45);
    outline-offset: 6px;
    background: radial-gradient(circle at 50% 40%, #fff9e8, #f4dab0 78%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: inset 0 0 24px rgba(190, 140, 70, .3), 0 6px 14px rgba(110, 70, 30, .16);
}

.result-seal .lotus {
    width: 62px;
    height: 46px;
}

.result-seal .seal-title {
    color: #96281d;
    font-size: 20px;
    letter-spacing: 4px;
}

.result-seal .seal-sub {
    color: #8a6a43;
    font-size: 11px;
    letter-spacing: 2px;
}

.result-text {
    color: #5a3c25;
    font-size: 15px;
    line-height: 2.05;
    letter-spacing: 1px;
    margin-top: 8px;
}

.result-text .date {
    color: #b62c22;
}

.result-text .lunar {
    color: #b62c22;
    font-size: 17px;
}

.result-order-no {
    margin-top: 18px;
    font-size: 12px;
    color: #87663f;
    letter-spacing: 1px;
}

.result-total {
    margin-top: 4px;
    font-size: 14px;
    color: #96281d;
}

.result-actions {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.result-status-tip {
    font-size: 12px;
    color: #8a6a43;
    letter-spacing: 1px;
}

/* ---------- 响应式 ---------- */
/* ---------- 补充：地图声明入口、插画尺寸、日历空白格 ---------- */
.map-declare {
    position: absolute;
    top: 64px;
    right: 14px;
    z-index: 20;
    padding: 5px 13px;
    border: 1px solid rgba(182, 44, 34, .5);
    border-radius: 999px;
    background: rgba(255, 249, 232, .9);
    color: var(--red);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(90, 60, 20, .16);
}

.map-node .art svg,
.product-art svg,
.products-head .banner svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.product-art svg {
    height: 100%;
}

.result-seal .lotus {
    display: block;
    width: 62px;
    height: 46px;
    margin: 0 auto;
}

.dialog-card svg {
    display: block;
    width: 100%;
    height: auto;
}

.cal-blank {
    min-height: 56px;
}

/* ---------- 响应式 ---------- */
@media (max-height: 700px) {
    .map-node .art {
        width: 148px;
    }
    .notice-card {
        min-height: auto;
    }
}

@media (max-width: 360px) {
    .product-grid {
        gap: 10px 8px;
        padding: 0 12px;
    }
    .product-art {
        width: 70px;
        height: 70px;
    }
    .tag-row {
        padding-left: 8px;
        padding-right: 8px;
    }
    .tibet-tag {
        font-size: 13px;
    }
}
