/* ============================================================
   唐瑜鸿个人宣传网站 · 全站样式 v2「编辑纸感 / Editorial」
   风格：杂志编辑式排版（致敬 kelseyohalloran.com 的暖纸色系）
   ------------------------------------------------------------
   设计令牌：
   --paper   #F7F4EF  主背景（暖纸）
   --tan     #EDE6D9  次背景（沙色，整屏色块分节）
   --ink     #221F1A  正文近黑
   --pine    #5F7264  鼠尾草绿（深色跨页/页脚）
   --brass   #A8853B  古铜金（强调/细边框，收敛自芥末金）
   --peach   #D9B183  蜜桃色（荧光笔划重点）
   字体三件套（杂志感核心）：
   --serif 衬线大标题 / --sans 雅黑正文 / --mono 等宽眉标
   ============================================================ */
:root {
  --paper: #F7F4EF;
  --tan: #EDE6D9;
  --cream: #FCFBF8;
  --ink: #221F1A;
  --ink-soft: #6E6A61;
  --pine: #5F7264;
  --pine-deep: #46544A;
  --brass: #A8853B;
  --brass-deep: #8A6D2F;
  --peach: #D9B183;
  --hairline: #D9D2C4;
  --danger: #B04A3A;
  --radius: 4px;               /* 编辑风：小圆角，保持利落 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "STZhongsong", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Courier New", monospace;
  --shadow-soft: 0 10px 30px rgba(34, 31, 26, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* 防止移动端意外横向滚动（clip 不破坏 sticky 页头） */
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: opacity 0.25s; }
a:hover { opacity: 0.72; }        /* 参考站手法：hover 整体降透明度 */

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 编辑风通用元件 ---------------- */
/* 眉标：等宽字体 + 宽字距，杂志标签 */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  margin-bottom: 16px;
}
/* 荧光笔划重点：蜜桃色下半覆盖 */
.marker {
  background: linear-gradient(180deg, rgba(247, 244, 239, 0) 58%, rgba(217, 177, 131, 0.55) 60%);
  padding: 0 2px;
}
/* 细分隔线 */
.hairline { border: none; border-top: 1px solid var(--hairline); }

/* 滚动浮现（main.js 的 IntersectionObserver 控制） */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 页头导航（编辑风：细线下划） ---------------- */
.site-header {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand:hover { opacity: 1; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 0.06em; }
.brand-name span { color: var(--brass); }
.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  position: relative;
}
/* 悬停出现金色细下划线（编辑风导航语言） */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--brass); }
.main-nav a.nav-admin {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  border: 1px solid var(--brass);
  padding: 6px 14px;
  margin-left: 10px;
  color: var(--brass);
}
.main-nav a.nav-admin::after { display: none; }
.main-nav a.nav-admin:hover { background: var(--brass); color: #fff; opacity: 1; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 6px 0; }

/* ---------------- 首页 Hero（编辑式开篇跨页） ---------------- */
.hero { background: var(--paper); padding: 88px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.hero-eyebrow .line { width: 48px; height: 1px; background: var(--brass); }
.hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero-title-sub {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-bottom: 26px;
  text-transform: uppercase;
}
.hero-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 500px;
  border-left: 2px solid var(--hairline);
  padding-left: 20px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 14px;
  letter-spacing: 0.14em;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: 0;           /* 编辑风：直角按钮 */
  transition: all 0.25s;
  font-family: var(--sans);
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--pine-deep); border-color: var(--pine-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; opacity: 1; }
.btn-accent { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 7px 16px; font-size: 12.5px; }
.text-link {
  font-size: 14px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 3px;
}
.text-link:hover { opacity: 0.7; }

/* 首页主照片：恢复 v1 的圆角卡片布局（不做拱形强裁剪）。
   人物位置：hero.jpg 中唐医生偏画面左侧（约25-32%），
   object-position 取 30% 25% 保证人物完整、脸部在上三分之一处。 */
.hero-photo { position: relative; }
.hero-photo .arch {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tan);
  box-shadow: var(--shadow-soft);
}
.hero-photo .arch img { width: 100%; height: 440px; object-fit: cover; object-position: 30% 25%; }
.hero-photo figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

