/**
 * ACGCloud 会员中心 — 二次元现代感
 * 靛紫-玫瑰夜主题 · 樱花粉强调 · 玻璃卡片 · 分屏登录
 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --acg-header: #1a1528;
  --acg-sidebar: #1a1528;
  --acg-sidebar-hover: #2d2140;
  --acg-sidebar-active: rgba(255, 107, 157, 0.18);
  --acg-primary: #ff6b9d;
  --acg-primary-hover: #ff5088;
  --acg-accent: #7aa2ff;
  --acg-bg: #fff5f8;
  --acg-card: rgba(255, 255, 255, 0.88);
  --acg-border: rgba(255, 107, 157, 0.14);
  --acg-text: #2a2438;
  --acg-muted: #7a7088;
  --acg-success: #34d399;
  --acg-success-bg: rgba(52, 211, 153, 0.12);
  --acg-warning: #fbbf24;
  --acg-danger: #f87171;
  --acg-radius: 16px;
  --acg-shadow: 0 4px 20px rgba(42, 36, 56, 0.08), 0 12px 32px rgba(255, 107, 157, 0.06);
  --acg-sidebar-w: 240px;
  --acg-header-h: 56px;
}

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

body.acg-body,
body.acg-body-login {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--acg-text);
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(255, 182, 210, 0.25), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(163, 196, 255, 0.2), transparent 50%),
    var(--acg-bg) !important;
  -webkit-font-smoothing: antialiased;
}

/* 登录/注册：系统会套 header.tpl，这里隐藏会员中心头尾 */
body.acg-body-login .acg-header,
body.acg-body-login .acg-sidebar,
body.acg-body-login .acg-footer,
body:has(.acg-auth) .acg-header,
body:has(.acg-auth) .acg-sidebar,
body:has(.acg-auth) .acg-footer {
  display: none !important;
}
body.acg-body-login,
body:has(.acg-auth) {
  padding-top: 0 !important;
  padding-left: 0 !important;
}
body.acg-body-login .acg-main,
body:has(.acg-auth) .acg-main {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}

a { color: var(--acg-primary); text-decoration: none; }
a:hover { color: var(--acg-primary-hover); }

/* ========== 登录/注册 分屏 ========== */
.acg-auth {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.acg-auth-side {
  flex: 0 0 40%;
  max-width: 40%;
  min-height: 100vh;
  background: linear-gradient(155deg, #1a0f2e 0%, #2d1a3d 35%, #3d2048 65%, #1e1635 100%);
  color: #fce7f3;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.acg-auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 85%, rgba(255, 107, 157, 0.28), transparent 60%),
    radial-gradient(500px 350px at 85% 15%, rgba(122, 162, 255, 0.22), transparent 55%),
    radial-gradient(300px 200px at 50% 50%, rgba(200, 109, 215, 0.12), transparent 50%);
  pointer-events: none;
}

.acg-auth-side-inner { position: relative; z-index: 1; flex: 1; }

.acg-auth-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
.acg-auth-logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  vertical-align: middle;
}
.acg-auth-brand {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.acg-auth-brand span { color: var(--acg-accent); }

.acg-auth-headline {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 12px;
}

.acg-auth-headline em {
  font-style: normal;
  color: var(--acg-primary);
}

.acg-auth-desc {
  color: #c4b5d0;
  margin-bottom: 28px;
  font-size: 15px;
}

.acg-auth-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.acg-tag {
  display: block;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 107, 157, 0.15);
  border-radius: 12px;
  font-size: 13px;
  color: #e8d5f0;
  transition: background 0.2s, border-color 0.2s;
}

.acg-tag:hover {
  background: rgba(255, 107, 157, 0.15);
  border-color: rgba(255, 107, 157, 0.4);
}

.acg-auth-console-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acg-accent);
  font-weight: 500;
  margin-bottom: 40px;
}

.acg-auth-console-link:hover { color: #a8c4ff; }

.acg-auth-deco {
  margin-top: auto;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(122, 162, 255, 0.12));
  border: 1px dashed rgba(255, 107, 157, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bba;
  font-size: 13px;
}

.acg-auth-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: transparent;
}

.acg-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--acg-card);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: var(--acg-shadow);
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.acg-auth-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
}

.acg-auth-card .sub {
  color: var(--acg-muted);
  margin-bottom: 24px;
  font-size: 13px;
}

.acg-auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--acg-border);
}

