/* 墨禅（香港）科技文化有限公司 · 响应式官网（港风 token：火橙 + 土金，不含 accent-tech 绿） */
:root {
  --bg-app: #f5f0e8;
  --bg-canvas: #e8e4dc;
  --bg-card: #fff;
  --surface-muted: #f3efe8;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6560;
  --text-muted: #9a948c;
  --border: #e8e2d8;
  --brand-fire: #e85d04;
  --brand-fire-press: #c94e03;
  --brand-fire-muted: rgba(232, 93, 4, 0.12);
  --brand-earth: #c9a227;
  --brand-earth-bg: rgba(201, 162, 39, 0.12);
  --brand-earth-border: rgba(201, 162, 39, 0.4);
  --brand-earth-text: #8b6914;
  --brand-earth-bright: #e0b838;
  --ink-deep: #1a1f28;
  --radius-card: 26px;
  --radius-btn: 14px;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-header: 0 4px 24px rgba(0, 0, 0, 0.08);
  --gradient-hero: linear-gradient(165deg, #f5f0e8 0%, #ede8dc 45%, #e8e4dc 100%);
  --gradient-cta: linear-gradient(90deg, #f0924a, var(--brand-fire));
  --taiji-light: #f5f0e8;
  --taiji-dark: #1a1f28;
  --taiji-stroke: rgba(26, 31, 40, 0.1);
  --container-max: 1120px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-canvas);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-muted);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

a {
  color: var(--brand-fire);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--ink-deep);
  color: #fff;
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 93, 4, 0.28);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
}

.btn--primary:active {
  background: var(--brand-fire-press);
  transform: translateY(0);
}

.btn--ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.btn--ghost:hover {
  border-color: var(--brand-earth-border);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 14px;
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-header);
}


.site-header__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
  order: 3;
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch__select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 5.5rem;
  height: 36px;
  padding: 0 1.75rem 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235c6570' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 10px 7px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.lang-switch__select:hover,
.lang-switch__select:focus {
  outline: none;
  border-color: rgba(232, 93, 4, 0.45);
}

.site-header.is-scrolled .lang-switch__select {
  background-color: rgba(255, 255, 255, 0.96);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  height: 100%;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  max-width: min(100%, 18rem);
}

.site-logo__text {
  line-height: 1.25;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--brand-fire);
  text-decoration: none;
}

.site-nav__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Careers */
.section--careers {
  background: var(--bg-app);
}

.careers__lead {
  margin: -0.5rem 0 2rem;
  max-width: 42rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: left;
}

.careers-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 36rem;
}

.careers-contact {
  margin-top: 2rem;
}

.job-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font: inherit;
  color: inherit;
}

.job-card:hover {
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: var(--shadow-header);
  transform: translateY(-2px);
}

.job-card:focus-visible {
  outline: 2px solid var(--brand-fire);
  outline-offset: 2px;
}

.job-card__team {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-fire);
  background: var(--brand-fire-muted);
  border-radius: 6px;
}

.job-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.job-card__meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.job-card__desc {
  margin: 0.5rem 0 0;
  padding-right: 1.5rem;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.job-card__arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--brand-fire);
  opacity: 0.7;
}

/* Job modal */
.job-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.job-modal[hidden] {
  display: none;
}

.job-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.job-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-header);
  padding: 1.75rem 1.5rem 1.5rem;
}

.job-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-app);
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.job-modal__close:hover {
  color: var(--text-primary);
  background: var(--brand-fire-muted);
}

.job-modal__header {
  padding-right: 2rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.job-modal__team {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-fire);
  background: var(--brand-fire-muted);
  border-radius: 6px;
}

