/*
Theme Name: mingyuanhui-theme
Theme URI: https://myhd64171.syntop.me/
Author: Synpal GEO
Description: 名媛汇品牌主题（黑金轻奢）。由 synpal-geo-site-builder 生成。
Version: 1.0.0
Requires at least: 5.0
Text Domain: mingyuanhui-theme
*/

/* ============================================================
   名媛汇医美 — 设计系统（黑金轻奢 · Trust & Authority）
   依据 ui-ux-pro-max 设计推荐生成；客户品牌色提供后仅改变量
   ============================================================ */

:root {
  /* 色彩令牌 */
  --primary: #1C1917;          /* 主色 黑 */
  --primary-soft: #292524;
  --primary-fg: #FFFFFF;
  --secondary: #44403C;        /* 次色 */
  --accent: #A16207;           /* 强调/CTA 金 */
  --accent-light: #CA8A04;
  --accent-soft: #F5EDDF;      /* 金色浅底 */
  --bg: #FAFAF9;               /* 页面背景 */
  --surface: #FFFFFF;          /* 卡片 */
  --text: #0C0A09;             /* 前景文字 */
  --text-secondary: #57534E;
  --muted: #78716C;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --danger: #DC2626;
  --focus: #A16207;

  /* 间距刻度（4/8 节奏） */
  --space-xs: 4px;  --space-sm: 8px;  --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;

  /* 字体 */
  --font-display: "Bodoni Moda", "Songti SC", "STSong", serif;
  --font-body: "Jost", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  /* 圆角/阴影 */
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(12,10,9,.06);
  --shadow-md: 0 6px 20px rgba(12,10,9,.08);
  --shadow-lg: 0 16px 40px rgba(12,10,9,.12);

  /* 容器 */
  --container: 1140px;
}

/* ---------- Reset / 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .5em; color: var(--primary); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 600; letter-spacing: .01em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
table { border-collapse: collapse; width: 100%; margin: var(--space-md) 0; font-size: .95rem; }
th, td { border: 1px solid var(--border-strong); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--accent-soft); color: var(--primary); font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

/* ---------- 布局工具 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-3xl) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--primary); color: #E7E5E4; }
.section--dark h2, .section--dark h3 { color: #FFFFFF; }
.section-head { max-width: 760px; margin: 0 auto var(--space-2xl); text-align: center; }
.section-head .eyebrow { color: var(--accent); letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; font-weight: 600; margin-bottom: var(--space-sm); }
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-none { margin-bottom: 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.brand:hover { text-decoration: none; }
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .05em;
}
.brand .brand-logo { height: 40px; width: auto; display: block; border-radius: 6px; }

/* ---------- 图片网格 ---------- */
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin: var(--space-md) 0 var(--space-lg); }
.img-grid figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.img-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.img-grid figcaption { padding: .5em .8em; font-size: .85rem; color: var(--text-secondary); text-align: center; }
.img-grid--cert { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
@media (max-width: 700px) { .img-grid, .img-grid--cert { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .img-grid { grid-template-columns: 1fr; } }

/* ---------- 灯箱（点击查看原图） ---------- */
.img-grid img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 10, 9, .92);
  display: none; align-items: center; justify-content: center;
  padding: var(--space-lg);
}
.lightbox.open { display: flex; }
.lightbox-fig { margin: 0; max-width: min(92vw, 1200px); max-height: 92vh; text-align: center; }
.lightbox-fig img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: zoom-out; }
.lightbox-fig figcaption { color: #D6D3D1; margin-top: var(--space-md); font-size: .9rem; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.main-nav { display: flex; gap: var(--space-xl); align-items: center; }
.main-nav a { color: var(--text-secondary); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.nav-cta { background: var(--accent); color: #fff !important; padding: .5em 1.1em; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--accent-light); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--primary); cursor: pointer; padding: var(--space-sm); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: .7em 1.6em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: all .2s ease; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; text-decoration: none; }
.btn-outline { border-color: var(--border-strong); color: var(--primary); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-soft); color: #fff; text-decoration: none; }
.btn-lg { padding: .9em 2.2em; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(202,138,4,.14), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(28,25,23,.08), transparent 55%),
    var(--bg);
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--border);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-3xl); align-items: center; }
.hero h1 { margin-bottom: var(--space-md); }
.hero .hero-sub { font-size: 1.12rem; color: var(--text-secondary); max-width: 30em; margin-bottom: var(--space-lg); }
.hero .hero-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-figure {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  box-shadow: var(--shadow-lg); position: relative;
}
.hero-figure::before {
  content: "医·美·名媛汇"; position: absolute; top: -14px; left: var(--space-lg);
  background: var(--primary); color: #fff; font-size: .72rem; letter-spacing: .2em;
  padding: .35em .9em; border-radius: 999px; font-family: var(--font-display);
}
.hero-figure ul { list-style: none; padding: 0; margin: 0; }
.hero-figure li { padding: .55em 0; border-bottom: 1px dashed var(--border); display: flex; justify-content: space-between; gap: var(--space-md); }
.hero-figure li:last-child { border-bottom: 0; }
.hero-figure .k { color: var(--muted); font-size: .88rem; }
.hero-figure .v { font-weight: 600; color: var(--primary); text-align: right; }

