/* ==========================================================================
   MissBeauty AI 门户 · 设计系统「水墨留白」
   色板：宣纸白 + 淡墨层次 + 唯一朱砂点缀（高饱和面积 ≤2%）
   字体：不打包中文字体，全部走系统字体栈（ECS 带宽小，中文字体子集也是 MB 级）
   断点：640 / 834 / 1180
   ========================================================================== */

:root {
  /* —— 纸与墨 —— */
  --paper: #F7F5F1;
  --paper-2: #EFEAE2;
  --ink: #1A1A18;
  --ink-2: #4A4A46;
  --ink-3: #8C8A84;
  --rule: #D9D6CE;
  --rule-2: #C3BFB4;

  /* —— 极少量矿物色 —— */
  --azurite: #3E5C6B;   /* 石青：仅链接、图标 */
  --malachite: #6E8B74; /* 孔雀石绿：极少量 */
  --cinnabar: #B0392E;  /* 朱砂：唯一高饱和，印章点 + 当前栏目 */

  /* —— 字体栈 —— */
  --font-display: "Optima", "Georgia", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* —— 尺度 —— */
  --wrap: 1180px;
  --gap-sec: 96px;
  --gap-sec-sm: 56px;
  --radius: 2px;
}

/* ==========================================================================
   基础
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  /* 极淡的宣纸纹理：两层 radial 淡墨，无图片请求 */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(26, 26, 24, 0.022), transparent 46%),
    radial-gradient(circle at 88% 76%, rgba(62, 92, 107, 0.025), transparent 42%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.02em;
}

p { margin: 0; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}

a:hover { color: var(--azurite); }

:focus-visible {
  outline: 2px solid var(--azurite);
  outline-offset: 3px;
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: .9em;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .08em .36em;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 50;
}
.skip:focus { left: 12px; top: 12px; }

/* ==========================================================================
   印章（纯 CSS，不含任何中文字，零字体依赖）
   ========================================================================== */

.seal {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--cinnabar);
  border-radius: 1px;
  flex: none;
  position: relative;
}
.seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid rgba(247, 245, 241, .78);
  border-radius: 1px;
}

.seal--lg { width: 26px; height: 26px; }
.seal--lg::after { inset: 6px; border-width: 2px; }

/* ==========================================================================
   页头 / 导航
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 241, .92);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-2);
}

.nav a[aria-current="page"] {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* ==========================================================================
   版式：节 / kicker / 标题 / 墨线
   ========================================================================== */

.section { margin-block: var(--gap-sec); }
.section:first-of-type { margin-top: var(--gap-sec-sm); }
.section:last-child { margin-bottom: var(--gap-sec); }

.sec-head { margin-bottom: 28px; }

.kicker {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.sec-title {
  font-size: 28px;
  color: var(--ink);
}

.sec-sub {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 62ch;
}

/* 1px 淡墨线（节头下方） */
.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 20px 0 0;
}

/* ==========================================================================
   Hero（L1）：左上文字、右下取图，留白 ≥55%
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 72px 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  /* 33em ≈ 528px：容得下第二行「走进我们的创作。」8 字，不再掉出末行孤字 */
  max-width: 33em;
  padding-bottom: 96px;
}

.hero-title {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.18;
  letter-spacing: .01em;
  margin: 0 0 18px;
}

.hero-title em {
  font-style: normal;
  color: var(--ink-2);
}

.hero-lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-art {
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 620px;
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.btn:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: var(--paper);
}

.btn:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
  border-color: var(--rule-2);
  background: transparent;
  color: var(--ink-3);
}

/* 封面图（L1 Hero / L2 页头） */
.hero-art-inner,
.page-art-inner {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ==========================================================================
   卡片
   ========================================================================== */

.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  display: block;
  position: relative;
  padding: 26px 24px 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}

.card:hover {
  border-color: var(--rule-2);
  transform: translateY(2px);
  color: var(--ink);
}

.card-kicker {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

.card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--azurite);
  border-bottom: 1px solid transparent;
}
.card:hover .card-more { border-bottom-color: var(--azurite); }

/* 层级小标：访客看到的是中文栏目名，层级号只在 hover/聚焦时现身 */
.tier {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity .18s ease;
  flex: none;
  font-family: var(--font-body);
}
.card:hover .tier,
.card:focus-visible .tier,
.group:hover .tier,
.group:focus-within .tier { opacity: 1; }

/* 主打位 */
.spot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.spot:hover {
  border-color: var(--rule-2);
  transform: translateY(2px);
  color: var(--ink);
}
.spot-art { display: block; }
.spot-art img { width: 100%; height: 100%; object-fit: cover; }
.spot-body { padding: 30px 32px; align-self: center; }
.spot-body .card-title { font-size: 25px; }

/* 灰态 / 预告卡：诚实呈现，不可点，不承诺 */
.card--muted {
  background: transparent;
  border-style: dashed;
  border-color: var(--rule);
  cursor: default;
  color: var(--ink-3);
}
.card--muted:hover {
  transform: none;
  border-color: var(--rule);
}
.card--muted .card-title,
.card--muted .card-desc { color: var(--ink-3); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  white-space: nowrap;
}
.tag--on { color: var(--malachite); border-color: rgba(110, 139, 116, .45); }
.tag--off { color: var(--ink-3); }
.tag--soon { color: var(--azurite); border-color: rgba(62, 92, 107, .35); }

/* ==========================================================================
   页内分组（L2 页：一个 L3 = 一组）
   ========================================================================== */

