/*
Theme Name: Bilingual Theme
Theme URI: https://myproject.local/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A custom theme for my bilingual site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bilingual-theme
Domain Path: /languages 
*/

:root {


    /* --ff-body: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto ;
    --ff-heading: "789bbq"; */
     /* 英文/数字：系统无衬线（最快、最稳） */
  --ff-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 中文：系统中文字体优先（mac/ios/windows/android 都照顾到） */
  --ff-zh: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC","WenQuanYi Micro Hei",sans-serif;

  /* 正文：中英混排 -> 先英后中，让英文的字形更好看，同时中文有兜底 */
  --ff-body: var(--ff-en), var(--ff-zh);

  /* 标题：你自定义字体 + 中英兜底 */
  --ff-heading: var(--ff-en), var(--ff-zh);
  
    --font-body: 1rem;
    --lh-body: 1.65;
    --measure: 75ch;

    --header-height: 60px;
    --background-color: #ffffff;
    --black-color:#000;
    --brand-black-color: #112E3A;
    --brand-red-color: #007A66;
    --brand-grey-color: #D3A34F;
    --brand-ivory-color: #AB7709;
    --sidebar-width: 500px;
    --transition-duration: 0.4s;
    --animation-curve: ease-in-out;
}


html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--ff-body);
    font-size: var(--font-body);
    line-height: var(--lh-body);
    letter-spacing: 0.01em;
}
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link,
.button,
.btn{ 
  font: inherit;
}
p {
    max-width: var(--measure);
    margin: 0 0 1em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
}
h1 {
    font-size: clamp(1.875rem, 2rem + 2vw, 3rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 1.5rem + 1.2vw, 2.3rem);
    line-height: 1.25;
}

h3 {
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
    line-height: 1.3;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}



.section {
    position: relative;
    /* overflow: hidden;  */
    background-color: var(--background-color);

}

.section--bg-image {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* 包裹层改成网格：左竖题 / 文案 / 图片 */
.wrap {
    display: grid;
    gap: clamp(25px, 8vw, 40px);
    padding: 20px 20px 50px 20px;
    position: relative;
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;

}

.section-title {
    margin-bottom: 20px;
}

.breadcrumbs {
    font-size: 18px;
    line-height: 1.6;
    /* font-family: var(--ff-heading); */
    padding: 0 5px;
    background: var(--brand-grey-color);
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden; 
}
.breadcrumbs li {
    display: flex;       
    align-items: center; 
    min-width: 0; 
     color: var(--brand-black-color);
}
.breadcrumbs li a {
    display: inline-flex; 
    align-items: center;
    min-height: 48px;
     text-decoration: none;
     color: var(--brand-black-color);
}
.breadcrumbs li:not(:last-child)::after {
    content: '/'; 
    margin: 0 0.5rem; 
    flex-shrink: 0; 
}
.breadcrumbs li:not(:last-child) a,
.breadcrumbs li:not(:last-child) span {
    white-space: nowrap;
}
.breadcrumbs li:not(:last-child) {
    flex-shrink: 0;
}
.breadcrumbs li:last-child {
    flex-shrink: 1; 
    min-width: 0; 
}

.breadcrumbs li:last-child span[itemprop="name"] {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* .breadcrumbs {
    font-size: 18px;
    line-height: 1.6;
    font-family: inherit;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li a,
.breadcrumbs li span {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
    text-decoration: none;
    color: var(--brand-grey-color);
    white-space: nowrap;     
  overflow: hidden;      
  text-overflow: ellipsis;  
  max-width: 200px; 
  
}
.breadcrumbs li+li::before {
    content: "/";
    margin-right: .5rem;
    opacity: .6;
    align-self: center;
} */

/* ===========================================================
                             news-card
   =========================================================== */


.news-card {
    /* background-color: var(--background-color); */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;

    /* 最大宽度为100% */
    /* flex-grow: 1;
    flex-shrink: 1;  */
}

.news-card__image-container {
    position: relative;
    width: 100%;

    /* 保持图片容器为正方形 */
    /* overflow: hidden; */
    /* 隐藏图片放大效果的溢出部分 */
}

.news-card__image,
.news-card__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--transition-duration) var(--animation-curve);
}


/* .pic a:hover img {
    transform: scale(1.05);
} */

.news-card__date {
    position: absolute;
    right: 5%;
    bottom: 0;
    /* 1. 先让它的底部和图片容器的底部对齐 */
    transform: translateY(50%);
    /* 2. 然后把它向下移动自己高度的50%，实现完美垂直居中 */
    width: 48px;
    padding: 2px 0;
    display: flex;
    justify-content: center;
    background-color: var(--background-color);
    flex-direction: column;
    align-items: center;
    color: var(--brand-black-color);
}



.news-card__date-year {
    /* font-family: inherit; */
    font-weight: 400;
    font-size: 12px;
    /* color: var(--brand-black-color); */
    line-height: 18px;
}

.news-card__date-month {
    /* font-family: inherit; */
    font-weight: 400;
    font-size: 12px;
    /* color: var(--brand-black-color); */
    line-height: 18px;
}

.news-card__date-day {
    position: relative;
    margin-top: 50px;
    /* font-family: inherit; */
    font-weight: 400;
    font-size: 22px;
    /* color: var(--brand-black-color); */
}

.news-card__date-day::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;

    width: 2px;
    height: 48px;
    background-color: var(--brand-grey-color);
    margin-bottom: 2px;
}

