/* ============================================================
   兼职猫 · 设计系统
   简约 · 专业 · 教育风
   ============================================================ */

:root {
  --ink: #0b1f1c;
  --ink-2: #354a45;
  --muted: #6d807a;
  --line: #e2e8e2;
  --line-strong: #cfd8d0;
  --bg: #f6f7f3;
  --bg-2: #eef2ec;
  --surface: #ffffff;
  --brand: #0e7a6b;
  --brand-dark: #07564a;
  --brand-soft: #e4f2ee;
  --brand-tint: #f0f8f5;
  --accent: #e2761b;
  --accent-soft: #fdf1e4;
  --gold: #bd8b32;
  --danger: #c0392b;
  --danger-soft: #fdeceb;
  --info: #2563a8;
  --info-soft: #eaf1fa;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 28, 0.05);
  --shadow: 0 1px 2px rgba(11, 31, 28, 0.04), 0 10px 30px -18px rgba(11, 31, 28, 0.35);
  --shadow-lg: 0 2px 4px rgba(11, 31, 28, 0.04), 0 24px 48px -28px rgba(11, 31, 28, 0.45);
  --header-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { inset-inline-start: 8px; }

/* ---------- 布局 ---------- */
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.view { min-height: 60vh; }
.section { padding-block: 64px; }
.section--tight { padding-block: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-block-end: 28px; }
.section-head > div { min-width: 0; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.25; }
.section-head p { color: var(--muted); font-size: 14px; margin-block-start: 6px; max-width: 56ch; }
.section-head .more { font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.section-head .more svg { width: 16px; height: 16px; flex: none; }
.section-head .more:hover { gap: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 243, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-block-end-color: var(--line); background: rgba(255,255,255,.92); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, var(--brand) 0%, #0b5f53 60%, #06443b 100%);
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px -8px rgba(14,122,107,.9);
  flex: none;
}
.logo-mark svg { width: 19px; height: 19px; }
.logo small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .08em; margin-block-start: -2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); font-weight: 600; }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.lang-select {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 30px 7px 12px;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d807a' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
[dir="rtl"] .lang-select { padding: 7px 12px 7px 30px; background-position: left 11px center; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(14,122,107,.15);
}
.avatar--lg { width: 56px; height: 56px; font-size: 19px; border-radius: 18px; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }

/* 该按钮同时带 .btn（display:inline-flex），必须提高特异性才能默认隐藏 */
.btn.menu-toggle { display: none; }
.nav-mobile-only { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -12px rgba(14,122,107,.9); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-soft:hover { background: #d7ece6; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c9660f; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-icon { padding: 9px; border-radius: 50%; }

.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 标签 / 徽标 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 6px; font-size: 12px;
  background: var(--bg-2); color: var(--ink-2); white-space: nowrap;
}
.tag--brand { background: var(--brand-soft); color: var(--brand-dark); }
.tag--accent { background: var(--accent-soft); color: #a45a10; }
.tag--line { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.badge--green { background: #e6f5ec; color: #1f7a45; }
.badge--amber { background: var(--accent-soft); color: #a45a10; }
.badge--red { background: var(--danger-soft); color: var(--danger); }
.badge--gray { background: var(--bg-2); color: var(--muted); }
.badge--blue { background: var(--info-soft); color: var(--info); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 72px 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 420px at 82% -10%, #d9ece5 0%, transparent 62%),
    radial-gradient(600px 300px at 8% 105%, #f4e7d3 0%, transparent 60%),
    linear-gradient(180deg, #f8faf6 0%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(14,122,107,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  opacity: .35;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.hero-badge .seal { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.hero-badge .seal svg { width: 12px; height: 12px; }
.hero h1 {
  text-wrap: balance;
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -0.035em;
  margin-block: 22px 18px; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 10px;
  background: rgba(226,118,27,.18); z-index: -1; border-radius: 3px;
}
.hero p.lead { font-size: 16.5px; color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-block-start: 30px; flex-wrap: wrap; }

.search-box {
  margin-block-start: 30px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 18px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); max-width: 520px;
}
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input { flex: 1; border: 0; outline: none; background: transparent; padding: 10px 0; font-size: 14.5px; min-width: 0; }
.search-box .btn { padding: 10px 20px; }

.hero-visual { position: relative; padding-block-end: 132px; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card--main {
  position: relative; inset: auto; margin-inline-end: 30px; padding: 20px 20px 14px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card--main .row { display: flex; align-items: center; gap: 10px; }
.float-card--main h4 { font-size: 15px; letter-spacing: -0.01em; }
.float-card--stat {
  inset-inline-start: -8px; bottom: 8px; padding: 12px 18px; display: flex; align-items: center; gap: 14px;
  animation-delay: -2.4s; background: #fff;
}
.float-card--mini {
  inset-inline-end: -4px; bottom: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  animation-delay: -4.2s;
}
.float-card .kpi { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.float-card .kpi-label { font-size: 11.5px; color: var(--muted); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mini-job { display: flex; align-items: flex-start; gap: 12px; padding-block: 12px; }
.mini-job + .mini-job { border-block-start: 1px dashed var(--line); }

/* hero 空状态 */
.slide-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding-block: 26px; min-height: 132px;
}
.slide-empty .glyph {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-block-end: 4px;
}
.slide-empty .glyph svg { width: 18px; height: 18px; }
.slide-empty .title { font-size: 14px; font-weight: 600; }

/* hero 轮播 */
.hero-slide { display: none; min-height: 168px; flex-direction: column; }
.hero-slide.active { display: flex; animation: slideIn .32s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero-slide-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-block-start: auto; padding-block-start: 10px; border-block-start: 1px dashed var(--line);
}
.hero-dots { display: flex; gap: 6px; justify-content: center; margin-block-start: 10px; }
.hero-dots button {
  width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0;
  background: var(--line-strong); transition: width .2s ease, background .2s ease;
}
.hero-dots button.active { width: 20px; background: var(--brand); }
.mini-job .title { font-size: 14px; font-weight: 600; }
.mini-job .meta { font-size: 12px; color: var(--muted); margin-block-start: 2px; display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; }
.mini-job .meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; }
.mini-job .meta svg, .float-card .meta svg { width: 12px; height: 12px; opacity: .7; }
.float-card .meta { display: flex; gap: 12px; align-items: center; }
.mini-job .pay { margin-inline-start: auto; color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ---------- 入口卡 ---------- */
.entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.entry {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: block;
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(14,122,107,.25); }
.entry .ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); margin-block-end: 16px;
}
.entry:nth-child(2) .ico { background: var(--accent-soft); color: #a45a10; }
.entry:nth-child(3) .ico { background: var(--info-soft); color: var(--info); }
.entry:nth-child(4) .ico { background: #f0ecfa; color: #5b46a8; }
.entry .ico svg { width: 21px; height: 21px; }

/* 布局防溢出：flex / grid 子项默认允许收缩，避免长内容撑破视口 */
.toolbar > *, .detail-card, .card, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.detail-card, .card { max-width: 100%; }

/* 图标尺寸防护：避免按钮/链接内的 svg 撑满容器 */
button > svg, a > svg, .side-card button svg, .admin-nav svg, .me-nav svg,
.filter-chip svg, .badge svg, .tag svg, .notice svg { flex: none; }
.side-card button svg, .admin-nav svg, .me-nav svg, .filter-chip svg { width: 16px; height: 16px; }
.notice svg { width: 16px; height: 16px; }
.badge svg, .tag svg { width: 12px; height: 12px; }
.entry h3 { font-size: 16px; letter-spacing: -0.01em; }
.entry p { font-size: 12.5px; color: var(--muted); margin-block-start: 6px; line-height: 1.55; }
.entry .arrow { position: absolute; inset-inline-end: 18px; top: 22px; color: var(--line-strong); transition: color .2s, transform .2s; }
.entry:hover .arrow { color: var(--brand); transform: translateX(2px); }

/* ---------- 统计条 ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.stats-bar div { background: var(--surface); padding: 22px 24px; }
.stats-bar .num { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stats-bar .lbl { font-size: 12.5px; color: var(--muted); margin-block-start: 4px; }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- 岗位卡 ---------- */
.job-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  position: relative;
}
.job-card:hover { border-color: rgba(14,122,107,.3); box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card .top { display: flex; align-items: flex-start; gap: 12px; }
.job-card h3 { font-size: 15.5px; line-height: 1.45; letter-spacing: -0.01em; font-weight: 600; }
.job-card h3 a:hover { color: var(--brand); }
.job-card .pay { margin-inline-start: auto; text-align: end; white-space: nowrap; }
.job-card .pay strong { color: var(--accent); font-size: 17px; letter-spacing: -0.02em; }
.job-card .pay span { display: block; font-size: 11.5px; color: var(--muted); }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.job-card .meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.job-card .meta svg { width: 13px; height: 13px; opacity: .75; }
.job-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-card .foot {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding-block-start: 12px;
  border-block-start: 1px solid var(--line); margin-block-start: auto;
}
.job-card .company {
  font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px;
  min-width: 0; flex: 1; overflow: hidden; white-space: nowrap;
}
.job-card .company span { overflow: hidden; text-overflow: ellipsis; }
.job-card .company svg { width: 13px; height: 13px; flex: none; opacity: .7; }

/* ---------- 教师卡 ---------- */
.teacher-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(14,122,107,.25); }
.teacher-head { display: flex; gap: 14px; align-items: center; }
.teacher-head h3 { font-size: 16px; }
.teacher-head .sub { font-size: 12.5px; color: var(--muted); margin-block-start: 2px; }
.teacher-head .rating { margin-inline-start: auto; text-align: end; }
.stars { color: var(--gold); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.teacher-body { margin-block-start: 14px; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.teacher-foot { display: flex; align-items: center; gap: 8px; margin-block-start: 16px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.teacher-foot .rate { margin-inline-start: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.teacher-head .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teacher-foot .rate strong { color: var(--ink); font-size: 15px; }

/* ---------- 课程卡 ---------- */
.course-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-cover {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center;
  color: #fff; overflow: hidden;
}
.course-cover .glyph { display: block; font-size: 26px; opacity: .95; font-weight: 600; letter-spacing: 0.02em; }
.course-cover .sub { display: block; font-size: 11.5px; opacity: .68; margin-block-start: 6px; letter-spacing: .04em; }
.course-cover .kind { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; }
.course-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 0%, rgba(255,255,255,.22), transparent 60%);
}
.cover-chip { width: 34px; height: 34px; border-radius: 9px; flex: none; display: inline-block; }
.g1 { background: linear-gradient(135deg, #0e7a6b, #0a4f45); }
.g2 { background: linear-gradient(135deg, #2f5d8a, #1b3a5c); }
.g3 { background: linear-gradient(135deg, #b4652a, #7d3f14); }
.g4 { background: linear-gradient(135deg, #5b46a8, #352567); }
.g5 { background: linear-gradient(135deg, #2c7a58, #174b34); }
.g6 { background: linear-gradient(135deg, #8a3f5d, #552237); }
.course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h3 { font-size: 15px; line-height: 1.45; font-weight: 600; }
.course-body .teacher { font-size: 12.5px; color: var(--muted); }
.course-body .price-row { display: flex; align-items: baseline; gap: 8px; margin-block-start: auto; }
.price { color: var(--accent); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.price-old { color: var(--muted); font-size: 12px; text-decoration: line-through; }

/* ---------- 筛选 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.filter-chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; flex: none;
  background: var(--surface); font-size: 13px; color: var(--ink-2);
  transition: all .16s ease;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-block-end: 20px;
}
.toolbar .input, .toolbar .select { height: 36px; }

.input, .select, .textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); font-size: 14px; transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,122,107,.12);
}
.input::placeholder { color: #9aa8a3; }
.textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d807a' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-inline-end: 32px; }
[dir="rtl"] .select { background-position: left 12px center; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- 页面头 ---------- */
.page-head { padding-block: 40px 26px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; line-height: 1.2; }
.page-head p { color: var(--muted); margin-block-start: 8px; max-width: 62ch; }
.breadcrumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-block-end: 14px; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- 详情 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.detail-card h1 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.3; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block-start: 14px; color: var(--muted); font-size: 13px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.detail-meta svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.prose { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.prose h3 { font-size: 15px; color: var(--ink); margin-block: 26px 10px; letter-spacing: -0.01em; }
.prose p { margin-block: 8px 0; }
.prose ul { padding-inline-start: 18px; list-style: disc; margin-block-start: 8px; }
.prose li { margin-block: 4px; }

.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card .price-lg { font-size: 30px; font-weight: 700; color: var(--accent); letter-spacing: -0.03em; }

.notice {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--brand-tint); border: 1px solid #d5e9e2; font-size: 12.5px; color: #2c5c53;
}
.notice svg { flex: none; width: 16px; height: 16px; margin-block-start: 2px; }
.notice--warn { background: var(--accent-soft); border-color: #f4dcc1; color: #8a5216; }
.notice--danger { background: var(--danger-soft); border-color: #f6cfcb; color: #9b3226; }

/* ---------- 认证页 ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 520px; }
.auth-aside {
  padding: 64px; position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #0d6c5f 0%, #0a4c44 55%, #073a35 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .35;
  mask-image: radial-gradient(80% 60% at 70% 20%, #000, transparent);
}
.auth-aside h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.28; letter-spacing: -0.03em; max-width: 16ch; word-break: keep-all; }
.auth-aside p { color: rgba(255,255,255,.72); max-width: 40ch; margin-block-start: 16px; font-size: 14px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-block-start: 34px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.86); }
.auth-points .tick { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.auth-points .tick svg { width: 11px; height: 11px; }
.auth-quote { font-size: 12.5px; color: rgba(255,255,255,.5); }

.auth-panel { padding: 56px 56px; background: var(--surface); display: flex; flex-direction: column; justify-content: center; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 4px; border-radius: 999px; margin-block-end: 28px; }
.auth-tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.auth-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; }
.code-row .btn { white-space: nowrap; }

.role-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.role-picker label {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 4px;
  text-align: center; font-size: 12.5px; cursor: pointer; color: var(--ink-2);
  transition: all .16s;
}
.role-picker input { position: absolute; opacity: 0; pointer-events: none; }
.role-picker input:checked + span { color: var(--brand-dark); font-weight: 600; }
.role-picker label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }

.dev-code {
  font-family: var(--mono); background: var(--accent-soft); color: #8a5210;
  padding: 2px 8px; border-radius: 5px; font-size: 13px; letter-spacing: .1em;
}

/* ---------- 会员中心 ---------- */
.me-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding-block-end: 64px; }
.me-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.me-user { display: flex; gap: 12px; align-items: center; padding-block-end: 16px; border-block-end: 1px solid var(--line); margin-block-end: 14px; }
.me-user h3 { font-size: 15px; }
.me-user .role { font-size: 12px; color: var(--muted); }
.me-nav { display: flex; flex-direction: column; gap: 2px; }
.me-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start;
  padding: 9px 12px; border: 0; background: transparent; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--ink-2);
}
.me-nav button:hover { background: var(--bg-2); }
.me-nav button.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.me-nav svg { width: 16px; height: 16px; opacity: .8; }
.me-main { display: flex; flex-direction: column; gap: 18px; }

.list-item {
  display: flex; gap: 16px; align-items: center; padding: 16px 0;
  border-block-end: 1px solid var(--line);
}
.list-item:last-child { border-block-end: 0; padding-block-end: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .t { font-size: 14px; font-weight: 600; }
.list-item .s { font-size: 12.5px; color: var(--muted); margin-block-start: 3px; }

.empty-block {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 44px 20px; border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg); background: var(--surface);
}
.empty-block .glyph {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.empty-block .glyph svg { width: 20px; height: 20px; }
.empty-block .title { font-size: 15px; font-weight: 600; color: var(--ink); }
.empty-block .hint { font-size: 12.5px; color: var(--muted); max-width: 340px; line-height: 1.7; text-wrap: pretty; }
.empty-block .btn { margin-block-start: 4px; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .ico svg { width: 24px; height: 24px; opacity: .5; }
.empty p { font-size: 13.5px; }

.chat { display: grid; grid-template-columns: 260px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); min-height: 480px; }
.chat-list { border-inline-end: 1px solid var(--line); overflow-y: auto; max-height: 560px; }
.chat-item { display: flex; gap: 10px; padding: 14px 16px; border-block-end: 1px solid var(--line); cursor: pointer; }
.chat-item:hover { background: var(--bg-2); }
.chat-item.active { background: var(--brand-tint); }
.chat-item .grow { min-width: 0; flex: 1; }
.chat-item .n { font-size: 13px; font-weight: 600; }
.chat-item .m { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .unread { background: var(--accent); color: #fff; border-radius: 999px; font-size: 10px; min-width: 17px; height: 17px; display: grid; place-items: center; padding-inline: 4px; }
.chat-main { display: flex; flex-direction: column; }
.chat-head { padding: 14px 18px; border-block-end: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--bg); max-height: 420px; }
.msg { max-width: 74%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-start-start-radius: 4px; }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-start-end-radius: 4px; }
.msg .time { display: block; font-size: 10.5px; opacity: .6; margin-block-start: 4px; }
.msg .voice { display: inline-flex; align-items: center; gap: 8px; }
.msg .voice svg { width: 14px; height: 14px; }
.chat-input .btn-icon.recording { background: var(--danger-soft); color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.35); } 50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } }
.chat-input { display: flex; gap: 8px; padding: 12px; border-block-start: 1px solid var(--line); }
.chat-input input { flex: 1; }

/* ---------- 后台 ---------- */
.admin-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; padding-block-end: 64px; }
.admin-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.admin-side .brand-mini { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); padding: 0 10px 12px; letter-spacing: .06em; text-transform: uppercase; }
.admin-side .brand-mini svg { width: 15px; height: 15px; flex: none; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav button {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 0; border-radius: var(--r-sm);
  background: transparent; text-align: start; font-size: 13.5px; color: var(--ink-2); width: 100%;
}
.admin-nav button:hover { background: var(--bg-2); }
.admin-nav button.active { background: var(--ink); color: #fff; }
.admin-nav .count { margin-inline-start: auto; background: var(--accent); color: #fff; font-size: 10.5px; border-radius: 999px; padding: 1px 6px; }
.admin-nav button.active .count { background: rgba(255,255,255,.22); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.kpi .k { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.kpi .l { font-size: 12.5px; color: var(--muted); margin-block-start: 3px; }
.kpi .delta { font-size: 11.5px; margin-block-start: 8px; color: var(--brand); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.table th {
  text-align: start; padding: 11px 14px; background: var(--bg-2); color: var(--muted);
  font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.table td { padding: 12px 14px; border-block-start: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #fbfcfa; }
.table .actions { display: flex; gap: 6px; }

.chart { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding-block-start: 10px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .bar i {
  display: block; width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #1a9c88, #0e7a6b); min-height: 4px;
  transition: height .4s ease;
}
.chart .bar span { font-size: 11px; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-block-end: 1px solid var(--line); margin-block-end: 18px; overflow-x: auto; min-width: 0; max-width: 100%; }
.tabs button {
  border: 0; background: transparent; padding: 10px 14px; font-size: 13.5px; color: var(--muted);
  border-block-end: 2px solid transparent; margin-block-end: -1px; white-space: nowrap;
}
.tabs button.active { color: var(--brand); border-block-end-color: var(--brand); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-block-start: 1px solid var(--line); background: #fff; padding-block: 48px 28px; margin-block-start: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-block-end: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { font-size: 13px; color: var(--ink-2); }
.footer-grid a:hover { color: var(--brand); }
.footer-brand p { font-size: 13px; color: var(--muted); margin-block-start: 12px; max-width: 34ch; }
.footer-bottom .row { white-space: nowrap; }
.footer-bottom .lang-select { max-width: 120px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: 40px; padding-block-start: 20px; border-block-start: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- Toast / Modal ---------- */
.toast-root { position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); max-width: 380px;
  animation: toastIn .22s ease;
}
.toast--error { background: #7f2a20; }
.toast--success { background: #0b5c4f; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,31,28,.42); backdrop-filter: blur(3px);
  display: grid; place-items: center; z-index: 150; padding: 20px;
}
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%);
  max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { padding: 22px 24px 0; display: flex; align-items: flex-start; gap: 12px; }
.modal-head h3 { font-size: 17px; letter-spacing: -0.01em; }
.modal-body { padding: 18px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { margin-inline-start: auto; border: 0; background: transparent; color: var(--muted); padding: 4px; }

/* ---------- Skeleton / Loading ---------- */
.skeleton { background: linear-gradient(90deg, #eef1ec 25%, #f6f8f4 37%, #eef1ec 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 148px; border-radius: var(--r); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: clamp(34px, 4.4vw, 46px); }
  .hero-visual { min-height: 320px; }
  .float-card--main { margin-inline-end: 20px; padding: 18px; }
  .float-card--stat { padding: 10px 14px; }
  .entries { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .side-card { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .me-grid, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .me-side, .admin-side { position: static; }
  /* 侧栏导航改为单行横滑 chips，避免按钮 width:100% 堆成一屏 */
  .me-nav, .admin-nav {
    flex-direction: row; flex-wrap: nowrap; gap: 6px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .me-nav::-webkit-scrollbar, .admin-nav::-webkit-scrollbar { display: none; }
  .me-nav button, .admin-nav button {
    width: auto; flex: none; white-space: nowrap; padding: 8px 12px; border-radius: 999px;
  }
  .admin-nav .count { margin-inline-start: 4px; }
  /* 侧栏是 grid item，必须允许收缩，否则内部横滑导航会把整栏撑宽 */
  .admin-side, .me-side { padding: 14px; min-width: 0; max-width: 100%; overflow: hidden; }
  .admin-nav, .me-nav { max-width: 100%; }
  .admin-side .brand-mini { display: none; }
  .me-user { padding-block-end: 12px; margin-block-end: 10px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 平板竖屏及以下：导航折叠，避免 5 个菜单项被挤成竖排 */
@media (max-width: 1023px) {
  .nav { display: none; }
  .btn.menu-toggle { display: inline-flex; }
  .nav.open {
    display: flex; position: absolute; inset-block-start: var(--header-h); inset-inline: 0;
    background: var(--surface); border-block-end: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px; gap: 2px;
    box-shadow: var(--shadow); z-index: 60;
  }
  .nav.open a { border-radius: var(--r-sm); padding: 11px 12px; }
  .nav.open .nav-mobile-only { display: block; }
  .header-actions .lang-select { max-width: 108px; }
}

/* 窄平板：首屏改为单列，浮卡重排为两行网格 */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-visual {
    min-height: auto; max-width: none; padding-block-end: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch;
  }
  .float-card { animation: none; }
  .float-card--main { grid-column: 1 / -1; position: static; inset: auto; margin: 0; }
  .float-card--stat { position: static; inset: auto; justify-content: flex-start; }
  .float-card--mini { position: static; inset: auto; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  :root { --header-h: 60px; }
  .logo small { display: none; }
  .logo { font-size: 15px; gap: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .lang-select { display: none; }
  .header-actions > a.btn-ghost {
    display: inline-flex; padding: 6px 10px; font-size: 13px; border-color: transparent;
  }
  .hero { padding-block: 40px 32px; }
  .hero h1 {
    font-size: 28px; text-wrap: wrap;
    /* 中文按标点断行，避免把"兼职"之类的词拆成两半 */
    word-break: keep-all; overflow-wrap: break-word; line-break: strict;
  }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .entries, .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding-block: 44px; }
  .auth-panel { padding: 32px 22px; }
  .chat { grid-template-columns: minmax(0, 1fr); }
  .chat-list { max-height: 180px; border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .role-picker { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: auto; display: grid; gap: 12px; margin-block-start: 8px; padding-block-end: 0; }
  .float-card { position: static; inset: auto; margin: 0; animation: none; box-shadow: var(--shadow); }
  .float-card--mini { display: none; }
  .float-card--stat { justify-content: center; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .section-head { gap: 12px; }
  .toolbar .input, .toolbar .select { max-width: none !important; width: 100%; }
  .detail-card, .card-pad { padding: 18px; }
  .section-head h2 { font-size: 24px; }
  .chat-body { max-height: 340px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .row-between { flex-wrap: wrap; gap: 10px; }
  .page-head { padding-block: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- RTL ---------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .arrow svg { transform: scaleX(-1); }
[dir="rtl"] .hero h1 em::after { inset-inline: 0; }