.page-head {
  padding-block: 40px 0;
}

.page-head .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 36px;
  align-items: center;
}

.page-title {
  font-size: clamp(32px, 4.4vw, 46px);
  margin: 0 0 14px;
}

.page-lede {
  color: var(--ink-2);
  max-width: 34em;
}

.page-art { justify-self: end; width: 100%; max-width: 440px; }

/* 内容卡网格：图 + 一句描述 + 行动文案，整卡可点（栏目页主体） */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}

.tile {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}

.tile:hover {
  border-color: var(--rule-2);
  transform: translateY(2px);
  color: var(--ink);
}

.tile-art {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.tile-art picture { display: block; height: 100%; }
.tile-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.tile-body { display: block; padding: 18px 20px 20px; }

.tile-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.tile-title {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 8px;
}

.tile-desc {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.tile-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--azurite);
  border-bottom: 1px solid transparent;
}
.tile:hover .tile-more { border-bottom-color: var(--azurite); }

.group { margin-bottom: 34px; }

.group-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.group-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 16px;
}

/* L4 链接行 */
.links {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.link-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  background: var(--paper);
  transition: background .18s ease;
}

a.link-row:hover { background: var(--paper-2); }

.link-name {
  font-size: 15.5px;
  color: var(--ink);
  white-space: nowrap;
}
a.link-row:hover .link-name { color: var(--azurite); }

.tag:hover { color: var(--azurite); }
.tag[aria-disabled="true"] { pointer-events: none; }

.link-meta {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-left: auto;
  text-align: right;
}

.link-row[data-state="muted"] {
  background: var(--paper);
}
.link-row[data-state="muted"] .link-name { color: var(--ink-3); }

/* ==========================================================================
   元信息表 / 服务状态条 / 引导步骤
   ========================================================================== */

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.meta-table th,
.meta-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-weight: 400;
}
.meta-table th {
  width: 30%;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: .06em;
}
.meta-table td { color: var(--ink-2); }

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 13.5px;
  color: var(--ink-2);
}
.status-bar .item { display: inline-flex; align-items: center; gap: 8px; }
.status-bar b { font-weight: 500; color: var(--ink); }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.dot--on { background: var(--malachite); }
.dot--off { background: var(--rule-2); }

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.steps li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  color: var(--ink-2);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-display);
}

.quote {
  padding: 22px 26px;
  border-left: 2px solid var(--cinnabar);
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink-2);
}

.note {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* 间距工具类：页面里不再写行内 margin */
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 22px; }
.mt-l { margin-top: 30px; }

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
  margin-top: var(--gap-sec);
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding-block: 52px 40px;
}

.foot-grid {
  display: grid;
  /* 品牌 + 两列链接（「创作与工具」列随对外合规撤下） */
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.foot-brand .brand { font-size: 21px; }
.foot-tag {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 30em;
}

.foot-col h4 {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-body);
  font-weight: 400;
  margin: 0 0 14px;
}
.foot-col li { margin-bottom: 9px; }
.foot-col a { font-size: 14.5px; color: var(--ink-2); }
.foot-col a:hover { color: var(--azurite); }

.foot-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.foot-bottom a {
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
}
.foot-bottom a:hover { color: var(--azurite); border-bottom-color: var(--azurite); }

/* ==========================================================================
   404
   ========================================================================== */

.notfound {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}
.notfound h1 {
  font-size: clamp(56px, 10vw, 120px);
  color: var(--rule-2);
  margin-bottom: 6px;
}
.notfound p { color: var(--ink-2); margin-bottom: 26px; }

/* ==========================================================================
   响应式：1180 以下 → 834 → 640
   ========================================================================== */

@media (max-width: 1180px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 834px) {
  :root { --gap-sec: 56px; }

  .wrap { padding-inline: 20px; }

  .hero .wrap,
  .page-head .wrap { grid-template-columns: minmax(0, 1fr); }

  .hero { padding-block: 44px 0; }
  .hero-copy { padding-bottom: 34px; max-width: none; }
  .hero-art,
  .page-art { max-width: 100%; justify-self: stretch; }

  /* 页头装饰图降高：不让一张无信息量的图把正文顶到折叠线下 */
  .page-art {
    margin-top: 26px;
    max-height: 34vh;
    overflow: hidden;
  }
  .page-art picture { display: block; height: 34vh; }
  .page-art .page-art-inner { height: 34vh; object-fit: cover; }

  .spot { grid-template-columns: minmax(0, 1fr); }
  .spot-art { max-height: 240px; }
  .spot-art img { height: 100%; }

  .sec-title { font-size: 24px; }

  .nav { display: none; }
  .nav[data-open="true"] {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .nav[data-open="true"] a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
  }
  .nav-toggle { display: block; }

  .link-row { flex-wrap: wrap; gap: 6px 12px; }
  .link-meta { margin-left: 0; text-align: left; flex-basis: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; line-height: 1.8; }

  .grid--3,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }

  .tile-grid { grid-template-columns: minmax(0, 1fr); }

  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .card { padding: 22px 18px 20px; }
  .spot-body { padding: 22px 20px; }
  .btn { width: 100%; justify-content: center; }

  /* 触控目标 */
  .nav a, .foot-col a, .link-row { min-height: 44px; }

  /* 移动端不制造视口外横向溢出 */
  .wrap { overflow-wrap: anywhere; }
  .meta-table th { width: 38%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .hero-art { display: none; }
  body { background: #fff; }
}
