/* ==========================================================================
   智慧星球俱乐部 (zhxq.club / WELL STAR CLUB)
   V5 Ultra-Minimalist Dark Luxury & Wuxing (五行相生) Mineral Design System
   美学准则：极度克制 · 玄水深空 · 五行矿物微光（水生木·木生火·火生土·土生金·金生水）
   ========================================================================== */

:root {
  --bg-void: #03060c;
  --bg-obsidian: #070b14;
  --bg-surface: rgba(11, 16, 29, 0.72);
  --bg-surface-elevated: rgba(14, 21, 36, 0.86);
  --bg-glass-subtle: rgba(255, 255, 255, 0.02);

  --text-primary: #b5c0d0;
  --text-secondary: #8290a4;
  --text-muted: #66758a;

  /* 东方黑金 · 五行矿物低饱和宝石色系 (绝不刺眼跳脱，浑然一体) */
  --wuxing-water: #63b9e2;   /* 水：冰魄天青（源头活水，润泽序列） */
  --wuxing-wood:  #67cfa5;   /* 木：翡冷翠松珀（水生木，生机汇聚） */
  --wuxing-fire:  #de9218;   /* 火：丹霞暖珀（木生火，算力星火） */
  --wuxing-earth: #c2a14d;   /* 土：厚土黄玉（火生土，契约基石） */
  --wuxing-metal: #cfc7b6;   /* 金：乾元铂金（土生金，尊贵永恒） */

  --gold-light: #bca97e;
  --gold-primary: #c2a14d;
  --gold-deep: #96771c;
  --cyan-tech: #38bdf8;
  --emerald-glow: #10b981;

  --border-hairline: rgba(255, 255, 255, 0.055);
  --border-gold: rgba(194, 161, 77, 0.14);
  --border-gold-bright: rgba(206, 188, 146, 0.30);

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --max-w: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

strong, b, h1, h2, h3, h4 {
  font-weight: 600;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-void);
  /* 玄水为底，融入极其克制的五行相生矿物微晕：顶聚乾金厚土、左润玄水翠木、右暖丹霞琥珀 */
  background-image:
    radial-gradient(circle at 50% 0%, rgba(194, 161, 77, 0.065) 0%, transparent 56%),
    radial-gradient(circle at 18% 42%, rgba(56, 189, 248, 0.028) 0%, transparent 52%),
    radial-gradient(circle at 32% 68%, rgba(52, 211, 153, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 82% 52%, rgba(217, 158, 43, 0.024) 0%, transparent 52%);
  color: var(--text-primary);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.serif-display {
  font-family: "Cinzel", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

.num-tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.gold-gradient-text {
  /* 温润玄金纵向渐变：收敛刺眼白光，呈现沉稳耐看的古金墨韵 */
  background: linear-gradient(180deg, #cfc7b6 0%, #c4b287 42%, #bca055 82%, #beac82 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-3d-stage {
  max-width: 900px;
  height: 270px;
  margin: 14px auto 12px;
  position: relative;
  isolation: isolate;
}

.hero-motion-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 28px;
  min-block-size: 28px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(188, 169, 126, 0.24);
  background: rgba(8, 12, 20, 0.56);
  color: rgba(188, 169, 126, 0.72);
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.hero-motion-toggle:hover,
.hero-motion-toggle:focus-visible {
  opacity: 1;
  border-color: rgba(212, 175, 55, 0.52);
  color: #f5e6b3;
  background: rgba(12, 18, 30, 0.82);
}
.hero-motion-toggle:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .hero-motion-toggle {
    min-inline-size: 36px;
    min-block-size: 36px;
    padding: 8px;
  }
}

/* 屏幕阅读器可见、视觉隐藏辅助类 */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* 首页底部四维索引栏：克制的东方黑金五行相生立线与悬停微晕 */
.wuxing-index-col {
  position: relative;
  text-decoration: none;
  padding: 6px 16px;
  border-left: 1px solid rgba(245, 230, 179, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  border-radius: 0 10px 10px 0;
}
.wuxing-index-col:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, rgba(245, 230, 179, 0.04) 0%, transparent 100%);
}
.wuxing-index-col.wx-water { border-left-color: rgba(145, 210, 242, 0.42); }
.wuxing-index-col.wx-wood  { border-left-color: rgba(152, 218, 192, 0.42); }
.wuxing-index-col.wx-fire  { border-left-color: rgba(238, 192, 118, 0.46); }
.wuxing-index-col.wx-earth { border-left-color: rgba(226, 190, 90, 0.52); }

/* ==========================================================================
   1. 极简无界顶部导航栏 (Ultra-Minimalist Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border-hairline);
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 32px;
  min-height: 68px;
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  white-space: nowrap;
  min-inline-size: 0;
}

.site-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: radial-gradient(circle at 30% 25%, rgba(245, 230, 179, 0.15), rgba(6, 10, 20, 0.94) 72%);
  padding: 2.5px;
  border: 1px solid rgba(245, 230, 179, 0.38);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.78),
    0 0 16px rgba(212, 175, 55, 0.20),
    inset 0 1px 1px rgba(255, 255, 255, 0.16);
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.25));
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-brand:hover .site-brand-logo {
  transform: scale(1.05);
  border-color: rgba(245, 230, 179, 0.72);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(212, 175, 55, 0.36),
    inset 0 1px 1px rgba(255, 255, 255, 0.24);
}

.site-brand-title {
  font-size: clamp(14.5px, 3.6vw, 15.5px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #b5c0d0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.site-brand-badge {
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(194, 161, 77, 0.09);
  color: var(--gold-light);
  border: 1px solid rgba(194, 161, 77, 0.24);
  letter-spacing: 0.14em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-brand-sub {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.site-nav-link {
  text-decoration: none;
  color: #8493a7;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 7px 9px;
  border-radius: 99px;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.site-nav-link svg {
  display: none;
}

.site-nav-link:hover {
  color: #b5c0d0;
}

.site-nav-link.active {
  color: var(--gold-light);
  background: rgba(194, 161, 77, 0.10);
  border: 1px solid rgba(194, 161, 77, 0.25);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   2. 主舞台与极简页面标题栏
   ========================================================================== */
.site-main {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 32px 64px;
  min-height: calc(100dvh - 150px);
}

.page-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.page-title {
  font-size: clamp(18px, 4.4vw, 23px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.38;
  color: #b5c0d0;
}

.page-subtitle {
  font-size: clamp(12px, 3.1vw, 13px);
  color: var(--text-muted);
  margin-top: 5px;
  letter-spacing: 0.025em;
  line-height: 1.6;
}

.page-hero-banner {
  position: relative;
  border-radius: 24px;
  padding: 40px;
  background: radial-gradient(circle at 50% 0%, rgba(194, 161, 77, 0.055), rgba(5, 8, 16, 0.76) 75%);
  border: 1px solid rgba(194, 161, 77, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
  overflow: hidden;
}

/* ==========================================================================
   3. 网格与极简黑曜石容器 (Architectural Cards)
   ========================================================================== */
#page-content-slot {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grid-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; }
.grid-4    { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3    { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2    { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-sidebar-left  { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.grid-sidebar-right { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }

.surface-card {
  position: relative;
  background: linear-gradient(165deg, rgba(12, 18, 33, 0.76) 0%, rgba(8, 12, 23, 0.82) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(206, 188, 146, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-primary);
}

.surface-card:hover {
  border-color: rgba(194, 161, 77, 0.26);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.56), 0 0 20px rgba(194, 161, 77, 0.05);
}

.subtle-card {
  background: rgba(10, 15, 28, 0.78);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  color: var(--text-secondary);
}

.obsidian-card {
  position: relative;
  background: linear-gradient(165deg, rgba(13, 19, 34, 0.90) 0%, rgba(6, 10, 19, 0.95) 100%);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(206, 188, 146, 0.06);
}

/* ==========================================================================
   4. 按钮、徽章与表单
   ========================================================================== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.025);
  color: #a8b4c5;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-modern:hover {
  border-color: var(--border-gold-bright);
  color: var(--gold-light);
  background: rgba(194, 161, 77, 0.07);
}

.btn-brand {
  /* 温润古金渐变，收敛刺眼白亮 */
  background: linear-gradient(135deg, #c8b588 0%, #bca97e 38%, #c2a14d 78%, #a68222 100%);
  color: #070a12 !important;
  border: 1px solid rgba(226, 209, 168, 0.85);
  font-weight:600;
  box-shadow: 0 6px 22px rgba(194, 161, 77, 0.20);
}

.btn-brand:hover {
  background: linear-gradient(135deg, #eadbb6 0%, #d6c59c 45%, #caa955 90%, #b58e28 100%);
  color: #04070d !important;
  box-shadow: 0 10px 28px rgba(194, 161, 77, 0.30);
}

.btn-ink {
  background: rgba(12, 18, 34, 0.88);
  color: var(--gold-light);
  border-color: rgba(194, 161, 77, 0.28);
}

.btn-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.88), rgba(5, 150, 105, 0.90));
  color: #04130d;
  border-color: rgba(52, 211, 153, 0.6);
  font-weight:600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  white-space: nowrap;
}

.pill-emerald { background: rgba(16, 185, 129, 0.09); color: #67cfa5; border-color: rgba(16, 185, 129, 0.18); }
.pill-blue    { background: rgba(56, 189, 248, 0.09); color: #7ac4eb; border-color: rgba(56, 189, 248, 0.18); }
.pill-amber   { background: rgba(194, 161, 77, 0.09); color: #bca97e; border-color: rgba(194, 161, 77, 0.20); }
.pill-rose    { background: rgba(244, 63, 94, 0.09);  color: #e895a1; border-color: rgba(244, 63, 94, 0.18); }
.pill-dark    { background: rgba(5, 8, 17, 0.88);     color: #bca97e; border-color: rgba(194, 161, 77, 0.18); }
.pill-gold    { background: rgba(194, 161, 77, 0.08); color: #bca97e; border-color: rgba(194, 161, 77, 0.20); }

/* 首页与项目长条引导卡片（左图标 + 标题描述 + 右箭头，清淡边框） */
.guide-bar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(12, 18, 34, 0.72) 0%, rgba(7, 11, 22, 0.80) 100%);
  border: 1px solid rgba(255, 255, 255, 0.065);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.guide-bar-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.24);
  background: linear-gradient(165deg, rgba(16, 24, 44, 0.84) 0%, rgba(10, 15, 30, 0.88) 100%);
}

.guide-bar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 25%, rgba(245, 230, 179, 0.14), rgba(10, 15, 28, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.18);
  color: #bca97e;
}

/* 表格 */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: rgba(5, 8, 16, 0.72);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 13px 16px;
  background: rgba(14, 20, 36, 0.88);
  color: var(--gold-light);
  font-weight:600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* 表单 */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 16, 0.85);
  font-size: 13.5px;
  color: #b5c0d0;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible, .btn-modern:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.form-input:invalid:user-invalid, .form-textarea:invalid:user-invalid {
  border-color: rgba(244, 63, 94, 0.72);
}

.btn-modern:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.kpi-value {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #b5c0d0;
  line-height: 1.15;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 活动页/宪章页自适应内部组件 */
.agenda-slide-card {
  padding: 36px 40px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poster-info-grid {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: rgba(5, 8, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.rule-reader-body {
  background: rgba(5, 8, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 32px 36px;
  line-height: 1.85;
  color: #a1afbf;
}

/* 用户会话浮层 */
.user-Menu-wrap { position: relative; flex-shrink: 0; }
.user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-gold);
  background: rgba(10, 15, 28, 0.88);
  cursor: pointer;
  font-size: 12.5px;
  font-weight:600;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 28px));
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88);
  padding: 14px;
  display: none;
  z-index: 200;
}

.user-dropdown.open { display: block; }

/* 极简页脚 */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-hairline);
  padding: 28px 32px;
  color: var(--text-muted);
}

.site-footer-minimal {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* 弹窗与轻提示 */
.zhxq-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 9, 0.86);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 18px;
}

.zhxq-modal-mask.show { display: flex; }

.zhxq-modal-box {
  background: #080c17;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.92);
}

.toast-notice {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(8, 12, 24, 0.96);
  color: var(--gold-light);
  padding: 13px 22px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-gold-bright);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 10px;
}

.toast-notice.show { display: flex; }

/* ==========================================================================
   6. 会员头像、富文本公开介绍编辑器、好友与私聊弹窗样式
   ========================================================================== */
.member-avatar-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 25%, rgba(245, 230, 179, 0.22), rgba(10, 15, 28, 0.96));
  border: 1.5px solid rgba(212, 175, 55, 0.36);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  color: #bca97e;
  font-weight: 600;
  font-size: 16px;
}

