/* =========================================================
   v2.css — DUNDUN AI Pro · v2 设计系统
   所有类名使用 .v2- 前缀，不影响现有页面
   ========================================================= */

/* ─── CSS 变量 ─────────────────────────────────────────── */
:root {
  --v2-bg:           #010103;
  --v2-panel:        #202127;
  --v2-input-bg:     #0a0a0a;
  --v2-purple:       #8b5cf6;
  --v2-purple-deep:  #793de5;
  --v2-purple-hover: #9d6ff8;
  --v2-white:        #ffffff;
  --v2-gray-1:       #999999;
  --v2-gray-2:       #666666;
  --v2-gray-3:       #b3b3b3;
  --v2-gray-4:       #2c2c35;
  --v2-gray-5:       #3a3a45;
  --v2-border:       rgba(255,255,255,0.08);
  --v2-border-light: rgba(255,255,255,0.12);
  --v2-nav-h:        92px;
  --v2-notice-h:     36px;
  --v2-radius-sm:    6px;
  --v2-radius-md:    10px;
  --v2-radius-lg:    16px;
  --v2-transition:   0.22s ease;
}

/* ─── Reset / Base ──────────────────────────────────────── */
.v2-root *,
.v2-root *::before,
.v2-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 覆盖 style.css 中 body 的全局布局，让 v2 页面正常竖向排列 */
body.v2-root {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 100vh;
  overflow: auto !important;
  font-family: 'PingFang SC', 'Alibaba PuHuiTi', 'Microsoft YaHei', sans-serif;
  background: var(--v2-bg) !important;
  color: var(--v2-white);
  min-width: 1280px;
}

/* ─── 通知（辅助导航行右侧小药丸） ──────────────────────────── */
.v2-notice-pill {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 360px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 12px;
  color: var(--v2-gray-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-notice-pill .v2-notice-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.v2-notice-pill #v2NoticeText {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── 主导航 ─────────────────────────────────────────────── */
.v2-navbar {
  width: 100%;
  height: var(--v2-nav-h);
  background: var(--v2-bg);
  border-bottom: 1px solid var(--v2-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 第二行：辅助链接（居中，位于主导航下方） */
.v2-nav-top {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  gap: 20px;
  border-top: 1px solid var(--v2-border);
}

.v2-nav-top a {
  font-size: 13px;
  color: var(--v2-gray-3);
  text-decoration: none;
  transition: color var(--v2-transition);
}

.v2-nav-top a:hover {
  color: var(--v2-white);
}

.v2-nav-top-divider {
  width: 1px;
  height: 12px;
  background: var(--v2-border-light);
}

/* 第一行：主导航 — 3 列网格（占位 / 居中组 / 右侧操作） */
.v2-nav-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  gap: 16px;
}

/* 左侧占位（仅用于推动中列居中） */
.v2-nav-spacer { width: 0; height: 0; }

/* 中间组：头像 + Logo + 菜单链接，整体水平居中 */
.v2-nav-center {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: center;
}

/* 左侧头像 */
.v2-nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v2-purple) 0%, var(--v2-purple-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid rgba(139, 92, 246, 0.4);
  transition: border-color var(--v2-transition);
}

.v2-nav-avatar:hover {
  border-color: var(--v2-purple);
}

/* Logo */
.v2-nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--v2-white);
  text-decoration: none;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.v2-nav-logo span {
  color: var(--v2-purple);
}

/* 贴牌客户品牌 logo（替代平台默认头像+DUNDUN 文字） */
.v2-nav-brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.v2-nav-brand-logo img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* 中间导航链接（grid 中列，自动水平居中） */
.v2-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}

.v2-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 90px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--v2-gray-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--v2-transition);
  gap: 5px;
}

.v2-nav-item:hover {
  color: var(--v2-white);
}

.v2-nav-item.active {
  color: var(--v2-white);
  font-weight: 600;
}

.v2-nav-item--soon {
  opacity: 0.45;
  cursor: not-allowed;
}
.v2-nav-item--soon:hover {
  color: var(--v2-gray-3);
}

/* 活跃态底部紫线 */
.v2-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--v2-purple);
  border-radius: 3px 3px 0 0;
}

/* NEW 徽章 */
.v2-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  line-height: 1;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* ─── 创作中心下拉子菜单（共用） ───────────────────────────
   Figma 设计：白底 + 紫色渐变描边 + 圆角 20，
   悬停项底色淡紫 #E2E1FF，箭头变紫。
*/
.v2-nav-cz-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* 触发器：在导航项上加一个下拉箭头 */
.v2-nav-caret {
  margin-left: 4px;
  opacity: 0.7;
  transition: transform var(--v2-transition), opacity var(--v2-transition);
}
.v2-nav-cz-wrap:hover .v2-nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}

/* 菜单面板 */
.v2-cz-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 155px;
  padding: 10px;
  background: #ffffff;
  border-radius: 20px;
  /* 紫色渐变描边：用双背景叠 mask 模拟，或简单使用 border + box-shadow */
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #8B5CF6 0%, #4B7EF8 100%) border-box;
  box-shadow: 0 12px 32px rgba(20, 20, 40, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0.18s;
  z-index: 100;
}

/* 触发器和菜单之间的过渡空白，避免 hover 跳出 */
.v2-cz-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.v2-nav-cz-wrap:hover .v2-cz-menu,
.v2-cz-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* 单个菜单项 */
.v2-cz-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 15px;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.v2-cz-item + .v2-cz-item {
  margin-top: 4px;
}

.v2-cz-item .v2-cz-arrow {
  color: #999;
  transition: color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.v2-cz-item:hover,
.v2-cz-item.is-active {
  background: #E2E1FF;
  color: #1a1a1a;
}
.v2-cz-item:hover .v2-cz-arrow,
.v2-cz-item.is-active .v2-cz-arrow {
  color: #8B5CF6;
  transform: translateX(2px);
}

.v2-cz-item--soon {
  opacity: 0.55;
  cursor: not-allowed;
}
.v2-cz-item--soon:hover {
  background: transparent;
}
.v2-cz-item--soon:hover .v2-cz-arrow {
  color: #999;
  transform: none;
}

/* 右侧区域（grid 右列，靠右对齐） */
.v2-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  justify-self: end;
}

/* 积分显示 */
.v2-nav-points {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--v2-gray-3);
  background: var(--v2-panel);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--v2-border-light);
}

.v2-nav-points .v2-points-num {
  color: var(--v2-purple);
  font-weight: 700;
  font-size: 15px;
}

/* 立即购买按钮 */
.v2-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: var(--v2-purple);
  color: var(--v2-white);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--v2-transition), transform var(--v2-transition), box-shadow var(--v2-transition);
  white-space: nowrap;
}

.v2-btn-buy:hover {
  background: var(--v2-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* 用户名 + 下拉菜单 */
.v2-nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--v2-radius-sm);
  transition: background var(--v2-transition);
  font-size: 14px;
  color: var(--v2-white);
}

.v2-nav-user:hover {
  background: var(--v2-panel);
}

.v2-nav-user-arrow {
  font-size: 10px;
  color: var(--v2-gray-2);
  transition: transform var(--v2-transition);
}

.v2-nav-user:hover .v2-nav-user-arrow {
  transform: rotate(180deg);
}

/* 用户下拉菜单 — Figma 还原 */
.v2-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 200px;
  background: var(--v2-panel);
  border: 1px solid rgba(139, 92, 246, 0.55);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18),
              0 16px 40px rgba(0, 0, 0, 0.6),
              0 0 28px rgba(139, 92, 246, 0.28);
  padding: 8px 12px 14px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}

/* bridge gap */
.v2-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.v2-nav-user:hover .v2-dropdown-menu {
  display: flex;
}

/* 头部：头像 + 用户名 */
.v2-dropdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0 12px;
}
.v2-dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v2-purple) 0%, var(--v2-purple-deep) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.v2-dropdown-name {
  font-size: 12px;
  color: var(--v2-white);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--v2-white);
  text-decoration: none;
  border-radius: 10px;
  transition: background var(--v2-transition), color var(--v2-transition);
  white-space: nowrap;
}

.v2-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.v2-dropdown-chev {
  width: 6px;
  height: 10px;
  color: var(--v2-gray-2);
  flex: 0 0 auto;
}
.v2-dropdown-item:hover .v2-dropdown-chev { color: var(--v2-gray-3); }

/* 剩余积分行 */
.v2-dropdown-item--points { cursor: pointer; }
.v2-dropdown-item--points > span:first-child { font-size: 12px; color: var(--v2-gray-3); }
.v2-dropdown-balance {
  font-size: 14px;
  font-weight: 700;
  color: var(--v2-purple);
}

.v2-dropdown-divider {
  height: 1px;
  background: var(--v2-border);
  margin: 4px 0;
}

/* 登录按钮（未登录态） */
.v2-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  color: var(--v2-white);
  font-size: 14px;
  border: 1px solid var(--v2-border-light);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--v2-transition), border-color var(--v2-transition);
}

.v2-btn-login:hover {
  background: var(--v2-panel);
  border-color: var(--v2-purple);
}

/* ─── Modal 覆盖层（复用现有 modal-overlay / modal-box） ─── */
/* 无需额外定义，继承 style.css */

/* ─── 首页 Hero（全屏背景图，Figma 高度还原） ─────────────── */
.v2-hero {
  position: relative;
  width: 100%;
  /* 从顶部导航底部一直到视口底部 */
  min-height: calc(100vh - var(--v2-notice-h) - var(--v2-nav-h));
  overflow: hidden;
  background: #050507;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* 全屏背景图 */
.v2-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/static/v2/hero-bg.jpg') center 30% / cover no-repeat;
  z-index: 0;
}

/* 暗色遮罩：左→右更深 + 顶部更深，提升文字可读性 */
.v2-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,2,5,0.85) 0%, rgba(2,2,5,0.45) 35%, rgba(2,2,5,0.35) 65%, rgba(2,2,5,0.75) 100%),
    linear-gradient(180deg, rgba(2,2,5,0.55) 0%, rgba(2,2,5,0) 25%, rgba(2,2,5,0) 65%, rgba(2,2,5,0.85) 100%);
  z-index: 1;
}

/* 主内容容器 */
.v2-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - var(--v2-notice-h) - var(--v2-nav-h));
}

/* 顶部主体：左文 + 右数据，底部对齐 */
.v2-hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex: 1;
  padding-top: 80px;
}

.v2-hero-left {
  flex: 0 1 720px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.v2-hero-right {
  flex: 0 0 auto;
  padding-bottom: 4px;
}

/* 渐变徽章 */
.v2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(32,33,39,0.85) 0%, rgba(116,120,141,0) 100%);
  border: 1px solid rgba(139,92,246,0.25);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.v2-hero-badge svg { flex-shrink: 0; }

/* 大标题：两行，行高紧凑 */
.v2-hero-title {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -2px;
  margin: 0 0 26px;
}
.v2-hero-line {
  display: block;
}
.v2-hero-line + .v2-hero-line {
  margin-top: 14px;
}
.v2-hero-ai {
  background: linear-gradient(135deg, #a78bfa 0%, #6b8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 2px;
}

/* 副标题 */
.v2-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 0 0 38px;
  font-weight: 400;
}