/* ---------------- 数据条（沙色跨页） ---------------- */
.stats-bar { background: var(--tan); padding: 58px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before {
  content: "";
  position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: var(--hairline);
}
.stat-num { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: 0.02em; }
.stat-num small { font-size: 16px; margin-left: 2px; }
.stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-top: 6px;
  text-transform: uppercase;
}

/* ---------------- 通用 Section（色块分节 = 杂志跨页） ---------------- */
.section { padding: 92px 0; }
.section-tan { background: var(--tan); }
.section-cream { background: var(--cream); }
.section-pine { background: var(--pine); color: #F5F2EA; }
.section-head { display: flex; align-items: baseline; column-gap: 28px; row-gap: 12px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head .sec-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--brass);
  white-space: nowrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.section-head p {
  width: 100%;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.section-head .sec-note { margin-left: auto; font-size: 13px; color: var(--ink-soft); display: none; }
.section-pine .section-head .sec-num { color: var(--peach); }
.section-pine .sec-note, .section-pine .section-head p { color: rgba(245, 242, 234, 0.75); }

/* ---------------- 论文列表（编辑式文献条目） ---------------- */
.pub-block { margin-top: 44px; border-top: 1px solid var(--hairline); padding-top: 26px; }
.pub-list { margin-top: 6px; }
.pub-item {
  display: flex; align-items: baseline; gap: 22px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.25s;
}
.pub-item:hover { background: rgba(217, 177, 131, 0.08); }
.pub-idx { font-family: var(--mono); font-size: 12px; color: var(--brass); letter-spacing: 0.18em; flex: none; }
.pub-year { font-family: var(--mono); font-size: 13.5px; color: var(--ink); letter-spacing: 0.08em; flex: none; width: 48px; }
.pub-body { flex: 1; min-width: 0; }
.pub-title { font-family: var(--serif); font-size: 17px; line-height: 1.75; letter-spacing: 0.01em; }
.pub-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; }
.pub-links { margin-top: 10px; }
.pub-links .text-link { font-size: 12.5px; }
.pub-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); margin-top: 20px; }
@media (max-width: 640px) {
  .pub-item { gap: 14px; }
  .pub-year { width: auto; }
  .pub-title { font-size: 15.5px; }
}

/* ---------------- 三亮点（白色卡片 + 金色顶线） ---------------- */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hl-card {
  background: #fff;
  padding: 36px 30px;
  border-top: 3px solid var(--brass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.hl-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--brass); margin-bottom: 18px; }
.hl-card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 12px; letter-spacing: 0.02em; }
.hl-card p { font-size: 14.5px; color: var(--ink-soft); }
.section-pine .hl-card { background: rgba(255, 255, 255, 0.97); }
.section-pine .hl-card p { color: var(--ink-soft); }

/* ---------------- 专长清单（双栏细线行） ---------------- */
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.skill-item {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px;
}
.skill-item .idx { font-family: var(--mono); font-size: 12px; color: var(--brass); letter-spacing: 0.1em; }
.section-pine .skill-item { border-bottom-color: rgba(245, 242, 234, 0.25); }
.section-pine .skill-item .idx { color: var(--peach); }

/* ---------------- 新闻卡片（编辑风卡片） ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff;
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.news-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.news-card .cover { height: 210px; overflow: hidden; background: var(--tan); }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .cover img { transform: scale(1.04); }
.news-card .cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--tan), var(--tan) 12px, #E7DFCF 12px, #E7DFCF 24px);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.news-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.news-card .meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 12px;
  display: flex; gap: 14px; flex-wrap: wrap;
  text-transform: uppercase;
}
.news-card .meta .src { color: var(--brass); }
.news-card h3 { font-family: var(--serif); font-size: 18.5px; line-height: 1.6; margin-bottom: 12px; letter-spacing: 0.01em; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brass); opacity: 1; }
.news-card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.news-card .more {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brass);
  display: inline-block;
}
.center-more { text-align: center; margin-top: 44px; }

/* ---------------- 页面横幅（内页开篇） ---------------- */
.page-banner { background: var(--tan); padding: 76px 0; border-bottom: 1px solid var(--hairline); }
.page-banner .eyebrow { color: var(--brass); }
.page-banner h1 { font-family: var(--serif); font-size: 38px; letter-spacing: 0.02em; margin-bottom: 10px; }
.page-banner p { color: var(--ink-soft); font-size: 14px; }