.acg-auth-tabs button,
.acg-auth-tabs a {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--acg-muted);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-align: center;
}

.acg-auth-tabs .active {
  color: var(--acg-primary);
  border-bottom-color: var(--acg-primary);
  font-weight: 600;
}

.acg-form-group {
  margin-bottom: 18px;
}

.acg-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--acg-text);
  font-size: 13px;
}

.acg-form-group input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--acg-border);
  border-radius: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.acg-form-group input:focus {
  outline: none;
  border-color: var(--acg-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

.acg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.acg-btn-primary {
  background: linear-gradient(135deg, var(--acg-primary), #ff8fb3);
  color: #fff;
  width: 100%;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.35);
}

.acg-btn-primary:hover {
  background: linear-gradient(135deg, var(--acg-primary-hover), #ff7aa8);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 157, 0.42);
}

.acg-btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--acg-primary);
  border: 1px solid rgba(255, 107, 157, 0.35);
  border-radius: 999px;
}

.acg-btn-outline:hover {
  background: rgba(255, 107, 157, 0.08);
}

.acg-btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.acg-auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
}

.acg-auth-links a { color: var(--acg-muted); }
.acg-auth-links a:hover { color: var(--acg-primary); }

/* 右上角 Toast 提示（账号密码错误等） */
.acg-toast-host {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}
.acg-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(42, 36, 56, 0.16), 0 2px 8px rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.18);
  font-size: 13px;
  line-height: 1.45;
  color: var(--acg-text);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.acg-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.acg-toast-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}
.acg-toast-error .acg-toast-icon { background: #f87171; }
.acg-toast-success .acg-toast-icon { background: #34d399; }
.acg-toast-error { border-color: rgba(248, 113, 113, 0.35); }
.acg-toast-success { border-color: rgba(52, 211, 153, 0.35); }
.acg-toast-text { flex: 1; padding-top: 1px; }
.acg-toast-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--acg-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.acg-toast-close:hover { color: var(--acg-text); }
/* 隐藏系统落到正文里的旧 alert 文本块 */
body.acg-body-login .alert,
body.acg-body-login .alert-danger,
.acg-auth-card .acg-alert,
.acg-auth-card .alert {
  display: none !important;
}
.acg-captcha {
  display: flex;
  gap: 10px;
  align-items: center;
}
.acg-captcha input { flex: 1; }
.acg-captcha img {
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--acg-border);
  background: #fff;
}
.acg-phone-row {
  display: flex;
  gap: 8px;
}
.acg-phone-code {
  max-width: 110px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--acg-border);
  padding: 0 8px;
  background: #fff;
}
.acg-phone-row input { flex: 1; }
.acg-auth-closed {
  color: var(--acg-muted);
  text-align: center;
  padding: 24px 0;
}
.acg-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ========== 顶栏 ========== */
.acg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--acg-header-h);
  background: rgba(26, 21, 40, 0.92);
  backdrop-filter: blur(14px);
  color: #fce7f3;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 107, 157, 0.12);
}

.acg-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-right: 24px;
  white-space: nowrap;
}

.acg-header-logo:hover { color: #fff; opacity: 0.9; }

.acg-logo-img { height: 28px; width: auto; }

.acg-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.acg-header-nav a {
  color: #c4b5d0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.acg-header-nav a:hover {
  color: #fff;
  background: rgba(255, 107, 157, 0.12);
}

.acg-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.acg-header-lang {
  color: #a78bba;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 107, 157, 0.15);
  border-radius: 999px;
  cursor: default;
}

.acg-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.12);
}

.acg-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acg-primary), var(--acg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.acg-header-username {
  color: #e8d5f0;
  font-size: 13px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acg-header-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* 自定义全屏页：隐藏魔方默认侧栏与内边距，避免双栏冲突 */
body:has(.acg-layout) .vertical-menu {
  display: none !important;
}
body:has(.acg-layout) .main-content {
  margin-left: 0 !important;
}
body:has(.acg-layout) .page-content {
  padding: var(--acg-header-h) 0 0 !important;
}
body:has(.acg-layout) .page-content > .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}
/* 非自定义页：给固定顶栏留空 */
body.acg-body .page-content {
  padding-top: calc(var(--acg-header-h) + 16px);
}
/* ========== 布局 ========== */
.acg-layout {
  display: flex;
  min-height: calc(100vh - var(--acg-header-h));
  padding-top: 0;
  margin-left: 0;
}

.acg-sidebar {
  position: fixed;
  top: var(--acg-header-h);
  left: 0;
  bottom: 0;
  width: var(--acg-sidebar-w);
  /* 顶栏已 fixed，主区在 main-content 内时侧栏仍贴顶栏下 */
  background: var(--acg-sidebar);
  color: #e8d5f0;
  overflow-y: auto;
  z-index: 900;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 107, 157, 0.08);
}