.job-modal__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.job-modal__meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.job-modal__summary {
  margin: 0.85rem 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.job-modal__section {
  margin-bottom: 1.25rem;
  text-align: left;
}

.job-modal__section h3 {
  margin: 0 0 0.5rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.job-modal__section ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.job-modal__section li + li {
  margin-top: 0.35rem;
}

.job-modal__footer {
  padding-top: 0.5rem;
}

/* Privacy */
.section--privacy {
  background: linear-gradient(180deg, var(--bg-app) 0%, var(--brand-earth-bg) 100%);
}

.privacy__slogan {
  margin: -0.5rem 0 0.75rem;
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: left;
  text-wrap: balance;
}

.privacy__lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: left;
  text-wrap: pretty;
}

.privacy-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.privacy-principle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.privacy-principle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-earth-bg);
  color: var(--brand-earth-text);
  margin-bottom: 0.75rem;
}

.privacy-principle__icon svg {
  width: 22px;
  height: 22px;
}

.privacy-principle__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.privacy-principle__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Privacy page */
.page-privacy {
  padding: 3rem 0 4rem;
}

.page-careers {
  padding: 3rem 0 4rem;
}

.careers__back {
  margin: 2.5rem 0 0;
  text-align: left;
}

.careers__back a {
  color: var(--brand-fire);
  font-weight: 500;
  text-decoration: none;
}

.careers__back a:hover {
  text-decoration: underline;
}

.privacy-doc {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}

.privacy-doc h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
}

.privacy-doc__notice {
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--brand-earth-bg);
  border-radius: var(--radius-btn);
  border-left: 3px solid var(--brand-earth-text);
}

.privacy-doc h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.privacy-doc p,
.privacy-doc li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.privacy-doc a {
  color: var(--brand-fire);
  text-decoration: none;
}

.privacy-doc a:hover {
  text-decoration: underline;
}

.privacy-doc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.privacy-doc li + li {
  margin-top: 0.35rem;
}

.privacy-doc__back {
  margin-top: 2.5rem;
}

.privacy-doc__back a {
  color: var(--brand-fire);
  font-weight: 500;
  text-decoration: none;
}

.privacy-doc__back a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: var(--gradient-hero);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero__copy {
  max-width: 720px;
  text-align: left;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brand-earth-bright);
  font-weight: 600;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 22em;
}

.hero__slogan {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--brand-fire);
  line-height: 1.4;
}

.hero__lead {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--about {
  background: var(--bg-app);
}

.section--product {
  background: var(--bg-app);
}

.section--mission {
  background: linear-gradient(180deg, var(--brand-earth-bg) 0%, var(--bg-app) 100%);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: left;
}

.section-head__bar {
  width: 4px;
  height: 1.5rem;
  background: var(--brand-fire);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.about__body p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  text-align: left;
}

.about__body p:last-child {
  margin-bottom: 2rem;
}

.highlight-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.highlight-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.highlight-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-fire-muted);
  color: var(--brand-fire);
  margin-bottom: 0.75rem;
}

.highlight-card__icon svg {
  width: 22px;
  height: 22px;
}

.highlight-card__icon--earth {
  background: var(--brand-earth-bg);
  color: var(--brand-earth-text);
}

.highlight-card__icon--team {
  background: rgba(26, 31, 40, 0.08);
  color: var(--ink-deep);
}

.highlight-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.highlight-card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.product-showcase {
  padding-bottom: 1rem;
}

.product-showcase__header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.product-showcase__header-lead {
  min-width: 0;
}

.product-showcase__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.product-showcase__intro {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.product-showcase__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-showcase__tags li {
  font-size: 13px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-earth-bg);
  border: 1px solid var(--brand-earth-border);
  color: var(--brand-earth-text);
  font-family: var(--font-serif);
}

.product-showcase__stage {
  position: relative;
}

.product-showcase__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  --track-gutter: max(1.25rem, env(safe-area-inset-left));
  --track-gutter-end: max(1.25rem, env(safe-area-inset-right));
  --track-align-start: max(
    var(--track-gutter),
    calc((100vw - var(--container-max)) / 2 + var(--track-gutter))
  );
  padding-left: var(--track-align-start);
  padding-right: var(--track-gutter-end);
  scroll-padding-inline-start: var(--track-align-start);
  padding-bottom: 0.25rem;
  outline: none;
}

.product-showcase__track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-showcase__track {
    scroll-behavior: auto;
  }
}