.member-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rich-editor-wrap {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(5, 8, 16, 0.85);
  overflow: hidden;
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: rgba(14, 21, 38, 0.90);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rich-tool-btn {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8290a4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.18s ease;
}

.rich-tool-btn:hover {
  color: #bca97e;
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
}

.rich-editor-area {
  min-height: 160px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 16px;
  color: #9aa7b9;
  font-size: 14px;
  line-height: 1.8;
  outline: none;
}

.rich-editor-area img,
.rich-intro-render img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0;
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.rich-intro-render h3,
.rich-editor-area h3 {
  color: #bca97e;
  font-size: 16px;
  margin: 10px 0 6px;
}

.rich-intro-render blockquote,
.rich-editor-area blockquote {
  border-left: 3px solid rgba(212, 175, 55, 0.5);
  padding-left: 12px;
  color: #8290a4;
  margin: 8px 0;
}

.chat-messages-box {
  height: 340px;
  overflow-y: auto;
  padding: 14px;
  background: rgba(4, 7, 14, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.chat-bubble-row.self {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble-row.peer {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
}

.chat-bubble-row.self .chat-bubble {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(154, 123, 28, 0.18));
  border: 1px solid rgba(212, 175, 55, 0.34);
  color: #b5c0d0;
  border-bottom-right-radius: 4px;
}

.chat-bubble-row.peer .chat-bubble {
  background: rgba(18, 26, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1afbf;
  border-bottom-left-radius: 4px;
}

/* 温润柔和版 AI项目 卡片样式 */
.soft-project-card {
  background: linear-gradient(165deg, rgba(13, 19, 34, 0.62) 0%, rgba(8, 12, 22, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.soft-feature-item {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 14px;
  padding: 18px 20px;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.soft-feature-item:hover {
  background: rgba(255, 255, 255, 0.036);
  border-color: rgba(212, 175, 55, 0.16);
}

/* ==========================================================================
   7. Instagram 风格个人 IP 主页 · 三宫格方形画廊 · 沙龙归属与供需对接系统
   ========================================================================== */
.ig-profile-shell {
  max-width: 980px;
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ig-profile-header {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding: 34px 36px;
  background: linear-gradient(165deg, rgba(13, 19, 36, 0.86) 0%, rgba(6, 10, 20, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(245, 230, 179, 0.08);
}

.ig-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ig-story-ring {
  position: relative;
  padding: 2px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.28);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ig-story-ring:hover {
  transform: scale(1.02);
}

.ig-story-ring-inner {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 3px solid #080d1a;
  background: #0b1120;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8a476;
  font-size: 36px;
  font-weight: 600;
}

.ig-story-ring-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-avatar-plus {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1e293b;
  color: #8290a4;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight:600;
  box-shadow: none;
}

.ig-stats-bar {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ig-stat-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ig-stat-num {
  font-size: 17px;
  font-weight: 600;
  color: #a1afbf;
  font-variant-numeric: tabular-nums;
}

.ig-stat-label {
  font-size: 12.5px;
  color: #7e8da1;
}

.ig-salon-pill-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 10px;
}

.ig-supply-demand-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.ig-sd-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.65;
  min-inline-size: 0;
}

.ig-sd-card.offer,
.ig-sd-card.seek {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.ig-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 2px;
}

.ig-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: transparent;
  border: none;
  border-top: 2px solid transparent;
  margin-top: -1px;
  color: #64748b;
  font-size: 13px;
  font-weight:600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ig-tab-btn:hover {
  color: #8290a4;
}

.ig-tab-btn.active {
  color: #bca97e;
  border-top-color: #d4af37;
}

/* Instagram 标志性 3 列等比正方形画廊网格 (1:1 Aspect Ratio) */
.ig-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ig-gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: clip;
  background: #060a14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  group: tile;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.ig-gallery-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 230, 179, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68);
}

.ig-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-gallery-tile:hover img {
  transform: scale(1.05);
}

.ig-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 14, 0.05) 35%, rgba(4, 7, 14, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: background 0.25s ease;
}

.ig-gallery-tile:hover .ig-tile-overlay {
  background: linear-gradient(180deg, rgba(4, 7, 14, 0.22) 15%, rgba(4, 7, 14, 0.94) 100%);
}

.ig-tile-title {
  font-size: 14px;
  font-weight: 600;
  color: #b5c0d0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: clip;
}

.ig-tile-desc {
  font-size: 11.5px;
  color: #8290a4;
  margin-top: 4px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: clip;
}

.ig-gallery-add-tile {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1.5px dashed rgba(212, 175, 55, 0.42);
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.09), rgba(8, 12, 24, 0.75));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  color: #bca97e;
  transition: all 0.24s ease;
}

.ig-gallery-add-tile:hover {
  border-color: #bca97e;
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.16), rgba(12, 18, 34, 0.88));
  transform: translateY(-2px);
}

/* Instagram 作品详情左图右文弹窗 */
.ig-post-modal-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.ig-post-media-stage {
  background: #03050a;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 360px;
  max-height: 74dvh;
  overflow: clip;
}

.ig-post-media-stage img {
  max-width: 100%;
  max-height: 68dvh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* 会员序列：Instagram 风格创作者名片与微型三宫格预览 */
.ig-creator-card {
  background: linear-gradient(165deg, rgba(13, 20, 38, 0.82) 0%, rgba(7, 11, 22, 0.90) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ig-creator-card:hover {
  border-color: rgba(212, 175, 55, 0.36);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.62);
}

.ig-mini-gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.ig-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(7, 11, 22, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.ig-pill-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 8px;
}

.ig-filter-pill {
  padding: 7px 15px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8290a4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ig-filter-pill:hover {
  color: #bca97e;
  border-color: rgba(212, 175, 55, 0.35);
}

.ig-filter-pill.active {
  color: #05070e;
  font-weight: 600;
  background: linear-gradient(135deg, #c9ba96 0%, #bca97e 45%, #d4af37 100%);
  border-color: #bca97e;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.28);
}

/* 移动端适配与 App 级布局对齐 */
.mobile-bottom-bar { display: none; }
.mobile-module-strip { display: none; }

.poster-info-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.poster-info-grid.poster-info-sm {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.poster-thumb-col {
  text-align: center;
}
.ig-mini-tile-tag {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: rgba(3, 6, 14, 0.80);
  color: #b5c0d0;
  font-size: 10px;
  font-weight:600;
  padding: 2.5px 5px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1080px) {
  .grid-hero, .grid-4, .grid-3, .grid-2, .grid-sidebar-left, .grid-sidebar-right,
  .ig-post-modal-layout {
    grid-template-columns: 1fr;
  }
  .grid-hero > *, .grid-4 > *, .grid-3 > *, .grid-2 > *, .grid-sidebar-left > *, .grid-sidebar-right > * {
    min-width: 0;
    max-width: 100%;
  }
  .site-nav { display: none; }
  .site-header-inner { padding: 8px 14px 6px; min-height: 50px; gap: 8px; }
  .mobile-module-strip {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 4px 12px 8px;
    scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }
  .mobile-module-strip::-webkit-scrollbar { display: none; }
  .mobile-module-strip .site-nav-link {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 500;
    color: #7e8da1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-decoration: none;
  }
  .mobile-module-strip .site-nav-link.active {
    background: rgba(212, 175, 55, 0.14);
    color: #bca97e;
    border-color: rgba(212, 175, 55, 0.30);
    font-weight:600;
  }
  .site-main { padding: 14px 12px 92px; }
  .site-footer { padding: 20px 14px 86px; }
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(4, 7, 14, 0.95);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-hairline);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    z-index: 150;
  }
  .mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
  }
  .mobile-bottom-item.active { color: var(--gold-light); font-weight: 600; }
}

@media (max-width: 680px) {
  .ig-profile-header {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }
  .ig-avatar-col {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }
  .ig-story-ring-inner {
    width: 68px;
    height: 68px;
    font-size: 22px;
  }
  .ig-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0 12px;
    padding: 9px 4px;
    background: rgba(4, 7, 15, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    text-align: center;
  }
  .ig-stat-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .ig-stat-num {
    font-size: 15.5px;
  }
  .ig-stat-label {
    font-size: 10.5px;
  }
  .ig-supply-demand-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ig-tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: rgba(6, 10, 20, 0.65);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: clip;
    padding-top: 0;
  }
  .ig-tab-btn {
    justify-content: center;
    padding: 10px 2px;
    font-size: 11.5px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-top-width: 2.5px;
    margin-top: 0;
  }
  .ig-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .ig-gallery-tile,
  .ig-gallery-add-tile {
    border-radius: 8px;
  }
  .ig-gallery-add-tile {
    padding: 8px 4px;
    gap: 4px;
  }
  .ig-gallery-add-tile > div:nth-child(1) {
    width: 30px !important;
    height: 30px !important;
    font-size: 17px !important;
  }
  .ig-gallery-add-tile > div:nth-child(2) {
    font-size: 10.5px !important;
    line-height: 1.25;
  }
  .ig-gallery-add-tile > div:nth-child(3) {
    display: none;
  }
  .ig-tile-overlay {
    padding: 5px !important;
    background: linear-gradient(180deg, rgba(4, 7, 14, 0) 52%, rgba(4, 7, 14, 0.88) 100%) !important;
  }
  .ig-tile-overlay > div:first-child,
  .ig-tile-desc {
    display: none !important;
  }
  .ig-tile-title {
    font-size: 10px !important;
  }
  .ig-mini-gallery-strip {
    gap: 6px;
  }
  .ig-creator-card {
    padding: 16px 14px;
  }
  .site-header-inner {
    padding: 8px 12px 6px;
    min-height: 48px;
    gap: 8px;
  }
  .site-brand-logo {
    width: 28px;
    height: 28px;
  }
  .site-brand-badge,
  .user-pill-name,
  .hide-on-mobile {
    display: none !important;
  }
  .site-actions {
    gap: 6px;
  }
  .site-actions .btn-modern,
  .site-actions .user-pill-btn {
    padding: 5px 11px !important;
    font-size: 11.5px !important;
  }
  .page-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .page-title {
    font-size: 20px;
  }
  .surface-card,
  .obsidian-card,
  .subtle-card,
  .soft-project-card,
  .zhxq-modal-box {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    min-width: 0;
    max-width: 100%;
  }
  .soft-feature-item {
    padding: 14px !important;
  }
  .agenda-slide-card {
    padding: 18px 14px;
    min-height: auto;
  }
  .poster-info-grid,
  .poster-info-grid.poster-info-sm {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .poster-thumb-col img {
    max-width: 165px !important;
    max-height: 215px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
  }
  .rule-reader-body {
    padding: 16px 14px;
  }
  .form-input, .form-select, .form-textarea {
    font-size: 15px;
    min-width: 0;
    max-width: 100%;
  }
  .data-table {
    min-width: 0 !important;
    width: 100% !important;
  }
  .data-table th,
  .data-table td {
    padding: 8px 6px !important;
    font-size: 11.5px !important;
    word-break: break-word;
  }
  .seq-row {
    padding: 12px 13px;
    gap: 11px;
  }
  .seq-detail {
    padding: 13px 14px 15px;
  }
  .toast-notice {
    left: 16px;
    right: 16px;
    bottom: 74px;
    justify-content: center;
  }
}


/* 干净利落的会员序列折叠列表样式 */
.seq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seq-item {
  background: rgba(13, 19, 34, 0.90);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.2s ease;
}
.seq-item:hover {
  border-color: rgba(212, 175, 55, 0.30);
}
.seq-item.expanded {
  border-color: rgba(212, 175, 55, 0.42);
}
.seq-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.seq-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  flex-shrink: 0;
}
.seq-no-sub {
  font-size: 10.5px;
  font-weight:600;
  color: #e6d5a7;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
.seq-main {
  flex: 1;
  min-width: 0;
}
.seq-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.seq-nickname {
  font-size: 15.5px;
  font-weight: 600;
  color: #b5c0d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seq-motto {
  font-size: 13px;
  color: #7e8da1;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
}
.seq-item.expanded .seq-motto {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.seq-inline-actions {
  display: none;
}
.seq-item.expanded .seq-inline-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-width: 380px;
}
.seq-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 6px;
  border-radius: 9px;
  font-size: 12px;
  font-weight:600;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #bca97e;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: all 0.16s ease;
}
.seq-act-btn:hover {
  border-color: rgba(212, 175, 55, 0.52);
  background: rgba(212, 175, 55, 0.12);
}
.seq-act-btn.gold {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.50);
  color: #bca97e;
  font-weight: 600;
}
.seq-act-btn.done {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.seq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: #bca97e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.seq-item.expanded .seq-arrow {
  transform: rotate(180deg);
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.50);
}
.seq-detail {
  display: none;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(4, 7, 15, 0.62);
}
.seq-item.expanded .seq-detail {
  display: block;
}
.seq-detail-block {
  background: rgba(10, 15, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(212, 175, 55, 0.45);
  border-radius: 11px;
  padding: 11px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: #a1afbf;
  line-height: 1.62;
}
.seq-detail-label {
  font-size: 11px;
  font-weight: 600;
  color: #bca97e;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   8. 商业版数据分析高级黑金图表套件 (Bespoke Obsidian-Gold Analytics Suite)
   ========================================================================== */
.lux-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1.06fr) minmax(0, 1.12fr);
  gap: 14px;
  margin-bottom: 20px;
}

.lux-chart-card {
  background: linear-gradient(165deg, rgba(13, 20, 36, 0.90) 0%, rgba(7, 11, 20, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(245, 230, 179, 0.08);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.lux-chart-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.38), transparent);
  pointer-events: none;
}

.lux-chart-card:hover {
  border-color: rgba(212, 175, 55, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.60), inset 0 1px 0 rgba(245, 230, 179, 0.12);
}

.lux-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.lux-chart-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8493a7;
}

.lux-chart-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 2px 0 0;
  line-height: 1.3;
}

.lux-seg-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(4, 8, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lux-seg-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #8493a7;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.lux-seg-btn:hover {
  color: #e2e8f0;
}

.lux-seg-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(194, 161, 77, 0.12));
  border-color: rgba(212, 175, 55, 0.42);
  color: #f5e6b3;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.14);
}