/* ---------- 徽标 / 统计 ---------- */
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.stat { text-align: center; padding: var(--space-lg); }
.stat .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--accent); }
.stat .label { color: var(--text-secondary); font-size: .9rem; margin-top: var(--space-xs); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-xl);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: block; color: var(--text);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; color: var(--text); }
.card .card-icon { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.card h3 { font-size: 1.12rem; margin: var(--space-sm) 0 var(--space-xs); }
.card p { color: var(--text-secondary); font-size: .93rem; margin-bottom: 0; }
.card .card-more { color: var(--accent); font-weight: 600; font-size: .88rem; margin-top: var(--space-md); display: inline-block; }

/* ---------- FAQ 手风琴 ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: var(--space-sm); background: var(--surface); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1em 1.2em; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.2em 1.2em; color: var(--text-secondary); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: .86rem; color: var(--muted); padding: var(--space-md) 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4em; color: var(--border-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text-secondary); }

/* ---------- 流程 / 步骤 ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 var(--space-lg) 56px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px; width: 1px; background: var(--border-strong); }
.steps h4 { margin-bottom: .2em; }

/* ---------- 提示框 ---------- */
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 1em 1.2em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: var(--space-md) 0; }
.callout--muted { border-left-color: var(--border-strong); background: var(--surface); color: var(--text-secondary); }
.callout strong { color: var(--primary); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--primary); color: #D6D3D1; padding: var(--space-3xl) 0 var(--space-xl); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--space-md); }
.site-footer a { color: #D6D3D1; }
.site-footer a:hover { color: #fff; }
.site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--space-2xl); padding-top: var(--space-lg); display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; font-size: .82rem; color: #A8A29E; }

/* ---------- 页内导航（子页 hero） ---------- */
.page-hero { background: linear-gradient(180deg, rgba(28,25,23,.04), transparent), var(--bg); padding: var(--space-2xl) 0 var(--space-xl); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: var(--space-sm); }
.page-hero .lead { color: var(--text-secondary); max-width: 46em; }

/* ---------- 新闻列表 ---------- */
.news-item { display: block; padding: var(--space-lg); border-bottom: 1px solid var(--border); background: var(--surface); }
.news-item:hover { background: var(--accent-soft); text-decoration: none; }
.news-item .news-date { color: var(--muted); font-size: .84rem; }
.news-item h3 { margin: var(--space-xs) 0; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .hero .container { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
  }
  .main-nav.open { display: flex; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
  /* 表格移动端横向滚动，避免撑破视口 */
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  /* 长内容断行 */
  .hero-figure .v, .breadcrumb, .news-item h3 { overflow-wrap: anywhere; }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