.product-showcase__slide {
  flex: 0 0 min(82vw, 380px);
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-showcase__visual {
  margin-bottom: 1rem;
}

.product-showcase__visual-card {
  width: 100%;
  aspect-ratio: 380 / 318;
  border-radius: 24px;
  padding: 18px 16px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-showcase__visual-card--bazi {
  background: linear-gradient(145deg, #f5ebe0 0%, #e8d4bc 50%, #d4b896 100%);
}

.product-showcase__visual-card--master {
  background: linear-gradient(145deg, #f5f0e8 0%, #ede4d4 50%, #e0d4c0 100%);
}

.product-showcase__visual-card--report {
  background: linear-gradient(145deg, #fff 0%, #faf7ef 55%, #f3ede0 100%);
  border-color: var(--brand-earth-border);
}

.product-showcase__visual-card--tools {
  background: linear-gradient(145deg, #ede8dc 0%, #ddd0b8 50%, #c9b896 100%);
}

.showcase-slice {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  color: var(--text-primary);
  overflow: hidden;
}

.showcase-slice--master {
  gap: 8px;
}

.showcase-slice-reply {
  flex-shrink: 0;
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 12px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(232, 93, 4, 0.1);
}

.showcase-slice-reply p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-slice-master-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.15rem;
  flex-shrink: 0;
}

.showcase-slice-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.showcase-slice-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}

.showcase-slice-master-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.showcase-slice-master-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.showcase-slice-master-name {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
}

.showcase-slice-ai-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-fire-muted);
  color: var(--brand-fire);
  letter-spacing: 0.04em;
}

.showcase-slice-master-intro {
  margin: 0;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.showcase-slice-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.showcase-slice-prompt-chip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(232, 93, 4, 0.12);
  font-size: 11px;
  line-height: 1.4;
}

.showcase-slice-prompt-ico {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.2;
}

.showcase-slice-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.showcase-slice-compose-placeholder {
  flex: 1;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-slice-compose-send {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-cta);
  box-shadow: 0 4px 16px rgba(232, 93, 4, 0.28);
}

.showcase-slice--bazi {
  gap: 10px;
  justify-content: flex-start;
}

.showcase-slice-bazi-hero {
  padding: 8px 10px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.showcase-slice-bazi-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.showcase-slice-bazi-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-deep);
}

.showcase-slice-bazi-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-earth-bg);
  color: var(--brand-earth-text);
  white-space: nowrap;
}

.showcase-slice-bazi-tagline {
  margin: 0;
  font-size: 10px;
  color: var(--text-secondary);
}

.showcase-slice-bazi-body {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-slice-bazi-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.showcase-slice-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.showcase-slice-pillar--day {
  background: var(--brand-earth-bg);
  box-shadow: 0 0 0 1px var(--brand-earth-border);
}

.showcase-slice-pillar-label {
  font-size: 9px;
  color: var(--text-muted);
}

.showcase-slice-pillar-gan,
.showcase-slice-pillar-zhi {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-deep);
  text-align: center;
}

.showcase-slice-pillar-zhi {
  font-size: 13px;
  color: var(--brand-earth);
}

/* 英文拼音比单字干支更长，略缩小以免挤版 */
html[lang="en"] .showcase-slice-pillar-gan,
html[lang="en"] .showcase-slice-pillar-zhi {
  font-size: 11px;
  letter-spacing: 0.01em;
}

.showcase-slice-bazi-day-panel {
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--brand-earth-border);
  flex-shrink: 0;
}

.showcase-slice-bazi-day-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-deep);
}

.showcase-slice-bazi-day-text {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-slice-bazi-insight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.showcase-slice-bazi-insight-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(201, 162, 39, 0.35));
}

.showcase-slice-bazi-insight-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 9px;
  line-height: 1.5;
  color: rgba(26, 31, 40, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-slice-bazi-insight-text strong {
  color: var(--brand-fire);
  font-weight: 600;
}

.showcase-slice-bazi-meter {
  padding-top: 0;
  flex-shrink: 0;
  margin-top: auto;
}

.showcase-slice-bazi-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 11px;
  color: var(--text-secondary);
}