.lux-trend-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(6, 10, 20, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.lux-donut-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.lux-donut-legend {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lux-donut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.lux-donut-row:hover,
.lux-donut-row.active {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(212, 175, 55, 0.24);
}

.lux-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

@media (max-width: 1200px) {
  .lux-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lux-analytics-grid > #usr-chart-trend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .lux-analytics-grid {
    grid-template-columns: 1fr;
  }
  .lux-donut-body {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   9. 模型网关密钥配置台 · 极简高对比状态矩阵与紧凑卡片
   ========================================================================== */
.gw-overview-bar {
  background: linear-gradient(165deg, rgba(13, 20, 36, 0.90) 0%, rgba(7, 11, 20, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 18px;
  padding: 15px 18px;
  margin-bottom: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(245, 230, 179, 0.06);
}

.gw-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gw-stats-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gw-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
  color: #94a3b8;
}

.gw-stat-pill.is-ready {
  background: rgba(6, 78, 59, 0.34);
  border-color: rgba(52, 211, 153, 0.38);
  color: #6ee7b7;
}

.gw-stat-pill.is-empty {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.20);
  color: #8493a7;
}

.gw-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gw-chip-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gw-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.gw-status-chip:hover {
  transform: translateY(-1px);
}

.gw-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gw-status-chip.is-own {
  background: rgba(6, 78, 59, 0.34);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #a7f3d0;
}

.gw-status-chip.is-own .gw-chip-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
}

.gw-status-chip.is-shared {
  background: rgba(12, 74, 110, 0.34);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #bae6fd;
}

.gw-status-chip.is-shared .gw-chip-dot {
  background: #38bdf8;
  box-shadow: 0 0 7px rgba(56, 189, 248, 0.75);
}

.gw-status-chip.is-paused {
  background: rgba(120, 53, 15, 0.28);
  border: 1px solid rgba(251, 191, 36, 0.34);
  color: #fde68a;
}

.gw-status-chip.is-paused .gw-chip-dot {
  background: #f59e0b;
}

.gw-status-chip.is-empty {
  background: rgba(8, 12, 22, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.24);
  color: #7c8b9e;
}

.gw-status-chip.is-empty:hover {
  border-color: rgba(212, 175, 55, 0.42);
  color: #cbd5e1;
}

.gw-status-chip.is-empty .gw-chip-dot {
  background: transparent;
  border: 1.5px solid rgba(148, 163, 184, 0.55);
}

.gw-group-block + .gw-group-block {
  margin-top: 20px;
}

.gw-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gw-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.gw-section-label.is-ready {
  color: #6ee7b7;
}

.gw-section-label.is-empty {
  color: #8493a7;
}

.gw-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.22), transparent);
}