.acg-sidebar-quick {
  padding: 16px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-bottom: 1px solid rgba(255, 107, 157, 0.08);
}

.acg-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  color: #c4b5d0;
  font-size: 11px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.acg-quick-link:hover {
  background: var(--acg-sidebar-hover);
  color: #fff;
}

.acg-quick-link .icon {
  font-size: 18px;
  line-height: 1;
}

.acg-sidebar-section {
  padding: 16px 12px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a6b8a;
  font-weight: 600;
}

.acg-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0 8px 16px;
  flex: 1;
}

.acg-sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #c4b5d0;
  font-size: 13px;
  margin-bottom: 2px;
  transition: background 0.2s, color 0.2s;
}

.acg-sidebar-menu li a:hover {
  background: var(--acg-sidebar-hover);
  color: #fff;
}

.acg-sidebar-menu li.active a,
.acg-sidebar-menu li a.active {
  background: var(--acg-sidebar-active);
  color: #ffb8d0;
  font-weight: 500;
  border-left: 3px solid var(--acg-primary);
}

.acg-sidebar-menu .menu-icon {
  width: 18px;
  text-align: center;
  opacity: 0.7;
}

.acg-sidebar-collapse {
  padding: 12px;
  border-top: 1px solid rgba(255, 107, 157, 0.08);
}

.acg-sidebar-collapse button {
  width: 100%;
  padding: 8px;
  background: rgba(255, 107, 157, 0.06);
  border: 1px solid rgba(255, 107, 157, 0.1);
  border-radius: 10px;
  color: #a78bba;
  font-size: 12px;
  cursor: pointer;
}

.acg-sidebar-collapse button:hover {
  background: rgba(255, 107, 157, 0.12);
  color: #e8d5f0;
}

.acg-main {
  flex: 1;
  margin-left: var(--acg-sidebar-w);
  padding: 24px;
  min-width: 0;
}

/* ========== 页面通用 ========== */
.acg-page-title {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--acg-text);
}

.acg-card {
  background: var(--acg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--acg-radius);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--acg-shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.acg-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--acg-text);
}

.acg-grid {
  display: grid;
  gap: 16px;
}

.acg-grid-2 { grid-template-columns: repeat(2, 1fr); }
.acg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.acg-grid-4 { grid-template-columns: repeat(4, 1fr); }

.acg-stat-value {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--acg-text);
  line-height: 1.2;
}

.acg-stat-label {
  font-size: 12px;
  color: var(--acg-muted);
  margin-top: 4px;
}

.acg-stat-card {
  padding: 18px 20px;
}

.acg-stat-card.primary .acg-stat-value { color: var(--acg-primary); }

/* 状态药丸 */
.acg-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.acg-status-active,
.acg-status-Active {
  background: var(--acg-success-bg);
  color: #059669;
}

.acg-status-suspended,
.acg-status-Suspended {
  background: rgba(251, 191, 36, 0.15);
  color: #b45309;
}

.acg-status-terminated,
.acg-status-Terminated {
  background: rgba(248, 113, 113, 0.12);
  color: #dc2626;
}

.acg-status-pending,
.acg-status-Pending {
  background: rgba(122, 162, 255, 0.15);
  color: #4f46e5;
}

/* 管理按钮 */
.acg-btn-manage {
  background: linear-gradient(135deg, var(--acg-primary), #ff8fb3);
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.acg-btn-manage:hover {
  background: linear-gradient(135deg, var(--acg-primary-hover), #ff7aa8);
  color: #fff;
}

/* 通知框 */
.acg-notice {
  background: rgba(255, 107, 157, 0.08);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-left: 4px solid var(--acg-primary);
  border-radius: var(--acg-radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #9d3d6a;
  line-height: 1.6;
}

/* 操作按钮行 */
.acg-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.acg-action-bar .acg-btn {
  height: 34px;
  font-size: 13px;
  font-weight: 500;
}

.acg-action-bar .acg-btn-outline {
  background: rgba(255, 255, 255, 0.9);
}

/* Tabs */
.acg-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--acg-border);
  margin-bottom: 16px;
}

.acg-tabs a,
.acg-tabs button {
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--acg-muted);
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.acg-tabs .active {
  color: var(--acg-primary);
  border-bottom-color: var(--acg-primary);
  font-weight: 600;
}

/* 表格 */
.acg-table-wrap {
  overflow-x: auto;
  background: var(--acg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--acg-radius);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--acg-shadow);
}

.acg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.acg-table th {
  background: rgba(255, 245, 248, 0.8);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--acg-text);
  border-bottom: 1px solid var(--acg-border);
  white-space: nowrap;
}