/* ---------------- 个人介绍页 ---------------- */
/* 个人介绍页照片：普通圆角卡片，展示完整原图（4:3 不裁剪，人物不切边） */
.profile-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.profile-photo { margin: 0; }
.profile-photo .arch {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tan);
  box-shadow: var(--shadow-soft);
}
.profile-photo .arch img { width: 100%; height: auto; object-fit: contain; object-position: 30% center; }
.profile-photo figcaption {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-soft); margin-top: 14px; text-transform: uppercase;
}
.profile-info h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; }
.profile-info .role {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em;
  color: var(--brass); margin-bottom: 22px; text-transform: uppercase;
}
.profile-info p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }

.info-table { width: 100%; border-collapse: collapse; margin-top: 26px; }
.info-table th, .info-table td {
  padding: 14px 18px; font-size: 14.5px; text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.info-table th {
  font-family: var(--mono); font-weight: 400; font-size: 12px;
  letter-spacing: 0.18em; color: var(--brass); width: 130px; white-space: nowrap;
  text-transform: uppercase;
}

/* ---------------- 时间线（编辑风：年份等宽体） ---------------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--hairline); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -31px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brass);
}
.tl-date { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em; color: var(--brass); }
.tl-item h3 { font-family: var(--serif); font-size: 19px; margin: 6px 0 8px; }
.tl-item p { font-size: 14px; color: var(--ink-soft); }
.tl-item p a { word-break: break-all; border-bottom: 1px solid var(--hairline); }

/* ---------------- 任职列表（金色细框章片） ---------------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: #fff;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brass);
  padding: 12px 20px;
  font-size: 14px;
}

/* ---------------- 视频页 ---------------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.video-card { background: #fff; border: 1px solid var(--hairline); transition: box-shadow 0.3s; }
.video-card:hover { box-shadow: var(--shadow-soft); }
.video-card .v-embed { position: relative; padding-top: 56.25%; background: #26241F; }
.video-card .v-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .v-embed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } /* contain：竖屏视频完整显示不裁切 */
.video-card .v-embed .v-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.video-card .v-embed .v-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 31, 26, 0.3);
  border: none; cursor: pointer;
}
.video-card .v-embed .v-play span {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(252, 251, 248, 0.94);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--brass);
  transition: transform 0.25s;
}
.video-card .v-embed .v-play:hover span { transform: scale(1.1); }
.video-card .v-body { padding: 22px 26px 26px; }
.video-card .v-body .meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 8px; text-transform: uppercase; }
.video-card .v-body h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.video-card .v-body p { font-size: 13.5px; color: var(--ink-soft); }