/* CTA 按钮（紫蓝渐变） */
.v2-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 176px;
  padding: 0 28px;
  height: 52px;
  background: linear-gradient(90deg, #8B5CF6 0%, #4B7EF8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 28px rgba(120, 90, 240, 0.35);
  transition: transform var(--v2-transition), box-shadow var(--v2-transition), filter var(--v2-transition);
}
.v2-hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 36px rgba(120, 90, 240, 0.5);
}
.v2-hero-cta svg { flex-shrink: 0; }

/* 统计数字行（右下） */
.v2-hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
}
.v2-hero-stat {
  text-align: left;
}
.v2-hero-stat-num {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.v2-hero-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
}
.v2-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ─── 底部三卡片 ─────────────────────────────────────────── */
.v2-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.v2-hero-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 110px;
  padding: 0 28px;
  border-radius: 20px;
  background: #010103;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--v2-transition), box-shadow var(--v2-transition);
}

/* 用 ::before 画渐变彩色边框（4px 厚的渐变环） */
.v2-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--card-stroke-1, #0099B8) 0%, var(--card-stroke-2, #0099B8) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.v2-hero-card--cyan {
  --card-stroke-1: #00A3C4;
  --card-stroke-2: #006FA8;
  --card-glow: rgba(0,180,220,0.45);
}
.v2-hero-card--purple {
  --card-stroke-1: #8B5CF6;
  --card-stroke-2: #6B45D8;
  --card-glow: rgba(139,92,246,0.55);
}
.v2-hero-card--blue {
  --card-stroke-1: #2A6CEA;
  --card-stroke-2: #0E4FC8;
  --card-glow: rgba(36,108,235,0.45);
}

/* 卡片内部图标圆 */
.v2-hero-card-icon {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--card-glow) 0%, transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-hero-card-text {
  position: relative;
  z-index: 2;
}
.v2-hero-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 8px;
}
.v2-hero-card-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1;
}

/* 中间高亮卡片：紫色 glow 光晕 + 内部装饰条纹 */
.v2-hero-card--active {
  background:
    linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(75,126,248,0.08) 100%),
    #010103;
}
.v2-hero-card-glow {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: 60%;
  height: 60px;
  background: radial-gradient(ellipse at 50% 50%, rgba(139,92,246,0.55) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

/* 装饰：右上角斜线纹理 */
.v2-hero-card::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(255,255,255,0.025) 14px 15px
    );
  pointer-events: none;
  z-index: 0;
}

.v2-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5), 0 0 24px var(--card-glow);
}

/* 联系我们圆形浮标 */
.v2-hero-contact {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6 0%, #4B7EF8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(120,90,240,0.4);
  transition: transform var(--v2-transition), box-shadow var(--v2-transition);
  text-decoration: none;
}
.v2-hero-contact:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px rgba(120,90,240,0.55);
}

/* ─── 响应式 ─────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .v2-hero-title { font-size: 64px; }
  .v2-hero-inner { padding: 60px 48px 40px; }
  .v2-hero-stat-num { font-size: 32px; }
}
@media (max-width: 960px) {
  .v2-hero-main { flex-direction: column; align-items: flex-start; gap: 36px; padding-top: 40px; }
  .v2-hero-title { font-size: 48px; }
  .v2-hero-cards { grid-template-columns: 1fr; gap: 16px; }
  .v2-hero-inner { padding: 40px 24px 32px; }
}

/* ─── 创作中心布局 ─────────────────────────────────────────── */
.v2-creation-wrap {
  display: flex;
  width: 100%;
  height: calc(100vh - var(--v2-notice-h) - var(--v2-nav-h));
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

/* 左侧面板 */
.v2-left-panel {
  width: 460px;
  flex-shrink: 0;
  background: var(--v2-panel);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--v2-border);
  /* 美化滚动条 */
  scrollbar-width: thin;
  scrollbar-color: var(--v2-gray-4) transparent;
}

.v2-left-panel::-webkit-scrollbar {
  width: 4px;
}

.v2-left-panel::-webkit-scrollbar-track {
  background: transparent;
}

.v2-left-panel::-webkit-scrollbar-thumb {
  background: var(--v2-gray-4);
  border-radius: 2px;
}

/* 中间区域 */
.v2-center-area {
  flex: 1;
  min-width: 0;
  background: var(--v2-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* 右侧结果面板（默认收起） */
.v2-right-panel {
  width: 0;
  flex-shrink: 0;
  background: var(--v2-panel);
  overflow: hidden;
  transition: width 0.3s ease;
  border-left: 1px solid var(--v2-border);
  display: flex;
  flex-direction: column;
}

.v2-right-panel.v2-panel-open {
  width: 340px;
}

/* 右侧展开/收起按钮：flex item，自然夹在 center 和 right-panel 之间 */
.v2-panel-toggle {
  flex-shrink: 0;
  width: 24px;
  align-self: center;
  height: 136px;
  background: var(--v2-panel);
  border: 1px solid var(--v2-border-light);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--v2-transition);
  gap: 4px;
  margin: 0 2px;
}

.v2-panel-toggle:hover {
  background: var(--v2-gray-4);
}

.v2-panel-toggle-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  color: var(--v2-gray-3);
  letter-spacing: 2px;
}

.v2-panel-toggle-arrow {
  font-size: 14px;
  color: var(--v2-gray-3);
  transition: transform var(--v2-transition);
}

.v2-panel-toggle.panel-open .v2-panel-toggle-arrow {
  transform: rotate(180deg);
}

/* ─── 左侧面板内部组件 ─────────────────────────────────────── */

/* Tab 切换 */
.v2-tab-bar {
  display: flex;
  padding: 16px 20px 0;
  gap: 4px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--v2-border);
}

.v2-tab-item {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--v2-gray-1);
  cursor: pointer;
  border-radius: var(--v2-radius-sm) var(--v2-radius-sm) 0 0;
  transition: color var(--v2-transition), background var(--v2-transition);
  position: relative;
}

.v2-tab-item.active {
  color: var(--v2-white);
  font-weight: 600;
}

.v2-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--v2-purple);
  border-radius: 2px 2px 0 0;
}

.v2-tab-item:hover:not(.active) {
  color: var(--v2-gray-3);
  background: rgba(255,255,255,0.04);
}

/* 面板内容区 */
.v2-panel-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 参考图上传区 */
.v2-upload-area {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.v2-upload-box {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--v2-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--v2-transition), background var(--v2-transition);
  background: rgba(139, 92, 246, 0.04);
  position: relative;
  overflow: hidden;
}

.v2-upload-box:hover {
  border-color: var(--v2-purple);
  background: rgba(139, 92, 246, 0.08);
}

.v2-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.v2-upload-icon {
  font-size: 28px;
  color: rgba(139, 92, 246, 0.6);
  margin-bottom: 6px;
}

.v2-upload-hint {
  font-size: 11px;
  color: var(--v2-gray-2);
  text-align: center;
  line-height: 1.4;
}

.v2-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.v2-upload-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-btn-asset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--v2-gray-4);
  color: var(--v2-gray-3);
  font-size: 13px;
  border: 1px solid var(--v2-border-light);
  border-radius: var(--v2-radius-sm);
  cursor: pointer;
  transition: background var(--v2-transition), color var(--v2-transition);
  white-space: nowrap;
}

.v2-btn-asset:hover {
  background: var(--v2-gray-5);
  color: var(--v2-white);
}

/* 模式切换 Toggle */
.v2-mode-toggle {
  display: flex;
  gap: 8px;
}

.v2-toggle-btn {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--v2-gray-2);
  background: var(--v2-gray-4);
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  cursor: pointer;
  transition: all var(--v2-transition);
}

.v2-toggle-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--v2-purple);
  color: var(--v2-purple);
  font-weight: 600;
}

.v2-toggle-btn:hover:not(.active) {
  background: var(--v2-gray-5);
  color: var(--v2-gray-3);
}

/* 风格标签 */
.v2-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-style-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: var(--v2-gray-4);
  color: var(--v2-gray-3);
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--v2-transition);
  white-space: nowrap;
}

.v2-style-tag:hover,
.v2-style-tag.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--v2-purple);
}

/* 提示词输入框 */
.v2-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-panel-label {
  font-size: 12px;
  color: var(--v2-gray-2);
  font-weight: 500;
}

.v2-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: var(--v2-input-bg);
  border: 1px solid var(--v2-border-light);
  border-radius: var(--v2-radius-sm);
  color: var(--v2-white);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color var(--v2-transition);
}

.v2-textarea::placeholder {
  color: var(--v2-gray-2);
}

.v2-textarea:focus {
  border-color: rgba(139, 92, 246, 0.5);
}

/* 开关行 */
.v2-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.v2-switch-label {
  font-size: 13px;
  color: var(--v2-gray-3);
}

/* Toggle Switch */
.v2-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.v2-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.v2-switch-track {
  position: absolute;
  inset: 0;
  background: var(--v2-gray-4);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--v2-transition);
  border: 1px solid var(--v2-border-light);
}

.v2-switch-track::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--v2-gray-2);
  border-radius: 50%;
  transition: transform var(--v2-transition), background var(--v2-transition);
}

.v2-switch input:checked + .v2-switch-track {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--v2-purple);
}

.v2-switch input:checked + .v2-switch-track::after {
  transform: translateX(18px);
  background: var(--v2-purple);
}

/* 下拉选择器 */
.v2-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--v2-input-bg);
  border: 1px solid var(--v2-border-light);
  border-radius: var(--v2-radius-sm);
  color: var(--v2-gray-2);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-family: inherit;
  transition: border-color var(--v2-transition);
}

.v2-select:focus {
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--v2-gray-3);
}

.v2-select option {
  background: #1a1a22;
  color: var(--v2-white);
}

/* ─── 左侧面板底部区域（生成按钮） ───────────────────────── */
.v2-panel-footer {
  padding: 16px 20px 20px;
  flex-shrink: 0;
  border-top: 1px solid var(--v2-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 生成按钮 */
.v2-btn-generate {
  width: 100%;
  height: 60px;
  background: var(--v2-purple);
  border: none;
  border-radius: var(--v2-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: background var(--v2-transition), box-shadow var(--v2-transition), transform var(--v2-transition);
}

.v2-btn-generate:hover:not(:disabled) {
  background: var(--v2-purple-hover);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

.v2-btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.v2-btn-generate-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--v2-white);
}

.v2-btn-generate-cost {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.v2-btn-time-hint {
  text-align: center;
  font-size: 12px;
  color: var(--v2-gray-2);
}

/* ─── 中间区域内部组件 ────────────────────────────────────── */
.v2-center-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.v2-preview-box {
  width: 480px;
  height: 640px;
  background: var(--v2-panel);
  border-radius: var(--v2-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--v2-border);
  position: relative;
  overflow: hidden;
}

.v2-preview-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.12);
}

.v2-preview-hint {
  font-size: 14px;
  color: var(--v2-gray-2);
  text-align: center;
  line-height: 1.6;
}

/* 生成中状态遮罩 */
.v2-generating-mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 8, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--v2-radius-lg);
}

