/* Base CSS ***********************************************************/
:root {
  --primary: #333;
  --text: #222;
  --muted: #666;
  --bg: #fff;
  --border: #eee;
}
main {
  flex: 1;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  width: 0;
}
body {
  font-family: var(--body-title), -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 通用 ***********************************************/

.container {
  max-width: 1040px;
  margin: 0 auto 80px;
}
.stack {
  display: flex;
  gap: 8px;
  align-items: center;
}
.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
}
.iconBox {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
}
.liquid-glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.5); 
  border: 1px solid rgba(238, 238, 238,.8);
}
.block {
  margin-bottom: 30px;
  padding: 0 18px
}
.block-title {
  margin: 0 0 12px 8px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

/* Header Styles ***********************************************/
.header {
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.logo {
  height: 20px;
}
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.brand {
  font-weight: 700;
}
.brand-left {
  display: flex;
  align-items: center;
  padding-left: 28px;
  gap: 14px;
}
.spacing {
  margin-bottom: 30px;
}
.hc-title {
  font-weight: 300;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}
.nav-right {
  justify-self: end;
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  color: var(--text);
  padding: 18px 28px;
  background: #fff;
  border-left: 1px solid var(--border);
}
.lang-trigger:hover {
  background: #f7f7f7;
}
.lang-trigger .lang-name {
  font-weight: 300;
  font-family: var(--font-body);
  line-height: 20px;
  font-size: 16px;
}
@media (max-width: 639px) {
  .lang-trigger {
    height: 50px;
  }
}


/* Banner block ***********************************************/

.hero-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  text-align: center;
}
.hero-title {
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}
.hero-content .search {
  width: min(1000px, 90vw);
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.card {
  display: flex;
  width: 100%;
  text-align: left;
  font-size: 13px;
  align-items: center;
  font-weight: 300;
  justify-content: space-between;
  padding: 14px;
  background: #fff;
  color: var(--text);
}
.card::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: rgba(0, 0, 0, .5);
  mask: url("/assets/svg/s-right.svg") no-repeat center / contain;
  -webkit-mask: url("/assets/svg/s-right.svg") no-repeat center / contain;
}
.card:hover {
  background: rgba(247, 247, 247, 1);
}
modal-opener button {
  border: none;
  cursor: pointer;
}



/* Faq block ***********************************************/

.grid {
  display: grid;
  border: 1px solid rgba(227, 227, 227, 1);
  border-radius: 12px;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}
@media (min-width: 640px) {
  .grid > modal-opener:nth-child(n + 3) {
    border-top: 1px solid rgba(0,0,0,.05);
  }
  .grid > modal-opener:nth-child(odd) {
    border-right: 1px solid rgba(0,0,0,.05);
  }
}
@media (max-width: 639px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .grid modal-opener + modal-opener {
    border-top: 1px solid rgba(0,0,0,.05);
  }
}

/* imgCard block ***********************************************/
.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.img-card {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}
.img-card .img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
}
.img-card .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.img-card .label {
  font-weight: 500;
  font-size: 14px;
}
.img-card .arrow {
  width: 18px;
  height: 18px;
  background-color: rgba(0, 0, 0, .5);
  mask: url("/assets/svg/m-right.svg") no-repeat center / contain;
  -webkit-mask: url("/assets/svg/m-right.svg") no-repeat center / contain;
}
.img-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.prose + .muted {
  margin-top: 16px;
}

@media (min-width: 900px) {
  .img-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .img-card .info {
    padding: 10px 12px;
  }
  .img-card .img {
    height: 120px;
  }
}

/* global-float ***********************************************/
.global-float {
  position: fixed;
  bottom: 60px;
  z-index: 99;
  gap: 12px;
  width:100%;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.backtop {
  width: 48px;
  height: 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(238, 238, 238,.8);
  display: none;
}
.backtop::after {
  content: "";
  width: 22px;
  height: 22px;
  background-color: #555;
  mask: url("/assets/svg/m-up.svg") no-repeat center / contain;
  -webkit-mask: url("/assets/svg/m-up.svg") no-repeat center / contain;
}
.backtop.is-visible { 
  display: flex 
}
.float-continue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #333;
  text-decoration: none;
  padding: 5px 15px 5px 5px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
}
.float-continue .fc-icon {
  width: 38px;
  height: 38px;
  background: #bf0008;
}
.float-continue .fc-icon::after {
  content: "";
  width: 22px;
  height: 22px;
  background-color: #fff;
  mask: url("/assets/svg/cart.svg") no-repeat center / contain;
  -webkit-mask: url("/assets/svg/cart.svg") no-repeat center / contain;
}
.float-continue .fc-label {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* 内容排版 faq模态内部 & page  ***********************************************/

.prose h1,
.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--font-body), Georgia, "Times New Roman", serif;
}
.prose p {
  color: var(--text);
}

