/* ============================================================
   源仓 Store · Showcase 设计层
   在 tokens.css / app.css / home.css 之后加载，
   用 slate + 品牌蓝 + 毛玻璃 + 大圆角重绘全站外观。
   ============================================================ */

/* ---------- 1. 中性色板（覆盖所有主题的表面色） ---------- */
html[data-theme] {
  --md-surface: #ffffff;
  --md-on-surface: #0f172a;
  --md-background: #f8fafc;
  --md-on-background: #0f172a;
  --md-surface-variant: #f1f5f9;
  --md-on-surface-variant: #64748b;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low: #f8fafc;
  --md-surface-container: #f1f5f9;
  --md-surface-container-high: #e9eef5;
  --md-surface-container-highest: #e2e8f0;
  --md-outline: #cbd5e1;
  --md-outline-variant: #e2e8f0;
  --md-inverse-surface: #0f172a;
  --md-inverse-on-surface: #f8fafc;

  --shape-xs: 10px;
  --shape-sm: 14px;
  --shape-md: 18px;
  --shape-lg: 22px;
  --shape-xl: 28px;

  --elev-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --elev-2: 0 4px 12px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --elev-3: 0 10px 30px rgba(15, 23, 42, .09), 0 2px 6px rgba(15, 23, 42, .05);
  --elev-4: 0 20px 50px rgba(15, 23, 42, .14);

  --max-content: 1200px;
}

html[data-theme][data-dark="true"] {
  --md-surface: #0f172a;
  --md-on-surface: #f1f5f9;
  --md-background: #020617;
  --md-on-background: #f1f5f9;
  --md-surface-variant: #1e293b;
  --md-on-surface-variant: #94a3b8;
  --md-surface-container-lowest: #0b1220;
  --md-surface-container-low: #0f172a;
  --md-surface-container: #172033;
  --md-surface-container-high: #1e293b;
  --md-surface-container-highest: #273449;
  --md-outline: #475569;
  --md-outline-variant: #26334a;
  --md-inverse-surface: #f1f5f9;
  --md-inverse-on-surface: #0f172a;

  --elev-1: 0 1px 2px rgba(0, 0, 0, .4);
  --elev-2: 0 6px 18px rgba(0, 0, 0, .45);
  --elev-3: 0 16px 40px rgba(0, 0, 0, .5);
  --elev-4: 0 24px 60px rgba(0, 0, 0, .55);
}

/* 默认主题「源仓蓝」：品牌蓝 + 深色底 */
html[data-theme="azure"] {
  --md-primary: #2563eb;
  --md-on-primary: #ffffff;
  --md-primary-container: #dbeafe;
  --md-on-primary-container: #1e3a8a;
  --md-secondary: #3b82f6;
  --md-on-secondary: #ffffff;
  --md-secondary-container: #dbeafe;
  --md-on-secondary-container: #1e3a8a;
  --md-tertiary: #7c3aed;
  --md-on-tertiary: #ffffff;
  --md-tertiary-container: #ede9fe;
  --md-on-tertiary-container: #4c1d95;
  --md-error: #dc2626;
  --md-on-error: #ffffff;
  --md-error-container: #fee2e2;
  --md-on-error-container: #7f1d1d;
  --md-inverse-primary: #93c5fd;
}
html[data-theme="azure"][data-dark="true"] {
  --md-primary: #60a5fa;
  --md-on-primary: #06264d;
  --md-primary-container: #1e3a8a;
  --md-on-primary-container: #dbeafe;
  --md-secondary: #93c5fd;
  --md-on-secondary: #0b2b52;
  --md-secondary-container: #1e3a8a;
  --md-on-secondary-container: #dbeafe;
  --md-tertiary: #c4b5fd;
  --md-on-tertiary: #2e1065;
  --md-tertiary-container: #4c1d95;
  --md-on-tertiary-container: #ede9fe;
  --md-error: #f87171;
  --md-on-error: #450a0a;
  --md-error-container: #7f1d1d;
  --md-on-error-container: #fee2e2;
  --md-inverse-primary: #2563eb;
}

/* ---------- 2. 基础 ---------- */
body {
  background: var(--md-background);
  color: var(--md-on-surface);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}
::selection { background: color-mix(in srgb, var(--md-primary) 24%, transparent); }
a { color: var(--md-primary); }
:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; }

html[data-style] body {
  transition: background-color .3s ease, color .3s ease;
}

/* ---------- 3. 顶栏 ---------- */
.m3-topbar {
  background: color-mix(in srgb, var(--md-surface) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--md-outline-variant);
  box-shadow: none;
}
.m3-topbar.scrolled { box-shadow: var(--elev-2); }
.topbar-inner { height: 66px; gap: 14px; padding: 0 22px; }

.brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; gap: 10px; }
.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--md-primary) 32%, transparent);
}
.brand .brand-version {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--md-primary);
  background: color-mix(in srgb, var(--md-primary) 12%, transparent);
}

.top-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.top-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--md-on-surface-variant);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.top-nav a:hover { background: var(--md-surface-container); color: var(--md-on-surface); }
.top-nav a.active { background: color-mix(in srgb, var(--md-primary) 12%, transparent); color: var(--md-primary); }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--md-on-surface-variant);
  background: var(--md-surface-container);
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.icon-btn:hover { background: var(--md-surface-container-high); color: var(--md-on-surface); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }

.topbar-avatar .avatar { width: 38px; height: 38px; border-radius: 999px; }

/* ---------- 4. 按钮 ---------- */
.m3-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .18s ease, box-shadow .18s ease, color .18s ease, transform .12s ease;
}
.m3-btn:active { transform: scale(.98); }
.m3-btn.sm { height: 34px; padding: 0 14px; font-size: .8rem; border-radius: 12px; }
.m3-btn.filled {
  background: var(--md-primary);
  color: var(--md-on-primary);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--md-primary) 26%, transparent);
}
.m3-btn.filled:hover {
  background: color-mix(in srgb, var(--md-primary) 88%, #000);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--md-primary) 32%, transparent);
  filter: none;
}
.m3-btn.tonal {
  background: color-mix(in srgb, var(--md-primary) 12%, transparent);
  color: var(--md-primary);
}
.m3-btn.tonal:hover { background: color-mix(in srgb, var(--md-primary) 18%, transparent); }
.m3-btn.outlined { border: 1px solid var(--md-outline); color: var(--md-on-surface); background: var(--md-surface); }
.m3-btn.outlined:hover { border-color: var(--md-primary); color: var(--md-primary); }
.m3-btn.text { color: var(--md-primary); padding: 0 14px; }
.m3-btn.text:hover { background: color-mix(in srgb, var(--md-primary) 10%, transparent); }

/* ---------- 5. 卡片 / 面板 ---------- */
.m3-card {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--shape-xl);
  box-shadow: var(--elev-1);
}
.m3-card.hoverable:hover {
  box-shadow: var(--elev-3);
  border-color: color-mix(in srgb, var(--md-primary) 35%, var(--md-outline-variant));
  transform: translateY(-3px);
}
.glass-card {
  background: color-mix(in srgb, var(--md-surface) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--shape-xl);
}

/* 表单 */
.m3-field { gap: 8px; }
.m3-field-label { font-size: .8rem; font-weight: 600; color: var(--md-on-surface); }
.m3-field input, .m3-field select, .m3-field textarea, .m3-input {
  background: var(--md-surface-container);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 15px;
  font-size: .9rem;
  color: var(--md-on-surface);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.m3-field input:hover, .m3-field select:hover, .m3-field textarea:hover, .m3-input:hover {
  border-color: var(--md-outline-variant);
}
.m3-field input:focus, .m3-field select:focus, .m3-field textarea:focus, .m3-input:focus {
  background: var(--md-surface);
  border-color: var(--md-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-primary) 14%, transparent);
}
.m3-field .hint, .m3-field-help { color: var(--md-on-surface-variant); }

/* 胶囊 / 徽章 */
.m3-chip {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--md-outline-variant);
  background: var(--md-surface);
  font-size: .8rem;
  font-weight: 600;
}
.m3-chip:hover { background: var(--md-surface-container); }
.m3-chip.active {
  background: var(--md-primary);
  color: var(--md-on-primary);
  border-color: transparent;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--md-primary) 25%, transparent);
}
.badge {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .68rem;
  font-weight: 700;
}

/* 提示 */
.m3-alert { border-radius: 16px; border: 1px solid transparent; }

/* 页面标题 */
.m3-headline { letter-spacing: -.03em; font-weight: 800; }
.m3-title { letter-spacing: -.02em; font-weight: 700; }
.m3-body-medium { color: var(--md-on-surface-variant); }

/* 空状态 */
.empty-state {
  padding: 64px 24px;
  border-radius: var(--shape-xl);
  background: var(--md-surface-container);
  border: 1px dashed var(--md-outline-variant);
}

/* ---------- 6. 首页 ---------- */
.yc-wrap {
  width: min(var(--max-content), calc(100% - 44px));
  margin: 0 auto;
}
.yc-main { padding: 26px 0 72px; }

