/* 琴声桥 PianoBridge
   象牙白底 · 乌木黑字 · 香槟金强调 · 胡桃木页脚 · 苔绿点缀 · 雾灰发丝线
   东方禅意极简 / 乐器之王的高雅气质 */
:root {
  --ivory: #FAF8F5;
  --ebony: #1E1C1A;
  --gold: #C3A46B;
  --gold-deep: #A98B52;
  --walnut: #6B5442;
  --moss: #9AA894;
  --mist: #E5E1DA;
  --paper: #FFFFFF;
  --muted: #8A8178;
  --faint: #F2EFEA;
  --ok: #7C9A7D;
  --warn: #B0813C;
  --err: #A5533F;
  --serif: "Noto Serif SC", "Source Han Serif SC", "思源宋体", "Songti SC", "STSong", Georgia, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "思源黑体", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 34px rgba(30, 28, 26, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ebony);
  line-height: 1.75;
  letter-spacing: .01em;
}
h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 600; color: var(--ebony); }
a { color: var(--walnut); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-deep); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar { background: rgba(250, 248, 245, .96); border-bottom: 1px solid var(--mist); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ebony); letter-spacing: .12em; white-space: nowrap; }
.brand:hover { color: var(--gold-deep); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  position: relative; color: var(--ebony); padding: 10px 12px; font-size: 14px;
  letter-spacing: .06em; display: inline-block; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover { color: var(--ebony); }
.user-chip { color: var(--walnut); font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown { position: relative; display: inline-block; }
.user-dropdown .user-chip { background: none; border: 1px solid var(--mist); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: var(--sans); font-size: 13px; color: var(--ebony); }
.user-dropdown .user-chip:hover { border-color: var(--gold); }
.dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 172px;
  background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
}
.dropdown.open { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--ebony); font-size: 14px; white-space: nowrap; }
.dropdown a:hover { background: var(--faint); color: var(--ebony); }
.badge-dot { display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 4px; background: var(--gold); color: #fff; border-radius: 9px; font-size: 11px; text-align: center; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ebony); cursor: pointer; }

/* ---------- 区块与英文小标 ---------- */
.section { padding: 88px 0 10px; }
.section-sm { padding: 64px 0 12px; }
.kicker {
  font-family: var(--serif); font-size: 12px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 14px; text-align: center;
}
.kicker.left { text-align: left; }
.section h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; text-align: center; letter-spacing: .04em; }
.section .sub { text-align: center; color: var(--muted); margin: 0 0 52px; font-size: 15px; }
.hr { border: 0; border-top: 1px solid var(--mist); margin: 0; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; width: 100%; aspect-ratio: 21 / 9; min-height: 420px; overflow: hidden;
  background: var(--walnut);
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,28,26,.12) 0%, rgba(30,28,26,.38) 72%, rgba(30,28,26,.58) 100%);
}
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; padding: 0 24px; }
.hero-content .kicker { color: #E8DCC6; }
.hero-content h1 { color: #fff; font-size: clamp(38px, 6.4vw, 74px); margin: 0 0 18px; letter-spacing: .18em; font-weight: 500; }
.hero-content h1.center-fix { padding-left: .1em; }
.section h2.center-fix { padding-left: .05em; }
.hero-content p { color: rgba(255,255,255,.86); font-size: clamp(14px, 1.8vw, 18px); margin: 0 0 30px; max-width: 620px; }

/* ---------- 搜索 ---------- */
.search-card {
  background: var(--paper); border: 1px solid var(--mist); box-shadow: var(--shadow);
  border-radius: var(--radius); padding: 26px; margin-top: 28px; position: relative; z-index: 5;
}
.search-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.search-grid input, .search-grid select {
  flex: 1 1 170px; min-width: 150px; padding: 12px 14px; border: 1px solid var(--mist);
  border-radius: var(--radius); font-size: 14px; font-family: var(--sans); background: #fff; color: var(--ebony);
}
.search-grid input:focus, .search-grid select:focus { outline: none; border-color: var(--gold); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; letter-spacing: .08em; cursor: pointer; transition: all .25s;
  background: transparent; color: var(--ebony); font-family: var(--sans);
}
.btn:hover { filter: brightness(.97); }
.btn-gold { background: var(--gold); color: #fff; font-weight: 600; }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(30,28,26,.12); }
.btn-outline:hover { border-color: #fff; background: rgba(30,28,26,.22); color: #fff; }
.btn-dark { background: var(--ebony); color: #fff; }
.btn-dark:hover { background: var(--walnut); color: #fff; }
.btn-ghost { border-color: var(--mist); color: var(--walnut); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-danger { background: #F6EAE6; color: var(--err); }
.btn-danger:hover { background: #EED9D2; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 统计 ---------- */
.stats-strip { border-bottom: 1px solid var(--mist); background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 38px 0; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; color: var(--ebony); font-weight: 500; }
.stat span { color: var(--muted); font-size: 13px; letter-spacing: .08em; }

/* ---------- 卡片 ---------- */
.card { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 30px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.empty { text-align: center; color: var(--muted); padding: 46px 0; grid-column: 1 / -1; }

/* ---------- 教师卡片 ---------- */
.teacher-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.teacher-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(30,28,26,.1); }
.tc-cover { position: relative; height: 168px; overflow: hidden; background: var(--walnut); }
.tc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-cover::after { content: ""; position: absolute; inset: 0; background: rgba(30,28,26,.26); }
.tc-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85);
  background: rgba(30,28,26,.35); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; backdrop-filter: blur(2px);
}
.tc-cover .tc-kind { position: absolute; left: 14px; top: 14px; z-index: 2; color: #fff; font-size: 11px; letter-spacing: .2em; border: 1px solid rgba(255,255,255,.7); padding: 3px 10px; border-radius: 999px; }
.tc-body { padding: 20px 22px 14px; flex: 1; }
.tc-name { font-family: var(--serif); font-size: 19px; margin: 0 0 4px; }
.tc-title { color: var(--muted); font-size: 13px; }
.tc-edu { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.tc-intro { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  background: transparent; color: var(--moss); border: 1px solid var(--moss); border-radius: 999px;
  padding: 2px 10px; font-size: 12px; white-space: nowrap;
}
.chip.gold { color: var(--gold-deep); border-color: var(--gold); }
.tc-foot { border-top: 1px solid var(--mist); padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-family: var(--serif); color: var(--walnut); font-weight: 600; font-size: 17px; }
.rating { color: var(--gold-deep); font-size: 13px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--moss);
  color: #5E6B58; border-radius: 999px; padding: 2px 10px; font-size: 12px; background: rgba(154,168,148,.08);
}
.badge.warn { border-color: var(--gold); color: var(--warn); background: rgba(195,164,107,.08); }
.badge.err { border-color: var(--err); color: var(--err); background: rgba(165,83,63,.06); }
.badge.gray { border-color: var(--mist); color: var(--muted); }
.badge.gold { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- 教师详情 ---------- */
.detail-head { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); padding: 34px; margin-top: 28px; display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.detail-head .detail-info { order: 1; }
.detail-head .detail-photos { order: 2; flex: 1 1 260px; min-width: 240px; }
.detail-head .detail-side { order: 3; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; background: var(--walnut); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 34px; flex: none;
}
.detail-info { flex: 1 1 380px; }
.detail-info h1 { margin: 0 0 8px; font-size: 28px; }
.detail-info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 13px; }
.detail-stats b { color: var(--ebony); font-family: var(--serif); font-size: 18px; font-weight: 600; }
.detail-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 170px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; margin-top: 22px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.panel { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); padding: 28px; margin-top: 22px; }
.panel h3 { margin: 0 0 18px; font-size: 17px; letter-spacing: .05em; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.panels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
video, audio { max-width: 100%; }
.work-card audio { width: 100%; }
@media (max-width: 900px) { .panels-grid { grid-template-columns: 1fr; } }
.work-card { border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; background: #fff; }
.work-card video, .work-card img { width: 100%; display: block; max-height: 210px; object-fit: cover; background: var(--ebony); }
.work-card audio { width: 100%; }
.work-card .wc-body { padding: 12px 16px; }
.work-card .wc-body b { font-family: var(--serif); font-size: 14px; }
.work-card .wc-body p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- 赛事资讯卡片（遮罩 + 白字） ---------- */
.event-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; background: var(--ebony); transition: transform .3s; }
.event-card:hover { transform: translateY(-4px); }
.event-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.external-work { display:flex; width:100%; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:160px; border:0; cursor:pointer; background:var(--ebony); color:#fff; padding:20px; }
.external-work:hover { color:var(--gold); }
.work-play-icon { font-size:34px; }
.work-video-dialog { width:min(720px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:0; border:1px solid var(--mist); border-radius:var(--radius); background:var(--paper); overflow:auto; }
.work-video-dialog::backdrop { background:rgba(0,0,0,.65); }
.work-video-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; }
.work-video-heading h3 { margin:0; font-size:18px; }
.work-video-heading button { border:0; background:transparent; color:var(--ebony); font-size:28px; cursor:pointer; padding:0 6px; }
.work-video-body { aspect-ratio:16/9; min-height:200px; width:100%; background:#000; }
.work-video-body iframe, .work-video-body video { display:block; width:100%; height:100%; border:0; object-fit:contain; }
.video-status { display:flex; width:100%; height:100%; padding:20px; align-items:center; justify-content:center; color:#fff; text-align:center; }
.event-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,28,26,.08) 0%, rgba(30,28,26,.28) 55%, rgba(30,28,26,.62) 100%); }
.event-body { position: relative; z-index: 2; padding: 26px; color: #fff; }
.event-body .ev-kind { font-size: 11px; letter-spacing: .3em; color: #E8DCC6; border: 1px solid rgba(255,255,255,.65); display: inline-block; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.event-body h3 { color: #fff; margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.event-body p { margin: 0; color: rgba(255,255,255,.82); font-size: 12.5px; }
.event-body .ev-meta { margin-top: 12px; color: #E8DCC6; font-size: 12px; letter-spacing: .05em; }

/* ---------- 表单 ---------- */
.form-card { max-width: 480px; margin: 56px auto; }
.form-card h1 { text-align: center; font-size: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; letter-spacing: .08em; margin-bottom: 8px; color: var(--walnut); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--mist); border-radius: var(--radius);
  font-size: 14px; font-family: var(--sans); background: #fff; color: var(--ebony);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.inline-form { background: var(--faint); border: 1px dashed var(--mist); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.inline-form h4 { margin: 0 0 14px; color: var(--walnut); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.notice { background: rgba(195,164,107,.07); border: 1px solid var(--gold); color: var(--walnut); border-radius: var(--radius); padding: 12px 16px; font-size: 13px; margin: 12px 0; }
.notice.light { background: rgba(154,168,148,.08); border-color: var(--moss); color: #5E6B58; }

/* ---------- 仪表盘 ---------- */
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; margin-top: 28px; align-items: start; }
.dash-nav { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); padding: 12px; }
.dash-nav button {
  display: block; width: 100%; text-align: left; padding: 11px 14px; border: 0; background: transparent;
  border-radius: var(--radius); cursor: pointer; font-size: 14px; color: var(--ebony); font-family: var(--sans); margin-bottom: 2px;
}
.dash-nav button:hover { background: var(--faint); }
.dash-nav button.active { background: var(--ebony); color: #fff; }
.dash-main { min-width: 0; }
.profile-visibility { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 22px; margin-bottom:20px; border:2px solid var(--gold); border-radius:var(--radius); background:#fff; }
.profile-visibility h3 { margin:0 0 4px; font-size:18px; }
.profile-visibility .visibility-status { margin:0; color:var(--walnut); font-weight:600; }
.profile-visibility .visibility-hint { margin:4px 0 0; color:var(--muted); font-size:12px; }
.profile-visibility .btn { flex-shrink:0; min-width:150px; }
@media (max-width:560px) { .profile-visibility { flex-direction:column; align-items:stretch; gap:12px; padding:16px; } .profile-visibility .btn { width:100%; } }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { display: flex; overflow-x: auto; gap: 6px; }
  .dash-nav button { width: auto; white-space: nowrap; }
}
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); padding: 20px; }
.stat-card b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.stat-card span { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data th, table.data td { border-bottom: 1px solid var(--mist); padding: 11px 9px; text-align: left; vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; white-space: nowrap; letter-spacing: .05em; }
.list-item { border: 1px solid var(--mist); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; background: #fff; }
.list-item h4 { margin: 0 0 6px; font-size: 16px; }
.list-item .meta { color: var(--muted); font-size: 12.5px; }
.list-item p { margin: 8px 0; font-size: 14px; }
.list-item .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.media-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.media-row img { width: 150px; height: 100px; object-fit: cover; border-radius: var(--radius); }
.media-row video { width: 260px; max-height: 150px; border-radius: var(--radius); }
.media-row audio { width: 280px; }
.status-tag { display: inline-block; border-radius: 999px; padding: 2px 11px; font-size: 12px; }

/* ---------- 时间流（成长主页） ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 1px; background: var(--mist); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold);
}
.tl-item h4 { margin: 0 0 4px; font-size: 16px; }
.tl-item .meta { color: var(--muted); font-size: 12.5px; letter-spacing: .05em; }
.tl-item p { margin: 8px 0 0; font-size: 14px; white-space: pre-wrap; }

/* ---------- 评论 / 评价 ---------- */
.rating-stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.star-btn { background: none; border: 0; font-size: 22px; color: var(--mist); cursor: pointer; padding: 0 2px; }
.star-btn.on { color: var(--gold); }

/* ---------- 私信 ---------- */
.chat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; margin-top: 22px; height: calc(100vh - 220px); min-height: 440px; }
.conv-list { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); overflow-y: auto; }
.conv { padding: 14px 16px; border-bottom: 1px solid var(--mist); cursor: pointer; }
.conv:hover { background: var(--faint); }
.conv.active { background: rgba(195,164,107,.08); }
.conv b { font-size: 14px; }
.conv .last { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pane { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); display: flex; flex-direction: column; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--mist); font-weight: 600; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 76%; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.msg.mine { align-self: flex-end; background: var(--ebony); color: #fff; border-bottom-right-radius: 2px; }
.msg.theirs { align-self: flex-start; background: var(--faint); border-bottom-left-radius: 2px; }
.msg .time { display: block; font-size: 11px; opacity: .65; margin-top: 3px; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--mist); }
.chat-input textarea { flex: 1; resize: none; min-height: 46px; }
@media (max-width: 760px) {
  .chat-layout { grid-template-columns: 1fr; }
  .conv-list { display: none; }
  .conv-list.mobile-show { display: block; }
}

/* ---------- AI 对话 ---------- */
.ai-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 28px; min-height: 300px; display: flex; align-items: center; }
.ai-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-hero::after { content: ""; position: absolute; inset: 0; background: rgba(30,28,26,.35); }
.ai-hero .ai-inner { position: relative; z-index: 2; color: #fff; padding: 46px; max-width: 560px; }
.ai-hero h2 { color: #fff; font-size: 30px; margin: 0 0 10px; }
.ai-hero p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- 关于我们 ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 110px 0 30px; }
@media (max-width: 820px) { .about-story { grid-template-columns: 1fr; } }
.about-story img { width: 100%; border-radius: var(--radius); display: block; }
.about-story h2 { font-size: 30px; margin: 0 0 18px; }
.about-story p { color: var(--muted); }
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.philosophy-card { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); padding: 26px; }
.philosophy-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--walnut); }
.philosophy-card p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- 页脚 ---------- */
.footer { background: var(--walnut); color: rgba(250,248,245,.82); padding: 54px 0 44px; margin-top: 90px; font-size: 13px; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer .container { grid-template-columns: 1fr; } }
.footer h4 { color: #F1E7D8; font-size: 15px; margin: 0 0 14px; letter-spacing: .1em; }
.footer a { color: rgba(250,248,245,.78); display: block; margin: 7px 0; }
.footer a:hover { color: #F1E7D8; }
.footer p { margin: 6px 0; }
.footer .brand { color: #F1E7D8; font-size: 20px; }

/* ---------- Toast / 其他 ---------- */
/* ---------- 标签搜索与标签池 ---------- */
.tag-search { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 8px 10px; }
.tag-search input { flex: 1 1 140px; border: 0; outline: none; font-size: 14px; font-family: var(--sans); color: var(--ebony); min-width: 120px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(195,164,107,.14); color: var(--walnut); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }
.tag-chip b { font-weight: 700; }
.tag-chip.pickable { cursor: pointer; background: #fff; }
.tag-chip.pickable.on { background: rgba(195,164,107,.2); }
.tag-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 80; max-height: 260px; overflow-y: auto; }
.tag-sug { padding: 9px 14px; font-size: 13.5px; cursor: pointer; color: var(--ebony); }
.tag-sug:hover { background: var(--faint); }
.tag-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 26px; border-radius: var(--radius); border: 1px solid var(--mist); font-size: 14px; cursor: pointer; background: #fff; color: var(--walnut); letter-spacing: .08em; font-family: var(--sans); }
.fav-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.fav-btn.on { background: rgba(195,164,107,.12); border-color: var(--gold); color: var(--gold-deep); }
.art-slots { display: flex; gap: 14px; flex-wrap: wrap; }
.art-slot { width: 180px; }
.art-slot-v .art-preview { width: 110px; height: 150px; }
.art-slot-h { width: 280px; }
.art-slot-h .art-preview { width: 280px; height: 120px; }
.art-preview { width: 100%; height: 110px; border: 1px dashed var(--mist); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; overflow: hidden; background: var(--faint); cursor: pointer; }
.art-preview img { width: 100%; height: 100%; object-fit: cover; }
.art-add { border: 1px solid var(--gold); color: var(--gold-deep); border-radius: 999px; padding: 6px 14px; }
.art-slot input[type=file] { margin-top: 6px; font-size: 12px; }
.detail-photos { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; flex: 0 0 auto; }
.art-vertical { display: flex; gap: 10px; height: 100%; }
.art-vertical img { flex: 1 1 0; min-width: 0; width: auto; height: 180px; object-fit: cover; border-radius: 8px; border: 1px solid var(--mist); display: block; }
.art-vertical .art-photo.empty { flex: 1 1 0; height: 180px; }
.art-photo.empty { border: 1px dashed var(--mist); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; background: var(--faint); }
.review-img { width: 140px; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid var(--mist); margin: 2px 6px 2px 0; vertical-align: top; }
.review-fig { display: inline-block; margin: 0 8px 8px 0; text-align: center; }
.review-fig figcaption { font-size: 11px; color: var(--muted); margin-top: 2px; }
.lightbox { position: fixed; inset: 0; background: rgba(30,28,26,.88); display: none; align-items: center; justify-content: center; z-index: 400; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox-label { position: fixed; bottom: 22px; left: 0; right: 0; text-align: center; color: #E8DCC6; font-size: 13px; }
.zoom-img { cursor: zoom-in; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
  background: var(--ebony); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 300; max-width: 90vw; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--err); }
.phone-code-row { display: flex; gap: 10px; align-items: stretch; }
.phone-code-row input { flex: 1; min-width: 0; }
.phone-code-row button { flex: 0 0 auto; white-space: nowrap; }
.login-actions { display: flex; gap: 16px; align-items: center; }
.login-actions button { flex: 1; }
.login-actions a { flex: 0 0 auto; }
.muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.center { text-align: center; }
.page-title { padding: 64px 0 10px; }
.page-title h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 8px; text-align: center; letter-spacing: .08em; }
.page-title p { text-align: center; color: var(--muted); margin: 0; }
.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--walnut); }
.img-frame img { width: 100%; display: block; }
.img-frame::after { content: ""; position: absolute; inset: 0; background: rgba(30,28,26,.22); pointer-events: none; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--ivory);
    flex-direction: column; align-items: stretch; padding: 12px 18px 18px; gap: 2px;
    border-bottom: 1px solid var(--mist); box-shadow: 0 18px 30px rgba(30,28,26,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .section { padding: 72px 0 10px; }
  .hero { aspect-ratio: 16 / 10; min-height: 320px; }
  .search-card { margin-top: 18px; padding: 18px; }
  .detail-head { padding: 22px; }
  .detail-head .detail-photos { order: 4; flex-basis: 100%; }
}
