/* ============================================================
   湾区AI+OPC联盟 · 网页版样式
   与小程序的暖棕黑金视觉同源：白底黑字 + 金棕强调
   ============================================================ */
:root {
  --ink: #0a0a0a;
  --ink-2: #5b5b5b;
  --ink-3: #9b9b9b;
  --line: rgba(10, 10, 10, 0.08);
  --line-2: rgba(10, 10, 10, 0.14);
  --gold-1: #f5e6bc;
  --gold-2: #d9b871;
  --gold-3: #a9812f;
  --dark-grad: linear-gradient(155deg, #33291a 0%, #2a2114 45%, #221b10 100%);
  --bg: #f7f6f4;
  --card: #fff;
  --r: 18px;
  --shadow: 0 10px 30px rgba(30, 22, 8, 0.06);
  --maxw: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ---------------- 顶部导航 ---------------- */
.hd {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 246, 244, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.2px; }
.brand .mk {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--dark-grad);
  color: var(--gold-2); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(217, 184, 113, 0.4);
}
.nav { display: flex; gap: 18px; font-size: 13.5px; color: var(--ink-2); }
.nav a.on { color: var(--ink); font-weight: 700; }
.nav a:hover { color: var(--ink); }

/* ---------------- 容器 ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 18px 18px 96px; }

/* ---------------- 首页主视觉 ---------------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 30px 26px 26px;
  background: var(--dark-grad);
  border: 1px solid rgba(217, 184, 113, 0.26);
  box-shadow: 0 18px 40px rgba(30, 22, 8, 0.16);
  color: #fff;
}
.hero::after {
  content: ''; position: absolute; right: -90px; top: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(217, 184, 113, 0.22);
}
.hero .eyebrow { font-size: 10px; letter-spacing: 0.28em; color: var(--gold-2); font-weight: 700; }
.hero h1 { font-size: 26px; line-height: 1.35; margin: 14px 0 10px; letter-spacing: -0.4px; font-weight: 800; }
.hero p { font-size: 13.5px; color: rgba(255, 255, 255, 0.68); line-height: 1.75; }
.hero .stats { display: flex; gap: 0; margin-top: 22px; position: relative; z-index: 1; }
.hero .st { flex: 1; }
.hero .st + .st { border-left: 1px solid rgba(217, 184, 113, 0.22); padding-left: 16px; }
.hero .st b { display: block; font-size: 21px; color: var(--gold-2); letter-spacing: -0.5px; }
.hero .st span { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.06em; }
.hero .basis { margin-top: 14px; font-size: 10.5px; color: rgba(255, 255, 255, 0.34); line-height: 1.6; }

/* ---------------- 区块标题 ---------------- */
.sec { margin-top: 30px; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec-t { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.sec-t em { font-style: normal; font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); margin-left: 8px; font-weight: 600; }
.sec-more { font-size: 12.5px; color: var(--gold-3); }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 10px; }

/* 文章行 */
.post {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 17px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post + .post { margin-top: 10px; }
.post:active { transform: scale(0.995); }
.post .tag {
  display: inline-block; font-size: 10px; letter-spacing: 0.06em;
  color: var(--gold-3); background: rgba(217, 184, 113, 0.14);
  padding: 2px 7px; border-radius: 5px; margin-bottom: 8px; font-weight: 700;
}
.post h3 { font-size: 15.5px; line-height: 1.5; font-weight: 700; letter-spacing: -0.2px; }
.post p { font-size: 12.8px; color: var(--ink-2); line-height: 1.7; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .meta { margin-top: 9px; font-size: 11px; color: var(--ink-3); display: flex; gap: 10px; }

/* 活动卡 */
.salon {
  display: block; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 17px 18px; box-shadow: var(--shadow);
}
.salon + .salon { margin-top: 10px; }
.salon .date { font-size: 11px; letter-spacing: 0.04em; color: var(--gold-3); font-weight: 700; }
.salon h3 { font-size: 16px; margin: 7px 0 6px; line-height: 1.45; font-weight: 800; letter-spacing: -0.2px; }
.salon .loc { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.salon .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.salon .seat { font-size: 11.5px; color: var(--ink-3); }
.salon .seat b { color: var(--gold-3); }

/* 资料卡 */
.doc {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow);
}
.doc + .doc { margin-top: 10px; }
.doc .cover {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px;
  background: var(--dark-grad); color: var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; letter-spacing: -0.5px;
  border: 1px solid rgba(217, 184, 113, 0.24);
}
.doc .bd { flex: 1; min-width: 0; }
.doc h3 { font-size: 14.5px; line-height: 1.45; font-weight: 700; }
.doc p { font-size: 12px; color: var(--ink-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc .row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.doc .price { font-size: 13px; font-weight: 800; color: var(--ink); }
.doc .price.free { color: #1c7c3c; }
.doc .cat { font-size: 10.5px; color: var(--ink-3); }

/* 分类筛选 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
}
.btn-gold {
  background: linear-gradient(135deg, #f7e9c2 0%, #dcbb74 44%, #a9812f 100%);
  color: #4a3a14; border: none;
  box-shadow: 0 8px 22px rgba(169, 129, 47, 0.24);
}
.btn-dark { background: var(--dark-grad); color: var(--gold-1); border: 1px solid rgba(217, 184, 113, 0.32); }
.btn-block { display: flex; width: 100%; }

/* 会员档位 */
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow);
}
.tier + .tier { margin-top: 10px; }
.tier.on { border-color: rgba(169, 129, 47, 0.5); box-shadow: 0 14px 34px rgba(169, 129, 47, 0.14); }
.tier .top { display: flex; align-items: baseline; justify-content: space-between; }
.tier h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.tier h3 .tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--gold-3); background: rgba(169, 129, 47, 0.1);
  border-radius: 5px; padding: 2px 6px;
}
.tier .pr { font-size: 19px; font-weight: 800; color: var(--gold-3); }
.tier .pr small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.tier .intro { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.tier ul { list-style: none; margin-top: 12px; }
.tier li { font-size: 12.5px; color: var(--ink-2); padding-left: 18px; position: relative; line-height: 1.9; }
.tier li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2);
}

/* 正文 */
.article { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; box-shadow: var(--shadow); }
.article h1 { font-size: 21px; line-height: 1.45; font-weight: 800; letter-spacing: -0.4px; }
.article .meta { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article .body { margin-top: 16px; font-size: 15px; line-height: 1.95; color: #2b2b2b; }
.article .body p { margin-bottom: 14px; }
.article .body h2 { font-size: 17px; margin: 22px 0 10px; }
.article .body img { border-radius: 12px; margin: 10px 0; }

/* 水印与防盗提示 */
.wm {
  position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background-repeat: repeat;
  opacity: 0.05;
}
.tip {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.7;
  margin-top: 14px;
}
.tip b { color: var(--ink-2); font-weight: 600; }

/* 提示块 */
.notice {
  background: rgba(217, 184, 113, 0.10);
  border: 1px solid rgba(169, 129, 47, 0.24);
  border-radius: 14px; padding: 12px 14px;
  font-size: 12.5px; color: #6b5420; line-height: 1.75;
}

/* 骨架屏 */
.sk { background: linear-gradient(90deg, #ece9e3 25%, #f4f2ee 37%, #ece9e3 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-line { height: 12px; margin-bottom: 8px; }

/* 底部 */
.ft { max-width: var(--maxw); margin: 26px auto 0; padding: 22px 18px 30px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); line-height: 2; }
.ft a { color: var(--ink-2); }

/* 移动端底部导航 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  display: none;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .in { display: flex; max-width: var(--maxw); margin: 0 auto; }
.tabbar a {
  flex: 1; text-align: center; padding: 9px 0 8px;
  font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.02em;
}
.tabbar a .ic { display: block; font-size: 17px; line-height: 1.4; }
.tabbar a.on { color: var(--ink); font-weight: 700; }

@media (max-width: 720px) {
  .nav { display: none; }
  .tabbar { display: block; }
  .wrap { padding-bottom: 104px; }
  .hero h1 { font-size: 23px; }
}

/* 小屏微调 */
@media (max-width: 380px) {
  .hero { padding: 24px 20px 22px; }
  .hero h1 { font-size: 21px; }
}

/* 桌面端：内容居中，留白更大 */
@media (min-width: 721px) {
  .wrap { padding-top: 26px; }
  .hero { padding: 38px 34px 32px; }
  .hero h1 { font-size: 30px; }
}

/* 文本按钮（重试等） */
.linkbtn {
  background: none; border: 0; padding: 0; margin-top: 6px;
  font-size: 12.5px; color: var(--gold-3); font-family: inherit; cursor: pointer;
  text-decoration: none;
}