/* 视频访问码锁卡片 */
.v-embed .v-lock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, #33403A 0%, #46544A 100%);
  color: #F5F2EA; text-align: center; padding: 20px;
}
.v-embed .v-lock-icon { font-size: 36px; margin-bottom: 10px; }
.v-embed .v-lock p { font-size: 14px; color: rgba(245, 242, 234, 0.85); margin-bottom: 14px; }
.v-embed .v-lock-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.v-embed .v-lock input {
  width: 180px; padding: 9px 14px;
  border: 1px solid rgba(245, 242, 234, 0.4);
  border-radius: 0; background: rgba(255, 255, 255, 0.1);
  color: #F5F2EA; font-size: 14px; outline: none;
  font-family: var(--mono); letter-spacing: 0.1em;
}
.v-embed .v-lock input::placeholder { color: rgba(245, 242, 234, 0.5); }
.v-embed .v-lock input:focus { border-color: var(--peach); }
.v-embed .v-lock-err { color: #E8B4A8 !important; font-size: 13px !important; margin-top: 10px !important; }

.empty-state {
  text-align: center;
  background: var(--cream);
  border: 1px dashed var(--hairline);
  padding: 72px 30px;
  color: var(--ink-soft);
}
.empty-state .icon { font-size: 40px; margin-bottom: 14px; }
.empty-state h3 { font-family: var(--serif); color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 520px; margin: 0 auto; }

.notice-box {
  background: var(--tan);
  border-left: 3px solid var(--brass);
  padding: 16px 22px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.notice-box strong { color: var(--ink); }

/* ---------------- 文章详情页（杂志内文排版） ---------------- */
.article-wrap { max-width: 800px; margin: 0 auto; background: var(--cream); border: 1px solid var(--hairline); padding: 56px 64px; }
.article-wrap .a-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-soft); margin-bottom: 22px; display: flex; gap: 22px; flex-wrap: wrap; text-transform: uppercase; }
.article-wrap .a-meta .src { color: var(--brass); }
.article-wrap h1 { font-family: var(--serif); font-size: 30px; line-height: 1.55; letter-spacing: 0.02em; margin-bottom: 28px; }
.article-cover { margin-bottom: 30px; }
.article-body { font-size: 16px; line-height: 2.05; }
.article-body p { margin-bottom: 18px; }
.article-body strong { color: var(--ink); }
.article-body img { margin: 20px 0; }
.article-body blockquote {
  border-left: 2px solid var(--brass);
  background: var(--tan);
  padding: 18px 26px;
  margin: 24px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.9;
}
.article-body h2 { font-family: var(--serif); font-size: 21px; margin: 30px 0 14px; letter-spacing: 0.02em; }
.article-source {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--ink-soft);
}
.article-source .btn { margin-top: 14px; }
.back-link { display: inline-block; margin-bottom: 24px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; color: var(--ink-soft); text-transform: uppercase; }
.back-link:hover { color: var(--brass); }

/* ---------------- 预约横幅（首页预留位，后续可加图） ---------------- */
.appt-banner {
  background: var(--tan);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 72px 0;
}
.appt-banner-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.appt-banner h2 { font-family: var(--serif); font-size: 30px; letter-spacing: 0.02em; margin-bottom: 12px; }
.appt-banner p { color: var(--ink-soft); font-size: 14.5px; max-width: 560px; }
.appt-banner .eyebrow { margin-bottom: 14px; }
.appt-banner-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.appt-banner-actions .hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-soft); text-transform: uppercase; }

/* ---------------- 预约页（保留功能页，未挂导航） ---------------- */
.appt-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.appt-card { background: var(--cream); border: 1px solid var(--hairline); padding: 36px 40px; }
.appt-card h2 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.appt-card .sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 24px; }
.appt-err { color: var(--danger); font-size: 13.5px; min-height: 20px; margin: 10px 0 4px; }
.appt-side-card { background: var(--cream); border: 1px solid var(--hairline); border-left: 3px solid var(--brass); padding: 24px 28px; margin-bottom: 20px; }
.appt-side-card h3 { font-family: var(--serif); font-size: 16.5px; margin-bottom: 10px; }
.appt-side-card p, .appt-side-card li { font-size: 13.5px; color: var(--ink-soft); }
.appt-side-card ol, .appt-side-card ul { padding-left: 18px; }
.appt-side-card li { margin-bottom: 6px; }
.appt-side-card a { font-weight: 600; color: var(--brass-deep); }
@media (max-width: 960px) { .appt-grid { grid-template-columns: 1fr; } .appt-card { padding: 26px 22px; } }