.yc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 90% at 12% 10%, rgba(37, 99, 235, .55), transparent 60%),
    radial-gradient(ellipse 55% 80% at 88% 0%, rgba(124, 58, 237, .45), transparent 62%),
    linear-gradient(135deg, #0b1220 0%, #111d33 48%, #1a1030 100%);
  box-shadow: var(--elev-4);
  isolation: isolate;
}
.yc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
}
.yc-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 36px;
  align-items: center;
  padding: 44px 44px 40px;
}
.yc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #e0edff;
  background: rgba(96, 165, 250, .18);
  border: 1px solid rgba(147, 197, 253, .35);
  backdrop-filter: blur(8px);
}
.yc-badge i, .yc-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 10px #60a5fa;
}
.yc-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.yc-hero h1 .grad {
  background: linear-gradient(96deg, #93c5fd, #c4b5fd 55%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.yc-hero p.yc-lead {
  margin: 16px 0 0;
  max-width: 54ch;
  color: #c7d4e6;
  font-size: .98rem;
  line-height: 1.75;
}
.yc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.yc-btn-light, .yc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
}
.yc-btn-light {
  background: #fff;
  color: #0b1220;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.yc-btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.yc-btn-ghost {
  color: #e8efff;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}
.yc-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.yc-btn-light svg, .yc-btn-ghost svg { width: 18px; height: 18px; fill: currentColor; }

.yc-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.yc-hero-tags span {
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  color: #cbd9ee;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
}

.yc-hero-card {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(260px, 100%);
  padding: 22px;
  border-radius: 26px;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.yc-hero-card img {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.yc-hero-card strong { display: block; margin-top: 14px; font-size: 1rem; letter-spacing: -.01em; }
.yc-hero-card span { display: block; margin-top: 4px; font-size: .74rem; color: #9fb0c9; }

/* 数据条 */
.yc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.yc-stat {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--elev-1);
}
.yc-stat b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.yc-stat span { display: block; margin-top: 3px; font-size: .74rem; font-weight: 600; color: var(--md-on-surface-variant); }

/* 区块 */
.yc-section { margin-top: 46px; }
.yc-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.yc-kicker {
  margin: 0 0 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--md-primary);
}
.yc-section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.yc-section-head p { margin: 6px 0 0; font-size: .85rem; color: var(--md-on-surface-variant); }

.yc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

.yc-card {
  padding: 24px;
  border-radius: 26px;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--elev-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.yc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--elev-3);
  border-color: color-mix(in srgb, var(--md-primary) 30%, var(--md-outline-variant));
}
.yc-card .yc-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--md-primary);
  background: color-mix(in srgb, var(--md-primary) 12%, transparent);
}
.yc-card .yc-card-icon.accent {
  color: var(--md-tertiary);
  background: color-mix(in srgb, var(--md-tertiary) 12%, transparent);
}
.yc-card .yc-card-icon svg { width: 22px; height: 22px; fill: currentColor; }
.yc-card h3 { margin: 16px 0 8px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.yc-card p { margin: 0 0 10px; font-size: .86rem; line-height: 1.75; color: var(--md-on-surface-variant); }
.yc-card ul.yc-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.yc-card ul.yc-list li {
  position: relative;
  padding-left: 18px;
  font-size: .85rem;
  line-height: 1.65;
  color: var(--md-on-surface-variant);
}
.yc-card ul.yc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--md-primary);
}

/* 项目卡 */
.yc-project {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--elev-1);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.yc-project:hover {
  transform: translateY(-3px);
  box-shadow: var(--elev-3);
  border-color: color-mix(in srgb, var(--md-primary) 40%, var(--md-outline-variant));
}
.yc-project .icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--md-primary);
  background: color-mix(in srgb, var(--md-primary) 12%, transparent);
}
.yc-project .icon svg { width: 22px; height: 22px; fill: currentColor; }
.yc-project .body { min-width: 0; flex: 1; }
.yc-project strong { display: block; font-size: .96rem; font-weight: 700; letter-spacing: -.01em; }
.yc-project span.sub { display: block; margin-top: 3px; font-size: .78rem; color: var(--md-on-surface-variant); }
.yc-project .arrow { color: var(--md-on-surface-variant); font-weight: 700; }
.yc-project.muted { opacity: .72; }