.showcase-slice-bazi-meter-head strong {
  font-size: 11px;
  color: var(--brand-fire);
  font-weight: 600;
}

.showcase-slice-bazi-meter-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
  border: 1px solid var(--border);
}

.showcase-slice-bazi-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-earth), var(--brand-fire));
}

.showcase-slice--report {
  gap: 6px;
  justify-content: flex-start;
}

.showcase-slice-bdr-chrome {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-slice-bdr-progress {
  height: 2px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.showcase-slice-bdr-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-earth), var(--brand-fire));
}

.showcase-slice-bdr-toc {
  display: flex;
  gap: 5px;
  overflow: hidden;
  flex-wrap: nowrap;
}

.showcase-slice-bdr-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.2;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-secondary);
}

.showcase-slice-bdr-chip--active {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(232, 93, 4, 0.1));
  border-color: var(--brand-earth-border);
  color: var(--text-primary);
  font-weight: 600;
}

.showcase-slice-bdr-chip--locked {
  border-style: dashed;
  border-color: rgba(232, 226, 216, 0.9);
  color: var(--text-muted);
}

.showcase-slice-bdr-chip-lock {
  font-size: 8px;
  opacity: 0.75;
}

.showcase-slice-bdr-cover {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.showcase-slice-bdr-profile {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 10px;
  color: var(--text-secondary);
}

.showcase-slice-bdr-profile strong {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-deep);
}

.showcase-slice-bdr-profile span:not(.showcase-slice-bdr-score-badge) {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 9px;
}

.showcase-slice-bdr-score-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-earth-bg);
  border: 1px solid var(--brand-earth-border);
  color: var(--brand-earth-text);
  font-size: 9px;
  font-weight: 600;
}