.v2-generating-mask.active {
  display: flex;
}

.v2-generating-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--v2-purple);
  border-radius: 50%;
  animation: v2Spin 0.8s linear infinite;
}

@keyframes v2Spin {
  to { transform: rotate(360deg); }
}

.v2-generating-text {
  font-size: 14px;
  color: var(--v2-gray-3);
}

/* 生成中侧边竖条 */
.v2-generating-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 136px;
  background: var(--v2-purple);
  border-radius: 0 8px 8px 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.v2-generating-bar.active {
  display: flex;
}

.v2-generating-bar-text {
  writing-mode: vertical-rl;
  font-size: 13px;
  color: var(--v2-white);
  font-weight: 600;
  letter-spacing: 2px;
}

/* 预览媒体 */
.v2-preview-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.v2-preview-media.active {
  display: block;
}

/* ─── 底部信息栏 ──────────────────────────────────────────── */
.v2-info-bar {
  height: auto;
  min-height: 103px;
  flex-shrink: 0;
  border-top: 1px solid var(--v2-border);
  background: var(--v2-bg);
}

.v2-info-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  cursor: pointer;
  user-select: none;
}

.v2-info-bar-title {
  font-size: 13px;
  color: var(--v2-gray-3);
}

.v2-info-bar-arrow {
  font-size: 12px;
  color: var(--v2-gray-2);
  transition: transform var(--v2-transition);
}

.v2-info-bar.open .v2-info-bar-arrow {
  transform: rotate(180deg);
}

.v2-info-bar-body {
  padding: 0 24px 20px;
  font-size: 13px;
  color: var(--v2-gray-2);
  line-height: 1.7;
  display: none;
}

.v2-info-bar.open .v2-info-bar-body {
  display: block;
}

/* ─── 右侧面板内容 ────────────────────────────────────────── */
.v2-right-panel-inner {
  width: 340px;
  flex-shrink: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.v2-result-card {
  background: var(--v2-gray-4);
  border-radius: var(--v2-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--v2-border);
}

.v2-result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--v2-white);
}

.v2-result-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v2-result-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--v2-gray-2);
}

.v2-result-meta-val {
  color: var(--v2-gray-3);
}

.v2-result-preview {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--v2-panel);
  border-radius: var(--v2-radius-sm);
  overflow: hidden;
  position: relative;
}

.v2-result-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.v2-result-preview-img.active {
  display: block;
}

.v2-result-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--v2-gray-2);
}

.v2-result-preview-placeholder-icon {
  font-size: 32px;
  color: rgba(255,255,255,0.1);
}

.v2-result-actions {
  display: flex;
  gap: 8px;
}

.v2-btn-secondary {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  color: var(--v2-gray-3);
  background: var(--v2-panel);
  border: 1px solid var(--v2-border-light);
  border-radius: var(--v2-radius-sm);
  cursor: pointer;
  transition: all var(--v2-transition);
}

.v2-btn-secondary:hover {
  background: var(--v2-gray-5);
  color: var(--v2-white);
  border-color: var(--v2-border-light);
}

.v2-right-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--v2-white);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v2-border);
}

/* ─── 通用工具类 ──────────────────────────────────────────── */
.v2-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--v2-gray-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

/* ─── ICP 底栏 ────────────────────────────────────────────── */
.v2-footer-icp {
  text-align: center;
  padding: 14px 0;
  font-size: 12px;
}

.v2-footer-icp a {
  color: var(--v2-gray-2);
  text-decoration: none;
}

.v2-footer-icp a:hover {
  color: var(--v2-gray-3);
}

/* ================================================================
   工作流中心 页面
================================================================ */

.v2-wf-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--v2-bg);
  overflow-y: auto;
}

/* Hero 区 */
.v2-wf-hero {
  position: relative;
  padding: 56px 80px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.v2-wf-hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(121,61,229,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.v2-wf-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--v2-white);
  letter-spacing: -0.5px;
  position: relative;
}

.v2-wf-subtitle {
  font-size: 15px;
  color: var(--v2-gray-3);
  position: relative;
}

/* 分类 Tab */
.v2-wf-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-wf-tab {
  height: 36px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--v2-panel);
  color: var(--v2-gray-3);
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background var(--v2-transition), color var(--v2-transition);
  white-space: nowrap;
  user-select: none;
}

.v2-wf-tab:hover {
  background: var(--v2-gray-4);
  color: var(--v2-white);
}

.v2-wf-tab.active {
  background: var(--v2-purple);
  color: var(--v2-white);
  font-weight: 500;
}

/* 搜索框 */
.v2-wf-search {
  position: relative;
  width: 300px;
}

.v2-wf-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.v2-wf-search input {
  width: 100%;
  height: 40px;
  background: var(--v2-panel);
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  padding: 0 14px 0 38px;
  color: var(--v2-white);
  font-size: 14px;
  outline: none;
  transition: border-color var(--v2-transition);
}

.v2-wf-search input::placeholder { color: var(--v2-gray-1); }
.v2-wf-search input:focus { border-color: var(--v2-purple); }

/* 瀑布流 — 多列 masonry 布局,仅图片 */
.v2-wf-waterfall {
  display: flex;
  gap: 16px;
  padding: 8px 80px 60px;
  align-items: flex-start;
}

.v2-wf-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.v2-wf-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--v2-panel);
  opacity: 0;
  transition: opacity 0.4s ease, transform var(--v2-transition), box-shadow var(--v2-transition);
}

.v2-wf-item.loaded { opacity: 1; }

.v2-wf-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.25);
}

.v2-wf-item img,
.v2-wf-item video {
  width: 100%;
  height: auto;
  display: block;
}

.v2-wf-item-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 空状态 */
.v2-wf-empty {
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
  margin: 0 80px;
}

/* ═══════════════════════════════════════════════════════════════
   V2 Auth Modal (Login / Register)  — Figma 还原
   card: 536px · bg #202127 · border purple · radius 32px
═══════════════════════════════════════════════════════════════ */
.v2-auth-overlay {
  background: rgba(1, 1, 3, 0.88) !important;
  backdrop-filter: blur(4px);
}