/* 联系卡 */
.yc-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 120% at 100% 0%, color-mix(in srgb, var(--md-primary) 14%, transparent), transparent 70%),
    var(--md-surface);
  border: 1px solid var(--md-outline-variant);
}
.yc-contact h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.yc-contact p { margin: 8px 0 0; font-size: .86rem; color: var(--md-on-surface-variant); }
.yc-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.yc-contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--md-on-surface);
  background: var(--md-surface-container);
  border: 1px solid var(--md-outline-variant);
  transition: border-color .18s ease, color .18s ease;
}
.yc-contact-actions a:hover { border-color: var(--md-primary); color: var(--md-primary); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--md-surface-container-low);
  border-top: 1px solid var(--md-outline-variant);
}
.footer-brand { justify-content: center; }
.footer-tagline { color: var(--md-on-surface-variant); }
.footer-version {
  font-size: .68rem;
  font-weight: 700;
  color: var(--md-primary);
  background: color-mix(in srgb, var(--md-primary) 10%, transparent);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 980px) {
  .yc-hero-inner { grid-template-columns: 1fr; padding: 34px 28px 30px; }
  .yc-hero-card { justify-self: start; width: min(240px, 100%); }
  .yc-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .topbar-inner { height: 60px; padding: 0 16px; gap: 10px; }
  .yc-wrap { width: calc(100% - 28px); }
  .yc-hero { border-radius: 24px; }
  .yc-hero-inner { padding: 26px 20px 24px; gap: 24px; }
  .yc-hero p.yc-lead { font-size: .9rem; }
  .yc-stats { gap: 10px; }
  .yc-stat { padding: 14px 16px; }
  .yc-stat b { font-size: 1.15rem; }
  .yc-grid { grid-template-columns: 1fr; }
  .yc-contact { padding: 24px 20px; }
  .m3-btn { height: 40px; }
}
@media (max-width: 420px) {
  .yc-stats { grid-template-columns: 1fr 1fr; }
  .yc-hero-actions .yc-btn-light, .yc-hero-actions .yc-btn-ghost { flex: 1; justify-content: center; }
}

/* 降级：不支持 backdrop-filter 时用不透明底 */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .m3-topbar, .glass-card, .yc-hero-card, .yc-badge { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .m3-topbar { background: var(--md-surface); }
}

/* ---------- 9. 认证 / 表单 / 表格 ---------- */
.auth-wrap { padding: 40px 16px 64px; background: transparent !important; }
.auth-card {
  border-radius: 30px;
  padding: 42px 34px;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--elev-3);
}
.logo-badge {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .32);
  font-weight: 800;
}
.auth-card .m3-alert { text-align: center; }
.auth-alt a { font-weight: 700; }

.form-card {
  padding: 28px;
  border-radius: 26px;
  background: var(--md-surface);
}
.form-card .m3-field-label { font-weight: 600; }
.section-title { margin-bottom: 20px; }
.section-title h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; }

.table-wrap {
  border-radius: 22px;
  border: 1px solid var(--md-outline-variant);
  background: var(--md-surface);
  box-shadow: var(--elev-1);
}
.m3-table th { background: var(--md-surface-container-low); font-weight: 700; letter-spacing: .02em; }
.m3-table td { border-bottom: 1px solid var(--md-outline-variant); }

/* 详情页细节 */
.plugin-hero-info {
  border-radius: 28px;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--elev-2);
}
.plugin-hero-cover { border-radius: 28px; border: 1px solid var(--md-outline-variant); box-shadow: var(--elev-2); }
.plugin-hero-title-row h1 { letter-spacing: -.03em; font-weight: 800; }
.hero-stat {
  border-radius: 16px;
  background: var(--md-surface-container);
  padding: 12px 14px;
}
.detail-section { padding: 26px; border-radius: 26px; background: var(--md-surface); }
.info-card { padding: 24px; border-radius: 24px; background: var(--md-surface); }
.release-row { border-radius: 16px; }

/* 统计卡 */
.stat-card { border-radius: 22px; background: var(--md-surface); border: 1px solid var(--md-outline-variant); }

/* ---------- 10. 移动端导航修正 ---------- */
.brand { white-space: nowrap; }
@media (max-width: 900px) {
  .top-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .brand { font-size: .98rem; gap: 8px; }
  .brand .brand-version { display: none; }
  .topbar-inner { gap: 8px; }
  .m3-topbar .icon-btn, .m3-topbar .m3-btn.sm { flex: none; }
}

