/* ============================================================
   钓场运营公众号 · 前端主样式
   移动端优先 · 中式喜庆 + 水波钓场氛围
   ============================================================ */

/* 字体 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Noto+Serif+SC:wght@500;700;900&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  /* 主色:深湖青 + 朱砂红 + 暖金 */
  --c-ink:      #1c2a30;
  --c-ink-2:    #3a4a52;
  --c-paper:    #fbf5ea;
  --c-paper-2:  #f3e9d2;
  --c-water:    #0f4c5c;
  --c-water-2:  #157a8c;
  --c-vermilion:#c8341c;
  --c-vermilion-2:#e64421;
  --c-gold:     #d4a13a;
  --c-gold-2:   #f6c860;
  --c-soft:     #fff9ef;
  --c-line:     rgba(28,42,48,.12);

  --shadow-1: 0 2px 8px rgba(28,42,48,.08);
  --shadow-2: 0 8px 30px rgba(28,42,48,.18);
  --shadow-warm: 0 6px 24px rgba(200,52,28,.25);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --ff-display: 'ZCOOL KuaiLe', 'Noto Serif SC', serif;
  --ff-serif:   'Noto Serif SC', serif;
  --ff-sans:    'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-sans);
  color: var(--c-ink);
  background: var(--c-paper);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 水墨纸纹理 */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(212,161,58,.10), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(15,76,92,.08), transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.45 0 0 0 0 0.2  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

/* 移动端容器,宽度上限 480px,居中显示 */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 70px;
  background: var(--c-paper);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(15,76,92,.06), transparent 60%);
}

/* ============================================================
   顶部 Hero / Header
============================================================ */
.hero {
  position: relative;
  padding: 28px 20px 56px;
  background:
    linear-gradient(180deg, rgba(15,76,92,.92) 0%, rgba(21,122,140,.85) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'><path d='M0 100 Q50 80 100 100 T200 100 T300 100 T400 100 V200 H0 Z' fill='%23ffffff' opacity='0.07'/><path d='M0 140 Q50 120 100 140 T200 140 T300 140 T400 140 V200 H0 Z' fill='%23ffffff' opacity='0.05'/></svg>") repeat-x bottom / 400px;
  color: #fff;
  overflow: hidden;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(246,200,96,.30), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,.10), transparent 40%);
  pointer-events: none;
}
.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.hero-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
}
.hero-brand .logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold));
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}
.hero-brand .name {
  font-size: 19px; letter-spacing: 1px;
}
.hero-brand .name small {
  display: block; font-size: 11px; opacity: .8; letter-spacing: 3px;
  font-family: var(--ff-sans); font-weight: 400;
}
.hero-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.hero-title {
  position: relative; z-index: 1;
  margin-top: 22px;
  font-family: var(--ff-display);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 2px;
}
.hero-title .seal {
  display: inline-block;
  background: var(--c-vermilion);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  vertical-align: middle;
  margin-left: 8px;
  font-family: var(--ff-sans); font-weight: 700;
  box-shadow: 0 2px 8px rgba(200,52,28,.5);
}
.hero-sub {
  position: relative; z-index: 1;
  margin-top: 8px;
  font-size: 13px;
  opacity: .92;
  letter-spacing: 1px;
}