.v2-auth-card {
  position: relative;
  width: 536px;
  background: #202127;
  border: 1px solid #7B3DE5;
  border-radius: 32px;
  padding: 48px 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── 关闭按钮 (X) ── */
.v2-auth-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.v2-auth-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: background 0.2s;
}
.v2-auth-close span:first-child { transform: rotate(45deg); }
.v2-auth-close span:last-child  { transform: rotate(-45deg); }
.v2-auth-close:hover span       { background: #fff; }

/* ── 标题 ── */
.v2-auth-title {
  width: 416px;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* ── Tab 切换 ── */
.v2-auth-tabs {
  display: flex;
  width: 416px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  gap: 0;
}
.v2-auth-tab {
  flex: 1;
  height: 44px;
  background: #111214;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.18s;
  outline: none;
}
.v2-auth-tab.active {
  background: #202127;
  border-color: #fff;
  color: #fff;
  font-weight: 700;
}
.v2-auth-tab:not(.active):hover {
  color: #fff;
}

/* ── 输入面板 ── */
.v2-auth-panel {
  width: 416px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── 单个输入框行 ── */
.v2-auth-field {
  width: 416px;
  height: 72px;
  background: #111214;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  box-sizing: border-box;
}
.v2-auth-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  min-width: 0;
}
.v2-auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ── 获取验证码按钮 ── */
.v2-auth-sms-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 18px;
  background: #8B5CF6;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s;
}
.v2-auth-sms-btn:hover   { opacity: 0.85; }
.v2-auth-sms-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── 提交按钮 ── */
.v2-auth-submit {
  width: 416px !important;
  height: 44px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: opacity 0.18s;
  margin-top: 4px;
}
.v2-auth-submit:hover    { opacity: 0.88; }
.v2-auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── 底部文字 ── */
.v2-auth-footer {
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.6;
}
.v2-auth-footer a {
  color: #999;
  text-decoration: none;
  transition: color 0.18s;
}
.v2-auth-footer a:hover { color: #a78bfa; }

/* ================================================================
   选品中心  (v2-sp-*)
================================================================ */

/* ── 页面容器 ── */
.v2-sp-page {
  min-height: 100vh;
  padding: 0 0 80px;
}

/* ── Hero 区 ── */
.v2-sp-hero {
  position: relative;
  padding: 48px 48px 36px;
  overflow: hidden;
}
.v2-sp-hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.v2-sp-title {
  position: relative;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.v2-sp-subtitle {
  position: relative;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 28px;
}

/* ── 筛选行 ── */
.v2-sp-filter-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 地区 Tab 组 */
.v2-sp-region-tabs {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.v2-sp-region-tab {
  width: 80px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #202127;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.v2-sp-region-tab:hover  { background: #2d2d37; color: #fff; }
.v2-sp-region-tab.active { background: #8B5CF6; color: #fff; }

/* 搜索框 */
.v2-sp-search {
  display: flex;
  align-items: center;
  width: 260px;
  height: 36px;
  background: #202127;
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
}
.v2-sp-search-icon { font-size: 14px; color: #8B5CF6; }
.v2-sp-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}
.v2-sp-search input::placeholder { color: rgba(255,255,255,0.35); }

/* 品类下拉 */
.v2-sp-cat-dropdown {
  position: relative;
  flex-shrink: 0;
}
.v2-sp-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 130px;
  height: 36px;
  padding: 0 14px;
  background: #202127;
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
}
.v2-sp-cat-btn:hover { background: #2d2d37; color: #fff; }
.v2-sp-cat-arrow { margin-left: auto; font-size: 12px; transition: transform 0.18s; }
.v2-sp-cat-dropdown.open .v2-sp-cat-arrow { transform: rotate(180deg); }

.v2-sp-cat-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 130px;
  background: #202127;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  z-index: 200;
  overflow: hidden;
}
.v2-sp-cat-dropdown.open .v2-sp-cat-menu { display: block; }
.v2-sp-cat-item {
  padding: 10px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.v2-sp-cat-item:hover  { background: #2d2d37; color: #fff; }
.v2-sp-cat-item.active { color: #8B5CF6; }

/* ── 商品网格 ── */
.v2-sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 0 48px;
}

/* ── 商品卡片 ── */
.v2-sp-card {
  background: #202127;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  padding-bottom: 16px;
}
.v2-sp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

/* 图片区 */
.v2-sp-card-img {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #010103;
  margin: 0;
}
.v2-sp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.v2-sp-card:hover .v2-sp-card-img img { transform: scale(1.04); }
.v2-sp-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.2);
}

/* 徽章行 */
.v2-sp-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 6px;
  flex-wrap: wrap;
}
.v2-sp-badge-price {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e53de5 0%, #8B5CF6 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.v2-sp-badge-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  background: #010103;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  white-space: nowrap;
}

/* 商品名 */
.v2-sp-card-name {
  padding: 4px 14px 0;
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 空状态 */
.v2-sp-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

/* ================================================================
   弹窗（白色主题）
================================================================ */
.v2-sp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1,1,3,0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.v2-sp-overlay.active { display: flex; }

.v2-sp-modal {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 40px);
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 关闭按钮 */
.v2-sp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.18s;
}
.v2-sp-modal-close:hover { background: rgba(0,0,0,0.16); }
.v2-sp-modal-close span {
  position: absolute;
  width: 14px;
  height: 2px;
  background: #202127;
  border-radius: 1px;
}
.v2-sp-modal-close span:first-child { transform: rotate(45deg); }
.v2-sp-modal-close span:last-child  { transform: rotate(-45deg); }

/* 弹窗主体：左右分栏 */
.v2-sp-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* 左列 */
.v2-sp-modal-left {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 24px 24px;
  gap: 16px;
  overflow: hidden;
}
.v2-sp-modal-main-img-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
}
.v2-sp-modal-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 缩略图行 */
.v2-sp-modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex-shrink: 0;
  padding-bottom: 4px;
}
.v2-sp-modal-thumbs::-webkit-scrollbar { height: 4px; }
.v2-sp-modal-thumbs::-webkit-scrollbar-track { background: transparent; }
.v2-sp-modal-thumbs::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 2px; }

.v2-sp-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.18s;
}
.v2-sp-thumb.active { border-color: #8B5CF6; }
.v2-sp-thumb:hover  { border-color: rgba(139,92,246,0.5); }

/* 右列 */
.v2-sp-modal-right {
  flex: 1;
  overflow-y: auto;
  padding: 24px 56px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.v2-sp-modal-right::-webkit-scrollbar { width: 4px; }
.v2-sp-modal-right::-webkit-scrollbar-track { background: transparent; }
.v2-sp-modal-right::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

/* 标签行 */
.v2-sp-modal-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v2-sp-modal-tag-price {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e53de5 0%, #8B5CF6 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.v2-sp-modal-tag-shipping {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3d8bff 0%, #6ec6ff 100%);
  color: #fff;
  font-size: 13px;
}
.v2-sp-modal-tag-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: #010103;
  color: #fff;
  font-size: 13px;
}

/* 产品标题 */
.v2-sp-modal-prod-title {
  font-size: 24px;
  font-weight: 700;
  color: #202127;
  line-height: 1.35;
}

/* 价格 */
.v2-sp-modal-price {
  font-size: 24px;
  font-weight: 700;
  color: #8B5CF6;
}

/* Meta */
.v2-sp-modal-meta {
  font-size: 14px;
  color: rgba(32,33,39,0.5);
}

/* 分隔线 */
.v2-sp-modal-divider {
  height: 1px;
  background: rgba(238,238,251,1);
  margin: 2px 0;
}

/* 产品信息 */
.v2-sp-modal-info-header {
  font-size: 18px;
  font-weight: 700;
  color: #202127;
}
.v2-sp-modal-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.v2-sp-modal-info-table tr + tr td {
  border-top: 1px solid rgba(238,238,251,1);
}
.v2-sp-info-label {
  width: 100px;
  padding: 10px 14px;
  background: rgba(246,246,253,0.4);
  color: rgba(32,33,39,0.5);
  border-right: 1px solid rgba(238,238,251,0.4);
  vertical-align: top;
  white-space: nowrap;
}
.v2-sp-info-value {
  padding: 10px 14px;
  background: rgba(255,255,255,0.5);
  color: #202127;
  vertical-align: top;
  word-break: break-word;
}

/* ── 底部操作栏 ── */
.v2-sp-modal-footer {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  flex-shrink: 0;
}
.v2-sp-modal-btn-cancel {
  width: 80px;
  height: 36px;
  background: #111214;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.18s;
}
.v2-sp-modal-btn-cancel:hover { opacity: 0.8; }
.v2-sp-modal-btn-contact {
  width: 80px;
  height: 36px;
  background: #8B5CF6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s;
}
.v2-sp-modal-btn-contact:hover { opacity: 0.85; }

/* ── 响应式 ── */
@media (max-width: 900px) {
  .v2-sp-hero   { padding: 32px 20px 24px; }
  .v2-sp-grid   { padding: 0 20px; }
  .v2-sp-modal-body { flex-direction: column; }
  .v2-sp-modal-left {
    width: 100%;
    flex-direction: row;
    padding: 16px;
    max-height: 260px;
  }
  .v2-sp-modal-main-img-wrap { width: 200px; flex-shrink: 0; }
  .v2-sp-modal-thumbs { flex-direction: column; overflow-y: auto; overflow-x: hidden; }
  .v2-sp-thumb { width: 72px; height: 72px; }
  .v2-sp-modal-right { padding: 16px; }
}
@media (max-width: 600px) {
  .v2-sp-filter-row { gap: 10px; }
  .v2-sp-search { width: 100%; }
  .v2-sp-cat-btn { width: 110px; }
  .v2-sp-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* =========================================================
   v2-rc — 资源中心 (Resource Center)
   ========================================================= */

/* ── 页面容器 ── */
.v2-rc-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
  min-height: calc(100vh - var(--v2-nav-h) - var(--v2-notice-h));
}

/* ── Hero 区 ── */
.v2-rc-hero {
  position: relative;
  padding: 56px 60px 40px;
  overflow: visible;
  z-index: 0;
}

.v2-rc-hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.v2-rc-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--v2-white);
  margin-bottom: 12px;
  position: relative;
}

.v2-rc-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  position: relative;
}

/* ── 筛选行 ── */
.v2-rc-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ── 分类 Tab ── */
.v2-rc-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-rc-tab {
  width: 80px;
  height: 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--v2-white);
  background: #202127;
  transition: background var(--v2-transition), font-weight var(--v2-transition);
  flex-shrink: 0;
}

.v2-rc-tab.active {
  background: var(--v2-purple);
  font-weight: 700;
}

.v2-rc-tab:hover:not(.active) {
  background: var(--v2-gray-4);
}

/* ── 搜索框 ── */
.v2-rc-search {
  position: relative;
  width: 260px;
  height: 36px;
  flex-shrink: 0;
}

.v2-rc-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.v2-rc-search input {
  width: 100%;
  height: 100%;
  background: #202127;
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  padding: 0 12px 0 32px;
  font-size: 13px;
  color: var(--v2-white);
  outline: none;
  transition: border-color var(--v2-transition);
}

.v2-rc-search input::placeholder {
  color: rgba(255,255,255,0.35);
}

.v2-rc-search input:focus {
  border-color: var(--v2-purple);
}

/* ── 资源网格 ── */
.v2-rc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(251px, 1fr));
  gap: 20px;
  padding: 0 60px;
}

/* ── 资源卡片 ── */
.v2-rc-card {
  width: 100%;
  min-height: 328px;
  background: #202127;
  border-radius: 20px;
  border: 1px solid rgba(42,42,42,1);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--v2-transition), box-shadow var(--v2-transition);
  display: flex;
  flex-direction: column;
}

.v2-rc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ── 卡片封面图 ── */
.v2-rc-card-img {
  width: 100%;
  height: 219px;
  border-radius: 16px;
  background: #010103;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.v2-rc-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-rc-card-img-placeholder {
  font-size: 48px;
  opacity: 0.4;
}

/* ── 卡片主体 ── */
.v2-rc-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.v2-rc-card-name {
  font-size: 16px;
  color: var(--v2-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.v2-rc-card-intro {
  font-size: 14px;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  flex: 1;
}

/* ── 标签行 ── */
.v2-rc-card-tags {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.v2-rc-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 500;
  line-height: 16px;
}

.v2-rc-badge--free {
  background: rgba(139,92,246,0.18);
  color: var(--v2-purple);
  border: 1px solid rgba(139,92,246,0.3);
}

.v2-rc-badge--rec {
  background: rgba(42,42,42,0.9);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── 空状态 ── */
.v2-rc-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

/* ── 弹窗遮罩 ── */
.v2-rc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1,1,3,0.88);
  backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.v2-rc-overlay.active {
  display: flex;
}

/* ── 弹窗卡片 ── */
.v2-rc-modal {
  position: relative;
  width: 780px;
  max-width: calc(100vw - 40px);
  max-height: 85vh;
  background: #202127;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── 关闭按钮 ── */
.v2-rc-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
}

.v2-rc-modal-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: background 0.2s;
}

.v2-rc-modal-close span:first-child { transform: rotate(45deg); }
.v2-rc-modal-close span:last-child  { transform: rotate(-45deg); }
.v2-rc-modal-close:hover span       { background: var(--v2-white); }

/* ── 弹窗头部 ── */
.v2-rc-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px 20px;
  padding-right: 72px; /* 为关闭按钮留空间 */
}

.v2-rc-modal-logo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-rc-modal-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-rc-modal-logo-ph {
  font-size: 36px;
  color: #ccc;
}

.v2-rc-modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.v2-rc-modal-company {
  font-size: 18px;
  font-weight: 700;
  color: var(--v2-white);
  line-height: 1.3;
}

.v2-rc-modal-cat-badge {
  display: inline-block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 4px;
  padding: 2px 10px;
  align-self: flex-start;
}

/* ── 业务介绍区 ── */
.v2-rc-modal-section {
  padding: 0 32px 20px;
}

.v2-rc-modal-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--v2-white);
  margin-bottom: 12px;
}

.v2-rc-modal-intro-text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── 分割线 ── */
.v2-rc-modal-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 32px;
}

/* ── 信息行 ── */
.v2-rc-modal-info {
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
}

.v2-rc-modal-info-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.v2-rc-modal-info-row:last-child {
  border-bottom: none;
}

.v2-rc-modal-info-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  width: 72px;
  flex-shrink: 0;
}

.v2-rc-modal-info-value {
  font-size: 14px;
  color: var(--v2-white);
  flex: 1;
  word-break: break-word;
}

/* ── 二维码区 ── */
.v2-rc-modal-qr {
  padding: 0 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-rc-modal-qr-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.v2-rc-modal-qr-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  display: block;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .v2-rc-hero  { padding: 32px 20px 24px; }
  .v2-rc-grid  { padding: 0 20px; gap: 14px; }
  .v2-rc-modal { width: calc(100vw - 32px); }
}