.showcase-slice-bdr-curve {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-slice-bdr-curve-title {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.showcase-slice-bdr-curve-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.showcase-slice-bdr-curve-svg {
  display: block;
  width: 100%;
  height: 112px;
}

.showcase-slice-bdr-lock {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 4px 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(245, 240, 232, 0.72) 45%, rgba(245, 240, 232, 0.92) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}

.showcase-slice-bdr-lock-badge {
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--brand-fire-muted);
  color: var(--brand-fire);
}

.showcase-slice-bdr-phases {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.showcase-slice-bdr-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.showcase-slice-bdr-phase-age {
  font-size: 8px;
  color: var(--text-muted);
}

.showcase-slice-bdr-phase-label {
  font-family: var(--font-serif);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

.showcase-slice-bdr-phase--active {
  background: var(--brand-earth-bg);
  border-color: var(--brand-earth-border);
}

.showcase-slice-bdr-phase--active .showcase-slice-bdr-phase-label {
  color: var(--text-primary);
}

.showcase-slice-bdr-phase--locked {
  border-style: dashed;
  opacity: 0.72;
}

.showcase-slice-bdr-phase--locked .showcase-slice-bdr-phase-label::after {
  content: " 🔒";
  font-size: 7px;
}

.showcase-slice--download {
  justify-content: flex-start;
  gap: 6px;
}

.showcase-slice-download-label {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-deep);
  text-align: center;
  flex-shrink: 0;
}

.showcase-slice-tools-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(28px, auto);
  grid-auto-flow: dense;
  gap: 5px;
  flex: 1;
  min-height: 0;
  align-content: start;
}
.showcase-tool-chip {
  display: flex;
  min-width: 0;
  padding: 6px 5px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(232, 226, 216, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.showcase-tool-chip--wide {
  grid-column: span 2;
}

.showcase-tool-chip--tall {
  grid-row: span 2;
}

.showcase-tool-chip--stack {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.showcase-tool-chip--inline {
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 8px 6px;
}

.showcase-tool-chip--compact {
  padding: 5px 4px 4px;
  justify-content: center;
}

.showcase-tool-chip--compact.showcase-tool-chip--stack {
  gap: 1px;
}

.showcase-tool-chip__body {
  min-width: 0;
  flex: 1;
}

.showcase-tool-chip__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.showcase-tool-chip--placeholder {
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.38);
  border: 1px dashed rgba(201, 162, 39, 0.45);
  box-shadow: none;
}

.showcase-tool-chip__more {
  margin: 0;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--brand-earth-text);
  text-align: center;
}

.showcase-tool-chip h4 {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.showcase-tool-chip p {
  margin: 2px 0 0;
  font-size: 7px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.showcase-tool-chip--inline h4 {
  font-size: 10px;
}

.showcase-tool-chip--inline p {
  font-size: 8px;
}

.showcase-tool-chip--tall.showcase-tool-chip--inline {
  align-items: center;
  padding: 8px 10px;
}

.showcase-tool-chip--tall.showcase-tool-chip--inline .showcase-tool-chip__body p {
  margin-top: 3px;
}

.showcase-tool-chip.tone-warm {
  background: linear-gradient(145deg, rgba(245, 240, 232, 0.95), rgba(232, 220, 208, 0.75));
}

.showcase-tool-chip.tone-sand {
  background: linear-gradient(145deg, rgba(245, 235, 224, 0.95), rgba(232, 212, 188, 0.75));
}

.showcase-tool-chip.tone-earth {
  background: linear-gradient(145deg, rgba(237, 228, 200, 0.95), rgba(224, 212, 192, 0.75));
}

.showcase-tool-chip.tone-peach {
  background: linear-gradient(145deg, rgba(255, 240, 230, 0.95), rgba(245, 212, 188, 0.75));
}

.showcase-slice--download .feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 6px rgba(26, 31, 40, 0.08);
}

.showcase-slice--download .feature-ico svg {
  display: block;
}

.showcase-slice--download .feature-ico--sm {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.showcase-slice--download .feature-ico--sm svg {
  width: 15px;
  height: 15px;
}

.showcase-slice--download .feature-ico--md {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.showcase-slice--download .feature-ico--md svg {
  width: 18px;
  height: 18px;
}

.showcase-slice--download .feature-ico--almanac {
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.08));
  color: var(--brand-earth, #c9a227);
}

.showcase-slice--download .feature-ico--checkin {
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.18), rgba(232, 93, 4, 0.08));
  color: var(--brand-fire, #e85d04);
}

.showcase-slice--download .feature-ico--fortune {
  background: linear-gradient(145deg, rgba(232, 93, 4, 0.18), rgba(201, 162, 39, 0.12));
  color: var(--brand-fire, #e85d04);
}

.showcase-slice--download .feature-ico--study {
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.16), rgba(232, 93, 4, 0.08));
  color: #a67c00;
}

.showcase-slice--download .feature-ico--image {
  padding: 0;
  background: transparent !important;
  color: inherit;
  overflow: hidden;
  box-shadow: none !important;
}

.showcase-slice--download .feature-ico--image .feature-ico__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.showcase-slice--download .showcase-tool-chip__ico .feature-ico--sm {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.showcase-slice--download .showcase-tool-chip__ico .feature-ico--sm .feature-ico__img {
  object-fit: cover;
  border-radius: 8px;
}

.showcase-slice--download .showcase-tool-chip--inline .showcase-tool-chip__ico .feature-ico--md {
  width: 32px;
  height: 32px;
}

.product-showcase__caption {
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.25rem;
  text-align: left;
}

.product-showcase__caption-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
}

.product-showcase__caption-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  flex: none;
}

.product-showcase__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-fire);
  text-decoration: none;
}

.product-showcase__link:hover {
  text-decoration: underline;
}

.product-showcase__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.product-showcase__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 31, 40, 0.08);
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.product-showcase__nav-btn:hover:not(:disabled) {
  background: rgba(26, 31, 40, 0.14);
  color: var(--text-primary);
}

.product-showcase__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.about-contact {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.about-contact__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.about-contact__lead {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
}

.about-contact__email {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 600;
}

.about-contact__email a {
  color: var(--text-primary);
  text-decoration: none;
}

.about-contact__email a:hover {
  color: var(--brand-fire);
}

.about-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Download modal */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.download-modal[hidden] {
  display: none;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.download-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-header);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
}

