/* ============================================================
   科技感前台样式 · ETShow 工业协议工具
   用于登录 / 注册 / 软件中心等前台页面，与官网首页视觉统一
   ============================================================ */

:root {
  --tb-accent: #1e9fe0;
  --tb-accent-deep: #0f7fc0;
  --tb-violet: #6a5cff;
  --tb-bg: #f4f6f9;
  --tb-card: #ffffff;
  --tb-ink: #1a2233;
  --tb-ink2: #4b5563;
  --tb-ink3: #8a94a6;
  --tb-line: #e6eaf0;
  --tb-radius: 18px;
  --tb-shadow: 0 10px 30px rgba(30, 64, 120, 0.08);
  --tb-shadow-hover: 0 18px 44px rgba(30, 64, 120, 0.16);
}

body {
  background-color: var(--tb-bg);
  background-image:
    radial-gradient(1200px 640px at 12% -10%, rgba(30, 159, 224, 0.10), transparent 60%),
    radial-gradient(1100px 560px at 92% -6%, rgba(106, 92, 255, 0.08), transparent 60%),
    linear-gradient(rgba(30, 159, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 159, 224, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed;
  color: var(--tb-ink);
}

/* ---------- 顶部导航 ---------- */
.navbar.navbar-white {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--tb-line) !important;
  box-shadow: 0 2px 16px rgba(30, 64, 120, 0.05);
}
.navbar-brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .3px;
  color: var(--tb-ink) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #1e9fe0, #6a5cff);
  display: inline-grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(30, 159, 224, .4);
}
.brand-logo svg { width: 18px; height: 18px; }
.navbar-nav > li > a { color: var(--tb-ink2) !important; transition: color .15s; }
.navbar-nav > li > a:hover { color: var(--tb-accent) !important; }

/* ---------- 内容容器 ---------- */
main.content { padding-top: 30px; padding-bottom: 40px; min-height: 40vh; }

/* ---------- 页面标题 ---------- */
.tech-head { text-align: center; margin: 26px auto 38px; }
.tech-head .kicker {
  color: var(--tb-accent); font-weight: 700; font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase;
}
.tech-head h1 { font-size: 34px; font-weight: 800; margin: 8px 0 12px; letter-spacing: -.5px; }
.tech-head p { color: var(--tb-ink2); font-size: 15.5px; max-width: 560px; margin: 0 auto; }

/* ---------- 软件卡片网格 ---------- */
.soft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.soft-card {
  background: var(--tb-card); border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius); padding: 30px 26px; box-shadow: var(--tb-shadow);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.soft-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--sc, #1e9fe0); opacity: 0; transition: opacity .2s;
}
.soft-card:hover { transform: translateY(-5px); box-shadow: var(--tb-shadow-hover), 0 0 0 1px rgba(30,159,224,.28); border-color: rgba(30,159,224,.35); }
.soft-card:hover::after { opacity: 1; }
.soft-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.soft-icon {
  width: 60px; height: 60px; border-radius: 14px; flex: none; overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12); background: #fff;
  border: 1px solid var(--tb-line);
}
.soft-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.soft-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 2px; }
.soft-card .en { font-size: 12px; color: var(--tb-ink3); text-transform: uppercase; letter-spacing: 1px; }
.soft-desc { color: var(--tb-ink2); font-size: 14px; margin: 0 0 16px; flex: 1; white-space: pre-line; }
.soft-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.soft-tags .tag {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: #eef2f7; color: var(--tb-ink2); border: 1px solid var(--tb-line);
}
.soft-foot { display: flex; gap: 10px; }
.soft-foot a { flex: 1; text-align: center; font-size: 14px; font-weight: 600; padding: 10px 0; border-radius: 10px; transition: all .16s; }

