/* GAMS 会员端 H5 —— 品牌深蓝航图风格 */
:root {
  --navy: #0B2E4F;
  --navy-2: #0E3D5C;
  --blue: #1E6FA8;
  --sky: #2B8CBE;
  --mist: #EAF3F9;
  --orange: #E2601F;
  --paper: #FFFFFF;
  --grey: #F2F5F8;
  --line: #DFE7EF;
  --ink: #152635;
  --muted: #61798C;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 46, 79, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #E5EBF1;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  position: relative;
  box-shadow: 0 0 40px rgba(11, 46, 79, 0.10);
}
.page { padding-bottom: 76px; min-height: 100vh; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .back {
  width: 30px; height: 30px; margin-left: -6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.topbar .back:active { background: var(--grey); }
.topbar .logo { width: 30px; height: 30px; border-radius: 7px; }
.topbar .brand { display: flex; flex-direction: column; line-height: 1.25; }
.topbar .brand b { font-size: 15px; letter-spacing: .5px; color: var(--navy); }
.topbar .brand span { font-size: 10px; color: var(--muted); letter-spacing: .3px; }
.topbar .title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; margin-right: 24px; }
.topbar .act { font-size: 13px; color: var(--blue); }

/* ---------- 首页 hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(155deg, #0B2E4F 0%, #0E3D5C 55%, #12527A 100%);
  color: #fff;
  padding: 26px 22px 30px;
  overflow: hidden;
}
.hero .contour { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.hero-brand img { width: 46px; height: 46px; border-radius: 10px; }
.hero-brand .names b { display: block; font-size: 17px; letter-spacing: 1px; }
.hero-brand .names span { font-size: 10px; color: #A8C8DE; letter-spacing: .4px; }
.hero h1 {
  margin-top: 22px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.45;
  position: relative;
}
.hero .lede { margin-top: 8px; font-size: 13px; color: #B7D2E4; letter-spacing: .5px; position: relative; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 22px; position: relative;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats .stat b {
  font-size: 28px; font-weight: 700; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat b i { font-style: normal; font-size: 13px; font-weight: 400; margin-left: 3px; color: #A8C8DE; }
.hero-stats .stat span { display: block; font-size: 11px; color: #A8C8DE; letter-spacing: 1px; margin-top: 2px; }

/* 快捷入口 */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  margin: -16px 14px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  padding: 14px 4px 12px;
}
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); }
.quick .qicon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--mist); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.quick .qicon svg { width: 20px; height: 20px; }
.quick a:nth-child(4) .qicon { background: #FDF0E9; color: var(--orange); }

/* ---------- 区块 ---------- */
.section { padding: 22px 18px 4px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 17px; font-weight: 700; letter-spacing: .5px; color: var(--navy); }
.section-head h2 small {
  font-size: 10px; font-weight: 400; color: var(--muted);
  letter-spacing: 1.5px; margin-left: 8px; text-transform: uppercase;
}
.section-head a { font-size: 12px; color: var(--muted); }
.section-head a::after { content: "›"; margin-left: 2px; }

/* 通知列表 */
.notice-list { border-top: 1px solid var(--line); }
.notice-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.notice-item .date {
  flex: none; width: 44px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.notice-item .date b { display: block; font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.notice-item .date span { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.notice-item .txt { flex: 1; min-width: 0; }
.notice-item .txt p {
  font-size: 14.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notice-item .txt em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 3px; }
.notice-item .tag { flex: none; }
.tag {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  background: var(--mist); color: var(--blue); letter-spacing: .5px;
}
.tag.orange { background: #FDF0E9; color: var(--orange); }

/* 活动卡 */
.feature {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
}
.feature .cover { position: relative; }
.feature .cover img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; }
.feature .cover .live {
  position: absolute; left: 12px; top: 12px;
  background: var(--orange); color: #fff;
  font-size: 10px; padding: 3px 8px; border-radius: 4px; letter-spacing: 1px;
}
.feature .body { padding: 12px 14px 14px; }
.feature .body h3 { font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.feature .body p { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 14px; }

/* 新闻列表 */
.news-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 4px; }
.news-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.news-item h3 {
  font-size: 15px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .meta { font-size: 11px; color: var(--muted); display: flex; gap: 10px; margin-top: 6px; }
.news-item .thumb { flex: none; width: 96px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--mist); }
.news-item .thumb.blank {
  display: flex; align-items: center; justify-content: center;
  color: #9FB6C8; font-size: 20px; font-weight: 700;
  background: linear-gradient(140deg, #EAF3F9, #D8E7F2);
}

/* 会员之声 */
.voice-card {
  background: var(--grey); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
  display: block;
}
.voice-card .q { display: flex; gap: 8px; }
.voice-card .q b { color: var(--blue); font-weight: 700; flex: none; }
.voice-card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.voice-card .a { display: flex; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.voice-card .a b { color: var(--orange); font-weight: 700; flex: none; }
.voice-card .a p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.voice-card .who { margin-top: 8px; font-size: 11px; color: #8AA0B2; display: flex; justify-content: space-between; }

/* 页脚 */
.foot {
  margin-top: 26px; padding: 26px 22px 34px;
  background: var(--navy); color: #93AFC4; font-size: 11.5px; line-height: 1.9;
}
.foot .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.foot .f-brand img { width: 34px; height: 34px; border-radius: 8px; }
.foot .f-brand b { font-size: 13px; letter-spacing: .5px; }
.foot a { color: #C9DCEA; }

/* ---------- 底栏 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 520px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
  backdrop-filter: blur(8px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: #8AA0B2; padding: 3px 0; position: relative;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--navy); font-weight: 600; }
.tabbar a.on::after {
  content: ""; position: absolute; top: -7px; width: 18px; height: 3px;
  border-radius: 2px; background: var(--orange);
}

/* ---------- 列表页 ---------- */
.seg {
  display: flex; gap: 4px; padding: 10px 14px 2px;
  background: var(--paper); position: sticky; top: 55px; z-index: 15;
}
.seg button {
  flex: 1; font-size: 13px; padding: 8px 0; border-radius: 8px; color: var(--muted);
}
.seg button.on { background: var(--navy); color: #fff; font-weight: 600; }
.searchbar { padding: 10px 14px 4px; display: flex; gap: 8px; }
.searchbar input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; background: var(--grey); outline: none;
}
.searchbar button {
  padding: 0 16px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 13px;
}
.list-wrap { padding: 4px 16px 8px; }
.pager { text-align: center; padding: 18px 0 6px; }
.pager button {
  font-size: 13px; color: var(--blue); padding: 8px 26px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--paper);
}
.pager span { font-size: 12px; color: var(--muted); }

/* ---------- 详情 ---------- */
.article { padding: 18px 20px 10px; }
.article h1 { font-size: 21px; line-height: 1.5; font-weight: 700; letter-spacing: .3px; }
.article .meta {
  margin-top: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap;
}
.article .rich { padding: 10px 0 4px; font-size: 15.5px; line-height: 1.9; color: #24384A; }
.article .rich p { margin: 0 0 14px; }
.article .rich img { border-radius: 8px; margin: 8px 0; }
.article .rich .muted { color: var(--muted); font-size: 13px; }
.article .rich h3 { margin: 20px 0 10px; font-size: 16.5px; }
.attachments { margin: 8px 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.attachments a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); color: var(--blue);
}
.attachments a:last-child { border-bottom: none; }
.event-box {
  margin: 14px 0 6px; background: var(--mist); border-radius: var(--radius);
  padding: 14px 16px; font-size: 13.5px; line-height: 2;
}
.event-box b { color: var(--navy); display: inline-block; width: 68px; font-weight: 600; }
.agenda { white-space: pre-line; font-size: 14px; line-height: 1.9; padding: 6px 0 10px; color: #24384A; }

/* ---------- 按钮 ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 13px; border-radius: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: .5px;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:active { background: #082039; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.ghost { border: 1px solid var(--line); color: var(--blue); background: var(--paper); }
.btn.small { width: auto; padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
.btn-row .btn { flex: 1; }
.sticky-cta {
  position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 30%);
  padding: 22px 20px calc(16px + env(safe-area-inset-bottom));
}

/* ---------- 表单 ---------- */
.form { padding: 16px 20px 6px; }
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; letter-spacing: .3px; }
.field > label i { color: var(--orange); font-style: normal; margin-left: 2px; }
.input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 14.5px; background: var(--paper); outline: none;
  transition: border-color .15s;
}
.input:focus, .field textarea:focus { border-color: var(--sky); }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.checks { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.checks input { width: 16px; height: 16px; accent-color: var(--navy); }

/* 上传 */
.upload-tile {
  border: 1px dashed #B9CBDA; border-radius: 10px; background: var(--grey);
  min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 12px; color: var(--muted); position: relative; overflow: hidden;
}
.upload-tile.has { border-style: solid; border-color: var(--line); padding: 0; background: var(--paper); }
.upload-tile img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.upload-tile .file-tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px;
  font-size: 11px; background: rgba(11,46,79,.82); color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upload-tile span.plus { font-size: 22px; color: #A8BBCB; line-height: 1; }

/* ---------- 卡片与我的 ---------- */
.card { margin: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.card.pad { padding: 16px; }
.member-card {
  margin: 16px; padding: 18px;
  background: linear-gradient(140deg, #0B2E4F, #124B6E);
  color: #fff; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.member-card .lvl {
  font-size: 10px; letter-spacing: 1px; padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 20px; color: #E7F1F8;
}
.member-card h2 { font-size: 17.5px; margin-top: 12px; font-weight: 600; line-height: 1.5; }
.member-card .sub { font-size: 12px; color: #A8C8DE; margin-top: 6px; }
.member-card .mark {
  position: absolute; right: -24px; bottom: -30px; width: 130px; height: 130px;
  opacity: .10; pointer-events: none;
}
.cellgroup { margin: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cell {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.cell:last-child { border-bottom: none; }
.cell .cicon { width: 26px; height: 26px; color: var(--blue); flex: none; }
.cell .cicon svg { width: 22px; height: 22px; }
.cell .grow { flex: 1; }
.cell .tip { font-size: 12px; color: var(--muted); }
.cell .arrow { color: #B9CBDA; font-size: 18px; line-height: 1; }
.cell .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.status-badge {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 20px; letter-spacing: .5px;
}
.st-pending { background: #FFF3E4; color: #A85A00; }
.st-active { background: #E7F1E9; color: #2F6B3C; }
.st-returned { background: #FDEEE9; color: #A34A2B; }
.st-rejected { background: #F3E8E8; color: #8C3A2B; }
.st-withdrawn { background: var(--grey); color: var(--muted); }
.st-new { background: var(--mist); color: var(--blue); }

/* 消息 */
.msg-item { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.msg-item .top { display: flex; justify-content: space-between; gap: 10px; }
.msg-item h3 { font-size: 14.5px; font-weight: 600; }
.msg-item time { font-size: 11px; color: var(--muted); flex: none; }
.msg-item p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.msg-item.unread h3::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--orange); margin-right: 7px; vertical-align: 2px;
}

/* 进度时间线 */
.timeline { padding: 6px 0 0; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tl-item::before {
  content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 1px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-item .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 5px; }
.tl-item:first-child .dot { background: var(--orange); }
.tl-item .body b { font-size: 13.5px; font-weight: 600; }
.tl-item .body p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tl-item .body time { font-size: 11px; color: #9FB2C2; }

/* ---------- 空态 / 加载 ---------- */
.empty { padding: 56px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .glyph { font-size: 34px; color: #C4D4E1; margin-bottom: 10px; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--mist); border-top-color: var(--blue);
  animation: spin .8s linear infinite; margin: 60px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast 与弹层 ---------- */
#toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(8px);
  background: rgba(11,46,79,.94); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 24px; max-width: 80vw;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; z-index: 90;
  text-align: center; line-height: 1.5;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: rgba(140,58,43,.96); }

.sheet-mask {
  position: fixed; inset: 0; background: rgba(11,30,46,.45); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 520px; background: var(--paper);
  border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto;
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 14px; text-align: center; }
.sheet .close { position: absolute; right: 18px; top: 16px; color: var(--muted); font-size: 18px; }
.sheet { position: relative; }

/* 登录 */
.login-hero { text-align: center; padding: 46px 24px 20px; }
.login-hero img { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 16px; }
.login-hero h1 { font-size: 20px; color: var(--navy); letter-spacing: 1px; }
.login-hero p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-row button {
  flex: none; width: 112px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 13px; color: var(--blue); background: var(--paper);
}
.code-row button[disabled] { color: #A8BBCB; }

/* 通用间距 */
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mt20 { margin-top: 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.pad-x { padding-left: 20px; padding-right: 20px; }
.notice-bar {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--mist); border-radius: 10px; padding: 10px 13px;
  font-size: 12.5px; color: #3D5B70; line-height: 1.7;
}
.notice-bar b { color: var(--blue); flex: none; font-weight: 600; }
