* { scroll-behavior: smooth; box-sizing: border-box; }
body {
    overflow-x: hidden;
    background: var(--tea-bg, #F8F5F2);
    color: var(--text-color, #4B5563);
}
.container-site {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}
.home-module[hidden] { display: none !important; }
.home-module.is-first-visible[data-home-module="banner"] #home { padding-top: 5rem; }
body.is-preview .loader { display: none !important; }
.home-row[hidden] { display: none !important; }
.home-row { width: 100%; }
.home-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--row-gap, 0px);
    width: 100%;
}
.home-col { min-width: 0; }
body.is-preview .home-col:empty {
    min-height: 88px;
    border: 1px dashed rgba(123, 7, 7, .28);
    background: rgba(123, 7, 7, .04);
    border-radius: 10px;
}
body.is-preview .home-col:empty::before {
    content: '此列为空，请从左侧拖入模块';
    display: block;
    color: #a07a7a;
    font-size: 12px;
    text-align: center;
    padding: 28px 8px;
}
@media (min-width: 768px) {
    .home-row[data-layout="2"] .home-cols { grid-template-columns: 1fr 1fr; }
    .home-row[data-layout="3"] .home-cols { grid-template-columns: 1fr 1fr 1fr; }
    .home-row[data-layout="2-1"] .home-cols { grid-template-columns: 2fr 1fr; }
    .home-row[data-layout="1-2"] .home-cols { grid-template-columns: 1fr 2fr; }
}
.home-module.is-bleed .container-site { max-width: none; }
.section-block {
    padding-top: var(--section-padding, 80px);
    padding-bottom: var(--section-padding, 80px);
}
body.is-preview .home-module,
body.is-preview .home-row { cursor: pointer; }
body.is-preview .home-module.is-picked {
    outline: 2px solid var(--brand, #7B0707);
    outline-offset: -2px;
    position: relative;
    z-index: 2;
}
body.is-preview .home-row.is-picked {
    outline: 2px dashed color-mix(in srgb, var(--brand, #7B0707) 70%, #fff);
    outline-offset: -2px;
}
.product-grid {
    display: grid;
    gap: var(--card-gap, 24px);
    grid-template-columns: repeat(var(--product-cols-mobile, 1), minmax(0, 1fr));
}
.item-grid > a {
    min-width: 0;
    overflow: hidden;
}
.item-grid h3,
.item-grid [data-card-summary],
.item-grid [data-inner-box] p {
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(var(--product-cols-pc, 4), minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .product-grid { gap: var(--card-gap, 12px); }
    .product-grid img { height: var(--card-image-h, 168px); }
    .product-grid h3 { font-size: var(--card-title-size, 16px); }
    .product-grid .p-6 { padding: 14px 12px; }
}
.section-title {
    font-size: clamp(24px, 4vw, var(--heading-size, 32px));
    font-family: "Noto Serif SC", serif;
    color: var(--brand, #7B0707);
    text-align: center;
    margin-bottom: 48px;
}
.glass {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--brand, #7B0707) 12%, transparent);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--brand, #7B0707) 8%, transparent);
    border-radius: var(--card-radius, 16px);
}
.glass-dark {
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
}
.hover-lift { transition: all 0.4s cubic-bezier(0.2,0,0.2,1); }
.hover-lift:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 40px color-mix(in srgb, var(--brand, #7B0707) 15%, transparent);
}
.light-shadow { position: relative; overflow: hidden; }
.light-shadow::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, color-mix(in srgb, var(--brand, #7B0707) 8%, transparent), transparent);
    transform: rotate(25deg);
    transition: all 0.6s ease;
    pointer-events: none;
}
.light-shadow:hover::after { top: 120%; }
.fade-in { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2,0,0.2,1); }
.fade-in.show { opacity: 1; transform: translateY(0); }
.btn-brand {
    background: var(--brand, #7B0707);
    color: #fff;
    border-radius: 10px;
    display: inline-block;
    transition: all .3s;
}
.btn-brand:hover { opacity: .9; box-shadow: 0 12px 24px color-mix(in srgb, var(--brand, #7B0707) 25%, transparent); }

.carousel-item { display: none; overflow: hidden; }
.carousel-item.active { display: block; animation: fadeScale 0.8s ease; }
@keyframes fadeScale {
    0% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
.carousel-video, .carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-item .media-pc { display: block; }
.carousel-item .media-mobile { display: none; }
@media (max-width: 767px) {
    .carousel-item .media-pc { display: none; }
    .carousel-item .media-mobile { display: block; }
}

.loader {
    position: fixed; inset: 0; background: var(--tea-bg, #F8F5F2);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-circle {
    width: 50px; height: 50px;
    border: 3px solid color-mix(in srgb, var(--brand, #7B0707) 20%, transparent);
    border-top-color: var(--brand, #7B0707);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
#header { transition: all 0.4s ease; }

.lang-dropdown { position: relative; }
.lang-menu { position: absolute; top: 100%; right: 0; min-width: 140px; display: none; z-index: 50; padding: 8px; }
.lang-dropdown:hover .lang-menu, .lang-dropdown:focus-within .lang-menu { display: block; }
.lang-item { cursor: pointer; padding: 6px 10px; border-radius: 6px; transition: .2s; }
.lang-item:hover { background: color-mix(in srgb, var(--brand, #7B0707) 10%, transparent); }

.story-origin {
    background: color-mix(in srgb, var(--brand, #7B0707) 5%, var(--tea-bg, #F8F5F2));
}
.story-intro {
    text-align: center;
    margin-bottom: 56px;
}
.story-heading {
    font-family: "Noto Serif SC", serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--story-heading-color, var(--brand, #7B0707));
    margin: 0 0 12px;
    letter-spacing: .08em;
}
.story-sub {
    margin: 0;
    font-size: 18px;
    letter-spacing: .28em;
    color: var(--story-year-color, var(--brand, #7B0707));
}
.story-board {
    position: relative;
}
.story-viewport {
    position: relative;
}
.story-rail {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
    user-select: none;
}
.story-rail::-webkit-scrollbar { display: none; }
.story-rail.is-dragging { cursor: grabbing; }
.story-track {
    position: relative;
    display: inline-block;
    min-width: 100%;
    padding: 0;
    vertical-align: top;
}
.story-line {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 54px;
    height: 1.5px;
    background: var(--story-wave-color, var(--brand, #7B0707));
    pointer-events: none;
    z-index: 1;
}
.story-line-arrow {
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
}
.story-line-arrow.is-left {
    left: 0;
    border-style: solid;
    border-width: 6px 11px 6px 0;
    border-color: transparent var(--story-wave-color, var(--brand, #7B0707)) transparent transparent;
}
.story-line-arrow.is-right {
    right: 0;
    border-style: solid;
    border-width: 6px 0 6px 11px;
    border-color: transparent transparent transparent var(--story-wave-color, var(--brand, #7B0707));
}
.story-nodes {
    display: flex;
    position: relative;
    z-index: 1;
}
.story-item {
    flex: 0 0 var(--story-item-w, 280px);
    width: var(--story-item-w, 280px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
}
.story-badge {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 7px 8px;
    background: var(--story-tag-color, var(--brand, #7B0707));
    color: #fff;
    border-radius: 6px;
    font-size: clamp(13px, 1.6vw, 18px);
    letter-spacing: .12em;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.story-dot {
    width: 12px;
    height: 12px;
    margin: 20px 0;
    background: var(--story-wave-color, var(--brand, #7B0707));
    border-radius: 50%;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand, #7B0707) 5%, var(--tea-bg, #F8F5F2));
}
.story-desc {
    width: 100%;
    max-width: none;
    font-size: clamp(12px, 1.35vw, 15px);
    line-height: 1.55;
    color: var(--story-title-color, var(--story-text-color, #4B5563));
    word-break: keep-all;
    overflow-wrap: break-word;
}
.story-desc p { margin: 0; }
.story-desc p + p { margin-top: .2em; }
.story-track.is-dense .story-item { padding: 0 6px; }
.story-track.is-dense .story-badge {
    font-size: 13px;
    letter-spacing: .04em;
    padding: 6px 4px;
}
.story-track.is-dense .story-desc {
    font-size: 12px;
    line-height: 1.5;
}
.story-track.is-dense .story-desc br { display: none; }
.story-track.is-compact .story-item { padding: 0 4px; }
.story-track.is-compact .story-badge {
    font-size: 12px;
    letter-spacing: 0;
    padding: 5px 2px;
}
.story-track.is-compact .story-desc {
    font-size: 11px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-track.is-compact .story-dot {
    width: 10px;
    height: 10px;
    margin: 16px 0;
}
.story-thumb {
    width: min(180px, 100%);
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 4px;
}
.story-coda {
    margin-top: 56px;
    text-align: center;
}
.story-coda img {
    display: block;
    width: 100%;
    max-width: 920px;
    height: auto;
    margin: 0 auto;
}

.rich-text p { margin: 0 0 12px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin: 0 0 12px; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { color: var(--brand, #7B0707); margin: 0 0 10px; }

.pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.pager a, .pager span {
    min-width: 36px; height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; background: #fff; color: var(--brand, #7B0707);
    border: 1px solid color-mix(in srgb, var(--brand, #7B0707) 15%, transparent);
}
.pager .active span, .pager .current { background: var(--brand, #7B0707); color: #fff; }

.site-map { position: relative; min-height: 360px; }
.site-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}
.site-map-canvas {
    width: 100%;
    height: 360px;
    min-height: 360px;
    background: #eef3ee;
}
.site-map-canvas .leaflet-control-zoom a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    color: #555;
}
.site-map-fallback {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--brand, #7B0707);
    background: linear-gradient(180deg, #f7f1eb, #efe6de);
    padding: 24px;
    text-align: center;
}
.site-map-fallback i { font-size: 28px; }
.site-map-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-map-link:hover { color: var(--brand, #7B0707); }
.inquiry-phone-error {
    margin: -8px 0 0;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
}
#inquiryForm [name="phone"].is-invalid {
    box-shadow: 0 0 0 1px #b42318;
}
body.inquiry-modal-open { overflow: hidden; }
.inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.inquiry-modal[hidden] { display: none; }
.inquiry-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(40, 16, 16, .45);
}
.inquiry-modal-card {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(123, 7, 7, .16);
}
.inquiry-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.inquiry-modal-card h3 {
    margin: 0 0 10px;
    color: var(--brand, #7B0707);
    font-family: "Noto Serif SC", serif;
    font-size: 22px;
}
.inquiry-modal-card p {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}
#inquiryThanksQrWrap img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 8px;
    border-radius: 10px;
    background: #faf7f4;
}
#inquiryThanksQrWrap span {
    display: block;
    color: #999;
    font-size: 12px;
}

@media (max-width: 768px) {
    .story-intro { margin-bottom: 40px; }
    .story-coda { margin-top: 36px; }
    .carousel-nav-btn { display: none; }
}

@media (max-width: 480px) {
    .banner-panel { max-width: calc(100% - 24px) !important; left: 12px !important; }
}