/* ---------------- 表单元件（全局统一编辑风：直角+细线） ---------------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; font-weight: 400; margin-bottom: 8px; color: var(--ink-soft); text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  font-size: 14.5px;
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--brass); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.save-ok { color: var(--pine); font-size: 13.5px; font-weight: 600; display: none; }

/* ---------------- 可视化编辑器（后台小白化） ---------------- */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.editor-toolbar button {
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 4px;
  transition: all 0.2s;
  font-family: var(--sans);
}
.editor-toolbar button:hover { border-color: var(--brass); color: var(--brass); }
.visual-editor {
  min-height: 280px;
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.9;
  outline: none;
}
.visual-editor:focus { border-color: var(--brass); }
.visual-editor h2 { font-family: var(--serif); font-size: 20px; margin: 14px 0 10px; }
.visual-editor p { margin-bottom: 12px; }
.visual-editor img { max-width: 100%; border-radius: 4px; margin: 10px 0; }
.visual-editor blockquote { border-left: 2px solid var(--brass); background: var(--tan); padding: 12px 18px; margin: 12px 0; }

/* 图片字段行 + 预览 */
.img-field-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.img-preview {
  width: 110px; height: 74px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--tan);
}
.hint-inline { font-size: 12px; color: var(--ink-soft); }

