/* =====================================================================
 *  user/regsite.php —— 自助开通分站
 *  视觉/结构 1:1 对标 https://123.95fa.cn/ds/user/regsite.php
 *  版本名沿用本站命名：普及版（basic，原 VIP）/ 专业版（pro，原 SVIP）
 *
 *  仅本页引入，类名前缀 pc- / regsite- / ver- / rg- / kt-，
 *  不会影响站点其它页面（html,body 规则只在本独立文档里生效）。
 * ===================================================================== */

/* ================= 基础 / 移动端（默认单栏） ================= */
html, body { background: #eaf2ff; min-height: 100%; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", 微软雅黑, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #58666e;
  -webkit-font-smoothing: antialiased;
}
/* 移动端全屏背景（对标站用固定图片，这里用站点配色渐变，不引外部图床） */
.cmds-bg {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw; height: 100vh; padding: 0; margin: 0; z-index: -1;
  background: linear-gradient(160deg, #e8f1ff 0%, #f4f8ff 46%, #e5eeff 100%);
}
.regsite-wrap {
  max-width: 520px; margin: 0 auto; padding: 10px 12px 0;
  position: relative; min-height: 100vh; display: flex; flex-direction: column; background: #fff;
}
.regsite-brand { display: flex; align-items: center; gap: 12px; padding: 2px 2px 10px; position: relative; }
.regsite-brand .brand-avatar {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 8px 20px -10px rgba(45, 103, 255, .35); flex-shrink: 0;
}
.regsite-brand .brand-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.regsite-brand .brand-text h1 { margin: 0; font-size: 19px; font-weight: 700; color: #111827; line-height: 1.2; }
.regsite-brand .brand-text p { margin: 2px 0 0; font-size: 12px; color: #6b7280; line-height: 1.35; }
.regsite-brand .brand-home {
  position: absolute; right: 2px; top: 10px; display: inline-flex; align-items: center; gap: 4px;
  color: #2d67ff; font-size: 13px; text-decoration: none; font-weight: 500;
}
.regsite-brand .brand-home:hover { color: #1e54ec; }
.regsite-brand .brand-home svg { width: 16px; height: 16px; }

.regsite-card {
  background: #fff; border-radius: 0; box-shadow: none;
  padding: 4px 12px 20px; margin-bottom: 0; flex: 1 1 auto;
}

/* PC 两栏壳 + 居中限宽（移动端隐藏左栏） */
.pc-shell { display: block; }
.pc-aside { display: none; }

/* ================= tabs ================= */
.regsite-card .regsite-tabs {
  display: flex; border-bottom: 1px solid #eef0f5; margin-bottom: 12px; padding: 0; list-style: none;
}
.regsite-card .regsite-tabs li { flex: 1; text-align: center; float: none; margin: 0; }
.regsite-card .regsite-tabs li a {
  display: block; padding: 8px 0 10px; font-size: 14px; color: #6b7280; text-decoration: none;
  position: relative; font-weight: 500; border: 0; background: transparent; border-radius: 0; margin: 0; line-height: 1.4;
}
.regsite-card .regsite-tabs li a:hover,
.regsite-card .regsite-tabs li a:focus { background: transparent; border: 0; color: #2d67ff; }
.regsite-card .regsite-tabs li.active a { color: #2d67ff; font-weight: 600; background: transparent; border: 0; }
.regsite-card .regsite-tabs li.active a:hover,
.regsite-card .regsite-tabs li.active a:focus { color: #2d67ff; background: transparent; border: 0; }
.regsite-card .regsite-tabs li.active a::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 32px; height: 3px; border-radius: 2px; background: #2d67ff;
}
/* 点击 Tab / 版本卡片时去掉移动端系统默认的黑色点击高亮框 */
.regsite-card a,
.regsite-card button,
.regsite-card .ver-item { -webkit-tap-highlight-color: transparent; }
/* 桌面端点击后不显示默认黑色焦点框；键盘操作仍保留蓝色可见焦点 */
.regsite-card .regsite-tabs li a:focus { outline: none; }
.regsite-card .regsite-tabs li a:focus-visible { outline: 2px solid rgba(45, 103, 255, .45); outline-offset: 2px; }

/* ================= 分区标题 ================= */
.regsite-section { margin-bottom: 12px; }
.regsite-section .sec-title {
  display: flex; align-items: center; font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 8px;
}

/* ================= 版本卡 ================= */
/* 移动端窄屏（375/376px）预算：两列并排时每张卡仅约 160px，
   中文版本名「普及版/专业版」(3×13px≈39px) 必须完整一行显示，
   故移动端把单选/图标/间距/字号收紧（桌面端在 ≥992px 媒体查询里恢复对标站尺寸） */
.ver-list { display: flex; flex-direction: row; gap: 8px; }
.ver-item {
  flex: 1; display: flex; align-items: center; gap: 6px; padding: 9px 8px;
  border: 1.5px solid #e5e9f0; border-radius: 11px; cursor: pointer;
  transition: all .2s; background: #fff; position: relative; min-width: 0;
}
.ver-item.active { border-color: #2d67ff; background: #f5f9ff; }
.ver-radio {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d6dbe5; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: #fff; transition: all .2s;
}
.ver-item.active .ver-radio { border-color: #2d67ff; background: #2d67ff; }
.ver-radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0; transition: all .2s; }
.ver-item.active .ver-radio::after { opacity: 1; }
.ver-icon {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: #fff;
}
.ver-icon.basic { background: linear-gradient(135deg, #cfe0ff, #aac9ff); color: #2d67ff; }
.ver-icon.pro { background: linear-gradient(135deg, #ffd2b6, #ffb38b); color: #ff7a3d; }
.ver-icon svg { width: 16px; height: 16px; }
.ver-info { flex: 1; min-width: 0; }
/* 版本名不折行（窄屏被挤断会变成两行，很难看），极端情况走省略号 */
.ver-name { font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver-item .ver-name.basic { color: #2d67ff; }
.ver-item .ver-name.pro { color: #ff7a3d; }
.ver-desc {
  font-size: 11px; color: #6b7280; margin-top: 2px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ver-price { font-size: 13px; font-weight: 700; flex-shrink: 0; margin-left: 2px; }
.ver-price.basic { color: #2d67ff; }
.ver-price.pro { color: #ff7a3d; }
.ver-price small { font-size: 10px; font-weight: 600; margin-right: 1px; }

/* ================= 输入 ================= */
.rg-row { display: flex; gap: 8px; }
.rg-input, .rg-select {
  flex: 1; min-width: 0; height: 40px; line-height: 40px; background: #f5f7fb;
  border: 1px solid transparent; border-radius: 10px; padding: 0 12px; font-size: 13px; color: #111827;
  outline: none; box-sizing: border-box; -webkit-appearance: none; appearance: none; transition: all .15s; width: 100%;
}
.rg-input::placeholder { color: #9ca3af; }
.rg-input:focus, .rg-select:focus { background: #fff; border-color: #2d67ff; box-shadow: 0 0 0 3px rgba(45, 103, 255, .12); }
.rg-input[disabled] { color: #6b7280; cursor: not-allowed; }
.rg-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
}
.rg-preview { margin-top: 4px; font-size: 12px; color: #6b7280; }
.rg-preview b { color: #22c55e; font-weight: 600; word-break: break-all; }
.rg-hint { display: flex; align-items: flex-start; gap: 5px; font-size: 11px; color: #9ca3af; margin-top: 4px; line-height: 1.4; }
.rg-hint svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; }

/* 带前置图标的字段 */
.rg-field { position: relative; margin-bottom: 8px; }
.rg-field .rg-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #9ca3af; pointer-events: none;
}
.rg-field .rg-input { padding-left: 36px; }
.rg-field .rg-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; background: transparent; border: 0;
  color: #9ca3af; cursor: pointer; padding: 0;
}
.rg-field .rg-eye svg { width: 16px; height: 16px; }
.rg-field .rg-input.with-eye { padding-right: 38px; }

/* ================= 开通信息三格 ================= */
.kt-tiles { display: flex; gap: 6px; background: #f6f8fc; border-radius: 12px; padding: 10px 6px; }
.kt-tile { flex: 1; text-align: center; min-width: 0; }
.kt-tile .ico {
  width: 32px; height: 32px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 3px;
}
.kt-tile .ico.b { background: #e8f0ff; color: #2d67ff; }
.kt-tile .ico.g { background: #e6f7ee; color: #22c55e; }
.kt-tile .ico.o { background: #fff1e3; color: #ff7a3d; }
.kt-tile .ico svg { width: 17px; height: 17px; }
.kt-tile .lbl { font-size: 11px; color: #6b7280; font-weight: 500; }
.kt-tile .val { margin-top: 2px; font-size: 12px; font-weight: 700; color: #111827; line-height: 1.25; }
.kt-tile .val.price { color: #ff4d4f; font-size: 14px; }

/* 服务条款勾选（对标站无此项，按合规要求保留） */
.rg-agree {
  display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: #6b7280;
  margin: 10px 2px 0; line-height: 1.5;
}
.rg-agree input { margin: 2px 0 0; flex-shrink: 0; }
.rg-agree a { color: #2d67ff; text-decoration: none; }

/* ================= 提交 / 底部 ================= */
.rg-submit {
  width: 100%; height: 44px; border: 0; border-radius: 11px; background: #2d67ff; color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 3px;
  box-shadow: 0 12px 24px -14px rgba(45, 103, 255, .6); margin-top: 4px; cursor: pointer; transition: background .15s;
}
.rg-submit:hover, .rg-submit:active { background: #1e54ec; }
.rg-bottom { text-align: center; font-size: 13px; color: #6b7280; padding-top: 8px; }
.rg-bottom a { color: #2d67ff; text-decoration: none; font-weight: 500; margin-left: 4px; }

/* 隐藏 kind 选择器但仍可被脚本读取（提交逻辑沿用 assets/js/regsite.js） */
.kind-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ================= 版本区别 / 详细介绍 ================= */
.regsite-card .table-responsive { overflow-x: auto; }
.regsite-card .table { margin-bottom: 6px; }
.regsite-card .table > thead > tr > th { border-bottom: 1px solid #eef0f5; font-size: 13px; color: #111827; }
.regsite-card .table > tbody > tr > td { font-size: 13px; color: #58666e; vertical-align: middle; }
.regsite-card .panel-group { margin-bottom: 0; }
.regsite-card .panel-default {
  border: 0; box-shadow: none; background: transparent; margin-top: 0; border-radius: 10px;
}
.regsite-card .panel-default > .panel-heading {
  background: #f6f8fc; border: 0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
}
.regsite-card .panel-title { font-size: 13px; }
.regsite-card .panel-title > a {
  display: block; color: #111827; text-decoration: none; font-weight: 600;
}
.regsite-card .panel-title > a i { color: #2d67ff; }
.regsite-card .panel-collapse .panel-body { font-size: 13px; line-height: 1.7; color: #6b7280; border-top: 0; }

/* ================= 验证码弹层（与注册页风格统一） ================= */
.layui-layer.rg-captcha-layer { border-radius: 14px !important; box-shadow: 0 18px 50px -10px rgba(15, 23, 42, .25) !important; overflow: hidden; }
.layui-layer.rg-captcha-layer .layui-layer-content { padding: 0 !important; background: #fff !important; }
.rg-captcha-box { padding: 18px; background: #fff; }
.rg-captcha-title { font-size: 15px; font-weight: 600; color: #0f172a; margin-bottom: 12px; text-align: center; }
.rg-captcha-box #captcha { border-radius: 12px; overflow: hidden; background: #f3f5f9; min-height: 46px; }
.rg-captcha-box #captcha .geetest_holder,
.rg-captcha-box #captcha .geetest_panel,
.rg-captcha-box #captcha .geetest_btn,
.rg-captcha-box #captcha .geetest_radar_btn {
  height: 46px !important; line-height: 46px !important; background: #f3f5f9 !important;
  border: none !important; border-radius: 12px !important; box-shadow: none !important;
}
.rg-captcha-box #captcha .geetest_radar_btn { font-size: 14px !important; color: #9ca3af !important; padding-left: 14px !important; }
.rg-captcha-box #captcha .geetest_radar_btn .geetest_radar_tip { color: #9ca3af !important; font-size: 14px !important; }
.rg-captcha-box #captcha_text { padding: 0 14px; font-size: 14px; color: #9ca3af; line-height: 46px; }
.rg-captcha-box #captcha_wait { padding: 0 14px; line-height: 46px; }

/* ================= 桌面端（≥992px）：左栏营销 + 右侧卡片 ================= */
@media (min-width: 992px) {
  html, body { background: linear-gradient(135deg, #e9f1ff 0%, #f5f8ff 50%, #eef4ff 100%); }
  .cmds-bg { display: none; }
  .pc-shell {
    display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px;
    max-width: 1180px; margin: 0 auto; padding: 48px 24px; align-items: start;
  }
  .pc-aside { display: block; padding-top: 8px; }
  .pc-aside .pc-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
  .pc-aside .pc-logo {
    width: 38px; height: 38px; border-radius: 10px; background: #2d67ff;
    display: flex; align-items: center; justify-content: center; color: #fff;
  }
  .pc-aside .pc-logo svg { width: 22px; height: 22px; }
  .pc-aside .pc-brand-name { font-size: 18px; font-weight: 700; color: #111827; }
  .pc-aside .pc-brand-name small { display: block; font-size: 12px; color: #6b7280; font-weight: 400; margin-top: 2px; }
  .pc-aside h2 { margin: 0; font-size: 38px; font-weight: 800; color: #0f172a; line-height: 1.15; letter-spacing: .5px; }
  .pc-aside .pc-sub { margin: 14px 0 18px; font-size: 15px; color: #5b6577; }
  .pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .pc-chips span {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #2d67ff;
    background: #e8f0ff; padding: 5px 10px; border-radius: 20px;
  }
  .pc-illu {
    background: linear-gradient(135deg, #dde9ff, #eaf2ff); border-radius: 20px; padding: 28px; text-align: center;
    margin-bottom: 24px; min-height: 200px; display: flex; align-items: center; justify-content: center; color: #2d67ff;
  }
  .pc-illu svg { width: 80%; max-width: 300px; height: auto; }
  .pc-feats { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .pc-feat {
    display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px;
    padding: 14px 16px; box-shadow: 0 4px 14px -10px rgba(31, 41, 55, .15);
  }
  .pc-feat .pc-feat-ico {
    width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; color: #fff;
  }
  .pc-feat .pc-feat-ico.b { background: linear-gradient(135deg, #4c8dff, #2d67ff); }
  .pc-feat .pc-feat-ico.g { background: linear-gradient(135deg, #34d399, #22c55e); }
  .pc-feat .pc-feat-ico.o { background: linear-gradient(135deg, #fdba74, #f97316); }
  .pc-feat .pc-feat-ico svg { width: 22px; height: 22px; }
  .pc-feat .pc-feat-text { min-width: 0; }
  .pc-feat .pc-feat-text h4 { margin: 0; font-size: 15px; font-weight: 600; color: #0f172a; }
  .pc-feat .pc-feat-text p { margin: 3px 0 0; font-size: 12px; color: #6b7280; line-height: 1.5; }
  .pc-foot { margin-top: 22px; font-size: 12px; color: #94a3b8; }

  /* 桌面端：右侧卡片圆角 + 阴影，隐藏移动端头部 */
  .regsite-wrap { max-width: none; padding: 0; margin: 0; background: transparent; min-height: auto; }
  .regsite-brand { display: none; }
  .regsite-card {
    border-radius: 18px; margin: 0; padding: 18px 22px 20px;
    box-shadow: 0 14px 40px -18px rgba(31, 41, 55, .18); background: #fff;
  }
  .regsite-card .regsite-tabs { margin-bottom: 14px; }
  .regsite-card .regsite-tabs li a { padding: 8px 0 10px; font-size: 14px; }
  .regsite-section { margin-bottom: 12px; }
  .regsite-section .sec-title { font-size: 14px; margin-bottom: 8px; }
  .ver-list { flex-direction: row; gap: 10px; }
  .ver-list .ver-item { flex: 1; padding: 10px 12px; gap: 10px; }
  .ver-list .ver-radio { width: 18px; height: 18px; }
  .ver-list .ver-icon { width: 36px; height: 36px; border-radius: 10px; }
  .ver-list .ver-icon svg { width: 20px; height: 20px; }
  .ver-list .ver-name { font-size: 15px; }
  .ver-list .ver-desc { font-size: 11px; margin-top: 2px; }
  .ver-list .ver-price { font-size: 15px; }
  .ver-list .ver-price small { font-size: 11px; }
  .rg-input, .rg-select { height: 40px; line-height: 40px; font-size: 13px; border-radius: 10px; }
  .rg-field { margin-bottom: 8px; }
  .rg-row { gap: 10px; }
  .rg-preview, .rg-hint { margin-top: 4px; }
  .kt-tiles { padding: 10px 6px; gap: 6px; }
  .kt-tile .ico { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 3px; }
  .kt-tile .ico svg { width: 18px; height: 18px; }
  .kt-tile .lbl { font-size: 12px; }
  .kt-tile .val { font-size: 13px; }
  .kt-tile .val.price { font-size: 15px; }
  .rg-submit { height: 44px; font-size: 15px; letter-spacing: 3px; margin-top: 4px; }
  .rg-bottom { padding-top: 8px; font-size: 13px; }
}
@media (min-width: 1280px) {
  .pc-shell { grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; }
}
