/* ============================================================
   拼好云VPN · 良心云风格主题 v2
   主色：芥末金 #B8860B ｜ 背景：暖奶油 #FAF6EE
   ============================================================ */

:root {
  --gold: #B8860B;
  --gold-dark: #8F6B08;
  --gold-light: #E8D9A8;
  --gold-pale: #F5EDD6;
  --cream: #FAF6EE;
  --cream-dark: #F3EDE0;
  --ink: #3A3428;
  --ink-light: #7A7264;
  --card-shadow: 0 2px 12px rgba(184, 134, 11, 0.08);
  --card-shadow-hover: 0 4px 20px rgba(184, 134, 11, 0.14);
}

/* ---------- 全局 ---------- */
body {
  background-color: var(--cream) !important;
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 顶栏 ---------- */
.ant-layout-header {
  background: #fff !important;
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 1px 4px rgba(184, 134, 11, 0.06);
}

/* ---------- 侧边栏 ---------- */
.ant-layout-sider {
  background: #fff !important;
}
.ant-menu-item-selected {
  background-color: var(--gold-pale) !important;
  color: var(--gold-dark) !important;
  font-weight: 600;
}
.ant-menu-item-selected::after {
  border-right-color: var(--gold) !important;
}
.ant-menu-item:hover {
  color: var(--gold-dark) !important;
}

/* ---------- 卡片 ---------- */
.ant-card {
  border-radius: 12px !important;
  border: 1px solid var(--cream-dark) !important;
  box-shadow: var(--card-shadow);
}
.ant-card:hover {
  box-shadow: var(--card-shadow-hover);
}
.ant-card-head {
  border-bottom: 1px solid var(--cream-dark) !important;
}
.ant-card-head-title {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 主按钮 ---------- */
.ant-btn-primary {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}
.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background-color: var(--gold-dark) !important;
  border-color: var(--gold-dark) !important;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
}

/* ---------- 链接 ---------- */
a {
  color: var(--gold-dark);
}
a:hover {
  color: var(--gold);
}

/* ---------- 输入框 ---------- */
.ant-input,
.ant-input-password,
.ant-select-selector,
.ant-input-number {
  border-radius: 8px !important;
  border-color: var(--cream-dark) !important;
}
.ant-input:focus,
.ant-input-focused,
.ant-input-password:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.15) !important;
}
.ant-checkbox-checked .ant-checkbox-inner {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
}
.ant-switch-checked {
  background-color: var(--gold) !important;
}

/* ---------- 表格 ---------- */
.ant-table-thead > tr > th {
  background: var(--gold-pale) !important;
  color: var(--ink) !important;
  font-weight: 600;
}
.ant-table-tbody > tr:hover > td {
  background: #FDFBF5 !important;
}

/* ---------- 标签/徽章 ---------- */
.ant-tag-gold {
  background: var(--gold-pale) !important;
  border-color: var(--gold-light) !important;
  color: var(--gold-dark) !important;
}
.ant-badge-count {
  background: var(--gold) !important;
}

/* ---------- 进度条 ---------- */
.ant-progress-bg {
  background-color: var(--gold) !important;
}

/* ---------- 分页 ---------- */
.ant-pagination-item-active {
  border-color: var(--gold) !important;
}
.ant-pagination-item-active a {
  color: var(--gold-dark) !important;
}

/* ---------- 登录页：保持简洁，只调背景 ---------- */
body {
  background-color: var(--cream) !important;
}

/* ---------- 公告 ---------- */
.ant-alert-info {
  background: var(--gold-pale) !important;
  border-color: var(--gold-light) !important;
}
.ant-alert-info .ant-alert-message {
  color: var(--gold-dark) !important;
}

/* ---------- 统计数字 ---------- */
.ant-statistic-content-value {
  color: var(--gold-dark) !important;
}

/* ---------- 步骤条 ---------- */
.ant-steps-item-process .ant-steps-item-icon {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}
.ant-steps-item-finish .ant-steps-item-icon {
  border-color: var(--gold) !important;
}
.ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon {
  color: var(--gold) !important;
}
.ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {
  background-color: var(--gold-light) !important;
}

/* ---------- 空状态 ---------- */
.ant-empty-description {
  color: var(--ink-light);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---------- Logo 尺寸约束（防大图撑版） ---------- */
.v2board-logo,
img[class*="logo"],
.login-logo img {
  max-width: 120px !important;
  max-height: 120px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

/* ---------- 登录页隐藏 Logo ---------- */
.v2board-logo {
  display: none !important;
}

/* ---------- 隐藏所有 Logo（管理后台用 .logo 类） ---------- */
.logo {
  display: none !important;
}