@media (max-width: 600px) {
  .v2-rc-filter-row { gap: 8px; }
  .v2-rc-search     { width: 100%; }
  .v2-rc-tabs       { gap: 6px; }
  .v2-rc-tab        { width: 68px; font-size: 13px; }
  .v2-rc-grid       { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .v2-rc-modal-header { padding: 20px 20px 16px; padding-right: 60px; }
  .v2-rc-modal-section,
  .v2-rc-modal-info,
  .v2-rc-modal-qr   { padding-left: 20px; padding-right: 20px; }
  .v2-rc-modal-divider { margin: 0 20px; }
}

/* ═══════════════════════════════════════════════
   线上课程列表 (.v2-co-*)
═══════════════════════════════════════════════ */

.v2-co-page {
  min-height: 100vh;
  background: var(--v2-bg);
}

/* Hero */
.v2-co-hero {
  position: relative;
  text-align: center;
  padding: 64px 24px 48px;
  overflow: hidden;
}
.v2-co-hero-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.v2-co-title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.v2-co-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Grid */
.v2-co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 40px 64px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card */
.v2-co-card {
  background: #202127;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.v2-co-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

/* Thumbnail */
.v2-co-card-thumb {
  position: relative;
  height: 200px;
  background: #010103;
  overflow: hidden;
}
.v2-co-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-co-card-thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.2);
}
.v2-co-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(139,92,246,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.v2-co-card:hover .v2-co-play-btn {
  background: #8b5cf6;
  transform: translate(-50%, -50%) scale(1.08);
}
.v2-co-play-btn svg { margin-left: 4px; }

/* Card body */
.v2-co-card-body {
  padding: 16px 18px 18px;
}
.v2-co-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-co-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.v2-co-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.v2-co-badge--free  { background: rgba(34,197,94,0.15); color: #4ade80; }
.v2-co-badge--vip   { background: rgba(43,39,60,1);     color: rgba(255,255,255,0.7); }
.v2-co-badge--count { background: rgba(43,39,60,1);     color: rgba(255,255,255,0.7); }
.v2-co-card-date {
  font-size: 13px;
  color: #999;
}

/* Empty */
.v2-co-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
}

/* ═══════════════════════════════════════════════
   课程播放页 (.v2-cp-*)
═══════════════════════════════════════════════ */

.v2-cp-page {
  min-height: 100vh;
  background: var(--v2-bg);
  padding: 24px 40px 60px;
}

/* Breadcrumb */
.v2-cp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.v2-cp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.v2-cp-back:hover { color: #fff; }
.v2-cp-breadcrumb-sep { color: rgba(255,255,255,0.3); }
.v2-cp-breadcrumb-title {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 500px;
}

/* Two-column layout */
.v2-cp-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Left: player */
.v2-cp-player-wrap {
  flex: 1;
  min-width: 0;
}
.v2-cp-video-box {
  position: relative;
  background: #202127;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.v2-cp-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Bottom gradient + controls */
.v2-cp-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 20px 16px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.85));
  display: flex;
  align-items: center;
  gap: 12px;
}
.v2-cp-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v2-cp-progress-wrap {
  flex: 1;
  padding: 8px 0;
  cursor: pointer;
}
.v2-cp-progress-bg {
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
.v2-cp-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.v2-cp-time {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}

/* Center play button overlay */
.v2-cp-center-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(139,92,246,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.v2-cp-center-play svg { margin-left: 5px; }
.v2-cp-center-play:hover { background: rgba(139,92,246,1); }

/* Now playing row */
.v2-cp-now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.v2-cp-now-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(43,39,60,1);
  color: #a78bfa;
  flex-shrink: 0;
}
.v2-cp-now-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.v2-cp-desc {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* Right: sidebar */
.v2-cp-sidebar {
  width: 400px;
  flex-shrink: 0;
  background: #202127;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px);
}
.v2-cp-sidebar-header {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.v2-cp-chapter-list {
  overflow-y: auto;
  flex: 1;
}
.v2-cp-chapter-list::-webkit-scrollbar { width: 4px; }
.v2-cp-chapter-list::-webkit-scrollbar-track { background: transparent; }
.v2-cp-chapter-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* Chapter item */
.v2-cp-chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.v2-cp-chapter:hover { background: rgba(255,255,255,0.05); }
.v2-cp-chapter.active { background: rgba(139,92,246,0.12); }
.v2-cp-chapter-thumb {
  position: relative;
  width: 90px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #010103;
}
.v2-cp-chapter-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-cp-chapter-thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.25);
}
.v2-cp-chapter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,92,246,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.v2-cp-chapter-info { flex: 1; min-width: 0; }
.v2-cp-chapter-title {
  font-size: 13px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-cp-chapter.active .v2-cp-chapter-title { color: #a78bfa; }
.v2-cp-chapter-dur {
  font-size: 12px;
  color: #999;
}

/* Responsive */
@media (max-width: 1100px) {
  .v2-cp-sidebar { width: 320px; }
}
@media (max-width: 900px) {
  .v2-cp-page   { padding: 16px 16px 48px; }
  .v2-cp-layout { flex-direction: column; }
  .v2-cp-sidebar { width: 100%; max-height: 400px; }
  .v2-co-grid   { padding: 0 16px 48px; gap: 16px; }
}
@media (max-width: 600px) {
  .v2-co-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   推广合作仪表盘 (.v2-af2-*)
═══════════════════════════════════════════════ */

/* legacy .v2-af-* rules removed — replaced by .v2-af2-* below */

.v2-af-page {
  position: relative;
  min-height: 100vh;
  background: var(--v2-bg);
  overflow: hidden;
}

/* Glow blobs */
.v2-af-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(160px);
}
.v2-af-glow--blue-l {
  width: 700px; height: 600px;
  top: -200px; left: -100px;
  background: rgba(0, 106, 255, 0.13);
}
.v2-af-glow--magenta {
  width: 900px; height: 480px;
  top: -60px; left: 30%;
  background: rgba(145, 20, 94, 0.35);
}
.v2-af-glow--blue-r {
  width: 700px; height: 680px;
  top: -120px; right: -100px;
  background: rgba(0, 86, 215, 0.38);
}
.v2-af-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--v2-bg));
  pointer-events: none;
}

/* Hero */
.v2-af-hero {
  position: relative;
  text-align: center;
  padding: 100px 24px 48px;
}
.v2-af-hero-title {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin: 0 0 16px;
  line-height: 1.2;
}
.v2-af-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* 4 Feature cards */
.v2-af-cards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.v2-af-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #202127;
  border: 1px solid #793DE5;
  border-radius: 20px;
  padding: 24px 36px 24px 24px;
  backdrop-filter: blur(10px);
}
.v2-af-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-af-card-text {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

/* CTA */
.v2-af-cta-wrap {
  position: relative;
  text-align: center;
  margin: 44px 0 0;
}
.v2-af-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: #8b5cf6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(139,92,246,0.5);
  transition: background 0.2s, box-shadow 0.2s;
}
.v2-af-cta-btn:hover {
  background: #7c3aed;
  box-shadow: 0 0 32px rgba(139,92,246,0.7);
}

/* Stats row */
.v2-af-stats {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 56px auto 0;
  max-width: 700px;
}
.v2-af-stat {
  flex: 1;
  text-align: center;
}
.v2-af-stat-num {
  font-size: 40px;
  font-weight: 700;
  color: #a78bfa;
  line-height: 1;
  margin-bottom: 8px;
}
.v2-af-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.v2-af-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
}

/* Referral code section */
.v2-af-code-section {
  position: relative;
  max-width: 760px;
  margin: 56px auto 80px;
  padding: 0 24px;
}
.v2-af-code-card {
  background: #202127;
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 20px;
  padding: 32px 36px;
}
.v2-af-code-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.v2-af-code-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.v2-af-code-label {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  width: 72px;
}
.v2-af-code-val {
  font-size: 20px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 2px;
}
.v2-af-link-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.v2-af-link-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.v2-af-copy-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #8b5cf6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.v2-af-copy-btn:hover { background: #7c3aed; }
.v2-af-code-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}
.v2-af-account-link {
  color: #a78bfa;
  text-decoration: none;
}
.v2-af-account-link:hover { text-decoration: underline; }
.v2-af-login-tip {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}
.v2-af-login-btn {
  padding: 10px 24px;
  background: #8b5cf6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Toast */
.v2-af-toast {
  position: fixed;
  bottom: 40px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(30,30,40,0.95);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  pointer-events: none;
}
.v2-af-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 页面 ── */
.v2-af2-page {
  min-height: 100vh;
  background: var(--v2-bg);
  padding: 40px 40px 80px;
}
.v2-af2-title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px;
}
.v2-af2-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 16px;
}

