/* ==========================================================================
   NOVA LOOK — 共用站点刊头 / 页脚 / 产品工坊下拉（供复用首页 chrome 的独立子页）
   这些规则与 index.html 内联样式保持一致；子页同时启用 Tailwind CDN。
   ========================================================================== */

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hairline-b { border-bottom: 1px solid rgba(10, 10, 10, 0.12); }
.hairline-t { border-top: 1px solid rgba(10, 10, 10, 0.12); }

.luxury-link { position: relative; display: inline-block; }
.luxury-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -3px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.45s cubic-bezier(0.86, 0, 0.07, 1);
}
.luxury-link:hover::after,
.luxury-link.active-nav::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#masthead-logo {
  transition: font-size 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
@media (min-width: 640px) and (max-width: 1279px) {
  #masthead-logo:not(.is-compact) {
    font-size: clamp(2rem, 5.2vw, 4.25rem);
  }
}
@media (max-width: 639px) {
  #masthead-logo:not(.is-compact) {
    font-size: clamp(1.75rem, 8.2vw, 2.5rem);
    letter-spacing: 0.2em;
  }
}
#masthead-logo.is-compact {
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
}
html, body { overflow-anchor: none; }
h1, h2 { text-wrap: balance; }

/* 统一吸顶导航锚点避让，避免跳转后标题被 #site-header 遮挡 */
section[id],
div[id="features"],
div[id="workflow"],
div[id="fitting-workflow"] {
  scroll-margin-top: 148px;
}

/* 隐藏浏览器原生搜索框清除按钮，避免与自定义清空按钮并排重复 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* 移动端顶部公告条右侧按钮禁折行 */
.topbar-app-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

#site-header,
#site-footer {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.5;
}
#site-header nav,
#site-header button,
#site-header a,
#site-header p {
  line-height: 1.5;
}
#site-header #masthead-logo {
  line-height: 1;
}
#site-footer { border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* ===== 02 / THE ATELIER — 悬停展开的产品工坊下拉 =====
   常规做法：竖向小面板，与刊头同一纸面；上沿紧贴刊头下沿，
   用 1px 实色盖住刊头 hairline，视觉上像从刊头下沿垂下来。 */
.nav-dropdown-group { position: relative; }
.nav-dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 70;
  width: 252px;
  padding-top: 12px; /* 透明悬停桥，同时把面板落到刊头下沿 */
  transform: translate(-50%, 4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.nav-dropdown-group:hover > .nav-dropdown,
.nav-dropdown-group:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown-panel {
  position: relative;
  /* 不透明纯纸面，避免滚动后透出下方深色标题文字 */
  background: #F9F8F6;
  /* 顶边 1px 实色盖住刊头底部的 hairline */
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-top: 1px solid #F9F8F6;
  box-shadow: 0 24px 48px -22px rgba(10, 10, 10, 0.34);
  padding: 4px;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}
/* 向上多盖 2px，避免不同行高下刊头 hairline 在面板顶边露出细缝 */
.nav-dropdown-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: #F9F8F6;
}
.nav-dropdown-item {
  display: block;
  padding: 7px 11px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  transition: background 0.2s ease;
}
.nav-dropdown-item:last-child { border-bottom: 0; }
.nav-dropdown-item:hover { background: rgba(239, 236, 230, 0.6); }
.nav-dropdown-item[aria-current="page"] { background: #EFECE6; }
.nav-dropdown-kicker {
  display: block;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C5A880;
}
.nav-dropdown-title {
  display: block;
  margin-top: 1px;
  font-family: "Cormorant Garamond", "Playfair Display", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  color: #0A0A0A;
}

/* ===== 跨页统一顶部公告栏 / 刊头布局（兼容无 Tailwind 运行时的 club / house） ===== */
.site-topbar {
  line-height: 1.5;
  gap: 12px;
}
.site-topbar button,
.site-topbar span {
  font-size: inherit;
  line-height: 1.5;
}
.site-topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-topbar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-topbar-dot {
  flex-shrink: 0;
}
.site-topbar-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.topbar-label-desktop { display: none; }
.topbar-label-mobile { display: inline; }
@media (min-width: 640px) {
  .topbar-label-desktop { display: inline; }
  .topbar-label-mobile { display: none; }
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.masthead-side {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  align-items: center;
}
.masthead-side-right {
  justify-content: flex-end;
  gap: 16px;
}
.masthead-side-left {
  gap: 12px;
}
.masthead-center {
  flex-shrink: 0;
  text-align: center;
}
.masthead-flagship-link {
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 1536px) {
  .masthead-flagship-link {
    display: flex;
  }
}
.masthead-nowrap {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== 与首页 1:1 对齐的版心容器、章节刊头与标题规范 ===== */
.subpage-shell {
  width: 100%;
  max-width: 1760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .subpage-shell {
    padding-left: 48px;
    padding-right: 48px;
  }
}
@media (min-width: 1280px) {
  .subpage-shell {
    padding-left: 80px;
    padding-right: 80px;
  }
}

/* 1:1 复刻 index.html .section-masthead 章节眉标 */
.section-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.section-masthead-label {
  display: inline-block;
  background: #0A0A0A;
  color: #F9F8F6;
  padding: 4px 10px;
  font: 500 10px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.section-masthead-note {
  color: #B38B32;
  font: 600 10px/1.7 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.bg-obsidian .section-masthead-label,
.invitation-band .section-masthead-label,
[data-section-bg=black] .section-masthead-label {
  background: #F9F8F6;
  color: #0A0A0A;
}

/* 统一子页 Hero H1 与章节 H2（全站 8 子页唯一真源：H1=30/36/44px 行高1.14, H2=24/30/36px 行高1.18） */
main .subpage-h1,
.subpage-h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Playfair Display", "Noto Serif SC", serif;
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #0A0A0A;
  text-wrap: balance;
}
main .subpage-h2,
.subpage-h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Playfair Display", "Noto Serif SC", serif;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #0A0A0A;
  text-wrap: balance;
}
@media (min-width: 640px) {
  main .subpage-h1, .subpage-h1 { font-size: 2.25rem; }
  main .subpage-h2, .subpage-h2 { font-size: 1.875rem; }
}
@media (min-width: 1280px) {
  main .subpage-h1, .subpage-h1 { font-size: 2.75rem; }
  main .subpage-h2, .subpage-h2 { font-size: 2.25rem; }
}
main .bg-obsidian .subpage-h2,
main .invitation-band .subpage-h2,
main .subpage-h2.text-alabaster,
.bg-obsidian .subpage-h2,
.invitation-band .subpage-h2 {
  color: #F9F8F6;
}
.subpage-h1 em,
.subpage-h2 em,
.subpage-h1 .text-honey,
.subpage-h2 .text-honey {
  font-style: italic;
  font-weight: 300;
}

/* 移动端抽屉内工坊子菜单与紧凑字距（防止 390px 孤字折行） */
.mobile-nav-links {
  font-size: 13px;
  letter-spacing: 0.16em;
}
.mobile-subnav {
  padding-left: 20px;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-subnav a {
  padding: 4px 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #787572;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mobile-subnav a:hover {
  color: #B38B32;
}