/* ---------- 按钮 ---------- */
.tech-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; transition: all .18s; }
.tech-btn-primary { background: var(--tb-accent); color: #fff; box-shadow: 0 8px 22px rgba(30,159,224,.28); }
.tech-btn-primary:hover { background: var(--tb-accent-deep); color: #fff; transform: translateY(-2px); }
.tech-btn-ghost { background: #f2f6fa; color: var(--tb-ink); border: 1px solid var(--tb-line); }
.tech-btn-ghost:hover { border-color: var(--tb-accent); color: var(--tb-accent); }

/* ---------- 登录 / 注册卡片 ---------- */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 68vh; padding: 20px 0; }
.auth-card {
  width: 100%; max-width: 430px; background: var(--tb-card);
  border: 1px solid var(--tb-line); border-radius: 22px;
  box-shadow: var(--tb-shadow-hover); padding: 38px 36px 30px;
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%;
  background: linear-gradient(90deg, #1e9fe0, #6a5cff);
}
.auth-brand { text-align: center; margin-bottom: 8px; }
.auth-brand .brand-logo { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; }
.auth-brand .brand-logo svg { width: 30px; height: 30px; }
.auth-brand .t1 { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.auth-brand .t2 { color: var(--tb-ink3); font-size: 13px; margin-top: 3px; }

.auth-tab { display: flex; background: #eef2f7; border-radius: 12px; padding: 4px; margin: 20px 0 22px; }
.auth-tab a {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--tb-ink2); transition: all .15s;
}
.auth-tab a.active { background: #fff; color: var(--tb-accent-deep); box-shadow: 0 2px 8px rgba(30,64,120,.12); }

.auth-card .form-group { margin-bottom: 16px; }
.auth-card .control-label { font-size: 13px; font-weight: 600; color: var(--tb-ink2); margin-bottom: 6px; }
.auth-card .form-control {
  height: 46px; border-radius: 11px; border: 1px solid var(--tb-line);
  box-shadow: none; transition: border-color .15s, box-shadow .15s; font-size: 14.5px;
}
.auth-card .form-control:focus {
  border-color: var(--tb-accent);
  box-shadow: 0 0 0 3px rgba(30, 159, 224, .13);
}
.auth-card .btn-primary.tech-btn-primary { width: 100%; height: 48px; border-radius: 11px; font-size: 15px; font-weight: 700; }
.auth-card .btn-block { width: 100%; border-radius: 11px; height: 46px; font-size: 14px; }
.auth-card .checkbox { font-size: 13px; color: var(--tb-ink2); }
.auth-card .btn-forgot { font-size: 13px; color: var(--tb-accent); }
.auth-card .help-block { font-size: 12px; }

/* ---------- 详情页 ---------- */
.detail-hero {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  background: var(--tb-card); border: 1px solid var(--tb-line);
  border-radius: 22px; padding: 34px; box-shadow: var(--tb-shadow); margin-bottom: 24px;
}
.detail-hero .soft-icon { width: 108px; height: 108px; border-radius: 22px; }
.detail-hero h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.5px; }
.detail-hero .meta { color: var(--tb-ink3); font-size: 13.5px; margin-bottom: 14px; }
.detail-hero .desc { color: var(--tb-ink2); font-size: 15px; max-width: 640px; white-space: pre-line; }
.panel-tech {
  background: var(--tb-card); border: 1px solid var(--tb-line);
  border-radius: 18px; box-shadow: var(--tb-shadow); margin-bottom: 24px; overflow: hidden;
}
.panel-tech .pt-head {
  padding: 18px 26px; border-bottom: 1px solid var(--tb-line);
  font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.panel-tech .pt-head svg { width: 18px; height: 18px; color: var(--tb-accent); }
.panel-tech .pt-body { padding: 24px 26px; }

/* 软件详情富文本内容（详情字段） */
.rich-detail { color: var(--tb-ink2); font-size: 15px; line-height: 1.85; word-break: break-word; }
.rich-detail p { margin: 0 0 14px; }
.rich-detail h2 { font-size: 21px; font-weight: 700; color: var(--tb-ink); margin: 22px 0 12px; }
.rich-detail h3 { font-size: 18px; font-weight: 700; color: var(--tb-ink); margin: 18px 0 10px; }
.rich-detail h4 { font-size: 16px; font-weight: 700; color: var(--tb-ink); margin: 16px 0 8px; }
.rich-detail ul, .rich-detail ol { padding-left: 24px; margin: 0 0 14px; }
.rich-detail li { margin-bottom: 6px; }
.rich-detail blockquote {
  border-left: 3px solid var(--tb-accent); background: #f2f6fa;
  margin: 14px 0; padding: 10px 16px; color: var(--tb-ink2); border-radius: 0 8px 8px 0;
}
.rich-detail a { color: var(--tb-accent); text-decoration: underline; }
.rich-detail a:hover { color: var(--tb-accent-deep); }
.rich-detail img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.ver-item { padding: 18px 0; border-bottom: 1px solid var(--tb-line); }
.ver-item:last-child { border-bottom: none; }
.ver-item .v { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ver-item .v .badge-new {
  background: linear-gradient(120deg, #1e9fe0, #6a5cff); color: #fff;
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
}
.ver-item .log { color: var(--tb-ink2); font-size: 13.5px; margin-top: 8px; white-space: pre-line; }
.ver-item .vt { color: var(--tb-ink3); font-size: 12.5px; margin-top: 8px; }

/* ---------- 详情页 Tab 选项卡 ---------- */
.tech-tabs {
  background: var(--tb-card); border: 1px solid var(--tb-line);
  border-radius: 18px; box-shadow: var(--tb-shadow); overflow: hidden;
}
.tech-tab-nav {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px;
  border-bottom: 1px solid var(--tb-line); background: #f8fafc;
}
.tech-tab-btn {
  position: relative; border: none; background: transparent; cursor: pointer;
  padding: 11px 22px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  color: var(--tb-ink2); transition: all .16s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tech-tab-btn svg { flex: none; }
.tech-tab-btn:hover { color: var(--tb-accent-deep); background: #eef4fa; }
.tech-tab-btn.active {
  background: linear-gradient(120deg, #1e9fe0, #6a5cff); color: #fff;
  box-shadow: 0 6px 16px rgba(30, 159, 224, .28);
}
.tech-tab-btn .cnt {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(0, 0, 0, .08); font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.tech-tab-btn.active .cnt { background: rgba(255, 255, 255, .24); }
.tech-tab-pane { display: none; padding: 26px; }
.tech-tab-pane.active { display: block; animation: tabFade .22s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 分页 ---------- */
.pagination > li > a, .pagination > li > span { color: var(--tb-accent-deep); border-radius: 8px !important; border: 1px solid var(--tb-line); margin: 0 3px; }
.pagination > .active > a, .pagination > .active > span { background: var(--tb-accent); border-color: var(--tb-accent); }
.pagination > li > a:hover { color: var(--tb-accent-deep); }

/* ---------- 页脚 ---------- */
.footer { background: #0f1626 !important; color: #9aa4b8 !important; padding: 22px 0 20px !important; margin-top: 40px; }
.footer .copyright {
  color: #9aa4b8 !important; font-size: 13px;
  background: transparent !important; line-height: 1.8; margin: 0;
}
.footer a { color: #9aa4b8 !important; }
.footer a:hover { color: #fff !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .soft-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .soft-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
  .tech-head h1 { font-size: 26px; }
}

/* ============================================================
   用户中心（会员中心）专属样式
   ============================================================ */

/* ---------- 侧边导航卡片化 ---------- */
.sidenav {
  background: var(--tb-card); border: 1px solid var(--tb-line);
  border-radius: 16px; box-shadow: var(--tb-shadow); overflow: hidden;
  margin-bottom: 20px;
}
.sidenav .list-group { margin-bottom: 0; }
.sidenav .list-group-heading {
  background: linear-gradient(120deg, #1e9fe0, #6a5cff) !important;
  color: #fff !important;
  font-weight: 700; font-size: 15px; padding: 15px 20px;
  border: none; margin: 0 0 4px !important; letter-spacing: .5px;
}
.sidenav .list-group-item { border: none; border-radius: 0; padding: 0; background: transparent; }
.sidenav .list-group-item a {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 20px; color: var(--tb-ink2); font-size: 14.5px; font-weight: 500;
  transition: all .15s; border-left: 3px solid transparent;
}
.sidenav .list-group-item a i { width: 18px; text-align: center; }
.sidenav .list-group-item a:hover { background: #f2f6fa; color: var(--tb-accent-deep); }
.sidenav .list-group-item.active a {
  background: #eaf6fd; color: var(--tb-accent-deep); font-weight: 700;
  border-left-color: var(--tb-accent);
}
.sidebar-toggle { display: none !important; }

/* ---------- 用户中心卡片 ---------- */
.uc-card {
  background: var(--tb-card); border: 1px solid var(--tb-line);
  border-radius: 18px; box-shadow: var(--tb-shadow); margin-bottom: 24px; overflow: hidden;
}
.uc-hero {
  display: flex; align-items: center; gap: 22px; padding: 30px;
  flex-wrap: wrap; position: relative;
}
.uc-hero::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, #1e9fe0, #6a5cff);
}
.uc-avatar {
  width: 88px; height: 88px; border-radius: 22px; overflow: hidden; flex: none;
  box-shadow: 0 12px 26px rgba(30, 64, 120, .22); border: 3px solid #fff;
  background: linear-gradient(135deg, #1e9fe0, #6a5cff);
}
.uc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-main { flex: 1; min-width: 200px; }
.uc-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.uc-name-row h1 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.uc-badge {
  background: linear-gradient(120deg, #1e9fe0, #6a5cff); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px;
}
.uc-bio { color: var(--tb-ink2); font-size: 14px; margin: 8px 0 12px; }
.uc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.uc-tag {
  font-size: 12.5px; color: var(--tb-ink2); background: #eef2f7;
  border: 1px solid var(--tb-line); border-radius: 999px; padding: 4px 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.uc-tag i { color: var(--tb-accent); }
.uc-hero .tech-btn { margin-left: auto; padding: 11px 22px; border-radius: 11px; font-size: 14px; }

/* 卡片标题 */
.uc-card-head {
  padding: 16px 26px; border-bottom: 1px solid var(--tb-line);
  font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--tb-ink);
}
.uc-card-head svg { width: 18px; height: 18px; color: var(--tb-accent); }

/* 账户统计 */
.uc-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0; }
.uc-stat { text-align: center; padding: 24px 10px; position: relative; }
.uc-stat + .uc-stat::before {
  content: ""; position: absolute; left: 0; top: 22%; height: 56%;
  width: 1px; background: var(--tb-line);
}
.uc-stat-ic {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px;
  display: grid; place-items: center; font-size: 18px; font-weight: 700; color: #fff;
}
.ic-blue { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.ic-violet { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.ic-green { background: linear-gradient(135deg, #34d399, #059669); }
.ic-orange { background: linear-gradient(135deg, #fbbf24, #d97706); }
.uc-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--tb-ink); }
.uc-stat b a { color: var(--tb-ink); }
.uc-stat b a:hover { color: var(--tb-accent-deep); text-decoration: none; }
.uc-stat span { font-size: 12.5px; color: var(--tb-ink3); }

/* 信息行 */
.uc-rows { padding: 4px 26px 12px; }
.uc-row-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px dashed var(--tb-line);
}
.uc-row-item:last-child { border-bottom: none; }
.uc-row-item .lbl { color: var(--tb-ink3); font-size: 14px; }
.uc-row-item .val { color: var(--tb-ink); font-size: 14px; font-weight: 600; }

/* 用户中心响应式 */
@media (max-width: 768px) {
  .uc-hero { padding: 24px 20px; justify-content: center; text-align: center; }
  .uc-hero .tech-btn { margin-left: 0; }
  .uc-name-row { justify-content: center; }
  .uc-tags { justify-content: center; }
}
@media (max-width: 640px) {
  .uc-stats { grid-template-columns: repeat(2, 1fr); }
  .uc-stat:nth-child(3)::before { display: none; }
}

/* ---------- 用户中心表单（个人资料 / 修改密码） ---------- */
.uc-form-body { padding: 24px 30px 30px; }
.uc-avatar-row { text-align: center; margin: 4px 0 26px; }
.uc-form .form-group { margin-bottom: 22px; }
.uc-form .control-label { font-size: 13.5px; font-weight: 600; color: var(--tb-ink2); padding-top: 8px; }
.uc-form .form-control {
  height: 44px; border-radius: 10px; border: 1px solid var(--tb-line);
  box-shadow: none; font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.uc-form .form-control:focus { border-color: var(--tb-accent); box-shadow: 0 0 0 3px rgba(30, 159, 224, .13); }
.uc-form .form-control[disabled] { background: #f4f6f9; color: var(--tb-ink3); }
.uc-form .input-group .btn {
  height: 44px; border-radius: 0 10px 10px 0; border: 1px solid var(--tb-line);
  background: #eef2f7; color: var(--tb-ink2); font-size: 13.5px;
}
.uc-form .input-group .btn:hover { color: var(--tb-accent-deep); }
.uc-form .normal-footer { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--tb-line); }
.uc-form .normal-footer .btn {
  height: 44px; padding: 0 28px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.uc-form .normal-footer .btn-primary {
  background: var(--tb-accent); border-color: var(--tb-accent); box-shadow: 0 6px 16px rgba(30, 159, 224, .25);
}
.uc-form .normal-footer .btn-primary:hover { background: var(--tb-accent-deep); border-color: var(--tb-accent-deep); }
.uc-form .normal-footer .btn-default { border: 1px solid var(--tb-line); background: #fff; color: var(--tb-ink2); }
.uc-form .normal-footer .btn-default:hover { border-color: var(--tb-accent); color: var(--tb-accent-deep); }