/* ── 双列顶部卡片 ── */
.v2-af2-top-cards {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 16px;
}
.v2-af2-card {
  position: relative;
  border-radius: 32px;
  padding: 32px 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: 200px;
}
.v2-af2-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #271f34 0%, #010103 50%, #3f3360 100%);
  border-radius: 32px;
}
.v2-af2-card-glow {
  position: absolute;
  width: 400px; height: 300px;
  bottom: -80px; right: -60px;
  background: rgba(139,92,246,0.35);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.v2-af2-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-af2-card-label {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.v2-af2-balance-val {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.v2-af2-balance-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.v2-af2-min-tip { font-size: 12px; color: rgba(255,255,255,0.45); }

.v2-af2-card-btn {
  position: absolute;
  right: 28px;
  top: 32px;
  z-index: 2;
  padding: 10px 24px;
  height: 44px;
  background: #8b5cf6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.v2-af2-card-btn:hover { background: #7c3aed; }

.v2-af2-invite-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.v2-af2-invite-label { font-size: 15px; color: rgba(255,255,255,0.7); }
.v2-af2-invite-code {
  font-size: 22px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 3px;
}
.v2-af2-invite-link-label {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}
.v2-af2-promo-box {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  max-width: 700px;
  word-break: break-all;
  cursor: text;
  user-select: all;
}

/* ── 统计卡片行 ── */
.v2-af2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.v2-af2-stat {
  background: #202127;
  border-radius: 32px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.v2-af2-stat-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v2-af2-stat-val {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.v2-af2-stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

/* ── 返现记录表 ── */
.v2-af2-table-wrap {
  background: #202127;
  border-radius: 6px;
  overflow: hidden;
}
.v2-af2-thead {
  display: flex;
  align-items: center;
  height: 60px;
  background: #2b273c;
  padding: 0 24px;
}
.v2-af2-th {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.v2-af2-row {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.v2-af2-row:hover { background: rgba(255,255,255,0.03); }
.v2-af2-td { font-size: 14px; color: #fff; }

/* Column widths */
.v2-af2-col--user   { flex: 1; }
.v2-af2-col--id     { width: 160px; flex-shrink: 0; }
.v2-af2-col--status { width: 120px; flex-shrink: 0; display: flex; align-items: center; }
.v2-af2-col--amount { width: 180px; flex-shrink: 0; }
.v2-af2-col--time   { width: 200px; flex-shrink: 0; color: rgba(255,255,255,0.6); }

/* Status badges */
.v2-af2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.v2-af2-badge--ok   { background: rgba(203,248,98,0.15); color: #cbf862; }
.v2-af2-badge--wait { background: rgba(249,168,38,0.15); color: #f9a826; }
.v2-af2-badge--fail { background: rgba(246,92,94,0.15);  color: #f65c5e; }

/* Empty / loading */
.v2-af2-loading,
.v2-af2-empty {
  text-align: center;
  padding: 60px 0;
  color: rgba(255,255,255,0.35);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.v2-af2-btn-login {
  padding: 10px 24px;
  background: #8b5cf6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ── 提现弹窗 ── */
.v2-af2-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.v2-af2-overlay.active { display: flex; }
.v2-af2-modal {
  position: relative;
  background: #202127;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.v2-af2-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-af2-modal-close span {
  position: absolute;
  width: 14px; height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
}
.v2-af2-modal-close span:first-child { transform: rotate(45deg); }
.v2-af2-modal-close span:last-child  { transform: rotate(-45deg); }
.v2-af2-modal-close:hover span { background: #fff; }
.v2-af2-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.v2-af2-modal-body { display: flex; flex-direction: column; gap: 16px; }
.v2-af2-field { display: flex; flex-direction: column; gap: 6px; }
.v2-af2-field-label { font-size: 13px; color: rgba(255,255,255,0.55); }
.v2-af2-field-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.v2-af2-field-input:focus { border-color: #8b5cf6; }
.v2-af2-field-hint { font-size: 12px; color: rgba(255,255,255,0.4); }
.v2-af2-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.v2-af2-btn-cancel {
  padding: 10px 20px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
}
.v2-af2-btn-submit {
  padding: 10px 24px;
  background: #8b5cf6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.v2-af2-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Toast */
.v2-af2-toast {
  position: fixed;
  bottom: 40px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(30,30,40,0.95);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  pointer-events: none;
}
.v2-af2-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 1100px) {
  .v2-af2-top-cards { grid-template-columns: 1fr; }
  .v2-af2-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .v2-af2-page { padding: 24px 16px 60px; }
  .v2-af2-stats { grid-template-columns: 1fr 1fr; }
  .v2-af2-col--time { display: none; }
}
@media (max-width: 480px) {
  .v2-af2-stats { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   历史记录页 (.v2-hist-*)
═══════════════════════════════════════════════ */

.v2-hist-page {
  min-height: 100vh;
  background: var(--v2-bg);
  padding: 36px 32px 80px;
}

/* Header */
.v2-hist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.v2-hist-title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.v2-hist-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.v2-hist-storage-label {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Toolbar */
.v2-hist-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.v2-hist-search-wrap {
  display: flex;
  align-items: center;
  background: #202127;
  border-radius: 6px;
  overflow: hidden;
  width: 260px;
}
.v2-hist-search-input {
  flex: 1;
  background: none;
  border: none;
  padding: 0 12px;
  height: 36px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.v2-hist-search-input::placeholder { color: #999; }
.v2-hist-search-btn {
  width: 50px; height: 36px;
  background: #8b5cf6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.v2-hist-search-btn:hover { background: #7c3aed; }
.v2-hist-manage-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  background: #202127;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.v2-hist-manage-btn:hover,
.v2-hist-manage-btn.active { background: rgba(139,92,246,0.25); color: #a78bfa; }

/* Grid */
.v2-hist-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Card */
.v2-hist-card {
  background: #202127;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.v2-hist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* Preview area — tall, image/video fills it */
.v2-hist-card-preview {
  position: relative;
  height: 360px;
  background: #010103;
  overflow: hidden;
  flex-shrink: 0;
}
.v2-hist-card-preview img,
.v2-hist-card-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-hist-card-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}

/* Status badge */
.v2-hist-status {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}
.v2-hist-s--wait { background: rgba(234,179,8,0.8); }
.v2-hist-s--run  { background: rgba(249,115,22,0.8); }
.v2-hist-s--done { background: rgba(34,197,94,0.5); }
.v2-hist-s--fail { background: rgba(239,68,68,0.8); }

/* App badge */
.v2-hist-app-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  padding: 3px 8px;
  background: rgba(139,92,246,0.8);
  border-radius: 4px;
  font-size: 11px;
  color: #fff;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Delete button (manage mode) */
.v2-hist-card-del {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  background: rgba(239,68,68,0.85);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Card body */
.v2-hist-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.v2-hist-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-hist-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.v2-hist-card-date   { font-size: 12px; color: rgba(255,255,255,0.45); }
.v2-hist-card-expiry { font-size: 12px; color: rgba(255,255,255,0.35); }

/* Loading / Empty */
.v2-hist-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: rgba(255,255,255,0.35);
  font-size: 15px;
}
.v2-hist-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: rgba(255,255,255,0.4);
  font-size: 15px;
}
.v2-hist-empty-icon { font-size: 48px; margin-bottom: 16px; }

/* Pagination */
.v2-hist-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.v2-hist-page-btn {
  padding: 8px 20px;
  background: #202127;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.v2-hist-page-btn:hover:not(:disabled) {
  background: rgba(139,92,246,0.2);
  border-color: #8b5cf6;
}
.v2-hist-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.v2-hist-page-info { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ── 预览弹窗 ── */
.v2-hist-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.v2-hist-overlay.active { display: flex; }
.v2-hist-modal {
  position: relative;
  background: #202127;
  border-radius: 20px;
  width: 90%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.v2-hist-modal--wf { max-width: 1000px; }
.v2-hist-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-hist-modal-close span {
  position: absolute;
  width: 14px; height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
}
.v2-hist-modal-close span:first-child  { transform: rotate(45deg); }
.v2-hist-modal-close span:last-child   { transform: rotate(-45deg); }
.v2-hist-modal-close:hover span { background: #fff; }
.v2-hist-modal-media {
  text-align: center;
  background: #010103;
  border-radius: 12px;
  overflow: hidden;
  min-height: 100px;
}
.v2-hist-modal-prompt-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.v2-hist-modal-prompt {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px 16px;
  max-height: 120px;
  overflow-y: auto;
  word-break: break-all;
}
.v2-hist-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.v2-hist-modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}
.v2-hist-modal-btn:hover { opacity: 0.85; }
.v2-hist-modal-btn--copy  { background: #8b5cf6; color: #fff; }
.v2-hist-modal-btn--dl    { background: rgba(255,255,255,0.1); color: #fff; }
.v2-hist-modal-btn--close { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.6); }

/* WF modal */
.v2-hist-modal-wf-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  padding-right: 40px;
}
.v2-hist-modal-wf-content { flex: 1; }
.v2-hist-wf-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.v2-hist-wf-scroll::-webkit-scrollbar { height: 4px; }
.v2-hist-wf-scroll::-webkit-scrollbar-track { background: transparent; }
.v2-hist-wf-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.v2-hist-wf-card {
  flex: 0 0 280px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}
.v2-hist-wf-preview {
  height: 220px;
  background: #010103;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.v2-hist-wf-preview img,
.v2-hist-wf-preview video {
  width: 100%; height: 100%;
  object-fit: contain;
}
.v2-hist-wf-text {
  padding: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  word-break: break-word;
  overflow-y: auto;
  height: 196px;
}
.v2-hist-wf-foot {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v2-hist-wf-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }
.v2-hist-wf-btn {
  padding: 6px 14px;
  background: #8b5cf6;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.v2-hist-wf-btn:hover { background: #7c3aed; }
.v2-hist-wf-zip-btn {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  background: linear-gradient(116deg, #8b5cf6, #6d28d9);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.v2-hist-wf-zip-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Toast */
.v2-hist-toast {
  position: fixed;
  bottom: 40px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(30,30,40,0.95);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  pointer-events: none;
}
.v2-hist-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 1400px) {
  .v2-hist-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .v2-hist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .v2-hist-page { padding: 24px 16px 60px; }
  .v2-hist-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-hist-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
  .v2-hist-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   消费日志页 (.v2-lg-*)
═══════════════════════════════════════════════ */

.v2-lg-page {
  min-height: 100vh;
  background: var(--v2-bg);
  padding: 40px 40px 80px;
}

.v2-lg-title {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 32px;
}

/* ── Stats cards ── */
.v2-lg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.v2-lg-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #010103;
  border-radius: 20px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.v2-lg-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: 20px 0 0 20px;
}
.v2-lg-stat--teal::before   { background: #0098b7; }
.v2-lg-stat--purple::before { background: #8b5cf6; }
.v2-lg-stat--blue::before   { background: #005eec; }

.v2-lg-stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v2-lg-stat-icon--teal   { background: rgba(0,152,183,0.12); }
.v2-lg-stat-icon--purple { background: rgba(139,92,246,0.12); }
.v2-lg-stat-icon--blue   { background: rgba(0,94,236,0.12); }

.v2-lg-stat-body { flex: 1; min-width: 0; }
.v2-lg-stat-value {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.v2-lg-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.v2-lg-stat-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.v2-lg-stat-extra-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.v2-lg-stat-extra-val {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* ── Table ── */
.v2-lg-table-wrap {
  background: #202127;
  border-radius: 6px;
  overflow: hidden;
}

.v2-lg-thead {
  display: flex;
  align-items: center;
  height: 60px;
  background: rgba(43,39,60,0.80);
  padding: 0 24px;
}
.v2-lg-th {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.v2-lg-row {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.v2-lg-row:hover { background: rgba(255,255,255,0.03); }

.v2-lg-td {
  font-size: 14px;
  color: #fff;
}

/* Column widths */
.v2-lg-col--date   { width: 180px; flex-shrink: 0; color: rgba(255,255,255,0.65); }
.v2-lg-col--desc   { flex: 1; padding: 0 24px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.v2-lg-col--pts    { width: 180px; flex-shrink: 0; text-align: right; padding-right: 24px; }
.v2-lg-col--status { width: 100px; flex-shrink: 0; display: flex; justify-content: center; }

.v2-lg-refunded {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* Status badges */
.v2-lg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
  color: #fff;
  font-weight: 400;
}
.v2-lg-badge--wait { background: #2dbeed; }
.v2-lg-badge--done { background: #8b5cf6; }
.v2-lg-badge--fail { background: #f65c5e; }

/* Loading / Empty */
.v2-lg-loading,
.v2-lg-empty {
  text-align: center;
  padding: 60px 0;
  color: rgba(255,255,255,0.35);
  font-size: 15px;
}
.v2-lg-empty-icon { font-size: 40px; margin-bottom: 12px; }

/* Pagination */
.v2-lg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.v2-lg-page-btn {
  padding: 8px 20px;
  background: #202127;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.v2-lg-page-btn:hover:not(:disabled) {
  background: rgba(139,92,246,0.2);
  border-color: #8b5cf6;
}
.v2-lg-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.v2-lg-page-info { font-size: 14px; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 1100px) {
  .v2-lg-stats { grid-template-columns: 1fr 1fr; }
  .v2-lg-col--desc { -webkit-line-clamp: 1; }
}
@media (max-width: 800px) {
  .v2-lg-page  { padding: 24px 16px 60px; }
  .v2-lg-stats { grid-template-columns: 1fr; }
  .v2-lg-col--date { width: 130px; font-size: 12px; }
  .v2-lg-col--pts  { width: 120px; padding-right: 12px; }
}
@media (max-width: 600px) {
  .v2-lg-thead, .v2-lg-row { padding: 0 12px; }
  .v2-lg-col--pts { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   V2 Workflow Detail (工作流详情 — Figma 还原)
   左输入面板 460 / 中预览卡 480x640 / 右抽屉 40↔340
   ═══════════════════════════════════════════════════════════════ */

.v2-wfd-page {
  background: var(--v2-bg);
  min-height: calc(100vh - var(--v2-nav-h) - var(--v2-notice-h));
  padding: 24px 0 60px 32px; /* 右侧由 rail/drawer 自身贴边 */
  position: relative;
}

/* 三栏 shell — 抽屉折叠/展开切换 */
.v2-wfd-shell {
  display: grid;
  grid-template-columns: 345px 1fr 40px;
  column-gap: 24px;
  align-items: flex-start;
  transition: grid-template-columns 0.28s ease;
}
.v2-wfd-shell.drawer-open {
  grid-template-columns: 345px 1fr 340px;
}

/* ── 左侧 ───────────────────────────────────────────── */
.v2-wfd-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.v2-wfd-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--v2-panel);
  border-radius: var(--v2-radius-sm);
  color: var(--v2-white);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--v2-transition);
}
.v2-wfd-back:hover { background: var(--v2-gray-4); }

.v2-wfd-panel {
  background: var(--v2-panel);
  border-radius: var(--v2-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.v2-wfd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 8px;
  background: var(--v2-input-bg);
}
.v2-wfd-head-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--v2-white);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.v2-wfd-head-fav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--v2-white);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.v2-wfd-head-fav.active svg path {
  fill: var(--v2-purple);
  stroke: var(--v2-purple);
}

.v2-wfd-subtabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  background: var(--v2-input-bg);
}
.v2-wfd-subtab {
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  background: var(--v2-panel);
  color: var(--v2-white);
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--v2-transition);
}
.v2-wfd-subtab.active {
  background: var(--v2-purple);
}

/* 表单 */
.v2-wfd-form {
  display: flex;
  flex-direction: column;
  background: var(--v2-input-bg);
}

.v2-wfd-field {
  padding: 14px 16px;
  background: var(--v2-input-bg);
  border-top: 1px solid var(--v2-panel);
}

.v2-wfd-field-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.v2-wfd-field-label {
  font-size: 14px;
  color: var(--v2-white);
  font-weight: 500;
}
.v2-wfd-field-label i {
  color: #ff6b6b;
  font-style: normal;
  margin-left: 2px;
}
.v2-wfd-field-hint {
  flex: 1;
  font-size: 12px;
  color: var(--v2-gray-1);
}
.v2-wfd-asset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  background: #111214;
  border: none;
  color: var(--v2-white);
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--v2-transition);
}
.v2-wfd-asset-btn:hover { background: var(--v2-gray-4); }
.v2-wfd-asset-btn svg { stroke: var(--v2-white); }

/* 上传框 — 复用旧 .wf-upload-box id, 但 v2 样式覆盖 */
.v2-wfd-field--media .wf-upload-box,
.v2-wfd-drop {
  width: 104px;
  height: 104px;
  background: var(--v2-bg);
  border: 1px solid transparent;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--v2-transition);
}
.v2-wfd-drop:hover,
.v2-wfd-drop.drag-over {
  border-color: var(--v2-purple);
}
.v2-wfd-drop-icon {
  color: var(--v2-white);
  opacity: 0.85;
}
.v2-wfd-drop-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--v2-bg);
  pointer-events: none;
}
.v2-wfd-drop-preview:empty { background: transparent; }
.v2-wfd-drop-preview img,
.v2-wfd-drop-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2-wfd-drop.has-file .v2-wfd-drop-icon { display: none; }

/* Textarea */
.v2-wfd-textarea {
  width: 100%;
  min-height: 96px;
  background: transparent;
  border: none;
  color: var(--v2-white);
  font-size: 14px;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.v2-wfd-textarea::placeholder { color: var(--v2-gray-1); }

/* 下拉选 (占位) */
.v2-wfd-field--row { display: flex; align-items: center; gap: 12px; }
.v2-wfd-field--row .v2-wfd-field-label { margin-bottom: 0; }
.v2-wfd-select {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  background: var(--v2-panel);
  border-radius: 6px;
  color: var(--v2-gray-1);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.v2-wfd-select svg { color: #d8d8d8; }

/* 生成按钮 */
.v2-wfd-submit {
  margin: 16px 16px 8px;
  height: 60px;
  background: var(--v2-white);
  color: #111;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--v2-transition), color var(--v2-transition);
}
.v2-wfd-submit:hover {
  background: var(--v2-purple);
  color: var(--v2-white);
}
.v2-wfd-submit:disabled {
  background: var(--v2-gray-4);
  color: var(--v2-gray-1);
  cursor: not-allowed;
}
.v2-wfd-submit-plus {
  font-size: 20px;
  line-height: 1;
}

/* 预计时间 */
.v2-wfd-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 16px 18px;
  color: var(--v2-white);
  font-size: 13px;
  background: var(--v2-input-bg);
  position: relative;
}
.v2-wfd-meta::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--v2-purple-deep);
  border-radius: 0 0 var(--v2-radius-lg) var(--v2-radius-lg);
}

/* ── 中央 ───────────────────────────────────────────── */
.v2-wfd-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.v2-wfd-intro {
  background: transparent;
  padding: 8px 4px 4px;
}
.v2-wfd-intro-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--v2-white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.v2-wfd-intro-caret { color: #d8d8d8; }
.v2-wfd-intro-desc {
  font-size: 13px;
  color: var(--v2-gray-3);
  line-height: 1.6;
  max-width: 900px;
}

.v2-wfd-preview {
  position: relative;
  width: 480px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--v2-panel);
  border-radius: var(--v2-radius-lg);
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 有后台教程图时：铺满整个预览区，去掉 480px 限制/内边距/卡片背景 */
.v2-wfd-preview--tutorial {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.v2-wfd-preview--tutorial .v2-wfd-preview-tutorial {
  width: auto;
  max-width: 100%;
  border-radius: var(--v2-radius-lg);
}
/* 高度自适应:整图卡在视口内,不用下拉;宽度自动,左右留白 */
.v2-wfd-preview--tutorial .v2-wfd-preview-tutorial img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 190px);
  margin: 0 auto;
}
.v2-wfd-preview-subtitle {
  font-size: 13px;
  color: var(--v2-gray-2);
  letter-spacing: 0.5px;
}
.v2-wfd-preview-title {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 0%, #d6c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 4px;
  text-align: center;
  line-height: 1.2;
}
.v2-wfd-preview-tag {
  font-size: 13px;
  color: var(--v2-purple-deep);
  margin-top: 6px;
  margin-bottom: 24px;
  text-align: center;
}
.v2-wfd-preview-tutorial {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--v2-bg);
}
.v2-wfd-preview-tutorial img {
  width: 100%;
  height: auto;
  display: block;
}
.v2-wfd-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.v2-wfd-preview-cell {
  aspect-ratio: 226 / 398;
  background: var(--v2-bg);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-wfd-preview-cell img,
.v2-wfd-preview-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v2-wfd-preview-cell--empty {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  padding: 60px 0;
  color: var(--v2-gray-1);
  font-size: 14px;
}
.v2-wfd-preview-placeholder {
  font-size: 36px;
  opacity: 0.4;
}

/* 联系我们悬浮按钮 */
.v2-wfd-contact {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 200;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--v2-purple-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--v2-white);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(121, 61, 229, 0.4);
  transition: transform var(--v2-transition);
}
.v2-wfd-contact:hover { transform: translateY(-2px); }
.v2-wfd-contact svg { margin-bottom: 2px; }

/* ── 右侧:折叠条 (贴 viewport 右边) ──────────────────────────────────── */
.v2-wfd-rail {
  position: sticky;
  top: 100px;
  justify-self: end;
  width: 40px;
  height: 136px;
  background: var(--v2-panel);
  border: none;
  border-radius: 8px 0 0 8px;
  color: var(--v2-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background var(--v2-transition), padding var(--v2-transition);
  font-size: 14px;
  padding: 16px 0;
}
.v2-wfd-rail:hover { background: var(--v2-gray-4); }
.v2-wfd-rail svg { color: var(--v2-white); }
.v2-wfd-rail span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 4px;
  font-weight: 500;
}

.v2-wfd-shell.drawer-open .v2-wfd-rail { display: none; }

/* ── 右侧:抽屉 (贴 viewport 右边) ──────────────────────────────────── */
.v2-wfd-drawer {
  display: none;
  background: var(--v2-panel);
  border-radius: 16px 0 0 16px;
  padding: 18px 16px 18px;
  flex-direction: column;
  /* 贴着导航下方固定，自身限高，内部滚动而非整页滚动 */
  position: sticky;
  top: calc(var(--v2-nav-h) + 16px);
  height: calc(100vh - var(--v2-nav-h) - 32px);
  max-height: calc(100vh - var(--v2-nav-h) - 32px);
}
.v2-wfd-shell.drawer-open .v2-wfd-drawer {
  display: flex;
}

/* 抽屉外侧左边突出的折叠按钮 */
.v2-wfd-drawer-collapse {
  position: absolute;
  left: -36px;
  top: 90px;
  width: 36px;
  height: 40px;
  background: var(--v2-panel);
  border: none;
  border-radius: 8px 0 0 8px;
  color: var(--v2-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--v2-transition);
}
.v2-wfd-drawer-collapse:hover { background: var(--v2-gray-4); }

.v2-wfd-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v2-border);
}
.v2-wfd-drawer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--v2-white);
}
.v2-wfd-drawer-more {
  font-size: 13px;
  color: var(--v2-gray-3);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--v2-transition), background var(--v2-transition);
}
.v2-wfd-drawer-more:hover {
  color: var(--v2-purple);
  background: var(--v2-input-bg);
}

.v2-wfd-drawer-body {
  flex: 1;
  min-height: 0;        /* 允许 flex 子项收缩，overflow 才能生效 */
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.v2-wfd-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-wfd-result {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: var(--v2-bg);
  transition: transform var(--v2-transition);
}
.v2-wfd-result:hover { transform: translateY(-2px); }

.v2-wfd-result-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--v2-input-bg);
  overflow: hidden;
}
.v2-wfd-result-media img,
.v2-wfd-result-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v2-wfd-result-text {
  padding: 12px;
  color: var(--v2-white);
  font-size: 12px;
  line-height: 1.5;
}
.v2-wfd-result-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v2-gray-1);
  font-size: 12px;
}
.v2-wfd-result-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 10px;
  background: rgba(0,0,0,0.6);
  color: var(--v2-white);
}
.v2-wfd-result-badge.completed { background: rgba(34,197,94,0.85); }
.v2-wfd-result-badge.pending { background: rgba(139,92,246,0.85); }
.v2-wfd-result-badge.failed { background: rgba(239,68,68,0.85); }

.v2-wfd-result-meta {
  padding: 8px 4px;
  font-size: 12px;
  color: var(--v2-gray-1);
}

.v2-wfd-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--v2-gray-1);
}
.v2-wfd-empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }

/* 响应式 */
@media (max-width: 1280px) {
  .v2-wfd-page { padding: 16px 20px 60px; }
  .v2-wfd-shell { gap: 16px; }
}
@media (max-width: 960px) {
  .v2-wfd-shell {
    grid-template-columns: 1fr;
  }
  .v2-wfd-shell.drawer-open {
    grid-template-columns: 1fr;
  }
  .v2-wfd-rail { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   V2 Agent 中心 (OpenClaw / Hermes Agent — Figma 还原)
   ═══════════════════════════════════════════════════════════════ */

.v2-agent-page {
  position: relative;
  background: #010103;
  min-height: calc(100vh - var(--v2-nav-h) - var(--v2-notice-h));
  overflow: hidden;
  padding: 0;
}

/* 背景:宇宙渐变 (bg_full.png) */
.v2-agent-bg-cosmic {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 35% 30%, rgba(50,32,162,0.55) 0%, transparent 60%),
              radial-gradient(ellipse 60% 55% at 75% 45%, rgba(139,92,246,0.45) 0%, transparent 60%),
              radial-gradient(ellipse 80% 50% at 50% 70%, rgba(67,17,164,0.35) 0%, transparent 70%),
              #010103;
  pointer-events: none;
  z-index: 0;
}

/* 底部 arc 弧光 (bg_band.png) */
.v2-agent-bg-arc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 357px;
  background: url('/static/v2/agent/bg_band.png') center bottom / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.v2-agent-shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── 两个 hero 插图并排 ─────────────────────────── */
.v2-agent-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  min-height: 600px;
}

.v2-agent-hero-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-agent-hero-item img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(89,103,255,0.25));
}

/* ── 两张卡片(标题+副标题+按钮) ─────────────────── */
.v2-agent-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  justify-items: center;
}

.v2-agent-card {
  width: 100%;
  max-width: 554px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.v2-agent-card-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--v2-white);
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(139,92,246,0.4);
  margin: 0;
}

.v2-agent-emoji {
  display: inline-block;
  margin-left: 6px;
}

.v2-agent-card-desc {
  font-size: 16px;
  color: var(--v2-white);
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.v2-agent-card-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.v2-agent-btn {
  position: relative;
  width: 220px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--v2-transition), box-shadow var(--v2-transition), background var(--v2-transition);
}

.v2-agent-btn--primary {
  background: linear-gradient(135deg, #fff 0%, #f0eaff 100%);
  color: #1a0b3a;
  box-shadow: 0 0 28px rgba(139,92,246,0.55), 0 6px 20px rgba(139,92,246,0.35);
}
.v2-agent-btn--primary::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 135px;
  height: 52px;
  background: var(--v2-purple);
  border-radius: 26px;
  transform: translate(-50%, -50%);
  filter: blur(20px);
  opacity: 0.7;
  z-index: -1;
}
.v2-agent-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(139,92,246,0.7), 0 10px 24px rgba(139,92,246,0.5);
}
.v2-agent-btn--primary svg { color: #1a0b3a; }

.v2-agent-btn--ghost {
  background: var(--v2-panel);
  color: var(--v2-white);
}
.v2-agent-btn--ghost:hover {
  background: var(--v2-gray-4);
}

/* ── 响应式 ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .v2-agent-card-title { font-size: 44px; }
  .v2-agent-hero-item img { max-height: 460px; }
  .v2-agent-shell { padding: 24px 24px 60px; gap: 20px; }
}
@media (max-width: 760px) {
  .v2-agent-hero,
  .v2-agent-cards {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .v2-agent-hero { min-height: auto; }
  .v2-agent-hero-item img { max-height: 360px; }
  .v2-agent-card-title { font-size: 36px; }
}

/* ============================================================
   个人中心 - 品牌管理 (v2/brand.html)
   ============================================================ */
.v2-pc-page {
  min-height: 100vh;
  background: var(--v2-bg);
  padding: 32px 40px 80px;
}
.v2-pc-shell {
  display: flex;
  gap: 0;
  max-width: 1640px;
  margin: 0 auto;
  background: #0b0b0e;
  border: 1px solid var(--v2-border);
  border-radius: 22px;
  overflow: hidden;
  min-height: 1080px;
}

/* 左侧导航 */
.v2-pc-sidebar {
  flex: 0 0 280px;
  padding: 28px 20px;
  border-right: 1px solid var(--v2-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v2-pc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--v2-gray-3);
  font-size: 15px;
  text-decoration: none;
  transition: background var(--v2-transition), color var(--v2-transition);
}
.v2-pc-nav-item svg { width: 20px; height: 20px; flex: 0 0 20px; }
.v2-pc-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--v2-white); }
.v2-pc-nav-item.is-active {
  background: linear-gradient(135deg, var(--v2-purple) 0%, var(--v2-purple-deep) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(124,92,246,0.35);
}

/* 右侧内容 */
.v2-pc-content {
  flex: 1;
  min-width: 0;
  padding: 36px 40px 48px;
}
.v2-brand-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}
.v2-brand-subtitle {
  font-size: 14px;
  color: var(--v2-gray-1);
  margin-bottom: 28px;
}
.v2-brand-subtitle span { color: var(--v2-gray-3); }

/* 非代理空状态 */
.v2-brand-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--v2-gray-1);
}
.v2-brand-empty-icon { font-size: 56px; margin-bottom: 18px; }
.v2-brand-empty-title { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.v2-brand-empty-desc { font-size: 14px; line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* 品牌设置卡片 */
.v2-brand-card {
  background: #15151a;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 28px 32px;
  margin-bottom: 22px;
}
.v2-brand-settings {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 40px;
}
.v2-brand-field-label {
  font-size: 14px;
  color: var(--v2-gray-3);
  margin-bottom: 14px;
}
.v2-brand-logo-box {
  width: 229px;
  max-width: 100%;
  height: 40px;
  background: #0a0a0a;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.v2-brand-qr-box {
  width: 90px;
  height: 90px;
  background: #0a0a0a;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.v2-brand-logo-box img,
.v2-brand-qr-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v2-brand-ph { color: var(--v2-gray-2); font-size: 12px; }
.v2-brand-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--v2-gray-3);
  cursor: pointer;
  user-select: none;
}
.v2-brand-file-btn svg { width: 14px; height: 14px; }
.v2-brand-file-btn:hover { color: var(--v2-white); }
.v2-brand-hint {
  font-size: 12px;
  color: var(--v2-gray-2);
  line-height: 1.6;
  margin-top: 10px;
}
.v2-brand-input {
  width: 100%;
  padding: 11px 14px;
  background: #0a0a0a;
  border: 1px solid var(--v2-border-light);
  border-radius: var(--v2-radius-md);
  color: var(--v2-white);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--v2-transition);
}
.v2-brand-input:focus { border-color: var(--v2-purple); }
.v2-brand-input::placeholder { color: var(--v2-gray-2); }

.v2-brand-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.v2-brand-btn {
  padding: 10px 26px;
  border-radius: var(--v2-radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--v2-transition), background var(--v2-transition);
}
.v2-brand-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.v2-brand-btn--ghost {
  background: transparent;
  border: 1px solid var(--v2-border-light);
  color: var(--v2-gray-3);
}
.v2-brand-btn--ghost:hover { background: rgba(255,255,255,0.05); color: #fff; }
.v2-brand-btn--primary {
  background: linear-gradient(135deg, var(--v2-purple) 0%, var(--v2-purple-deep) 100%);
  color: #fff;
}
.v2-brand-btn--primary:hover { opacity: 0.9; }

/* 生成兑换码行 */
.v2-brand-gencode {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.v2-brand-input--sm { width: 190px; }
.v2-brand-unit,
.v2-brand-gen-label { font-size: 14px; color: var(--v2-gray-3); }

/* 区块标题 */
.v2-brand-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.v2-brand-section-title { font-size: 15px; color: var(--v2-gray-3); }
.v2-brand-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--v2-gray-1);
  font-size: 13px;
  cursor: pointer;
  transition: color var(--v2-transition);
}
.v2-brand-refresh svg { width: 15px; height: 15px; }
.v2-brand-refresh:hover { color: var(--v2-purple); }

/* 表格卡片 */
.v2-brand-table-card {
  background: #121216;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.v2-brand-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.v2-brand-table thead tr { background: rgba(255,255,255,0.03); }
.v2-brand-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 400;
  color: var(--v2-gray-1);
  font-size: 13px;
  white-space: nowrap;
}
.v2-brand-table td {
  padding: 16px 20px;
  color: var(--v2-gray-3);
  border-top: 1px solid var(--v2-border);
  vertical-align: middle;
}
.v2-brand-mono { font-family: 'SFMono-Regular', Consolas, monospace; letter-spacing: 1px; color: #fff; font-weight: 600; }
.v2-brand-time { color: var(--v2-gray-1); font-size: 13px; }
.v2-brand-dash { color: var(--v2-gray-2); }
.v2-brand-loading { padding: 40px !important; text-align: center; color: var(--v2-gray-2) !important; }

/* 状态徽章 */
.v2-brand-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--v2-radius-sm);
  font-size: 12px;
  font-weight: 500;
}
.v2-brand-badge--used { background: rgba(45,212,170,0.14); color: #2dd4aa; }
.v2-brand-badge--unused { background: rgba(139,92,246,0.18); color: #b794ff; }

/* 删除按钮 */
.v2-brand-del-btn {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid var(--v2-border-light);
  color: var(--v2-gray-3);
  border-radius: var(--v2-radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--v2-transition), color var(--v2-transition);
}
.v2-brand-del-btn:hover { border-color: #ef4444; color: #ef4444; }

/* 分页 */
.v2-brand-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-top: 1px solid var(--v2-border);
}
.v2-brand-page-btn {
  padding: 8px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--v2-border-light);
  border-radius: var(--v2-radius-md);
  color: var(--v2-gray-3);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--v2-transition);
}
.v2-brand-page-btn:hover:not(:disabled) { background: rgba(255,255,255,0.09); color: #fff; }
.v2-brand-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.v2-brand-page-info { font-size: 13px; color: var(--v2-gray-1); }

@media (max-width: 1200px) {
  .v2-pc-shell { flex-direction: column; min-height: auto; }
  .v2-pc-sidebar {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--v2-border);
  }
  .v2-pc-content { padding: 28px 20px 40px; }
  .v2-brand-settings { grid-template-columns: 1fr; gap: 28px; }
  .v2-brand-gencode { flex-wrap: wrap; }
  .v2-brand-table-card { overflow-x: auto; }
}

/* ============================================================
   个人中心 - 子账号管理资料卡 (v2/account.html)
   ============================================================ */
.v2-acc-card {
  background: #15151a;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  padding: 28px 32px;
  max-width: 600px;
}
.v2-acc-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  min-height: 40px;
}
.v2-acc-row + .v2-acc-row { border-top: 1px solid var(--v2-border); }
.v2-acc-label {
  flex: 0 0 84px;
  font-size: 14px;
  color: var(--v2-gray-1);
}
.v2-acc-value {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: #fff;
}
.v2-acc-value--muted { color: var(--v2-gray-2); }
.v2-acc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v2-purple) 0%, var(--v2-purple-deep) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.v2-acc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--v2-gray-1);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--v2-transition);
}
.v2-acc-action svg { width: 15px; height: 15px; }
.v2-acc-action:hover { color: var(--v2-purple); }
.v2-acc-edit {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.v2-acc-edit .v2-brand-input { flex: 1; }
.v2-acc-save { padding: 9px 18px; white-space: nowrap; }
.v2-acc-footer { margin-top: 22px; }
.v2-acc-logout {
  display: inline-block;
  padding: 10px 26px;
  background: #0a0a0a;
  border: 1px solid var(--v2-border-light);
  border-radius: var(--v2-radius-md);
  color: var(--v2-gray-3);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--v2-transition), color var(--v2-transition);
}
.v2-acc-logout:hover { background: rgba(255,255,255,0.06); color: #fff; }

@media (max-width: 1200px) {
  .v2-acc-card { max-width: 100%; }
  .v2-acc-edit { flex-wrap: wrap; }
}