.download-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-app);
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.download-modal__close:hover {
  color: var(--text-primary);
  background: var(--brand-fire-muted);
}

.download-modal__header {
  padding-right: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.download-modal__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  font-weight: 600;
}

.download-modal__lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.download-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.download-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: var(--bg-app);
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
}

.download-tabs__tab {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: none;
  border-radius: calc(var(--radius-btn) - 2px);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.download-tabs__tab:hover {
  color: var(--text-primary);
}

.download-tabs__tab.is-active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.download-tabs__tab:focus-visible {
  outline: 2px solid var(--brand-fire);
  outline-offset: 1px;
}

.download-tab-panel[hidden] {
  display: none;
}

.download-platform {
  border-radius: var(--radius-btn);
  padding: 1.15rem 1rem;
}

.download-platform--android {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.download-platform--ios {
  background: var(--bg-app);
  border: 1px solid var(--border);
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.download-platform__status {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.download-platform__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.download-platform--h5 {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.download-modal__h5-desc {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.download-modal__h5-btn {
  display: flex;
  width: 100%;
  justify-content: center;
}

.download-modal__h5-footer {
  margin-top: 0.25rem;
  padding: 1rem 1rem 0.15rem;
  border-top: 1px solid var(--border);
  background: var(--bg-app);
  border-radius: var(--radius-btn);
  text-align: center;
}

.download-modal__h5-footer-label {
  margin: 0 0 0.75rem;
  font-size: 13px;
  color: var(--text-secondary);
}

.download-modal__qr-label {
  margin: 0 0 0.75rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.download-modal__qr-wrap {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.download-modal__qr {
  display: block;
  width: 180px;
  height: 180px;
}

.download-modal__apk-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.download-modal__copy-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.download-modal__guide {
  padding: 1rem;
  background: var(--bg-app);
  border-radius: var(--radius-btn);
  text-align: left;
}

.download-modal__guide-title {
  margin: 0 0 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.download-modal__steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.download-modal__steps li + li {
  margin-top: 0.3rem;
}

.site-footer__link-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.site-footer__link-btn:hover {
  color: var(--brand-earth-light);
}

button.product-showcase__link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.mission-grid {
  display: grid;
  gap: 1.5rem;
}

.mission-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  text-align: left;
}

.mission-card--vision {
  border-color: var(--brand-earth-border);
  background: linear-gradient(145deg, #fff 0%, #faf7ef 100%);
}

.mission-card__label {
  margin: 0 0 1rem;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-earth-text);
  font-weight: 600;
}

.mission-card__quote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.mission-card__body {
  margin: 0;
  color: var(--text-secondary);
}

.mission-card__body--lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-primary);
}

/* Footer */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom));
  font-size: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
}

.site-footer .site-footer__mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

/* Toast */
.toast {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--ink-deep);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: 14px;
  box-shadow: var(--shadow-header);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* Tablet */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    margin-right: 0.75rem;
  }

  .site-header__end {
    margin-left: 0;
    order: 3;
  }

  .site-header__end .nav-toggle {
    display: none;
  }

  .site-logo {
    order: 1;
  }

  .site-nav {
    order: 2;
  }

  .site-nav__list {
    display: flex;
    gap: 1.25rem;
  }

  .site-nav__link {
    font-size: 14px;
  }

  .careers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-principles {
    grid-template-columns: repeat(3, 1fr);
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-showcase__visual-card--bazi,
  .product-showcase__visual-card--master,
  .product-showcase__visual-card--report,
  .product-showcase__visual-card--tools {
    aspect-ratio: 380 / 336;
  }

  .hero {
    padding: 4rem 0 5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }
}

/* Mobile nav overlay */
@media (max-width: 767px) {
  .hero__copy {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem max(1.25rem, env(safe-area-inset-right)) 2rem max(1.25rem, env(safe-area-inset-left));
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
  }

  .site-nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav__cta {
    width: 100%;
    padding: 1rem;
  }
}
