:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #1f2329;
  --muted: #646a73;
  --hint: #8f959e;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --primary-soft: #e0edff;
  --accent: #0891b2;
  --accent-soft: #cffafe;
  --border: rgba(31, 35, 41, 0.1);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 35, 41, 0.06);
  --header-bg: rgba(255, 255, 255, 0.92);
  --grad-brand: linear-gradient(135deg, #2563eb, #06b6d4);
  --grad-banner: linear-gradient(120deg, #1d4ed8, #0891b2);
}
html.dark {
  --bg: #15171a;
  --bg-soft: #1e2126;
  --text: #e8eaed;
  --muted: #a6acb5;
  --hint: #737a84;
  --primary: #5b9bff;
  --primary-deep: #3b82f6;
  --primary-soft: rgba(59, 130, 246, 0.2);
  --accent: #22d3ee;
  --accent-soft: rgba(6, 182, 212, 0.22);
  --border: rgba(232, 234, 237, 0.12);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(21, 23, 26, 0.92);
  --grad-brand: linear-gradient(135deg, #3b82f6, #22d3ee);
  --grad-banner: linear-gradient(120deg, #1e40af, #0e7490);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
body { position: relative; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 首页顶部共用背景层（导航栏 + 首屏） ---------- */
.top-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 840px;
  z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(420px 300px at 8% 20%, rgba(37, 99, 235, 0.10), transparent 70%),
    radial-gradient(520px 360px at 92% 8%, rgba(6, 182, 212, 0.12), transparent 70%),
    radial-gradient(400px 300px at 78% 90%, rgba(37, 99, 235, 0.08), transparent 70%),
    linear-gradient(180deg, #e3edff 0%, #eef4ff 60%, rgba(238, 244, 255, 0) 100%);
}
.top-bg-mascot {
  position: absolute; right: 4%; top: 164px; height: 420px; width: auto;
  filter: drop-shadow(0 20px 36px rgba(37, 99, 235, 0.22));
  animation: mascot-float 5s ease-in-out infinite;
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
html.dark .top-bg {
  background:
    radial-gradient(420px 300px at 8% 20%, rgba(59, 130, 246, 0.14), transparent 70%),
    radial-gradient(520px 360px at 92% 8%, rgba(6, 182, 212, 0.12), transparent 70%),
    radial-gradient(400px 300px at 78% 90%, rgba(59, 130, 246, 0.1), transparent 70%),
    linear-gradient(180deg, #101a30 0%, #131b2c 60%, rgba(19, 27, 44, 0) 100%);
}
body.top-bg-on .site-header { background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.55)); }
html.dark body.top-bg-on .site-header { background: linear-gradient(180deg, rgba(21, 23, 26, 0.3), rgba(21, 23, 26, 0.65)); }
body.top-bg-on .hero, body.top-bg-on .stats { position: relative; z-index: 1; }
/* 数据带与首屏共用同一背景：去掉自身的灰白底与上边框 */
body.top-bg-on .stats { background: transparent; border-top-color: transparent; }
/* 数据带以下全部为纯净页面底色（浅色模式白色 / 深色模式深底），盖住渐变尾巴 */
body.top-bg-on .section { position: relative; z-index: 1; background: var(--bg); }
html.dark .top-bg-mascot { filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.45)); }
@media (max-width: 900px) {
  .top-bg-mascot { height: 220px; right: 2%; opacity: 0.85; top: 250px; }
  .top-bg { height: 700px; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 64px; gap: 14px; justify-content: center; }
.site-header .container { max-width: none; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; flex-shrink: 0; position: relative; overflow: hidden; border-radius: 8px; }
.logo .shine {
  position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: logo-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes logo-shine {
  0% { left: -80%; }
  55% { left: 135%; }
  100% { left: 135%; }
}
@media (prefers-reduced-motion: reduce) {
  .logo .shine { animation: none; display: none; }
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  overflow: hidden; flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-full-img {
  height: 42px; width: auto; max-width: 260px; object-fit: contain;
  display: block; border-radius: 6px;
}
.nav { display: flex; gap: 2px; flex-wrap: nowrap; align-items: center; justify-content: center; }
.nav a {
  padding: 8px 11px; border-radius: 8px; color: var(--muted); font-size: 15px;
  font-weight: 600; white-space: nowrap;
  transition: all 0.15s;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.auth-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.theme-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-soft); cursor: pointer; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: all 0.15s; flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--primary); color: var(--primary); }
.theme-btn svg { width: 18px; height: 18px; display: block; }
.user-chip { position: relative; }
.user-chip > button {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--text);
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px;
  line-height: 1; text-indent: 0; /* 行高归一，字符在圆内垂直居中 */
}
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 160px; padding: 6px; display: none;
}
.user-menu.open { display: block; }
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border-radius: 8px; font-size: 14px; color: var(--text);
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.user-menu a:hover, .user-menu button:hover { background: var(--bg-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fcebeb; color: #a32d2d; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(37, 99, 235, 0.1), transparent),
    radial-gradient(500px 260px at 85% 10%, rgba(6, 182, 212, 0.1), transparent);
  pointer-events: none;
}
.hero h1 { font-size: 42px; line-height: 1.3; letter-spacing: -0.5px; }
.hero h1 .hl { color: var(--primary); }
.hero p { margin: 18px auto 32px; max-width: 620px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 28px 0; gap: 16px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--primary); letter-spacing: -0.5px; }
.stat span { font-size: 13px; color: var(--muted); }
.stats-note { text-align: center; padding-bottom: 14px; font-size: 12px; color: var(--hint); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.3px; }
.section-head h2 .hl-title { color: var(--primary); }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.section-head .more {  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 26px; border-radius: 999px;
  background: var(--grad-brand);
  color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.section-head .more:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37, 99, 235, 0.36); filter: brightness(1.05); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg); transition: all 0.18s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cov {
  display: flex; align-items: flex-end; padding: 14px 16px;
  font-size: 13px; font-weight: 600; position: relative;
  aspect-ratio: 16 / 9; /* 全站封面统一标准 16:9 */
}
.cov::after {
  content: attr(data-letter); position: absolute; right: 16px; top: 6px;
  font-size: 56px; font-weight: 700; opacity: 0.18; line-height: 1;
}
.cov-teal { background: #e1f5ee; color: #0f6e56; }
.cov-purple { background: #eeedfe; color: #534ab7; }
.cov-coral { background: #faece7; color: #993c1d; }
.cov-blue { background: #e6f1fb; color: #185fa5; }
.cov-amber { background: #faeeda; color: #854f0b; }
.cov-pink { background: #fbeaf0; color: #993556; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 16px; line-height: 1.45; }
.card-body p {
  font-size: 13px; color: var(--muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
/* 分类与标签均匀布局：同行等分宽度、文字居中；文字过长时在胶囊内自动换行，保证完整显示 */
.card-meta .tag {
  flex: 1 1 auto; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; white-space: normal; overflow-wrap: anywhere;
  line-height: 1.45;
}
.cov.cov-img { padding: 0; }
.cov.cov-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cov.cov-img .cov-label {
  position: absolute; left: 16px; bottom: 12px; font-size: 13px; font-weight: 600;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); z-index: 1;
}
.detail .detail-cover-img {
  width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 24px;
}
.prose img { border-radius: 10px; margin: 12px 0; }
/* ---------- 标签胶囊（参考样式：主标签蓝底 / 次标签灰底，信息类独占一行） ---------- */
.tag {
  font-size: 13px; padding: 5px 14px; border-radius: 999px; line-height: 1.5;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border);
}
.tag.hl { background: var(--primary-soft); color: var(--primary); border-color: transparent; font-weight: 600; }
/* 信息类标签（工具 / 日期 / 关键词）：与分类同行等分排布 */
.tag.meta { justify-self: start; }

/* ---------- AI OPC轻创项目卡片（参考小红书项目卡：封面 + 收入胶囊 + 标签 + 信息块 + 详情按钮） ---------- */
.pcard {
  display: flex; flex-direction: column; background: var(--bg);
  border: none; border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05), 0 8px 24px rgba(17, 24, 39, 0.04);
  transition: all 0.18s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08), 0 16px 40px rgba(17, 24, 39, 0.08); }
.p-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.p-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.p-income { background: #e6f7ee; color: #0f8a4d; border-color: transparent; font-weight: 600; }
html.dark .p-income { background: rgba(16, 185, 129, 0.18); color: #4ade80; }
.pcard h3 { font-size: 17px; line-height: 1.4; margin: 2px 0 0; }
.p-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.p-sec { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.p-sec b { display: block; font-size: 14px; margin-bottom: 4px; }
.p-sec p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; white-space: pre-line; }
.p-more {
  margin-top: auto; text-align: center; padding: 10px 0;
  background: var(--bg-soft); border-radius: 999px;
  color: var(--primary); font-weight: 600; font-size: 14px;
  transition: all 0.18s;
}
.pcard:hover .p-more { background: var(--primary-soft); }
/* 夜间模式：柔影加深保证卡片与背景分离 */
html.dark .pcard { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
html.dark .pcard:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); }

/* ---------- AI甲乙方 · 供需对接 ---------- */
.sd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 6px; flex-wrap: wrap; }
.sd-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--muted); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.18s; font-family: inherit;
}
.sd-tab:hover { color: var(--primary); border-color: var(--primary-soft); }
.sd-tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.sd-count { font-size: 13px; color: var(--hint); }
.sd-tip { font-size: 12px; color: var(--hint); margin: 6px 4px 18px; }
.sd-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); border-radius: 16px; padding: 20px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05), 0 8px 24px rgba(17, 24, 39, 0.04);
  transition: all 0.18s;
}
.sd-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08), 0 16px 40px rgba(17, 24, 39, 0.08); }
.sd-card.sd-ended { opacity: 0.62; }
.sd-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sd-side-a { background: var(--primary-soft); color: var(--primary); border-color: transparent; font-weight: 700; }  /* 甲方需求 · 蓝 */
.sd-side-b { background: #f0edfd; color: #6d5bd0; border-color: transparent; font-weight: 700; }                    /* 乙方服务 · 紫 */
html.dark .sd-side-a { background: rgba(59, 130, 246, 0.24); color: #8ab6ff; }
html.dark .sd-side-b { background: rgba(139, 92, 246, 0.2); color: #b39dff; }
.sd-card h3 { font-size: 17px; line-height: 1.4; margin: 0; }
.sd-card > p {
  font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-line;
}
.sd-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.sd-budget { background: #fdf1df; color: #b26a05; border-color: transparent; font-weight: 600; }
html.dark .sd-budget { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.sd-contact { font-size: 13px; color: var(--muted); font-weight: 600; }
.sd-date { font-size: 12px; color: var(--hint); margin-top: 2px; }
/* 卡片底部：日期 + 查看详情提示 */
.sd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.sd-more { font-size: 13px; font-weight: 600; color: var(--primary); transition: all 0.18s; }
.sd-card:hover .sd-more { transform: translateX(3px); }
.sd-card { cursor: pointer; }
/* ---------- 供需详情弹窗 ---------- */
.sd-modal { position: fixed; inset: 0; z-index: 999; display: none; }
.sd-modal.open { display: block; }
.sd-modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(3px); }
.sd-modal-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 40px)); max-height: 80vh; overflow: auto;
  background: var(--bg); border-radius: 18px; padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.sd-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--muted); font-size: 14px; cursor: pointer; transition: all 0.18s;
}
.sd-modal-close:hover { color: var(--text); border-color: var(--muted); }
.sd-modal-body h3 { font-size: 20px; line-height: 1.4; margin: 12px 0 0; }
.sd-modal-body .sd-full { font-size: 15px; color: var(--muted); line-height: 1.8; margin: 14px 0 0; white-space: pre-line; }
.sd-modal-body .sd-hint { color: var(--hint); }
.sd-modal-body .sd-meta { margin-top: 16px; }
.sd-modal-contact {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 15px; font-weight: 700;
}
html.dark .sd-modal-contact { background: rgba(59, 130, 246, 0.18); color: #8ab6ff; }
.sd-modal-body .sd-date { display: block; margin-top: 14px; }

/* 安全提示（详情弹窗底部） */
.sd-safety {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa;
}
.sd-safety b { display: block; font-size: 13px; color: #b45309; margin-bottom: 6px; }
.sd-safety p { margin: 0; font-size: 12.5px; line-height: 1.75; color: #92400e; }
html.dark .sd-safety { background: rgba(180, 83, 9, 0.14); border-color: rgba(251, 146, 60, 0.32); }
html.dark .sd-safety b { color: #fbbf24; }
html.dark .sd-safety p { color: #fcd34d; }
/* 详情弹窗内的图片画廊 */
.sd-gallery-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 16px; }
.sd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.sd-gallery-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 12px; cursor: zoom-in; transition: all 0.18s;
}
.sd-gallery-img:hover { transform: scale(1.02); box-shadow: 0 6px 18px rgba(17, 24, 39, 0.14); }
/* 图片灯箱（全屏放大） */
.sd-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.85); cursor: zoom-out; }
.sd-lightbox.open { display: flex; }
.sd-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4); }
/* 项目卡信息量大，列表页双列排版，窄屏收为单列 */
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
/* 夜间模式：截图同款深色胶囊 */
html.dark .tag { background: #262b33; color: #c9ced7; border-color: transparent; }
html.dark .tag.hl { background: rgba(59, 130, 246, 0.24); color: #8ab6ff; }
/* ---------- 活动状态标签配色（每种状态一色，便于区分） ---------- */
.tag.st-go { background: #e6f7ee; color: #0f8a4d; border-color: transparent; }         /* 进行中 · 绿 */
.tag.st-recruit { background: var(--primary-soft); color: var(--primary); border-color: transparent; } /* 招募中 · 蓝 */
.tag.st-signup { background: #fdf1df; color: #b26a05; border-color: transparent; }     /* 报名中 · 橙 */
.tag.st-call { background: #f0edfd; color: #6d5bd0; border-color: transparent; }       /* 征稿中 · 紫 */
.tag.st-done { background: var(--bg-soft); color: var(--hint); border-color: transparent; } /* 已结束 · 灰 */
.tag.st-closed { background: #e8eef6; color: #4a6285; border-color: transparent; }      /* 报名已结束 · 蓝灰 */
html.dark .tag.st-go { background: rgba(16, 185, 129, 0.18); color: #4ade80; }
html.dark .tag.st-recruit { background: rgba(59, 130, 246, 0.24); color: #8ab6ff; }
html.dark .tag.st-signup { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
html.dark .tag.st-call { background: rgba(139, 92, 246, 0.2); color: #b39dff; }
html.dark .tag.st-done { background: #262b33; color: #8b929c; }
html.dark .tag.st-closed { background: rgba(100, 130, 170, 0.2); color: #93b1d8; }

/* ---------- experts（首页三行三列卡片） ---------- */
.expert {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
  transition: all 0.18s; background: var(--bg);
  position: relative; overflow: hidden;
}
.expert::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-brand); opacity: 0; transition: opacity .18s;
}
.expert:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(59, 130, 246, 0.45); }
.expert:hover::before { opacity: 1; }
.expert .avatar {
  width: 52px; height: 52px; font-size: 19px; flex-shrink: 0;
  line-height: 1; padding: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
html.dark .expert .avatar { border-color: #20283a; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.expert b { display: block; font-size: 15.5px; letter-spacing: -0.2px; }
.expert span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.5; }

/* ---------- 合作品牌 ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.brand-card {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 2 / 1; padding: 20px 24px;
  border: 1px solid transparent; border-radius: 16px; background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: all .2s; overflow: hidden;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); }
.brand-card img { max-width: 100%; max-height: 56px; object-fit: contain; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; color: var(--text); }
.brand-empty { color: var(--hint); font-size: 13px; padding: 24px 4px; }
html.dark .brand-card { background: #1c2230; border-color: var(--border); box-shadow: none; }
html.dark .brand-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }

/* ---------- page ---------- */
.page-head { padding: 48px 0 8px; }
/* 列表页顶部横幅（参考样式：圆角渐变卡片、居中标题） */
.page-banner {
  margin-bottom: 18px; padding: 46px 28px; text-align: center;
  border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(640px 240px at 12% 0%, rgba(59, 130, 246, 0.20), transparent 70%),
    radial-gradient(520px 260px at 88% 100%, rgba(6, 182, 212, 0.14), transparent 70%),
    linear-gradient(135deg, #dbe7ff 0%, #f2f7ff 55%, #e8f2ff 100%);
}
.page-banner h1 { font-size: 28px; letter-spacing: 0.5px; }
.page-banner p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
html.dark .page-banner {
  background:
    radial-gradient(640px 240px at 12% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(520px 260px at 88% 100%, rgba(6, 182, 212, 0.12), transparent 70%),
    linear-gradient(135deg, #17233e 0%, #121a2b 55%, #14203a 100%);
}
html.dark .page-banner p { color: var(--muted); }
.page-head h1 { font-size: 30px; }
.page-head p { color: var(--muted); margin-top: 8px; }
/* 独立页面横幅内副标题颜色（与列表页横幅一致） */
.page-banner p { color: var(--muted); margin: 10px 0 0; }
.filters { display: flex; gap: 12px; margin: 24px 0 28px; flex-wrap: wrap; }
.filters select, .filters input {
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); font-size: 14px; color: var(--text); font-family: inherit; min-width: 140px;
}
.filters select:focus, .filters input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }

/* ---------- detail ---------- */
.detail { max-width: 780px; margin: 0 auto; padding: 48px 24px 64px; }
.detail .cov { height: 170px; border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; }
.detail h1 { font-size: 30px; line-height: 1.35; }
.detail .detail-meta { display: flex; gap: 10px; align-items: center; margin: 14px 0 8px; flex-wrap: wrap; }
.detail .detail-meta .muted { color: var(--hint); font-size: 13px; }
.detail-actions { display: flex; gap: 10px; margin: 18px 0 8px; }
.prose { margin-top: 24px; font-size: 16px; }
.prose h2 { font-size: 21px; margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.prose h3 { font-size: 17px; margin: 24px 0 10px; }
.prose p { margin: 12px 0; color: #33383f; text-align: justify; text-justify: inter-ideograph; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose blockquote {
  border-left: 4px solid var(--primary-soft); background: var(--bg-soft);
  padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--muted); margin: 16px 0;
}
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.prose pre { background: #1f2329; color: #e8eaed; padding: 16px; border-radius: 12px; overflow-x: auto; margin: 16px 0; }
.prose pre code { background: none; color: inherit; }

/* ---------- CTA banner ---------- */
.cta-banner {
  margin: 40px 0; padding: 28px 32px; border-radius: var(--radius);
  background: var(--grad-banner);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-banner b { font-size: 19px; }
.cta-banner p { opacity: 0.85; font-size: 14px; margin-top: 4px; }
.cta-banner .btn { background: var(--bg); color: var(--primary-deep); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; }
/* 页脚内容宽度（全站统一组件，一处修改全站生效） */
.site-footer .container { max-width: 1200px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 48px 0 32px; }
/* 品牌栏给足宽度避免长句换行，其余导航栏按内容自适应、均匀分布 */
.footer-inner > div:first-child { flex: 0 1 auto; max-width: 500px; }
.footer-inner > div { flex-shrink: 0; }
.footer-inner h4 { font-size: 15px; margin-bottom: 12px; }
/* 页脚品牌图（后台可上传，替换品牌名称文字） */
.footer-brand-img { max-height: 60px; width: auto; max-width: 320px; object-fit: contain; display: inline-block; vertical-align: middle; }
.footer-inner p, .footer-inner a { font-size: 13px; color: var(--muted); display: block; margin: 6px 0; }
.footer-inner a:hover { color: var(--primary); }
.qr-box {
  width: 96px; height: 96px; border-radius: 12px; border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; color: var(--hint); background: var(--bg);
}
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 0; font-size: 12px;
  color: var(--hint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- 一言（点击换励志内容） ---------- */
.hitokoto {
  margin: 26px 0 0; padding: 16px 24px;  text-align: center; border-radius: 14px; cursor: pointer; user-select: none;
  border: 1px dashed var(--border); background: var(--bg-soft);
  transition: opacity .22s, transform .22s, border-color .18s, box-shadow .18s;
}
.hitokoto:hover { border-color: rgba(59, 130, 246, 0.55); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.10); }
.hitokoto.fade { opacity: 0; transform: translateY(6px); }
.hk-text {
  font-size: 15.5px; font-weight: 600; line-height: 1.6; letter-spacing: 0.2px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--primary);
}
.hk-sub { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* ---------- forms / states ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); font-size: 14px; font-family: inherit; background: var(--bg); color: var(--text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field textarea.tall { min-height: 260px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--primary-soft); border-color: var(--primary);
}
.form-error { color: #a32d2d; font-size: 13px; min-height: 18px; margin: 6px 0; }
.form-ok { color: var(--primary); font-size: 13px; }
.state-box { text-align: center; padding: 80px 24px; color: var(--muted); }
.state-box b { display: block; font-size: 18px; color: var(--text); margin-bottom: 8px; }
.loading { text-align: center; padding: 60px; color: var(--hint); font-size: 14px; }
.skeleton {
  border-radius: var(--radius); background: linear-gradient(90deg, #f0f1f3 25%, #f8f9fa 50%, #f0f1f3 75%);
  background-size: 200% 100%; animation: sk 1.2s infinite; height: 180px;
}
@keyframes sk { to { background-position: -200% 0; } }
html.dark .skeleton { background: linear-gradient(90deg, #22262c 25%, #2a2f36 50%, #22262c 75%); background-size: 200% 100%; }

/* ---------- login ---------- */
.auth-card { max-width: 420px; margin: 64px auto; }
.auth-card .card-body { padding: 32px; gap: 4px; }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card .sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }

/* ---------- admin ---------- */
.admin-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 32px 0 64px; }
.admin-side { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; height: fit-content; }
.admin-side button {
  display: block; width: 100%; text-align: left; padding: 10px 14px; border: none;
  background: none; border-radius: 8px; font-size: 14px; color: var(--muted);
  cursor: pointer; font-family: inherit; margin: 2px 0;
}
.admin-side button.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.admin-main { min-width: 0; }
.admin-main h2 { font-size: 20px; margin-bottom: 18px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.dash-card b { font-size: 26px; color: var(--primary); display: block; }
.dash-card span { font-size: 13px; color: var(--muted); }
.admin-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.admin-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--border); font-size: 14px; background: var(--bg);
}
.admin-row:last-child { border-bottom: none; }
.admin-row .grow { flex: 1; min-width: 0; }
.admin-row .grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row .grow span { font-size: 12px; color: var(--hint); }
.panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel h3 { font-size: 16px; margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.config-row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: start; margin-bottom: 10px; }
.config-row .k { font-size: 13px; color: var(--muted); padding-top: 10px; word-break: break-all; }

/* ---------- V2: nav search ---------- */
.nav-search { flex-shrink: 0; }
.nav-search input {
  width: 180px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft);
  font-size: 13px; font-family: inherit; color: var(--text); transition: all 0.15s;
}
.nav-search input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); width: 220px; background: var(--bg); }

/* ---------- V2: comments ---------- */
.cm-title { font-size: 20px; margin: 44px 0 18px; padding-top: 32px; border-top: 1px solid var(--border); }
.comment-form { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--bg-soft); }
.comment-form textarea {
  width: 100%; min-height: 90px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); font-size: 14px; font-family: inherit; resize: vertical; background: var(--bg); color: var(--text);
}
.comment-form textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.cm-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cm-count { font-size: 12px; color: var(--hint); }
.cm-login-tip b { font-size: 15px; display: block; margin-bottom: 4px; }
.cm-login-tip p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.comment-list { margin-top: 8px; }
.comment-row { padding: 16px 4px; border-bottom: 1px solid var(--border); }
.comment-row.is-hidden { opacity: 0.55; }
.cm-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cm-head b { font-weight: 600; }
.cm-avatar { width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
.cm-time { font-size: 12px; color: var(--hint); }
.cm-act { margin-left: auto; }
.cm-link { background: none; border: none; color: var(--hint); font-size: 12px; cursor: pointer; font-family: inherit; padding: 2px 6px; }
.cm-link:hover { color: #a32d2d; }
.cm-body { font-size: 14px; margin-top: 8px; color: #33383f; white-space: pre-wrap; word-break: break-word; }
.cm-body.cm-hidden { color: var(--hint); font-style: italic; }
.cm-empty { text-align: center; color: var(--hint); font-size: 13px; padding: 24px 0; }

/* ---------- V2: signup panel ---------- */
.signup-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 16px 0; background: var(--bg-soft); }
.signup-panel h3 { font-size: 16px; margin-bottom: 12px; }
.signup-count { font-size: 13px; color: var(--muted); margin-top: 8px; }
.signup-count b { color: var(--primary); }

/* ---------- V2: search page ---------- */
.search-type-head { font-size: 17px; margin: 32px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.search-kw { color: var(--primary); }
.hl-kw { background: var(--primary-soft); color: var(--primary-deep); border-radius: 3px; padding: 0 2px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-wrap: wrap; gap: 28px; }
  .admin-wrap { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .nav-search { display: none; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 26px; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- OPC合伙人专区（论坛风格列表） ---------- */
.opc-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.opc-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  background: var(--bg); border-radius: 14px; cursor: pointer;
  box-shadow: var(--shadow-sm, 0 1px 4px rgba(15, 23, 42, 0.06));
  transition: transform 0.18s, box-shadow 0.18s;
}
.opc-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1); }
.opc-avatar { width: 42px; height: 42px; font-size: 17px; flex-shrink: 0; }
.opc-main { flex: 1; min-width: 0; }
.opc-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opc-title h3 { margin: 0; font-size: 16.5px; line-height: 1.5; }
.opc-pinned .opc-title h3 { color: #dc2626; }
.opc-pin {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: #fee2e2; color: #dc2626; border: 1px solid #fecaca;
}
.opc-imgcount { font-size: 12px; color: var(--hint); background: var(--bg-soft); padding: 2px 9px; border-radius: 999px; }
.opc-excerpt { margin: 7px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opc-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--hint); flex-wrap: wrap; }
.opc-meta b { color: var(--text); font-size: 13px; }
.opc-more { margin-left: auto; color: var(--primary); font-size: 12.5px; transition: transform 0.18s; }
.opc-item:hover .opc-more { transform: translateX(3px); }
.opc-prose { margin-top: 14px; font-size: 14.5px; }
html.dark .opc-item { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
html.dark .opc-item:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
html.dark .opc-pinned .opc-title h3 { color: #f87171; }
html.dark .opc-pin { background: rgba(220, 38, 38, 0.18); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }

/* ---------- 意见反馈弹窗 ---------- */
.fb-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.fb-modal.open { display: block; }
.fb-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 780px); overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: 18px; box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
}
.fb-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.fb-head-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.fb-head b { font-size: 17px; }
.fb-close { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--bg-soft); color: var(--muted); cursor: pointer; font-size: 13px; }
.fb-close:hover { background: var(--border); }
.fb-tabs { display: flex; gap: 6px; margin: 4px 20px 0; padding: 5px; background: var(--bg-soft); border-radius: 12px; }
.fb-tab { flex: 1; padding: 9px 0; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.fb-tab.active { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1); }
.fb-body { padding: 16px 20px 20px; overflow-y: auto; }
.fb-label { font-size: 13.5px; font-weight: 600; margin: 14px 0 8px; }
.fb-label:first-child { margin-top: 0; }
.fb-types { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.fb-type { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-size: 13px; cursor: pointer; }
.fb-type.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.fb-ta-wrap { position: relative; }
.fb-ta-wrap textarea {
  width: 100%; min-height: 150px; resize: vertical; box-sizing: border-box;
  padding: 12px 14px 26px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-soft); color: var(--text); font-size: 13.5px; line-height: 1.7; font-family: inherit;
}
.fb-ta-wrap textarea:focus { outline: none; border-color: var(--primary); }
.fb-count { position: absolute; right: 12px; bottom: 8px; font-size: 11.5px; color: var(--hint); }
.fb-upgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-add {
  width: 86px; height: 86px; border: 1.5px dashed var(--border); border-radius: 12px;
  background: var(--bg-soft); color: var(--muted); font-size: 20px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.fb-add i { font-style: normal; font-size: 11.5px; }
.fb-add:hover { border-color: var(--primary); color: var(--primary); }
.fb-thumb { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-thumb-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: none;
  background: rgba(15, 23, 42, 0.72); color: #fff; font-size: 10px; cursor: pointer; line-height: 1;
}
.fb-thumb-del:hover { background: #ef4444; }
.fb-body input[type="text"] {
  width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-soft); color: var(--text); font-size: 13.5px;
}
.fb-body input[type="text"]:focus { outline: none; border-color: var(--primary); }
.fb-msg { min-height: 18px; margin: 10px 0 0; font-size: 12.5px; }
.fb-actions { display: flex; gap: 10px; margin-top: 12px; }
.fb-actions button { flex: 1; padding: 11px 0; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; }
.fb-btn-ghost { background: var(--bg-soft); color: var(--muted); }
.fb-btn-ghost:hover { background: var(--border); }
.fb-btn-primary { background: var(--grad-brand); color: #fff; }
.fb-btn-primary:disabled { opacity: 0.6; cursor: default; }
.fb-history-empty, .fb-history-loading { padding: 40px 10px; text-align: center; color: var(--hint); font-size: 13.5px; }
.fb-hitem { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.fb-hrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-htag { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.fb-hstatus { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: #fef3c7; color: #b45309; }
.fb-hstatus.done { background: #dcfce7; color: #15803d; }
.fb-hdate { font-size: 11.5px; color: var(--hint); margin-left: auto; }
.fb-hcontent { margin: 8px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); word-break: break-word; }
html.dark .fb-box { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); }
html.dark .fb-tab.active { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
html.dark .fb-hstatus { background: rgba(180, 83, 9, 0.2); color: #fbbf24; }
html.dark .fb-hstatus.done { background: rgba(22, 163, 74, 0.2); color: #4ade80; }

/* ---------- 页脚贴底：内容不足一屏时页脚仍位于视口底部，消除页脚下方空白 ---------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-footer { margin-top: auto; border-top: none; }
.site-footer::before { content: ''; display: block; height: 40px; background: var(--bg); border-bottom: 1px solid var(--border); }
/* 修正：flex 布局下带 margin:auto 的容器会收缩为内容宽度，强制恢复占满 */
body > .container { width: 100%; }

/* ---------- OPC合伙人专区 V2：两列卡片 + 文章详情页 ---------- */
.opc-grid { max-width: 1120px; }
.opc-card {
  display: flex; flex-direction: column; padding: 18px 20px;
  background: var(--bg); border-radius: 16px; cursor: pointer;
  box-shadow: var(--shadow-sm, 0 1px 4px rgba(15, 23, 42, 0.06));
  transition: transform 0.18s, box-shadow 0.18s;
}
.opc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12); }
.opc-card-head { display: flex; align-items: center; gap: 10px; }
.opc-card-by { display: flex; flex-direction: column; line-height: 1.3; }
.opc-card-by b { font-size: 13.5px; }
.opc-card-by span { font-size: 12px; color: var(--hint); }
.opc-card-head .opc-pin { margin-left: auto; }
.opc-card h3 { margin: 14px 0 8px; font-size: 16.5px; line-height: 1.5; }
.opc-pinned .opc-card h3 { color: #dc2626; }
.opc-pinned .opc-card-head .opc-pin { margin-left: auto; }
.opc-card-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--hint); }
.opc-card-foot .opc-more { margin-left: auto; color: var(--primary); font-weight: 600; transition: transform 0.18s; }
.opc-card:hover .opc-more { transform: translateX(3px); }
.opc-pinned .opc-card h3 { }
html.dark .opc-card { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
html.dark .opc-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
html.dark .opc-pinned .opc-card h3 { color: #f87171; }

/* 正文链接着色（全站详情页生效） */
.prose a { color: var(--primary); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose h4 { font-size: 15.5px; margin: 18px 0 8px; }

/* ---------- 正文分级标题：品牌色侧边条逐级递减，层次分明（全站详情页生效） ---------- */
.prose h1 { font-size: 24px; margin: 32px 0 14px; padding-left: 14px; border-left: 5px solid var(--primary); }
.prose h2 { font-size: 21px; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.prose h3 {
  font-size: 17.5px; margin: 24px 0 10px; padding-left: 10px;
  border-left: 3px solid rgba(59, 130, 246, 0.5);
}
.prose h4 {
  font-size: 15.5px; margin: 20px 0 8px; padding-left: 9px;
  border-left: 2px solid rgba(59, 130, 246, 0.28); color: var(--text);
}
html.dark .prose h3 { border-left-color: rgba(96, 165, 250, 0.55); }
html.dark .prose h4 { border-left-color: rgba(96, 165, 250, 0.32); }

/* ---------- OPC 卡片边框美化 V2：无描边、大圆角、双层柔影、悬停上浮 ---------- */
.opc-card {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
}
.opc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06), 0 14px 34px rgba(15, 23, 42, 0.12);
}
.opc-card:hover .opc-avatar { transform: scale(1.06); }
.opc-avatar { transition: transform 0.18s; }
html.dark .opc-card { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.35); }
html.dark .opc-card:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 16px 36px rgba(0, 0, 0, 0.55); }

/* 板块间距收紧：首页各板块之间更紧凑美观 */
.section { padding: 46px 0; }

/* ---------- 社区动态（信息流） ---------- */
.mom-list { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .mom-list { grid-template-columns: 1fr; } }
.mom-card {
  background: var(--bg); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
}
.mom-head { display: flex; align-items: center; gap: 12px; }
.mom-avatar { width: 44px; height: 44px; font-size: 18px; }
.mom-by { display: flex; flex-direction: column; line-height: 1.35; }
.mom-by b { font-size: 14.5px; }
.mom-by span { font-size: 12px; color: var(--hint); }
.mom-hashtags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.mom-hashtags span { color: var(--primary); font-size: 13.5px; font-weight: 600; }
.mom-title { margin: 12px 0 8px; font-size: 17.5px; line-height: 1.5; }
.mom-excerpt { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.mom-full { margin-top: 10px; font-size: 14.5px; }
.mom-expand { margin-top: 10px; border: none; background: none; color: var(--primary); font-size: 13px; cursor: pointer; padding: 0; font-weight: 600; }
.mom-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mom-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.mom-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mom-chip {
  font-size: 12px; padding: 3px 12px; border-radius: 6px;
  background: #e8f7f0; color: #0d9668; border: 1px solid #bfe9d8; font-weight: 600;
}
html.dark .mom-chip { background: rgba(13, 150, 104, 0.16); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.mom-actions { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.mom-act { border: none; background: none; cursor: pointer; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.mom-act:hover { color: var(--primary); }
.mom-act.liked { color: #2563eb; font-weight: 600; }
.mom-act.faved { color: #f59e0b; font-weight: 600; }
.mom-detail { margin-left: auto; color: var(--hint); font-size: 13.5px; }
.mom-detail:hover { color: var(--primary); }
html.dark .mom-card { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.35); }

/* ---------- 分享面板（二维码 / 分享长图 / 复制链接） ---------- */
.share-pop {
  position: fixed; z-index: 420; width: 238px; padding: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12), 0 20px 46px rgba(15, 23, 42, 0.16);
  animation: spIn 0.16s ease-out;
}
@keyframes spIn { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
.share-qr { text-align: center; }
.share-qr > div { display: flex; justify-content: center; }
.share-qr img { width: 148px; height: 148px; border-radius: 8px; background: #fff; padding: 4px; }
.share-qr p { margin-top: 8px; font-size: 12px; color: var(--hint); }
.share-div { height: 1px; margin: 14px -16px 6px; background: var(--border); }
.share-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 10px; border: none; border-radius: 10px; background: none;
  font-size: 14px; color: var(--text); cursor: pointer; text-align: left;
  font-family: inherit; transition: background 0.15s, color 0.15s;
}
.share-item:hover { background: var(--bg-soft); color: var(--primary); }
.share-item span { flex: 1; }
html.dark .share-pop { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 20px 46px rgba(0, 0, 0, 0.55); }

/* ---------- 分享长图预览浮层 ---------- */
.long-ov {
  position: fixed; inset: 0; z-index: 900; background: rgba(17, 20, 24, 0.82);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  overflow: auto; animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.long-box { display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 420px; width: 100%; }
.long-box img {
  width: 100%; border-radius: 12px; background: #fff;
  max-height: 68vh; object-fit: contain; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.long-tip { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); text-align: center; }
.long-box .btn-sm { padding: 8px 18px; font-size: 13.5px; }

/* ---------- 社区动态·标签导航 ---------- */
.mom-tagbar { max-width: 1080px; margin: 0 auto 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.mtag {
  position: relative; border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--muted); font-size: 13.5px; padding: 7px 16px; border-radius: 999px;
  cursor: pointer; font-family: inherit; line-height: 1.4;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.mtag:hover { color: var(--primary); border-color: var(--primary); }
.mtag.active { background: #1f2329; border-color: #1f2329; color: #ffffff; font-weight: 600; }
.mtag.active:hover { color: #ffffff; }
html.dark .mtag.active { background: var(--primary-deep); border-color: var(--primary-deep); }
.mtag-dot {
  position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff5c1c; border: 2px solid var(--bg);
}

/* 两列布局下空状态占满整行 */
.mom-list .state-box { grid-column: 1 / -1; }

/* 精华角标 */
.mom-hot {
  display: inline-block; margin-top: 12px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #b45309;
  background: #fef3c7; border: 1px solid #fde68a;
}
html.dark .mom-hot { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }

/* ---------- 个人中心：左侧栏 + 右侧内容 ---------- */
.pf-layout {
  display: grid; grid-template-columns: 250px 1fr; gap: 18px;
  margin-top: 24px; align-items: start;
}
@media (max-width: 860px) { .pf-layout { grid-template-columns: 1fr; } }

/* 左侧栏 */
.pf-side-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pf-side-top { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.pf-avatar { width: 84px; height: 84px; font-size: 34px; }
.pf-side-name { font-size: 17px; margin-top: 2px; }
.pf-side-logout {
  margin-top: 22px; width: 100%; padding: 10px 0; border-radius: 10px;
  border: 1px solid #f3b6b6; background: none; color: #dc2626;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.pf-side-logout:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
html.dark .pf-side-logout { border-color: rgba(220, 38, 38, 0.5); }
html.dark .pf-side-logout:hover { background: #dc2626; color: #fff; }

/* 右侧欢迎条 */
.pf-welcome {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px;
  border-radius: 16px; margin-bottom: 18px;
  background: var(--bg); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
  border-left: 4px solid var(--primary);
}
.pf-welcome b { font-size: 17px; }
.pf-welcome span { font-size: 13px; color: var(--muted); }

/* 登录方式切换 */
.login-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.ltab {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--muted); font-size: 14px; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.ltab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.auth-tabs-sub { margin-bottom: 14px; }
.auth-tabs-sub .ltab { font-size: 13px; padding: 7px 0; }

/* 登录页辅助链接与说明 */
.auth-links { display: flex; justify-content: center; margin-top: 14px; }
.auth-link {
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 13px; color: var(--primary); text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.auth-note { font-size: 12px; color: var(--hint); line-height: 1.7; margin: 0 0 4px; }

/* 头部头像图片 */
.avatar.avatar-img { overflow: hidden; }
.avatar.avatar-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 个人中心 V2：16:9 横幅 / 自传头像 / 个人信息卡 ---------- */
.pf-avatar-wrap { position: relative; display: inline-block; }
.pf-img-edit {
  position: absolute; right: -2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--bg); background: var(--primary); color: #fff; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.pf-img-edit:hover { background: var(--primary-deep); }
/* 卡片通用 */
.pf-maincol { display: flex; flex-direction: column; min-width: 0; }
.pf-maincol .pf-card + .pf-card { margin-top: 18px; }
.pf-card {
  background: var(--bg); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
}
.pf-card + .pf-card { margin-top: 18px; }
.pf-card-head h2 { font-size: 17px; margin-bottom: 12px; }

/* 个人信息行 */
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.pf-row:last-of-type { border-bottom: none; }
.pf-row-label { font-size: 13.5px; color: var(--muted); flex-shrink: 0; }
.pf-row-value { font-size: 14px; text-align: right; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pf-row-value b { font-weight: 600; }
.pf-none { font-style: normal; color: var(--hint); }
.pf-mini {
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--muted);
  font-size: 12px; padding: 3px 12px; border-radius: 999px; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.pf-mini:hover { color: var(--primary); border-color: var(--primary); }
.pf-mini-ok { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pf-mini-ok:hover { color: #fff; background: var(--primary-deep); }
.pf-mini-danger:hover { color: #dc2626; border-color: #dc2626; }
.pf-input {
  border: 1px solid var(--primary); border-radius: 8px; padding: 5px 10px; font-size: 13.5px;
  font-family: inherit; width: 180px; background: var(--bg); color: var(--text); outline: none;
}
.pf-lv {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 14px; border-radius: 999px;
  background: #e8f7f0; color: #0d9668; border: 1px solid #bfe9d8;
}
html.dark .pf-lv { background: rgba(13, 150, 104, 0.16); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.pf-info-tip { margin-top: 12px; font-size: 12px; color: var(--hint); line-height: 1.8; }

/* 会员状态 */
.pf-status-flex { display: flex; align-items: center; gap: 22px; }
.pf-status-days { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.pf-status-days b { font-size: 30px; color: var(--primary); line-height: 1.2; }
.pf-status-days span { font-size: 12.5px; color: var(--muted); }
.pf-status-track { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-status-word { font-size: 12.5px; color: var(--muted); text-align: center; }
.pf-status-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); transition: width 0.3s; }

/* ---------- 个人中心：兑换码 / 侧栏导航 / 账户设置 ---------- */
.pf-redeem {
  width: 100%; margin-top: 18px; padding: 14px 14px 12px; border-radius: 12px;
  background: linear-gradient(150deg, #1e2a4a, #27406b); color: #e8effc;
}
.pf-redeem > b { display: block; font-size: 13.5px; margin-bottom: 10px; }
.pf-redeem-row { display: flex; gap: 8px; }
.pf-redeem-input {
  flex: 1; min-width: 0; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px;
  background: rgba(255, 255, 255, 0.08); color: #fff; padding: 8px 10px; font-size: 13px;
  font-family: inherit; outline: none;
}
.pf-redeem-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.pf-redeem-input:focus { border-color: #7ea6ff; }
.pf-redeem-btn {
  border: none; border-radius: 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 600;
  background: #3b82f6; color: #fff; cursor: pointer; font-family: inherit; flex-shrink: 0;
  transition: background 0.15s;
}
.pf-redeem-btn:hover { background: #2563eb; }
.pf-redeem-btn:disabled { opacity: 0.6; cursor: default; }
.pf-redeem-msg { display: block; min-height: 16px; margin-top: 8px; font-size: 12px; }
.pf-redeem-msg.ok { color: #6ee7a0; }
.pf-redeem-msg.err { color: #fda4af; }
.pf-redeem-tip { margin: 2px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }

.pf-side-nav { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 18px; }
.pf-navitem {
  border: none; background: none; text-align: left; padding: 10px 14px; border-radius: 10px;
  font-size: 14.5px; color: var(--muted); cursor: pointer; font-family: inherit;
  border-left: 3px solid transparent; transition: all 0.15s;
}
.pf-navitem:hover { background: var(--bg-soft); color: var(--text); }
.pf-navitem.active {
  background: var(--primary-soft); color: var(--primary); font-weight: 600; border-left-color: var(--primary);
}

.avatar-sm { width: 32px; height: 32px; font-size: 14px; }

/* 个人信息卡头部带编辑按钮 */
.pf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- 个人中心视觉升级（Premium） ---------- */
:root { --pf-grad: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #0891b2 100%); }

/* 侧栏卡片：顶部品牌头图 + 头像叠压 */
.pf-side-card {
  position: relative; overflow: hidden;
  padding-top: 66px;
  border: 1px solid var(--border);
}
.pf-side-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 66px;
  background: var(--pf-grad);
}
.pf-side-card::after {
  content: ''; position: absolute; top: -34px; right: -34px; width: 110px; height: 110px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.12);
}
.pf-side-top { margin-top: -32px; position: relative; z-index: 1; }
.pf-avatar-wrap { z-index: 1; }
.pf-avatar {
  width: 88px; height: 88px;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.25), 0 0 0 4px var(--bg);
}
.pf-side-name { font-size: 18px; letter-spacing: 0.3px; }
.pf-side-card .pf-lv {
  background: linear-gradient(120deg, #e8f7f0, #ddf3ff);
  border: 1px solid #bfe9d8; box-shadow: 0 2px 6px rgba(13, 150, 104, 0.12);
}
html.dark .pf-side-card { border-color: var(--border); }
html.dark .pf-side-card .pf-lv { background: rgba(13, 150, 104, 0.16); border-color: rgba(74, 222, 128, 0.3); box-shadow: none; }

/* 兑换码卡片：深邃渐变 + 流光 */
.pf-redeem {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #101a38 0%, #1c2f5e 55%, #144a6e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(16, 26, 56, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pf-redeem::before {
  content: ''; position: absolute; top: -46px; right: -46px; width: 130px; height: 130px;
  border-radius: 50%; background: radial-gradient(circle, rgba(126, 166, 255, 0.28), transparent 70%);
}
.pf-redeem-btn {
  background: linear-gradient(120deg, #3b82f6, #06b6d4);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.pf-redeem-btn:hover { background: linear-gradient(120deg, #2563eb, #0891b2); }

/* 侧栏导航：更利落的选中态 */
.pf-side-nav {
  background: var(--bg-soft); border-radius: 12px; padding: 6px;
}
.pf-navitem { border-radius: 8px; border-left: none; font-weight: 500; }
.pf-navitem.active {
  background: var(--bg); color: var(--primary); font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

/* 右栏欢迎条 → 品牌渐变横幅 */
.pf-welcome {
  position: relative; overflow: hidden;
  background: var(--pf-grad); color: #fff;
  border-left: none; border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.28);
}
.pf-welcome::before, .pf-welcome::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
}
.pf-welcome::before { width: 190px; height: 190px; top: -90px; right: -50px; }
.pf-welcome::after { width: 90px; height: 90px; bottom: -50px; right: 130px; background: rgba(255, 255, 255, 0.07); }
.pf-welcome b { font-size: 18.5px; letter-spacing: 0.3px; position: relative; z-index: 1; }
.pf-welcome span { color: rgba(255, 255, 255, 0.82); font-size: 13.5px; position: relative; z-index: 1; }

/* 卡片通用质感 */
.pf-card {
  border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pf-card:hover {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06), 0 14px 34px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}
.pf-card-head h2 {
  font-size: 16.5px; display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
}
.pf-card-head h2::before {
  content: ''; width: 4px; height: 16px; border-radius: 999px;
  background: var(--pf-grad); flex-shrink: 0;
}
.pf-card-head .pf-mini {
  color: var(--primary); border-color: rgba(37, 99, 235, 0.4);
  background: var(--primary-soft); font-weight: 600;
}
.pf-card-head .pf-mini:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 信息行：更精致的排版 */
.pf-row { padding: 12px 0; }
.pf-row:hover .pf-row-label { color: var(--text); }
.pf-row-label { font-weight: 500; }
.pf-row-value b { font-size: 14.5px; }

/* 会员状态：品牌渐变数字 + 进度条 */
#pf-status {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(8, 145, 178, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.14);
}
.pf-status-days b {
  font-size: 36px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--pf-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pf-status-days span { font-weight: 500; }
.pf-status-bar { height: 10px; background: rgba(37, 99, 235, 0.12); }
.pf-status-bar i { background: var(--pf-grad); }
.pf-status-word { font-weight: 500; }

/* 渐变金卡风格的会员等级徽章 */
.pf-lv {
  background: linear-gradient(120deg, #e8f7f0, #ddf3ff);
  border: 1px solid #bfe9d8;
  box-shadow: 0 2px 6px rgba(13, 150, 104, 0.1);
}

/* ---------- 个人中心修复与再调整 ---------- */

/* 1) 侧栏头像完整显示：头图加高、装饰圆并入头图内、取消外层裁切 */
.pf-side-card { overflow: visible; padding-top: 84px; }
.pf-side-card::before {
  height: 84px;
  background:
    radial-gradient(circle at 86% -30%, rgba(255, 255, 255, 0.15) 0 56px, transparent 57px),
    var(--pf-grad);
}
.pf-side-card::after { display: none; }
.pf-side-top { margin-top: -46px; }
.pf-avatar-wrap { flex-shrink: 0; }

/* 2) 兑换码提示不换行 */
.pf-redeem-tip {
  white-space: nowrap; text-align: center;
  font-size: 10.5px; letter-spacing: 0;
}

/* 3) 兑换码卡片换成与全站协调的浅色品牌风格 */
.pf-redeem {
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.05), rgba(8, 145, 178, 0.09));
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  color: var(--text);
}
.pf-redeem::before { display: none; }
.pf-redeem > b { color: var(--text); font-size: 13.5px; }
.pf-redeem-input {
  background: var(--bg); border-color: var(--border); color: var(--text);
}
.pf-redeem-input::placeholder { color: var(--hint); }
.pf-redeem-input:focus { border-color: var(--primary); }
.pf-redeem-tip { color: var(--hint); }
.pf-redeem-msg.ok { color: #0d9668; }
.pf-redeem-msg.err { color: #dc2626; }
html.dark .pf-redeem {
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.14), rgba(8, 145, 178, 0.12));
  border-color: rgba(96, 140, 255, 0.28);
  box-shadow: none; color: #e8effc;
}
html.dark .pf-redeem > b { color: #e8effc; }
html.dark .pf-redeem-input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
html.dark .pf-redeem-input::placeholder { color: rgba(255, 255, 255, 0.4); }
html.dark .pf-redeem-tip { color: rgba(255, 255, 255, 0.55); }
html.dark .pf-redeem-msg.ok { color: #6ee7a0; }
html.dark .pf-redeem-msg.err { color: #fda4af; }

/* 4) 欢迎横幅：右侧 IP 形象 */
.pf-welcome { min-height: 120px; justify-content: center; padding-right: 190px; }
.pf-welcome-mascot {
  position: absolute; right: 16px; bottom: 0; height: 118px; z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
  user-select: none; pointer-events: none;
}
@media (max-width: 760px) {
  .pf-welcome { padding-right: 110px; min-height: 100px; }
  .pf-welcome-mascot { height: 94px; right: 8px; }
}

/* 账户设置：底部统一保存 */
.pf-save-bar {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-top: 18px; margin-top: 6px; border-top: 1px dashed var(--border);
}
.pf-save-btn {
  border: none; border-radius: 999px; padding: 10px 44px;
  background: var(--pf-grad, linear-gradient(120deg, #1d4ed8, #0891b2));
  color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.pf-save-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(29, 78, 216, 0.38); }
.pf-save-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.pf-save-msg { min-height: 15px; font-size: 12px; }
.pf-save-msg.ok { color: #0d9668; }
.pf-save-msg.err { color: #dc2626; }
.pf-input.pf-wid { width: 240px; max-width: 60%; }

/* 安全设置 */
.pf-sec-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(220, 38, 38, 0.04); border: 1px solid rgba(220, 38, 38, 0.14);
}
.pf-sec-info b { font-size: 15px; display: block; }
.pf-sec-info p { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.pf-danger-btn {
  flex-shrink: 0; border: none; border-radius: 999px; padding: 9px 24px;
  background: linear-gradient(120deg, #ef4444, #dc2626); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 5px 14px rgba(220, 38, 38, 0.3);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.pf-danger-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(220, 38, 38, 0.4); }
.pf-danger-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
html.dark .pf-sec-item { background: rgba(220, 38, 38, 0.08); border-color: rgba(248, 113, 113, 0.25); }

/* 安全设置：登录密码（中性色，与注销区分） */
.pf-sec-stack { display: flex; flex-direction: column; gap: 12px; }
.pf-sec-item.safe { background: rgba(29, 78, 216, 0.04); border-color: rgba(29, 78, 216, 0.14); }
.pf-sec-btn {
  flex-shrink: 0; border: none; border-radius: 999px; padding: 9px 24px;
  background: var(--pf-grad, linear-gradient(120deg, #1d4ed8, #0891b2)); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 5px 14px rgba(29, 78, 216, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.pf-sec-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(29, 78, 216, 0.36); }
.pf-sec-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.pf-pwd-form {
  display: none; flex-direction: column; gap: 10px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.pf-pwd-form.on { display: flex; }
.pf-pwd-form .pf-input { width: 100%; max-width: none; }
.pf-pwd-form .pf-sec-btn { align-self: flex-start; padding: 9px 32px; }
.pf-pwd-msg { min-height: 15px; font-size: 12px; }
.pf-pwd-msg.ok { color: #0d9668; }
.pf-pwd-msg.err { color: #dc2626; }
html.dark .pf-sec-item.safe { background: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.22); }

/* 等级徽章配色：用户 / 会员 / OPC合伙人 */
.pf-lv.lv-0 { background: linear-gradient(120deg, #f1f5f9, #eef2f7); border-color: #e2e8f0; color: #64748b; }
.pf-lv.lv-1 { background: linear-gradient(120deg, #e8f1ff, #e6f7ff); border-color: #bfdbfe; color: #1d4ed8; }
.pf-lv.lv-2 {
  background: linear-gradient(120deg, #fff7e0, #ffeccc); border-color: #f5d18b; color: #b45309;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.15);
}
html.dark .pf-lv.lv-0 { background: rgba(148, 163, 184, 0.16); border-color: rgba(148, 163, 184, 0.3); color: #cbd5e1; }
html.dark .pf-lv.lv-1 { background: rgba(37, 99, 235, 0.18); border-color: rgba(96, 140, 255, 0.35); color: #93c5fd; }
html.dark .pf-lv.lv-2 { background: rgba(245, 158, 11, 0.18); border-color: rgba(251, 191, 36, 0.35); color: #fbbf24; }
.pf-lv { background: linear-gradient(120deg, #e8f7f0, #ddf3ff); }

/* ---------- 会员专属 / OPC合伙人专属 高亮标注 ---------- */
.lv-pill {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.75;
  white-space: nowrap; overflow: hidden; vertical-align: middle;
  font-style: normal;
}
.lv-pill-ico { font-style: normal; font-size: 11px; line-height: 1; transform: translateY(-0.5px); }

/* 会员：蓝紫渐变 + 冷光 */
.lv-pill-mem {
  color: #ffffff;
  background: linear-gradient(120deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* OPC合伙人：香槟金渐变 + 暖光 */
.lv-pill-opc {
  color: #4a2c00;
  background: linear-gradient(120deg, #ffe9b5 0%, #f7cc63 42%, #e3a227 100%);
  box-shadow: 0 2px 12px rgba(227, 162, 39, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* 高光扫过动画 */
.lv-pill::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.55) 45%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  animation: lvShine 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lvShine {
  0%, 62% { transform: translateX(-160%) skewX(-18deg); }
  82%, 100% { transform: translateX(320%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) { .lv-pill::after { animation: none; display: none; } }

/* 详情页标题上方 */
.lv-pill-row { margin-bottom: 10px; }
.lv-pill-row .lv-pill { font-size: 12.5px; padding: 3px 13px 3px 10px; }

/* 社区动态卡片 */
.mom-lv { margin-top: 10px; }

/* 项目卡片内与标签行对齐 */
.p-tags .lv-pill, .card-meta .lv-pill { margin-right: 2px; }

/* 深色模式微调 */
html.dark .lv-pill-mem { box-shadow: 0 2px 12px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
html.dark .lv-pill-opc { box-shadow: 0 2px 14px rgba(227, 162, 39, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55); }

/* ---------- 未登录提示条 ---------- */
.login-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(12px);
  background: rgba(17, 24, 39, 0.92); color: #fff;
  padding: 11px 22px; border-radius: 999px;
  font-size: 14px; letter-spacing: 0.5px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0; pointer-events: none; z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.login-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
html.dark .login-toast { background: rgba(243, 244, 246, 0.95); color: #111827; }

/* ---------- 微信扫码登录 ---------- */
.wx-qr-box {
  position: relative; width: 100%; max-width: 300px; height: 320px;
  margin: 4px auto 0; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: #fff;
}
.wx-qr-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.wx-qr-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted); background: #fff; text-align: center; line-height: 1.8; padding: 0 16px;
}
.wx-qr-box.ready .wx-qr-loading { display: none; }
.wx-hint { text-align: center; font-size: 13px; color: var(--text); margin-top: 12px; }
.wx-fallback { text-align: center; margin-top: 8px; font-size: 12.5px; }
.wx-fallback a { color: var(--primary); }
.wx-note {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 14px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--primary-soft, rgba(59, 130, 246, 0.08));
  color: var(--primary); font-size: 12.5px; line-height: 1.6;
}

/* =====================================================================
   移动端适配（≤768px / ≤480px）
   所有规则都在媒体查询内，PC 端（>768px）排版与视觉完全不变
   ===================================================================== */

/* 汉堡按钮与抽屉导航：桌面端一律隐藏 */
.menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 768px) {
  /* ---------- 基础 ---------- */
  html { -webkit-text-size-adjust: 100%; }
  /* 用 clip 而不是 hidden：hidden 会让 sticky 头部失效 */
  body { overflow-x: clip; }
  .container { padding: 0 16px; }
  .site-header .container { padding: 0 16px; }
  img, iframe, video { max-width: 100%; }
  /* 触控友好的最小点击区 + 防止 iOS 聚焦时页面放大 */
  input, select, textarea { font-size: 16px; }

  /* ---------- 头部：logo + 主题 + 用户 + 汉堡 ---------- */
  .site-header { position: sticky; }
  .header-inner { height: 56px; gap: 8px; justify-content: space-between; }
  .nav, .nav-search { display: none !important; }
  .logo { font-size: 16px; gap: 8px; min-width: 0; }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
  .logo-full-img { height: 30px; max-width: 52vw; }
  #logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
  .auth-area { gap: 8px; }
  .user-chip > button { padding: 6px 10px; font-size: 13px; gap: 6px; }
  .avatar { width: 24px; height: 24px; }
  .theme-btn { width: 32px; height: 32px; margin-left: auto; }
  .user-menu { right: -6px; min-width: 150px; }

  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-soft); cursor: pointer; padding: 0;
  }
  /* 三横线图标（纯 CSS，随开关变叉） */
  .menu-ico, .menu-ico::before, .menu-ico::after {
    display: block; width: 16px; height: 2px; border-radius: 2px;
    background: var(--text); transition: transform .22s, opacity .18s;
  }
  .menu-ico { position: relative; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
  .menu-ico::before { top: -5px; }
  .menu-ico::after { top: 5px; }
  .site-header.m-open .menu-ico { background: transparent; }
  .site-header.m-open .menu-ico::before { transform: translateY(5px) rotate(45deg); }
  .site-header.m-open .menu-ico::after { transform: translateY(-5px) rotate(-45deg); }

  .mobile-nav {
    display: block; max-height: 0; overflow: hidden;
    transition: max-height .26s ease;
    background: var(--bg);
  }
  .site-header.m-open .mobile-nav {
    max-height: 78vh; overflow-y: auto;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }
  .mobile-search { padding: 12px 16px 4px; }
  .mobile-search input {
    width: 100%; padding: 10px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg-soft);
    color: var(--text); font-family: inherit; outline: none;
  }
  .mobile-search input:focus { border-color: var(--primary); }
  .mobile-nav-links { padding: 4px 8px 12px; }
  .mobile-nav-links a {
    display: block; padding: 13px 12px; border-radius: 10px;
    font-size: 15px; font-weight: 600; color: var(--text);
  }
  .mobile-nav-links a + a { border-top: 1px solid var(--border); border-radius: 0; }
  .mobile-nav-links a.active { color: var(--primary); background: var(--primary-soft); border-radius: 10px; }

  /* ---------- 首屏 ---------- */
  .top-bg { height: 520px; }
  .top-bg-mascot { display: none; }
  .hero { padding: 40px 0 34px; }
  .hero h1 { font-size: 25px; line-height: 1.42; letter-spacing: 0; }
  .hero p { font-size: 14.5px; margin: 14px auto 24px; padding: 0 2px; }
  .hero-cta { flex-direction: column; gap: 10px; padding: 0 8px; }
  .hero-cta .btn { width: 100%; padding: 12px 18px; }

  /* ---------- 数据带 ---------- */
  .stats-inner { padding: 20px 0; gap: 10px; }
  .stat b { font-size: 23px; }
  .stat span { font-size: 12px; }
  .stats-note { font-size: 11px; padding: 0 16px 12px; }

  /* ---------- 区块 ---------- */
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 18px; gap: 10px; align-items: center; }
  .section-head h2 { font-size: 19px; }
  .section-head p { font-size: 13px; margin-top: 4px; }
  .section-head .more { padding: 8px 16px; font-size: 13px; }
  .grid { gap: 14px; }
  .card-body { padding: 14px 14px 16px; gap: 6px; }
  .card-body h3 { font-size: 15px; }
  .cov::after { font-size: 44px; }

  /* ---------- 列表页头 / 筛选 ---------- */
  .page-head { padding: 22px 0 0; }
  .page-banner { padding: 26px 18px; border-radius: 14px; margin-bottom: 14px; }
  .page-banner h1 { font-size: 21px; }
  .page-banner p { font-size: 13px; margin-top: 8px; }
  .page-head h1 { font-size: 21px; }
  .filters { gap: 8px; margin: 16px 0 18px; }
  .filters select, .filters input { flex: 1 1 100%; min-width: 0; width: 100%; padding: 10px 12px; }

  /* ---------- 详情页 ---------- */
  .detail { padding: 22px 16px 48px; }
  .detail h1 { font-size: 21px; line-height: 1.45; }
  .detail .cov { height: auto; aspect-ratio: 16 / 9; margin-bottom: 18px; }
  .detail .detail-cover-img { border-radius: 12px; margin-bottom: 16px; }
  .detail .detail-meta { gap: 8px; font-size: 13px; }
  .prose { font-size: 16px; line-height: 1.85; }
  .prose h1 { font-size: 19px; }
  .prose h2 { font-size: 18px; margin: 26px 0 10px; padding-left: 10px; }
  .prose h3 { font-size: 16px; margin: 20px 0 8px; }
  .prose p { margin: 10px 0; text-align: left; }
  .prose pre { font-size: 13px; padding: 12px; border-radius: 10px; }
  .prose table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose blockquote { padding: 10px 14px; }

  /* ---------- 页脚 ---------- */
  .site-footer { margin-top: 28px; }
  .footer-inner { flex-direction: column; gap: 18px; padding: 28px 0 20px; }
  .footer-inner > div { flex: 1 1 auto; width: 100%; }
  .footer-inner > div:first-child { max-width: none; }
  .footer-brand-img { max-height: 44px; max-width: 70vw; }
  .footer-bottom { flex-direction: column; gap: 6px; font-size: 11.5px; padding: 14px 0; }

  /* ---------- 登录 / 注册 ---------- */
  .auth-card { margin: 20px auto 32px; padding: 0 16px; }
  .auth-card .card-body { padding: 22px 18px; }
  .auth-card h1 { font-size: 20px; }
  .wx-qr-box { max-width: 250px; height: 268px; }

  /* ---------- 个人中心 ---------- */
  .pf-layout { gap: 14px; }
  .pf-welcome { padding: 16px 16px; }
  .pf-welcome b { font-size: 15.5px; }
  .pf-input, .pf-input.pf-wid { width: 100%; max-width: 100%; }
  .pf-sec-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pf-danger-btn, .pf-sec-btn { width: 100%; }
  .pf-save-btn { width: 100%; padding: 12px 20px; }
  .pf-pwd-form { flex-direction: column; }

  /* ---------- 动态 / OPC / 表格 ---------- */
  .mom-list { gap: 14px; }
  .mom-imgs { gap: 6px; }
  .opc-item, .opc-card { padding: 14px 14px; }
  .opc-avatar { width: 36px; height: 36px; }
  .mom-actions { gap: 14px; flex-wrap: wrap; }
  .mom-detail { margin-left: 0; }

  /* ---------- 分享面板：窄屏居中靠底，避免超出屏幕 ---------- */
  .share-pop {
    width: 236px;
    left: 50% !important; top: auto !important; bottom: 86px !important;
    margin-left: -118px;
  }

  /* ---------- 通用表格（后台 / 配置页）横向滚动 ---------- */
  table { max-width: 100%; }
  .u-table-wrap, .a-table-wrap { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .section-head { flex-wrap: wrap; }
  .section-head .more { margin-left: auto; }
  /* 小屏两张卡片并排会挤，内容卡统一单列 */
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .wx-qr-box { max-width: 232px; height: 250px; }
  .footer-inner { gap: 14px; }
  .detail { padding-left: 14px; padding-right: 14px; }
}

/* ---------- 个人中心：账号绑定（手机号 / 微信登录） ---------- */
.pf-bind-on {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #0f9d58;
  background: rgba(15, 157, 88, 0.10); border: 1px solid rgba(15, 157, 88, 0.25);
}
html.dark .pf-bind-on { color: #5ee0a0; background: rgba(94, 224, 160, 0.10); border-color: rgba(94, 224, 160, 0.3); }
.pf-bind-tip { margin-left: 8px; font-size: 12px; color: var(--hint); }
.pf-bind-form { display: grid; gap: 10px; margin: -6px 0 14px; padding: 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.pf-bind-msg { font-size: 12.5px; min-height: 18px; }
.pf-bind-msg.ok { color: #0f9d58; }
.pf-bind-msg.err { color: #d93025; }
html.dark .pf-bind-msg.ok { color: #5ee0a0; }
html.dark .pf-bind-msg.err { color: #ff8f8f; }
.pf-bind-note { margin: 2px 0 0; font-size: 12px; color: var(--hint); line-height: 1.7; }
.pf-wx-panel {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: -6px 0 14px; padding: 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(7, 193, 96, 0.06));
  border: 1px dashed rgba(37, 99, 235, 0.35);
}
.pf-wx-qr { flex: none; width: 132px; height: 132px; border-radius: 10px; background: #fff; padding: 6px; box-shadow: 0 6px 18px rgba(23, 43, 99, 0.12); }
.pf-wx-qr img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.pf-wx-steps { display: grid; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.pf-wx-steps b { color: var(--text); font-size: 13.5px; }
.pf-wx-code {
  font-size: 30px; font-weight: 800; letter-spacing: 7px; line-height: 1.1;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