.gw-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gw-card {
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gw-card.is-own {
  background: linear-gradient(165deg, rgba(13, 21, 36, 0.90) 0%, rgba(7, 12, 22, 0.96) 100%);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-left: 3.5px solid #10b981;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.gw-card.is-shared {
  background: linear-gradient(165deg, rgba(13, 21, 36, 0.90) 0%, rgba(7, 12, 22, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-left: 3.5px solid #38bdf8;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.gw-card.is-paused {
  background: linear-gradient(165deg, rgba(20, 18, 14, 0.86) 0%, rgba(10, 12, 20, 0.94) 100%);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-left: 3.5px solid #f59e0b;
}

.gw-card.is-empty {
  background: rgba(8, 12, 22, 0.44);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-left: 3.5px solid rgba(100, 116, 139, 0.30);
}

.gw-card.is-empty:hover,
.gw-card.is-empty:focus-within {
  background: linear-gradient(165deg, rgba(13, 20, 34, 0.86) 0%, rgba(8, 12, 22, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-left: 3.5px solid #d4af37;
}

.gw-card.flash-focus {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.65), 0 14px 36px rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.72) !important;
}

.gw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gw-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.gw-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gw-card.is-own .gw-status-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
}

.gw-card.is-shared .gw-status-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.gw-card.is-paused .gw-status-dot {
  background: #f59e0b;
}

.gw-card.is-empty .gw-status-dot {
  background: transparent;
  border: 1.5px solid rgba(148, 163, 184, 0.55);
}

.gw-provider-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.25;
}

.gw-card.is-empty .gw-provider-name {
  color: #9aa7b9;
}

.gw-provider-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  color: #8493a7;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.14);
  white-space: nowrap;
}