.news-card__content {
    padding: 40px 0 10px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__subtitle {
    /* color: var(--brand-grey-color); */
    /* font-family: inherit; */
    overflow: hidden;
    /* white-space: nowrap; */
    text-overflow: ellipsis;
    padding-right: 50px;
}

.news-card__title {
    /* color: var(--brand-black-color); */
    /* font-family: inherit; */
    overflow: hidden;
    /* white-space: nowrap; */
    text-overflow: ellipsis;
}

.news-card__title a {
    text-decoration: none;
    color: inherit;
}

.news-card__title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* 确保它在最上层 */
}

.news-card__desc {
    /* font-family: inherit; */
    font-size: 16px;
    /* color: var(--brand-black-color); */
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* ===========================================================
                             暂时禁用
   =========================================================== */


.news-grid .news-card a {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: inherit;
}


/* reservation modal */
.reservation-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.reservation-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.reservation-modal__dialog {
    position: relative;
    margin: 6vh auto 0;
    max-width: 960px;
    background: var(--background-color);
    border-radius: 12px;
    padding: 20px;
    max-height: 88vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.reservation-modal__close {
    color: var(--black-color);
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 28px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    cursor: pointer;
}

.reservation-modal__filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    flex-wrap: wrap;
}

.city-pill {
    color: var(--black-color);
    padding: 10px 12px;
    font-family: var(--ff-heading);
        font-size: 1.2em;
    font-weight: bold;
    border: 1px solid var(--brand-grey-color);
    border-radius: 999px;
    background: var(--background-color);
    cursor: pointer;
}
#reservation-city-pills .city-pill { text-transform: capitalize; }
.city-pill.is-active {
    border-color: var(--brand-red-color);
    background-color: var(--brand-red-color);
    color: var(--background-color);
    font-size: 1.2em;
    font-weight: bold;
}

.reservation-modal__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}



.store-card {
    position: relative;
    display: grid;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--brand-grey-color);
    border-radius: 12px;
    background: var(--background-color);
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    cursor: pointer;
    /* 整卡可点体验更好 */
}



.store-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    background: var(--background-color);
}

.store-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-card__content {
    min-width: 0;
}

.store-card__title {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.25;
}

.store-card__title a {
    color: inherit;
    text-decoration: none;
}

.store-card__title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.store-card__city,
.store-card__addr {
    /* color: var(--brand-grey-color); */
    font-size: 14px;
}

.store-card__actions {
    position: relative;
    justify-self: end;
}


/* list/modal 整卡可点 */

.store-card__btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--brand-red-color);
    background: var(--brand-red-color);
    color: var(--background-color);
    text-decoration: none;
         font-size: 1.2em;
    font-weight: bold;
}

.store-card__btn--walkin {
    border: 1px solid var(--brand-grey-color);
    background: var(--brand-grey-color);   
            font-size: 1.2em;
    font-weight: bold;
    color : var(--brand-black-color);
}

/* Modal（无图） */
.store-card--no-image {
    grid-template-columns: 1fr auto;
}

/* Map（有图） */
.store-card--with-image {
    grid-template-columns: 1fr;
}

.store-card--with-image .store-card__actions {
    position: relative;
    justify-self: center;
}

/* 让 PUM 容器别超过屏幕宽高 */
.pum-overlay .pum-container.pum-responsive {
    width: auto !important;
    max-width: min(720px, 92vw) !important;
    /* 720px 或 92vw，取较小 */
    max-height: 92vh;
    /* 永不高于视口 */
    box-sizing: border-box;
}

/* 内容区不再额外撑高；必要时允许滚动作为兜底 */
.pum-overlay .pum-container .pum-content {
    padding: 0;
    /* 你已经在子元素做了内边距，这里清空 */
    max-height: 92vh;
    overflow: hidden;
    /* 我们用“等比缩小”，正常不会出现滚动 */
}

/* 你的卡片作为两行：图片 + 按钮（按钮占 auto 高度） */
.pum-content .popup-hero {
    display: grid;
    grid-template-rows: 1fr auto;
    max-height: 90vh;
    text-align: center;
    /* 比容器略小，留点余量给阴影/边距 */
}

/* 海报等比缩放，且为“装入式（contain）” */
.pum-content .popup-hero .popup-hero__img {
    display: block;
    width: 100%;
    height: auto;
    /* 预留按钮 ~60px + 一点安全边距（可按你按钮真实高度微调） */
    max-height: calc(90vh - 64px);
    object-fit: contain;
    /* 避免被拉伸/裁切 */
}

/* 按钮占满一行即可 */
.pum-content .popup-hero .popup-btn {
    display: block;
    width: 100%;
    padding: 8px 20px;
    margin: 0;
    background-color: var(--brand-red-color);
    color: var(--background-color);
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.pum .pum-title{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
@media (min-width: 768px) {
    .reservation-modal__list {
        grid-template-columns: 1fr 1fr;
    }
}


@media (min-width: 1024px) {
    .store-card:hover {
        background: var(--brand-grey-color);
    }
    /* .pum-overlay .pum-container.pum-responsive-medium {
    max-width: min(720px, 92vw) !important;
    } */
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }

  /* 谨慎的全局降速（不要彻底禁用，避免影响可用性） */
  *:not(.keep-anim), *:not(.keep-anim)::before, *:not(.keep-anim)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* 常见视觉动效组件：直接停 */
  .parallax, .kenburns, .marquee, .auto-scrolling {
    animation: none !important;
    transform: none !important;
    background-attachment: initial !important;
  }
}