/* ---------- 11. 后台配色对齐 ---------- */
.adm-focus {
  border-radius: 30px;
  background:
    radial-gradient(ellipse 46% 70% at 86% 6%, rgba(96, 165, 250, .30), transparent 62%),
    radial-gradient(ellipse 40% 60% at 4% 110%, rgba(124, 58, 237, .35), transparent 70%),
    linear-gradient(128deg, #0b1220 0%, #16224a 52%, #1d4ed8 100%);
  box-shadow: 0 26px 54px -34px rgba(29, 78, 216, .65);
}
.adm-focus.has-pending {
  background:
    radial-gradient(ellipse 46% 70% at 86% 6%, rgba(251, 191, 36, .28), transparent 62%),
    linear-gradient(128deg, #1a1206 0%, #4a2c07 50%, #b45309 100%);
  box-shadow: 0 26px 54px -34px rgba(180, 83, 9, .6);
}
.admin-sidebar { border-radius: 0 28px 28px 0; }
.adm-shortcut, .adm-stat, .admin-panel, .adm-card { border-radius: 22px; }

/* ---------- 12. 个人资料 / 文件选择 ---------- */
.yc-narrow { width: min(720px, 100%); margin: 0 auto; }
.m3-field input[type="file"] { padding: 10px 12px; background: var(--md-surface-container); }
.m3-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--md-primary) 12%, transparent);
  color: var(--md-primary);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
}
.m3-field input[type="file"]::file-selector-button:hover {
  background: color-mix(in srgb, var(--md-primary) 20%, transparent);
}

/* ---------- 13. 客户端下载 / 截图 / 更新记录 ---------- */
.yc-app {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.yc-app-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, color-mix(in srgb, var(--md-primary) 12%, transparent), transparent 70%),
    var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--elev-1);
}
.yc-app-brand { display: flex; align-items: center; gap: 14px; }
.yc-app-brand img {
  width: 64px; height: 64px;
  border-radius: 20px;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--md-primary) 22%, transparent);
}
.yc-app-name { min-width: 0; }
.yc-app-name strong { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.yc-app-name span { display: block; margin-top: 3px; font-size: .78rem; color: var(--md-on-surface-variant); }
.yc-app-os {
  margin-left: auto;
  flex: none;
  font-size: .66rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--md-primary);
  background: color-mix(in srgb, var(--md-primary) 12%, transparent);
}
.yc-app-desc {
  margin: 16px 0 0;
  font-size: .86rem;
  line-height: 1.72;
  color: var(--md-on-surface-variant);
}
.yc-app-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.yc-app-points li {
  position: relative;
  padding-left: 24px;
  font-size: .84rem;
  color: var(--md-on-surface);
}
.yc-app-points li::before {
  content: "✓";
  position: absolute;
  left: 1px; top: -1px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--md-primary);
}
.yc-app-actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.yc-app-actions .m3-btn svg { width: 17px; height: 17px; fill: currentColor; }
.yc-app-note { margin: 12px 0 0; font-size: .72rem; color: var(--md-on-surface-variant); }

/* 截图条 */
.yc-shots {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--md-outline-variant);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--md-primary) 6%, transparent), transparent 55%),
    var(--md-surface-container-low);
  overflow: hidden;
}
.yc-shots-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.yc-shots-track::-webkit-scrollbar { display: none; }
.yc-shot {
  margin: 0;
  flex: 0 0 auto;
  width: 196px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #000;
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--elev-2);
  transition: transform .2s ease;
}
.yc-shot:hover { transform: translateY(-4px); }
.yc-shot img { display: block; width: 100%; height: auto; }
.yc-shots-hint {
  align-self: flex-end;
  margin-top: 8px;
  font-size: .66rem;
  font-weight: 600;
  color: var(--md-on-surface-variant);
  background: color-mix(in srgb, var(--md-surface) 82%, transparent);
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* 更新记录 */
.yc-changelog {
  margin-top: 16px;
  padding: 24px 26px;
  border-radius: 26px;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--elev-1);
}
.yc-changelog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.yc-changelog h3 {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.yc-chip-version {
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--md-primary);
  background: color-mix(in srgb, var(--md-primary) 12%, transparent);
}
.yc-changelog-date { font-size: .74rem; font-weight: 600; color: var(--md-on-surface-variant); white-space: nowrap; }
.yc-changelog-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.yc-changelog-list li {
  position: relative;
  padding-left: 24px;
  font-size: .86rem;
  line-height: 1.66;
  color: var(--md-on-surface-variant);
}
.yc-changelog-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--md-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-primary) 14%, transparent);
}
.yc-changelog-empty { margin: 16px 0 0; font-size: .84rem; color: var(--md-on-surface-variant); }

@media (max-width: 980px) {
  .yc-app { grid-template-columns: 1fr; }
  .yc-shot { width: 168px; }
  .yc-shots { padding: 14px; }
}
@media (max-width: 480px) {
  .yc-app-card { padding: 22px 20px; }
  .yc-changelog { padding: 20px; }
  .yc-shot { width: 150px; }
}