/* 公告轮播条 */
.notice-bar {
  position: relative;
  margin: -28px 16px 0;
  background: linear-gradient(95deg, #fff8e3, #fff);
  border-radius: var(--r-lg);
  padding: 12px 16px 12px 44px;
  box-shadow: var(--shadow-1);
  font-size: 13px;
  color: var(--c-ink-2);
  z-index: 2;
  border: 1px solid var(--c-line);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.notice-bar::before {
  content: '📣';
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

/* ============================================================
   快捷入口 (4 宫格)
============================================================ */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 16px 4px;
}
.quick-item {
  text-align: center;
  padding: 14px 6px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: transform .15s;
}
.quick-item:active { transform: scale(.95); }
.quick-item .ico {
  width: 40px; height: 40px;
  margin: 0 auto 6px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  color: #fff;
}
.quick-item:nth-child(1) .ico { background: linear-gradient(135deg, #e64421, #c8341c); }
.quick-item:nth-child(2) .ico { background: linear-gradient(135deg, #f6c860, #d4a13a); }
.quick-item:nth-child(3) .ico { background: linear-gradient(135deg, #157a8c, #0f4c5c); }
.quick-item:nth-child(4) .ico { background: linear-gradient(135deg, #6aaa7a, #3a7d54); }
.quick-item .lbl { font-size: 12px; color: var(--c-ink-2); }

/* ============================================================
   通用 Section
============================================================ */
.section {
  margin: 22px 16px 0;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--c-ink);
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--c-vermilion), var(--c-gold));
}
.section-more {
  font-size: 12px; color: var(--c-ink-2);
}

/* ============================================================
   活动卡片
============================================================ */
.act-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  margin-bottom: 14px;
  position: relative;
}
.act-card .banner {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #157a8c, #0f4c5c);
  overflow: hidden;
}
.act-card .banner img { width: 100%; height: 100%; object-fit: cover; }
.act-card .banner.placeholder {
  display: grid; place-items: center;
  color: rgba(255,255,255,.6);
  font-family: var(--ff-display);
  font-size: 36px;
}
.act-card .banner.placeholder::after {
  content: '🎣';
}
.act-card .banner .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--c-vermilion);
  color: #fff; font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--shadow-warm);
}
.act-card .body { padding: 14px 16px 16px; }
.act-card .title { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.act-card .meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  font-size: 12px; color: var(--c-ink-2);
  margin-bottom: 12px;
}
.act-card .meta span::before { margin-right: 4px; }
.act-card .meta .m-time::before { content: '🕒'; }
.act-card .meta .m-loc::before  { content: '📍'; }
.act-card .meta .m-price::before { content: '💰'; }
.act-card .actions {
  display: flex; gap: 10px;
}

/* ============================================================
   按钮
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--c-vermilion-2), var(--c-vermilion));
  color: #fff;
  box-shadow: var(--shadow-warm);
}
.btn-gold {
  background: linear-gradient(135deg, var(--c-gold-2), var(--c-gold));
  color: #5a3d10;
  box-shadow: 0 6px 18px rgba(212,161,58,.35);
}
.btn-ghost {
  background: var(--c-paper-2);
  color: var(--c-ink);
}
.btn-full { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ============================================================
   表单
============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px;
  color: var(--c-ink-2); margin-bottom: 6px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-ink);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--c-water-2);
  box-shadow: 0 0 0 3px rgba(21,122,140,.15);
}
textarea.form-control { resize: vertical; min-height: 90px; }

/* ============================================================
   底部 Tab 栏
============================================================ */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-bar a {
  text-align: center;
  padding: 8px 0 10px;
  font-size: 11px;
  color: var(--c-ink-2);
  position: relative;
}
.tab-bar a .ico {
  display: block; font-size: 22px; margin-bottom: 2px;
}
.tab-bar a.active { color: var(--c-vermilion); }
.tab-bar a.active::after {
  content: ''; position: absolute; top: 4px; left: 50%;
  width: 24px; height: 3px; background: var(--c-vermilion);
  border-radius: 3px; transform: translateX(-50%);
}

/* ============================================================
   弹窗 / Modal
============================================================ */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn .2s;
}
.modal-mask.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--c-soft);
  border-radius: var(--r-lg);
  max-width: 320px;
  width: 100%;
  padding: 24px 22px 20px;
  text-align: center;
  position: relative;
  animation: pop .25s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--c-ink-2); font-size: 20px;
}
.modal h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: 2px;
  color: var(--c-vermilion);
}
.modal p { margin: 6px 0; color: var(--c-ink-2); font-size: 14px; }
.modal .qr {
  width: 200px; height: 200px;
  margin: 14px auto 8px;
  background: #fff; border: 6px solid #fff;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--c-line);
  display: grid; place-items: center;
  overflow: hidden;
}
.modal .qr img { width: 100%; height: 100%; object-fit: cover; }
.modal .qr.placeholder { color: var(--c-ink-2); font-size: 13px; padding: 10px; text-align: center; }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 30%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 空状态 */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--c-ink-2);
  font-size: 13px;
}
.empty::before {
  content: '🌊';
  display: block; font-size: 48px;
  margin-bottom: 12px;
  opacity: .5;
}

/* 卡片包装 */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-1);
  margin-bottom: 14px;
}
.card-title {
  font-family: var(--ff-display);
  font-size: 20px;
  letter-spacing: 1px;
  margin: 0 0 10px;
  color: var(--c-ink);
}

/* 顶部返回栏 */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center;
  padding: 12px 14px;
  background: rgba(251,245,234,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.topbar .back {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-size: 18px;
}
.topbar .ttl {
  flex: 1; text-align: center;
  font-family: var(--ff-display); font-size: 18px;
  letter-spacing: 2px;
  margin-right: 36px;
}

/* 富文本区域 */
.rich { font-size: 14px; line-height: 1.8; color: var(--c-ink-2); }
.rich p { margin: 0 0 10px; }
.rich img { border-radius: var(--r-sm); margin: 8px 0; }