/* Footer Styles ***********************************************/

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: #555;
}
.footer-left {
  justify-self: start;
  font-size: 14px;
  line-height: 30px;
  font-weight: 500;
}
.footer-right {
  justify-self: end;
}
.social {
  display: flex;
  gap: 12px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social img {
  width: 20px;
  height: 20px;
}

/* 模态框  ***********************************************/
/* 模态基础样式 */
modal-dialog {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
modal-dialog[open] {
  display: flex;
}
.modal-panel {
  background: #fff;
  min-width: 260px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  outline: none;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 1rem;
}
.modal-title {
  margin: 0;
  font-size: 16px;
  padding: 10px 20px;
  font-family: var(--font-body);
}
.icon-close {
  height: 18px;
}
/* lang ******************************/
.lang-flag {
  width: auto;
  height: 18px;
}
.lang-switch {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.lang-switch a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
}
.lang-switch a.active {
  border-color: var(--border);
  background: #fff;
}
modal-dialog[data-variant="language"] .dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(227, 227, 227, 1);
  background: #fff;
}
modal-dialog[data-variant="language"] .dialog-title {
  font-weight: 500;
  line-height: 20px;
  font-size: 16px;
  padding-left: 26px;
  font-family: var(--font-body);
}
modal-dialog[data-variant="language"] .list {
  list-style: none;
}
modal-dialog[data-variant="language"] .list li + li {
  width: 100%;
  border-top: 1px solid rgba(0,0,0,.05);
}
modal-dialog[data-variant="language"] .list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  color: var(--text);
  text-decoration: none;
  justify-content: space-between;
  line-height: 56px;
  font-weight: 300;
}
modal-dialog[data-variant="language"] .list li a:hover {
  background: #f7f7f7;
}
modal-dialog[data-variant="language"] .modal-close-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  width: 70px;
  height: 52px;
}
modal-dialog[data-variant="language"] .modal-close-top:hover {
  background: #f7f7f7;
}
modal-dialog[open][data-variant="language"] {
  align-items: center;
  justify-content: center;
}

/* FAQ 模态：头部 ***********************************************/
.close-bar {
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 26px;
  position: sticky;
  border: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
modal-dialog[data-variant="faq"] .modal-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
modal-dialog[data-variant="faq"] .popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #fff;
  width: 70px;
  height: 52px;
}
modal-dialog[data-variant="faq"] .popup-close:hover {
  background: #f7f7f7;
}
/* FAQ 模态：内容（位置与动画） ***********************************************/
modal-dialog[data-variant="faq"] {
  padding: 0;
  justify-content: flex-end;
}
modal-dialog[data-variant="faq"] .modal-panel {
  width: 500px;
  height: 100%;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 0.24s ease;
}
modal-dialog[open][data-variant="faq"] .modal-panel {
  transform: translateX(0);
}
/* FAQ 模态：移动端内容（底部上滑） ***********************************************/
@media (max-width: 639px) {
  .close-bar {
    display: flex;
  }
  .close-bar::after  {
    content: "";
    width: 60px;
    height: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
  }
  modal-dialog[open][data-variant="faq"] {
    padding: 100px 0 0 0;
    justify-content: center;
  }
  modal-dialog[data-variant="faq"] .modal-panel {
    width: 100%;
    height: 100%;
    transform: translateY(100%);
  }
  modal-dialog[open][data-variant="faq"] .modal-panel {
    transform: translateY(0);
  }
  modal-dialog[data-variant="faq"] .popup-close {
    display: none;
  }
  .lang-name {
    display: none;
  }
}

/* 模态内容排版 ***********************************************/
modal-dialog .modal-panel .prose {
  padding: 0 20px 40px;
  font-family: var(--font-body);
}
modal-dialog .modal-panel .prose p {
  margin: 0 0 30px;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 28px;
  font-weight: 300;
}
modal-dialog .modal-panel .prose h3 {
  color: #555;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 22px;
}
modal-dialog .modal-panel .prose ul,
modal-dialog .modal-panel .prose ol {
  margin: 10px 0 20px;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 300;
}
@media (min-width: 640px) {
  .modal-header {
    min-height: 60px;
  }
}
@media (max-width: 639px) {
  .footer {
    padding-bottom: 70px;
  }
  .global-float {
    bottom: 0;
  }
}