.acg-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 107, 157, 0.06);
  color: var(--acg-text);
  vertical-align: middle;
}

.acg-table tr:last-child td { border-bottom: none; }

.acg-table tr:hover td { background: rgba(255, 107, 157, 0.04); }

.acg-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--acg-primary);
}

.acg-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--acg-muted);
}

/* ========== 产品详情页 ========== */
.acg-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.acg-detail-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  flex: 1;
  min-width: 200px;
}

.acg-back-link {
  color: var(--acg-muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.acg-back-link:hover { color: var(--acg-primary); }

.acg-power-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acg-power-btns .acg-btn {
  height: 34px;
  font-size: 13px;
}

.acg-detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
}

.acg-contact-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.acg-contact-btns a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--acg-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--acg-text);
}

.acg-contact-btns a:hover {
  border-color: rgba(255, 107, 157, 0.35);
  color: var(--acg-primary);
  background: rgba(255, 107, 157, 0.06);
}

.acg-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acg-info-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 107, 157, 0.06);
  font-size: 13px;
}

.acg-info-list li:last-child { border-bottom: none; }

.acg-info-list .label { color: var(--acg-muted); }
.acg-info-list .value { color: var(--acg-text); font-weight: 500; text-align: right; }

.acg-chart-placeholder {
  min-height: 280px;
  background: linear-gradient(180deg, rgba(255,245,248,0.8) 0%, rgba(255,255,255,0.9) 100%);
  border-radius: 14px;
  border: 1px dashed var(--acg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acg-muted);
  font-size: 13px;
}

/* ========== 用户信息卡片 ========== */
.acg-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.acg-user-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acg-primary), var(--acg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.3);
}

.acg-user-card .info h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.acg-user-card .info p {
  margin: 0;
  color: var(--acg-muted);
  font-size: 13px;
}

/* ========== 覆盖父主题 ========== */
.btn-primary,
.btn.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, var(--acg-primary), #ff8fb3) !important;
  border-color: var(--acg-primary) !important;
  border-radius: 999px !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--acg-primary-hover), #ff7aa8) !important;
}

.card, .panel, .box {
  border-radius: var(--acg-radius) !important;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .acg-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .acg-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .acg-auth-side {
    flex: 0 0 100%;
    max-width: 100%;
    min-height: auto;
    padding: 32px 24px;
  }

  .acg-auth-deco { display: none; }

  .acg-auth-main {
    flex: 0 0 100%;
    padding: 24px 16px 40px;
  }

  .acg-header-toggle { display: block; }

  .acg-header-nav { display: none; }

  .acg-sidebar {
    transform: translateX(-100%);
  }

  .acg-sidebar.open {
    transform: translateX(0);
  }

  .acg-main {
    margin-left: 0;
    padding: 16px;
  }

  .acg-grid-2,
  .acg-grid-3,
  .acg-grid-4 {
    grid-template-columns: 1fr;
  }

  .acg-auth-tags {
    grid-template-columns: 1fr;
  }

  .acg-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .acg-table-wrap { font-size: 12px; }
}

@media (max-width: 480px) {
  .acg-auth-card { padding: 24px 20px; }
  .acg-sidebar-quick { grid-template-columns: 1fr; }
}

/* 侧栏收起状态 */
body.acg-sidebar-collapsed .acg-sidebar {
  width: 64px;
}

body.acg-sidebar-collapsed .acg-sidebar .acg-sidebar-section,
body.acg-sidebar-collapsed .acg-sidebar .acg-quick-link span:not(.icon),
body.acg-sidebar-collapsed .acg-sidebar .acg-sidebar-menu a span:not(.menu-icon) {
  display: none;
}

body.acg-sidebar-collapsed .acg-main {
  margin-left: 64px;
}

body.acg-sidebar-collapsed {
  --acg-sidebar-w: 64px;
}
