/* ============================================================
   薯芯云官网 - 笔记风样式
   字体：霞鹜文楷（LXGW WenKai）做笔记手写感，Lucide 线性图标
   ============================================================ */
@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css');

:root {
  --paper: #f6f1e7;          /* 纸面底色 */
  --paper-card: #fffdf6;     /* 卡片纸 */
  --ink: #2f2a25;            /* 墨色正文 */
  --ink-soft: #6b6358;       /* 浅墨 */
  --line: #e7e0d0;           /* 分隔线 */
  --accent: #2f6f9f;         /* 钢蓝（链接/强调） */
  --marker: #ffe08a;         /* 荧光笔黄 */
  --green: #4b8b6f;          /* 墨绿 */
  --shadow: 0 6px 22px rgba(80, 66, 40, 0.10);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "LXGW WenKai", "霞鹜文楷", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  /* 笔记本横线纹理 */
  background-image: linear-gradient(rgba(120, 100, 60, 0.06) 1px, transparent 1px);
  background-size: 100% 30px;
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; color: var(--ink); }
.brand img { height: 40px; width: 40px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.brand small { font-size: 12px; color: var(--ink-soft); font-weight: 400; letter-spacing: 1px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink); font-size: 15px; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; }

/* ---------- 英雄区 ---------- */
.hero { padding: 70px 0 40px; position: relative; }
.hero h1 { font-size: 46px; line-height: 1.3; margin: 0 0 16px; }
.hero h1 .hl { background: linear-gradient(transparent 60%, var(--marker) 60%); padding: 0 4px; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 680px; }
.hero .cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.tag { background: var(--paper-card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
  padding: 11px 20px; border-radius: 10px; font-size: 15px; font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn-primary { background: var(--ink); color: #fffdf6; border-color: var(--ink); }
.btn-primary:hover { background: #443d34; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #245a82; }

/* ---------- 区块 ---------- */
.section { padding: 54px 0; border-top: 2px dashed var(--line); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.section-head h2 { font-size: 28px; margin: 0; }
.section-head .en { color: var(--ink-soft); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.section-head .more { margin-left: auto; font-size: 14px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(80,66,40,.16); }
.card .ic { width: 44px; height: 44px; border-radius: 10px; background: #fff7e0; color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.card .arrow { position: absolute; right: 18px; top: 18px; color: var(--ink-soft); }

/* 链接卡片（快捷跳转） */
.link-card { display: flex; flex-direction: column; }
.link-card .ic { background: #eaf2f8; }

/* 文章/通知列表 */
.list-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.list-item:last-child { border-bottom: none; }
.list-item .date { flex: 0 0 84px; color: var(--ink-soft); font-size: 13px; padding-top: 3px; }
.list-item .body { flex: 1; }
.list-item h3 { margin: 0 0 4px; font-size: 17px; }
.list-item h3 a { color: var(--ink); }
.list-item p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.badge { display: inline-block; background: #fde3e3; color: #c0392b; font-size: 12px; padding: 1px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.badge-new { background: #e3f3ea; color: var(--green); }

/* 员工 */
.staff-card { text-align: center; }
.staff-card .avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; background: var(--ink); color: #fffdf6; display: grid; place-items: center; font-size: 26px; }
.staff-card .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.staff-card h3 { margin: 0; font-size: 17px; }
.staff-card .role { color: var(--accent); font-size: 13px; margin: 2px 0 8px; }
.staff-card p { color: var(--ink-soft); font-size: 13px; }

/* 赞赏 */
.reward-box { text-align: center; }
.reward-box .qr-note { color: var(--ink-soft); font-size: 14px; }
.amount-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.amount-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 16px; cursor: pointer; font-size: 15px; }
.amount-chip.active { border-color: var(--accent); background: #eaf2f8; color: var(--accent); }
.reward-box input, .reward-box textarea { width: 100%; margin-top: 8px; }

/* 反馈表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; }

/* 页脚 */
.footer { border-top: 2px dashed var(--line); padding: 36px 0; color: var(--ink-soft); font-size: 14px; }
.footer a { color: var(--ink-soft); }

/* 文章/通知详情 */
.detail { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.detail h1 { font-size: 32px; margin: 0 0 10px; }
.detail .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.detail .content { white-space: pre-wrap; line-height: 2; }

/* ---------- AI 悬浮聊天部件 ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; cursor: pointer; box-shadow: var(--shadow);
  display: grid; place-items: center; transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 80; width: 360px; max-width: calc(100vw - 36px); height: 520px; max-height: calc(100vh - 130px);
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 50px rgba(60,48,30,.22);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-head .title { font-weight: 700; }
.chat-head .close { margin-left: auto; cursor: pointer; background: none; border: none; color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.msg.bot { background: #eef3f7; align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-input { display: flex; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; border: none; resize: none; padding: 12px; font-family: inherit; font-size: 14px; height: 52px; outline: none; background: transparent; }
.chat-input button { border: none; background: var(--accent); color: #fff; padding: 0 18px; cursor: pointer; }

/* 提示 */
.toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 200; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }

/* 响应式 */
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============ 进阶动效与组件 ============ */
/* 英雄轮播 */
.hero { padding: 0; }
.hero-carousel { position: relative; height: 480px; overflow: hidden; }
.hero-carousel .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  display: flex; align-items: center; background-size: cover; background-position: center;
}
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide::after { content: ''; position: absolute; inset: 0; background: rgba(20,24,30,.32); }
.slide-inner { position: relative; z-index: 2; color: #fff; max-width: 760px; }
.slide-kicker { display: inline-block; font-size: 13px; letter-spacing: 2px; opacity: .9; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.4); padding: 4px 12px; border-radius: 999px; }
.slide-title { font-size: 46px; line-height: 1.25; margin: 0 0 14px; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.slide-sub { font-size: 19px; opacity: .92; margin: 0 0 22px; }
.btn-light { background: #fff; color: #1f2933; border-color: #fff; }
.btn-light:hover { background: #f0ece2; text-decoration: none; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); }
.carousel-arrow:hover { background: rgba(255,255,255,.34); }
.carousel-arrow.prev { left: 18px; } .carousel-arrow.next { right: 18px; }
.carousel-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.carousel-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; }
.carousel-dots .dot.active { background: #fff; width: 22px; border-radius: 6px; }

/* 轮播粒子动效画布（主题色漂浮粒子，位于背景图/遮罩之上、文字之下） */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* 数据统计 */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: -40px; position: relative; z-index: 5; }
.stat { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-size: 34px; font-weight: 700; color: var(--accent); }
.stat .lbl { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 分类筛选 chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.chip.active { border-color: var(--accent); background: #eaf2f8; color: var(--accent); }

/* 文章卡片元信息 / 详情元信息 */
.card-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-soft); font-size: 12px; align-items: center; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta i { width: 14px; height: 14px; }
.detail .meta { display: flex; gap: 18px; flex-wrap: wrap; }
.detail .meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail .meta i { width: 15px; height: 15px; }

/* 页脚 */
.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* 表单输入（赞赏/复用） */
.field-input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); }

/* 移动端导航 */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper-card); border-bottom: 2px dashed var(--line); padding: 14px 22px; gap: 14px; box-shadow: var(--shadow); }

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .nav-links { display: none; }
  /* 用户栏：移动端改为单行横向滚动，避免多标签换行撑高头部 */
  .nav-userbar { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding: 8px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-userbar::-webkit-scrollbar { display: none; }
  .nav-userbar .pill { flex: 0 0 auto; }
  .nav-userbar span:first-child { flex: 0 0 auto; }
  .stats { grid-template-columns: repeat(2,1fr); margin-top: -20px; }
  .slide-title { font-size: 32px; }
  .hero-carousel { height: 400px; }
}

/* ============ 用户栏（会员/门户顶部信息） ============ */
.nav-userbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 8px 22px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft); background: rgba(255,253,246,.6); }
.nav-userbar span { display: inline-flex; align-items: center; gap: 5px; }
.nav-userbar .pill { background: var(--paper-card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.nav-userbar i { width: 14px; height: 14px; }

/* ============ 会员 / 门户 通用 ============ */
.member-page { padding: 32px 0 60px; min-height: 60vh; }
.page-title { font-size: 26px; display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.page-title i { width: 26px; height: 26px; color: var(--accent); }
.sub-title { font-size: 19px; margin: 30px 0 14px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--ink-soft); font-size: 14px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.stat-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .15s; }
.stat-card:hover { transform: translateY(-3px); }
.stat-num { font-size: 28px; font-weight: 700; color: var(--ink); }
.stat-label { color: var(--ink-soft); font-size: 13px; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; }
.stat-label i { width: 15px; height: 15px; }

.apply-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; padding: 20px 24px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; }
.quick-card:hover { transform: translateY(-4px); text-decoration: none; border-color: var(--accent); }
.quick-card i { width: 30px; height: 30px; color: var(--accent); }

/* 表单通用 */
.form-card { max-width: 720px; padding: 24px; }
.form-group { margin-bottom: 14px; }
.form-group > label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.form-card input, .form-card textarea, .form-card select,
.auth-form input, .auth-form textarea, .auth-form select,
.stack input, .stack textarea, .stack select,
.card form input, .card form select, .card form textarea,
.inline-form input[type=text], .inline-form input[type=email], .inline-form input[type=number], .inline-form select, .inline-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); box-sizing: border-box;
}
.stack label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--ink-soft); }
.stack label.check, .form-group label.check { display: inline-flex; align-items: center; gap: 8px; }
.card hr, .stack hr, .form-card hr { border: none; border-top: 1px dashed var(--line); margin: 16px 0; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-sm:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { border: none; background: none; color: var(--accent); padding-left: 4px; }

/* 提示 / 徽章 */
.alert { padding: 12px 16px; border-radius: 10px; margin: 14px 0; font-size: 14px; }
.alert.ok { background: #eaf5ee; border: 1px solid #bfe3cb; color: #2f6f4a; }
.alert.error { background: #fbeaea; border: 1px solid #f0c4c4; color: #a83737; }
.alert.warn { background: #fdf3e0; border: 1px solid #f0d9a8; color: #956a18; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.badge.ok { background: #eaf5ee; color: #2f6f4a; }
.badge.warn { background: #fdf3e0; color: #956a18; }

/* 表格 */
.table-card { padding: 8px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--ink-soft); font-weight: 600; background: #faf6ec; }
.tbl tbody tr:hover { background: #fcf9f1; }
.tbl .plus { color: var(--green); }
.tbl .minus { color: #a83737; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form.wrap { align-items: flex-end; }
.inline-form label { display: inline-flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.code, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f3ecdd; padding: 1px 6px; border-radius: 6px; }

/* 积分商城 */
.mall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mall-item { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.mall-name { font-size: 17px; font-weight: 600; }
.mall-desc { flex: 1; }
.mall-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mall-cost { color: var(--accent); font-weight: 700; }

/* 签到 */
.checkin-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding: 26px; }
.checkin-streak { font-size: 22px; margin-bottom: 10px; }
.checkin-streak b { color: var(--accent); font-size: 30px; }
.checkin-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-day { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-soft); background: #fff; }
.cal-day.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-day.on i { width: 14px; height: 14px; }

/* 任务 */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.task-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.task-right { display: flex; align-items: center; gap: 14px; }
.task-pts { color: var(--green); font-weight: 700; }
.tag { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--ink-soft); }

/* 合同 */
.contract-card { padding: 20px; margin-bottom: 14px; }
.contract-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.contract-body { white-space: pre-wrap; line-height: 1.8; background: #fcf9f1; border: 1px dashed var(--line); border-radius: 10px; padding: 16px; font-size: 14px; }

/* ============ 登录 / 注册 ============ */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; gap: 16px; }
.auth-brand { font-size: 22px; }
.auth-card { width: 100%; max-width: 400px; padding: 28px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab { flex: 1; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 15px; color: var(--ink-soft); }
.auth-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.auth-tip { font-size: 12px; color: var(--ink-soft); margin-top: 12px; }
.auth-back { font-size: 13px; color: var(--ink-soft); }
.auth-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* 人脸 / 收款码 / 快捷金额 */
.face-box { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; background: #fcf9f1; }
.face-actions { display: flex; gap: 8px; margin: 10px 0; }
.qr-prev { margin-bottom: 8px; }
.qr-prev img { max-width: 140px; border: 1px solid var(--line); border-radius: 8px; }
.quick-amts { display: flex; gap: 8px; margin: 10px 0; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-family: inherit; color: var(--ink); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* 后台导航分隔 */
.admin-nav-sep { font-size: 11px; color: var(--ink-soft); letter-spacing: 1px; padding: 10px 0 2px; opacity: .7; }

@media (max-width: 880px) {
  .stat-row, .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .mall-grid { grid-template-columns: 1fr; }
  .checkin-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-row, .quick-grid { grid-template-columns: 1fr; }
  .nav-userbar { font-size: 12px; padding: 8px 14px; }
}

/* 首页文字区块（插图已移除，保留图文排版） */
.lead-ink { font-size: 17px; color: var(--ink-soft); line-height: 1.85; }
.ink-list { list-style: none; padding: 0; margin: 16px 0; }
.ink-list li { display: flex; gap: 9px; align-items: center; margin: 10px 0; font-size: 15px; }
.ink-list i { width: 19px; height: 19px; color: var(--green); flex: none; }

/* ============================================================
   动效与细节增强
   ============================================================ */

/* 英雄轮播：默认（无图）也能好看——品牌渐变 + 流动极光 + 细网格纹理，文字分层入场 */
.hero-carousel .slide { background-color: #1f2933; }
/* 细网格笔记本纹理（笔记风），全屏叠加 */
.hero-carousel .slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
}
/* 无图（品牌渐变）时叠加流动极光 + 暗化 */
.hero-carousel .slide.no-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(58% 60% at 18% 22%, rgba(75,139,111,.55), transparent 62%),
    radial-gradient(52% 52% at 86% 28%, rgba(47,111,159,.62), transparent 60%),
    radial-gradient(60% 60% at 62% 92%, rgba(255,224,138,.22), transparent 60%);
  animation: heroAurora 16s ease-in-out infinite alternate;
}
@keyframes heroAurora {
  from { transform: scale(1) translateY(0); opacity: .85; }
  to   { transform: scale(1.1) translateY(-14px); opacity: 1; }
}
/* 有自定义图片时：缓慢平移（Ken Burns）+ 渐变暗罩保证文字可读 */
.hero-carousel .slide:not(.no-img)::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(120deg, rgba(15,23,32,.55), rgba(15,23,32,.25) 45%, rgba(15,23,32,.5));
}
.hero-carousel .slide:not(.no-img).active { animation: heroPan 14s ease-out both; }
@keyframes heroPan { from { background-position: 54% 46%; } to { background-position: 50% 50%; } }
.hero-carousel .slide.active .slide-kicker { animation: slideUp .6s .08s both; }
.hero-carousel .slide.active .slide-title { animation: slideUp .6s .18s both; }
.hero-carousel .slide.active .slide-sub   { animation: slideUp .6s .28s both; }
.hero-carousel .slide.active .btn-light   { animation: slideUp .6s .38s both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-carousel .carousel-arrow { opacity: 0; transition: opacity .25s, background .2s; }
.hero-carousel:hover .carousel-arrow { opacity: 1; }

/* 卡片悬浮抬升（网格内） */
.grid .card, .link-card, .article-card, .staff-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.grid .card:hover, .link-card:hover, .article-card:hover, .staff-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(80,66,40,.16); border-color: var(--accent); }

/* 移动端导航出场动画（下拉 + 链接错峰） */
.nav-links.open { animation: navDrop .26s ease; transform-origin: top; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.nav-links.open > a { animation: navItem .3s ease backwards; }
.nav-links.open > a:nth-child(1) { animation-delay: .04s; }
.nav-links.open > a:nth-child(2) { animation-delay: .08s; }
.nav-links.open > a:nth-child(3) { animation-delay: .12s; }
.nav-links.open > a:nth-child(4) { animation-delay: .16s; }
.nav-links.open > a:nth-child(5) { animation-delay: .20s; }
.nav-links.open > a:nth-child(6) { animation-delay: .24s; }
.nav-links.open > a:nth-child(7) { animation-delay: .28s; }
.nav-links.open > a:nth-child(8) { animation-delay: .32s; }
.nav-links.open > a:nth-child(9) { animation-delay: .36s; }
@keyframes navItem { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* AI 聊天状态指示 */
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.8); margin-left: 8px; font-weight: 400; }
.chat-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 0 rgba(110,231,168,.6); }
.chat-status.busy .dot { background: #ffd166; animation: pulse 1s infinite; }
.chat-status.listen .dot { background: #7cc4ff; animation: pulse 1.1s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,209,102,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,209,102,0); } 100% { box-shadow: 0 0 0 0 rgba(255,209,102,0); } }

/* 广告位 */
.ad-strip-sec { padding: 8px 0 0; }
.ad-item { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-card); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.ad-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(80,66,40,.14); }
.ad-item img { display: block; width: 100%; height: auto; }
.ad-code { padding: 16px; }

/* 分页 */
.pager { display: flex; gap: 8px; justify-content: center; margin: 30px 0 10px; flex-wrap: wrap; }
.pager-item { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-soft); font-size: 14px; transition: .15s; }
.pager-item:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager-item.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 通用 pill 状态（代理/员工门户顶栏） */
.pill.ok { background: #eaf5ee; border-color: #bfe3cb; color: #2f6f4a; }
.pill.warn { background: #fdf3e0; border-color: #f0d9a8; color: #956a18; }

/* 申请类型选择卡片 */
.type-select { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; background: #fff; transition: .15s; display: flex; flex-direction: column; gap: 6px; position: relative; }
.type-card:hover { border-color: var(--accent); }
.type-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47,111,159,.15); }
.type-card input { position: absolute; top: 14px; right: 14px; }
.type-card i { color: var(--accent); }
.type-card strong { font-size: 15px; }
.type-card span { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 560px) { .type-select { grid-template-columns: 1fr; } }

/* 人脸核身页 */
.face-banner { display: flex; gap: 12px; align-items: flex-start; }
.face-banner i { flex: 0 0 auto; margin-top: 2px; }
.face-steps { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.face-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.face-step .num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; flex: 0 0 auto; }
.face-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ok-card { background: #eaf5ee; border: 1px solid #bfe3cb; color: #2f6f4a; }

/* 站内信 */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; text-decoration: none; color: var(--ink); }
.msg-item.unread { background: #f3f8fc; border-color: #cfe2f3; }
.msg-item:hover { border-color: var(--accent); }
.msg-item-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.msg-item-sub { font-size: 12px; margin-top: 4px; }
.dot-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.msg-detail .msg-body { white-space: pre-wrap; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 720px) { .msg-layout { grid-template-columns: 1fr; } }

/* 待缴罚款 banner */
.alert.warn.pending-fine { display: flex; gap: 12px; align-items: flex-start; }
.alert.warn.pending-fine i { margin-top: 2px; flex: 0 0 auto; }
.alert.warn.pending-fine .btn { margin-top: 8px; }

/* 门户内联操作表单 */
.inline-op { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-op input, .inline-op select { width: auto; }

/* 注册图形验证码 */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 40px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
#sendCodeBtn { white-space: nowrap; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; margin: 12px 0 30px; }
.contact-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); text-align: center; }
.contact-thumb { width: 160px; height: 160px; margin: 0 auto 10px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.contact-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.contact-qr { width: 160px; height: 160px; margin: 0 auto 10px; display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 6px; }
.contact-title { font-weight: 600; margin-bottom: 4px; }
.contact-link { font-size: 12px; color: var(--ink-soft); word-break: break-all; }

/* ============================================================
   移动端适配（增强） + UI 动效
   ============================================================ */
html { scroll-behavior: smooth; }

/* 输入框聚焦态 */
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,159,.15); outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* 卡片悬浮微动效 */
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.quick-card { transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, color .18s ease; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--accent); text-decoration: none; }
.stat-card { transition: transform .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.97); }

/* 导航下划线动效 */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width .2s ease; }
.nav-links a:hover::after, .nav-links a.on::after { width: 100%; }

/* 待处理徽标呼吸动效 */
.badge.warn { animation: pulse 2.2s infinite; }

/* 卡片入场动效 */
.stat-card, .contract-card, .contact-card { animation: fadeUp .5s ease backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 平板（<=880px） */
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 30px; }
  .hero h1 { font-size: 34px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 23px; }
  .chat-panel { width: min(380px, 92vw); }
}

/* 手机（<=560px） */
@media (max-width: 560px) {
  .container { padding: 0 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 16px; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; justify-content: center; }
  .section { padding: 30px 0; }
  .card, .form-card { padding: 16px 14px; }
  .apply-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .apply-banner .btn { width: 100%; justify-content: center; }
  .auth-wrap { padding: 20px 12px; }
  .auth-card { width: 100%; padding: 22px 16px; }
  .auth-form .btn, .auth-form .btn-accent { width: 100%; justify-content: center; }
  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-row img { width: 100%; height: auto; max-width: 180px; margin: 0 auto; }
  .type-select { grid-template-columns: 1fr; }
  .tbl { font-size: 13px; }
  .tbl td, .tbl th { padding: 8px 10px; white-space: nowrap; }
  .table-card { padding: 4px; -webkit-overflow-scrolling: touch; }
  .row-actions { display: flex; flex-direction: column; gap: 6px; }
  .row-actions .btn { width: 100%; text-align: center; }
  .msg-layout { grid-template-columns: 1fr; }
  .contact-card { padding: 12px; }
  .contact-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sign-pad { height: 160px; }
  .chat-panel { width: 100%; right: 0; bottom: 0; top: auto; max-height: 80vh; border-radius: 14px 14px 0 0; }
  .nav-userbar { font-size: 12px; padding: 8px 14px; }
}

/* 合同 + 电子签署 */
.contract-card { margin-bottom: 18px; }
.contract-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.contract-head strong { font-size: 15px; }
.contract-body { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; line-height: 1.8; font-size: 14px; color: var(--ink); max-height: 420px; overflow: auto; }
.sign-intro { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.sign-area { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.sign-pad { width: 100%; max-width: 600px; height: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; touch-action: none; display: block; }
.sign-actions { display: flex; gap: 10px; margin-top: 10px; }
.sign-box { margin-top: 12px; }
.sign-img { max-width: 240px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; }

/* 移动端底部导航（会员/门户专属移动 UI） */
.mobile-nav { display: none; }
@media (max-width: 760px) {
  body.app-body { padding-bottom: 64px; }
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--paper-card); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(40,30,10,.08);
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 2px; font-size: 11px; color: var(--ink-soft); text-decoration: none;
    border-radius: 10px;
  }
  .mobile-nav a.on { color: var(--accent); }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a.on svg { stroke-width: 2.4; }

  /* 移动端卡片/栅格细化 */
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card .stat-num { font-size: 22px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .quick-card { padding: 14px 6px; font-size: 12px; }
  .quick-card i { width: 22px; height: 22px; }
  .mall-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mall-item { padding: 12px; }
  .checkin-card { flex-direction: column; }
}

/* 协议 / 文档页（用户协议、隐私政策等） */
.doc-page { max-width: 860px; padding: 44px 22px 60px; }
.doc-title { font-size: 28px; margin: 0 0 6px; letter-spacing: .5px; }
.doc-update { color: var(--ink-soft); font-size: 13px; margin: 0 0 22px; }
.doc-body { line-height: 1.9; font-size: 15px; color: var(--ink); }
.doc-body .doc-h { margin: 28px 0 10px; font-weight: 700; line-height: 1.4; }
.doc-body h1.doc-h { font-size: 22px; border-left: 4px solid var(--accent); padding-left: 12px; }
.doc-body h2.doc-h { font-size: 18px; color: var(--accent); }
.doc-body h3.doc-h { font-size: 16px; }
.doc-body p { margin: 0 0 12px; }
.doc-body blockquote {
  margin: 0 0 16px; padding: 10px 16px; background: var(--paper);
  border-left: 3px solid var(--line); color: var(--ink-soft); border-radius: 0 8px 8px 0;
}
.doc-back { margin-top: 34px; }

/* 注册协议同意勾选框 */
.agree-box { margin: 14px 0 4px; }
.agree-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.agree-label input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.agree-label a { color: var(--accent); }
.agree-label a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .doc-page { padding: 30px 16px 50px; }
  .doc-title { font-size: 23px; }
  .doc-body { font-size: 14px; }
}
@media (max-width: 560px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .mall-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav a { font-size: 10px; }
  .mobile-nav a svg { width: 20px; height: 20px; }
}

/* ============ 移动端首页细化 ============ */
@media (max-width: 560px) {
  .hero-carousel { height: 340px; }
  .slide-inner { padding: 0 18px; }
  .slide-kicker { font-size: 12px; padding: 3px 10px; margin-bottom: 10px; }
  .hero-carousel .slide-title { font-size: 24px; line-height: 1.3; margin-bottom: 10px; }
  .slide-sub { font-size: 15px; margin-bottom: 16px; }
  .btn-light { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -24px; }
  .stat { padding: 14px 10px; }
  .stat .num { font-size: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head .more { align-self: flex-start; }
  .tag-row { margin-top: 18px; }
  .staff-card .avatar { width: 56px; height: 56px; font-size: 22px; }
  .link-card, .article-card, .staff-card { padding: 14px; }
  .card .ic { width: 38px; height: 38px; margin-bottom: 10px; }
}

/* ============ 电子工牌 ============ */
/* 电子工牌（墨绿 + 暖金主题，去除冷蓝） */
.badge-card { max-width: 420px; margin: 0 auto 22px; background: var(--paper-card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.badge-card-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; background: linear-gradient(140deg, #146b54 0%, #1f8a6a 52%, #34a87f 100%); color: #fff; position: relative; }
.badge-card-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #e9c46a, #f4a261, #e9c46a); }
.badge-logo { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.96); padding: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.badge-org { font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.badge-sub { font-size: 12px; opacity: .9; margin-top: 2px; }
.badge-body { padding: 18px 22px 22px; }
.badge-id-row { display: flex; align-items: center; gap: 10px; }
.badge-id-label { font-size: 12px; color: var(--ink-soft); }
.badge-id-value { font-size: 22px; font-weight: 800; letter-spacing: 3px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 4px 14px; border-radius: 8px; }
.badge-qr-wrap { text-align: center; margin-top: 16px; }
.badge-qr { width: 196px; height: 196px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 6px 18px rgba(40,48,30,.10); }
.badge-qr-wrap .muted { color: var(--ink-soft); font-size: 12px; margin: 12px 0 4px; }
.badge-url { font-size: 11px; color: var(--ink-soft); word-break: break-all; display: flex; align-items: center; gap: 6px; justify-content: center; }
.badge-tip { margin-top: 16px; font-size: 12px; line-height: 1.7; background: #eef6f1; color: #2f6f52; border: 1px solid #cfe7da; padding: 12px 14px; border-radius: 12px; display: flex; gap: 8px; }
.badge-tip svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #2f8f6f; }

.badge-public { max-width: 480px; margin: 0 auto; background: var(--paper-card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.badge-pub-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: linear-gradient(140deg, #146b54 0%, #1f8a6a 52%, #34a87f 100%); color: #fff; position: relative; }
.badge-pub-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #e9c46a, #f4a261, #e9c46a); }
.badge-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 26px; font-weight: 800; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.badge-pub-name { font-size: 20px; font-weight: 700; }
.badge-pub-sub { font-size: 13px; opacity: .92; margin-top: 2px; }
.badge-priv-tag { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; }
.badge-pub-rows { padding: 8px 22px 4px; }
.badge-pub-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.badge-pub-row svg { width: 18px; height: 18px; color: #2f8f6f; flex: none; }
.badge-pub-foot { padding: 14px 22px 20px; font-size: 12px; color: var(--ink-soft); }
.badge-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.badge-full-grid > div { background: var(--paper-card); padding: 12px 16px; }
.badge-full-grid span { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.badge-full-grid b { font-size: 15px; font-weight: 600; }

@media (max-width: 560px) {
  .badge-card, .badge-public { border-radius: 16px; }
  .badge-full-grid { grid-template-columns: 1fr; }
  .badge-qr { width: 170px; height: 170px; }
}