.gw-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gw-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.gw-badge-own {
  background: rgba(6, 78, 59, 0.42);
  border: 1px solid rgba(52, 211, 153, 0.40);
  color: #6ee7b7;
}

.gw-badge-shared {
  background: rgba(12, 74, 110, 0.42);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #7dd3fc;
}

.gw-badge-paused {
  background: rgba(120, 53, 15, 0.36);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fcd34d;
}

.gw-badge-empty {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #7e8da1;
}

.gw-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #8290a4;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.gw-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  min-height: 18px;
}

.gw-key-status {
  color: #bca97e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gw-card.is-empty .gw-key-status {
  color: #64748b;
}

.gw-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gw-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 11.5px;
  color: #7e8da1;
  cursor: pointer;
  transition: color 0.16s ease;
  white-space: nowrap;
}

.gw-link-btn:hover {
  color: #e2e8f0;
}

.gw-link-btn.is-danger:hover {
  color: #fda4af;
}

.gw-key-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gw-key-input {
  flex: 1;
  min-width: 0;
  padding: 7px 11px !important;
  font-size: 12.5px !important;
  height: 34px;
}

.gw-btn-compact {
  padding: 0 12px !important;
  height: 34px;
  font-size: 12px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.gw-probe-box {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  word-break: break-word;
}

.gw-adv-panel {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gw-adv-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gw-gateway-url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(6, 10, 20, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.gw-search-input {
  width: 210px;
  max-width: 100%;
  padding: 6px 11px !important;
  font-size: 12px !important;
  height: 32px;
  border-radius: 999px !important;
}

@media (max-width: 860px) {
  .gw-cards-grid {
    grid-template-columns: 1fr;
  }
  .gw-adv-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   模型费率配置与官方原价参考工作台 (RATES Tab)
   ========================================================================== */
.gw-rates-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(11, 17, 30, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.24);
}

.gw-rates-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gw-rate-input {
  width: 96px;
  min-width: 82px;
  padding: 5px 8px !important;
  font-size: 12.5px !important;
  height: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.gw-rate-input.is-dirty {
  border-color: rgba(251, 191, 36, 0.72) !important;
  background: rgba(120, 53, 15, 0.22) !important;
  color: #fde68a !important;
}

.gw-official-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 210px;
}

.gw-official-main {
  font-size: 12px;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.gw-official-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7e8da1;
}

.gw-src-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.gw-src-live {
  background: rgba(6, 78, 59, 0.40);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #6ee7b7;
}

.gw-src-catalog {
  background: rgba(30, 58, 138, 0.34);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #93c5fd;
}

.gw-src-none {
  background: rgba(51, 65, 85, 0.40);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

.gw-rate-select {
  padding: 4px 8px !important;
  font-size: 12px !important;
  height: 30px;
  min-width: 96px;
}
