/* 会员系统整体样式文件。 */
:root { /* 定义全局设计变量。 */
  --ink: #1e2428; /* 主文字颜色。 */
  --muted: #66727a; /* 次级文字颜色。 */
  --line: #dce3e6; /* 边框颜色。 */
  --paper: #ffffff; /* 卡片背景颜色。 */
  --mist: #f4f7f6; /* 页面背景颜色。 */
  --accent: #0f766e; /* 主品牌色。 */
  --accent-dark: #115e59; /* 主品牌深色。 */
  --gold: #b7791f; /* 积分和等级强调色。 */
  --danger: #b42318; /* 错误提示颜色。 */
  --ok: #157347; /* 成功提示颜色。 */
  --shadow: 0 18px 45px rgba(30, 36, 40, .10); /* 柔和阴影。 */
} /* 全局变量结束。 */
* { box-sizing: border-box; } /* 所有元素使用 border-box 盒模型。 */
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; color: var(--ink); background-color: var(--mist); background-image: linear-gradient(rgba(248, 251, 250, .86), rgba(244, 247, 246, .86)), url("background.png"); background-repeat: repeat, repeat; } /* 页面基础排版和全局平铺底纹。 */
a { color: var(--accent-dark); text-decoration: none; } /* 链接样式。 */
a:hover { text-decoration: underline; } /* 链接悬停样式。 */
.shell { min-height: 100vh; display: flex; flex-direction: column; } /* 页面外层布局。 */
.topbar { position: relative; display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 18px; padding: 18px clamp(18px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); } /* 顶部栏样式。 */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0; } /* 品牌区域样式。 */
.brand-logo { width: auto; max-width: 140px; height: 42px; object-fit: contain; display: block; } /* 品牌图片样式。 */
.nav { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; } /* 导航区域样式。 */
.nav a { padding: 8px 10px; border-radius: 7px; color: var(--muted); } /* 导航链接样式。 */
.nav a.active { background: #e5f3f1; color: var(--accent-dark); } /* 当前导航链接样式。 */
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; } /* 顶部右侧工具区。 */
.home-link { color: var(--accent-dark); font-weight: 700; white-space: nowrap; } /* 企业主页链接样式。 */
.lang-picker { position: relative; min-width: 146px; } /* 自定义语言选择器。 */
.lang-picker summary { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 10px 34px 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; list-style: none; } /* 当前语言按钮。 */
.lang-picker summary::-webkit-details-marker { display: none; } /* 隐藏默认展开图标。 */
.lang-picker summary::after { content: ""; position: absolute; right: 13px; top: 18px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--muted); } /* 自定义下拉箭头。 */
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); } /* 语言下拉菜单。 */
.lang-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 7px; color: var(--ink); white-space: nowrap; } /* 语言选项。 */
.lang-menu a:hover { background: #e5f3f1; text-decoration: none; } /* 语言选项悬停。 */
.lang-flag { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); overflow: hidden; } /* 圆形国旗基础样式。 */
.flag-fr { background: linear-gradient(90deg, #0055a4 0 33%, #fff 33% 66%, #ef4135 66% 100%); } /* 法国国旗。 */
.flag-zh { background: radial-gradient(circle at 32% 30%, #ffde00 0 9%, transparent 10%), radial-gradient(circle at 48% 18%, #ffde00 0 4%, transparent 5%), radial-gradient(circle at 56% 29%, #ffde00 0 4%, transparent 5%), radial-gradient(circle at 55% 43%, #ffde00 0 4%, transparent 5%), radial-gradient(circle at 46% 54%, #ffde00 0 4%, transparent 5%), #de2910; } /* 中国国旗。 */
.flag-en { background-image: url("flag-uk.png"); background-size: cover; background-position: center; } /* 英国国旗。 */
.page { width: min(1100px, calc(100% - 32px)); margin: 32px auto 56px; flex: 1; } /* 页面内容宽度。 */
.page-login { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 86px); margin-top: 0; margin-bottom: 0; } /* 登录页居中布局。 */
.auth-panel { width: min(540px, 100%); } /* 登录面板宽度。 */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 38px); } /* 主面板样式。 */
.narrow { width: min(540px, calc(100% - 32px)); } /* 窄面板宽度。 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 24px; align-items: start; } /* 双栏布局。 */
.title { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; } /* 页面标题样式。 */
.lead { margin: 0 0 24px; color: var(--muted); line-height: 1.6; } /* 引导文字样式。 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } /* 表单双列网格。 */
.field { display: grid; gap: 7px; } /* 表单字段布局。 */
.field.full { grid-column: 1 / -1; } /* 表单字段跨整行。 */
label { font-weight: 700; font-size: 14px; } /* 表单标签样式。 */
input, select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); } /* 输入控件样式。 */
input:focus, select:focus { outline: 3px solid rgba(15, 118, 110, .18); border-color: var(--accent); } /* 输入控件聚焦样式。 */
.radio-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } /* 单选区域布局。 */
.radio-row label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; } /* 单选标签样式。 */
.radio-row input { width: auto; min-height: auto; } /* 单选输入样式。 */
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 22px; } /* 操作按钮区域。 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; } /* 主按钮样式。 */
.btn:hover { background: var(--accent-dark); text-decoration: none; } /* 主按钮悬停样式。 */
.btn.secondary { background: #fff; color: var(--accent-dark); } /* 次按钮样式。 */
.btn.secondary:hover { background: #e5f3f1; } /* 次按钮悬停样式。 */
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent-dark); } /* 幽灵按钮样式。 */
.btn[disabled] { cursor: not-allowed; opacity: .48; } /* 禁用按钮样式。 */
.flash { margin-bottom: 18px; padding: 12px 14px; border-radius: 7px; border: 1px solid var(--line); background: #fff; } /* 提示消息基础样式。 */
.page-login .flash { width: min(540px, 100%); } /* 登录页提示框宽度。 */
.flash.error { border-color: #f0b5ae; color: var(--danger); background: #fff5f3; } /* 错误提示样式。 */
.flash.success { border-color: #9bd6b8; color: var(--ok); background: #f0fbf5; } /* 成功提示样式。 */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; } /* 数据卡片网格。 */
.stat { position: relative; min-height: 168px; display: grid; grid-template-rows: 1fr auto 48px; align-items: center; justify-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 18px; text-align: center; background: #fff; } /* 数据卡片样式。 */
.stat.has-action { padding-right: 18px; } /* 有按钮的数据卡片仍保持文字居中。 */
.stat-content { grid-row: 2; display: grid; justify-items: center; align-content: center; gap: 8px; max-width: 100%; } /* 数据卡片文字区。 */
.stat-action { grid-row: 3; display: flex; align-items: end; justify-content: center; width: 100%; } /* 数据卡片按钮区。 */
.stat span { display: block; color: var(--muted); font-size: 16px; margin-bottom: 0; } /* 数据卡片标签。 */
.stat strong { display: block; font-size: 24px; color: var(--ink); word-break: break-word; } /* 数据卡片数值。 */
.stat.gold strong { color: var(--gold); } /* 金色强调数值。 */
.mini-btn { position: static; transform: none; display: inline-flex; align-items: center; justify-content: center; min-width: 84px; min-height: 36px; padding: 8px 10px; border: 1px solid var(--accent); border-radius: 7px; background: #fff; color: var(--accent-dark); font-size: 13px; line-height: 1; text-align: center; font-weight: 800; cursor: pointer; } /* 数据卡片内小按钮。 */
.mini-btn:hover { background: #e5f3f1; text-decoration: none; } /* 数据卡片内小按钮悬停样式。 */
.readonly-value { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #eef1f2; color: var(--muted); } /* 只读会员编号显示框。 */
.input-with-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; } /* 带小按钮的输入框布局。 */
.small-toggle { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--accent-dark); font-weight: 700; cursor: pointer; } /* 显示密码小按钮。 */
.small-toggle:hover { background: #e5f3f1; } /* 显示密码小按钮悬停样式。 */
.btn.is-processing, .btn:disabled { background: #9aa5a8; border-color: #9aa5a8; color: #fff; cursor: not-allowed; } /* 处理中和禁用按钮样式。 */
.welcome-subline { display: block; margin: -2px 0 28px; color: var(--muted); font-size: 18px; line-height: 1.35; font-weight: 600; } /* 欢迎语第二行。 */
.days-count { color: var(--gold); font-weight: 900; } /* 欢迎语天数强调颜色。 */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } /* 表格基础样式。 */
.table th, .table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; } /* 表格单元格样式。 */
.table th { background: #eef5f3; font-size: 13px; color: var(--muted); } /* 表头样式。 */
.table tr:last-child td { border-bottom: 0; } /* 表格最后一行无底线。 */
.muted { color: var(--muted); } /* 次级文字工具类。 */
.hidden-box { margin-top: 16px; padding: 16px; border: 1px dashed var(--line); border-radius: 8px; background: #fbfdfc; } /* 隐藏展开区域样式。 */
.footer { padding: 20px 32px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); } /* 页脚样式。 */
@media (max-width: 760px) { /* 移动端样式开始。 */
  .topbar { display: flex; align-items: flex-start; flex-direction: column; } /* 移动端顶部栏纵向排列。 */
  .top-actions { align-items: flex-start; flex-direction: column; margin-left: 0; } /* 移动端顶部工具区纵向排列。 */
  .stat.has-action { padding-right: 18px; padding-bottom: 18px; } /* 移动端按钮卡片保持正常间距。 */
  .mini-btn { transform: none; } /* 移动端卡片按钮保持文字下方。 */
  .split, .form-grid, .cards { grid-template-columns: 1fr; } /* 移动端网格改为单列。 */
  .page { margin-top: 18px; } /* 移动端页面上边距。 */
  .table { display: block; overflow-x: auto; } /* 移动端表格可横向滚动。 */
} /* 移动端样式结束。 */