/* 图片选择弹窗 */
.picker-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(34, 31, 26, 0.55);
  z-index: 300;
  align-items: center; justify-content: center;
  padding: 24px;
}
.picker-card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  width: 100%; max-width: 760px;
  max-height: 84vh;
  display: flex; flex-direction: column;
  padding: 24px 28px;
}
.picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.picker-head strong { font-family: var(--serif); font-size: 18px; }
.picker-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink-soft); line-height: 1; }
.picker-close:hover { color: var(--danger); }
.picker-upload { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.picker-upload .hint { font-size: 12px; color: var(--ink-soft); }
.picker-grid {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 4px 2px 8px;
}
.picker-cell {
  position: relative;
  border: 1px solid var(--hairline);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.picker-cell:hover { border-color: var(--brass); transform: translateY(-2px); }
.picker-cell img { width: 100%; height: 96px; object-fit: cover; display: block; }
.picker-name {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  padding: 6px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: rgba(34, 31, 26, 0.65);
  color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer; display: none;
}
.picker-cell:hover .picker-del { display: block; }
.picker-del:hover { background: var(--danger); }
@media (max-width: 640px) {
  .picker-grid { grid-template-columns: repeat(2, 1fr); }
  .picker-card { padding: 18px 16px; }
}

/* ---------------- 页脚（鼠尾草绿深色跨页） ---------------- */
.site-footer { background: var(--pine-deep); color: rgba(245, 242, 234, 0.78); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.site-footer h4 {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--peach); margin-bottom: 16px;
}
.site-footer p, .site-footer a { font-size: 13.5px; color: rgba(245, 242, 234, 0.72); }
.site-footer a:hover { color: #fff; opacity: 1; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(245, 242, 234, 0.18);
  padding-top: 22px;
  font-size: 12px;
  color: rgba(245, 242, 234, 0.45);
  text-align: center;
}

/* ---------------- 后台管理（功能不变，换纸感皮） ---------------- */
.admin-body { background: var(--paper); }
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #46544A 0%, #5F7264 60%, #A8853B 140%);
  padding: 20px;
}
.login-card { background: var(--cream); border: 1px solid var(--hairline); padding: 46px 42px; width: 100%; max-width: 400px; }
.login-card .login-logo {
  width: 62px; height: 62px; border-radius: 0;
  background: var(--pine-deep);
  color: #F5F2EA; font-family: var(--serif); font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.login-card h1 { font-family: var(--serif); text-align: center; font-size: 20px; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 28px; }
.login-error { color: var(--danger); font-size: 13px; margin-bottom: 12px; min-height: 18px; }
.login-tip { margin-top: 20px; font-size: 12px; color: var(--ink-soft); background: var(--tan); padding: 12px; }

.admin-panel { display: none; min-height: 100vh; }
.admin-topbar { background: var(--pine-deep); color: #F5F2EA; padding: 0 26px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.admin-topbar .t-left { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; }
.admin-topbar .t-left .badge { background: var(--brass); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.15em; padding: 3px 10px; font-weight: 400; }
.admin-topbar .t-right { display: flex; gap: 10px; align-items: center; }
.admin-topbar a, .admin-topbar button.t-btn {
  color: rgba(245, 242, 234, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: none; padding: 7px 14px; font-size: 13px; cursor: pointer;
}
.admin-topbar a:hover, .admin-topbar button.t-btn:hover { background: rgba(255, 255, 255, 0.22); color: #fff; opacity: 1; }

.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.admin-side { background: var(--cream); border-right: 1px solid var(--hairline); padding: 22px 12px; }
.admin-side button {
  display: block; width: 100%; text-align: left;
  background: none; border: none;
  padding: 11px 16px; font-size: 14px; cursor: pointer; color: var(--ink);
  margin-bottom: 4px; letter-spacing: 0.04em;
}
.admin-side button:hover { background: var(--tan); }
.admin-side button.active { background: var(--pine-deep); color: #F5F2EA; }

.admin-main { padding: 30px 36px; }
.admin-main h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 22px; }
.admin-card { background: var(--cream); border: 1px solid var(--hairline); padding: 28px 30px; margin-bottom: 22px; }
.admin-list-item { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--hairline); }
.admin-list-item:last-child { border-bottom: none; }
.admin-list-item .thumb {
  flex: none; width: 76px; height: 54px; overflow: hidden;
  background: var(--tan);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass); font-size: 18px;
}
.admin-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-list-item .info { flex: 1; min-width: 0; }
.admin-list-item .info .t { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-list-item .info .m { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.admin-list-item .ops { display: flex; gap: 8px; flex: none; }
.admin-empty { text-align: center; color: var(--ink-soft); padding: 36px 0; font-size: 14px; }
.pwd-box { max-width: 460px; }
.danger-zone { border: 1px solid #DCAFA5; background: #FAF1EE; }
.danger-zone h3 { color: var(--danger); font-size: 16px; margin-bottom: 8px; }
.danger-zone p { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 34px; }
  .hero-photo .arch { max-width: 440px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 10px; }
  .stat-item:nth-child(3)::before { display: none; }
  .hl-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 380px; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-wrap { padding: 34px 26px; }
  .appt-banner-grid { grid-template-columns: 1fr; }
  .appt-banner-actions { align-items: flex-start; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; padding: 12px; }
  .admin-side button { white-space: nowrap; width: auto; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--hairline);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; border-bottom: 1px solid var(--hairline); }
  .main-nav a::after { display: none; }
  .main-nav a.nav-admin { margin: 12px 0 0; text-align: center; }
  .news-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 28px; }
  .section-head { flex-wrap: wrap; gap: 12px; }
  .section-head h2 { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 16px; }
  .admin-list-item { flex-wrap: wrap; }
  .page-banner { padding: 52px 0; }
  .page-banner h1 { font-size: 28px; }
  .brand-sub { display: none; }
  /* 手机端：主图压缩高度、文章大标题降级，避免占屏过高 */
  .hero-photo .arch img { height: 300px; object-position: 30% 22%; }
  .article-wrap h1 { font-size: 23px; }
  .hero-photo figcaption { font-size: 10px; }
  .stats-bar { padding: 44px 0; }
  .stat-num { font-size: 30px; }
}

/* 数据来源注（合规） */
.stats-note {
  text-align: center;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 234, 0.6);
}

/* 页脚内容版本标记（方便确认是否为最新版） */
.site-ver {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(245, 242, 234, 0.38);
  letter-spacing: 0.08em;
}

/* 备案号（页脚，链接工信部备案查询） */
.site-record {
  margin-top: 12px;
  font-size: 12.5px;
}
.site-record a {
  color: rgba(245, 242, 234, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 242, 234, 0.22);
  padding-bottom: 1px;
  transition: all 0.2s;
}
.site-record a:hover { color: rgba(245, 242, 234, 0.95); border-bottom-color: rgba(245, 242, 234, 0.5); }

/* 后台页脚备案号 */
.admin-icp {
  text-align: center;
  padding: 24px 16px 32px;
  font-family: "Courier New", monospace;
  font-size: 12.5px;
}
.admin-icp a { color: #8A867C; text-decoration: none; border-bottom: 1px solid #D8D2C4; }
.admin-icp a:hover { color: #2C2A26; }
