@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #8B5CF6;
  --primary-light: #F3EEFF;
  --primary-dark: #7C3AED;
  --accent: #34D399;
  --accent-pink: #F472B6;
  --bg: #F8F7FF;
  --card: #FFFFFF;
  --text: #1E1B2E;
  --text-2: #8B8798;
  --text-3: #C4C0D0;
  --border: #EDE9F5;
  --shadow-sm: 0 4px 16px rgba(139,92,246,0.08);
  --shadow-md: 0 8px 28px rgba(139,92,246,0.14);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --nav-h: 64px;
  --safe-top: 44px;
  --font: 'Noto Sans SC', -apple-system, sans-serif;
  --grad-primary: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  --grad-bg: radial-gradient(ellipse at 20% 0%, rgba(139,92,246,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(52,211,153,0.1) 0%, transparent 40%),
              #F8F7FF;
  --promo-bg: linear-gradient(135deg, #8B5CF6, #34D399);
  --img-placeholder: linear-gradient(135deg, #F3EEFF, #E8FAF4);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: #E8E4F4;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.app {
  max-width: 430px; margin: 0 auto; min-height: 100vh;
  background: var(--grad-bg); position: relative;
}
.app.has-nav { padding-bottom: var(--nav-h); }

.status-bar {
  height: var(--safe-top); padding: 14px 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 700;
}

.page-header {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 16px;
}
.page-header h1 { font-size: 17px; font-weight: 700; flex: 1; text-align: center; margin-right: 36px; }
.back-btn {
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary);
}

/* 四等分底栏 */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--nav-h);
  background: var(--card); border-top: 1px solid var(--border);
  display: flex; align-items: center; z-index: 100;
  box-shadow: 0 -4px 20px rgba(139,92,246,0.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-3); font-size: 10px; font-weight: 600; padding: 8px 0;
}
.nav-item i { font-size: 22px; }
.nav-item.active { color: var(--primary); }
.nav-fab { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 50px; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; font-family: var(--font);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--grad-primary); color: white; box-shadow: 0 4px 14px rgba(139,92,246,0.35); }
.btn-dark { background: var(--grad-primary); color: white; }
.btn-outline { background: white; border: 2px solid var(--border); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 50px;
  background: var(--primary-light); color: var(--primary-dark);
}
.tag-pink { background: #FDF2F8; color: #DB2777; }
.tag-blue { background: #ECFDF5; color: #059669; }
.tag-orange { background: #FFF7ED; color: #EA580C; }

.list-group { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; margin: 0 16px; box-shadow: var(--shadow-sm); }
.list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 15px;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--primary-light); }
.list-item .sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.list-item .right { color: var(--text-2); font-size: 13px; }

/* 双列网格卡片 */
.guide-row { display: none; }
.grid-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 16px 16px;
}
.grid-card-v2 {
  background: var(--card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: block; transition: transform 0.15s;
}
.grid-card-v2:active { transform: scale(0.97); }
.grid-card-v2 .photo { height: 160px; position: relative; }
.grid-card-v2 .photo img { width: 100%; height: 100%; object-fit: cover; }
.grid-card-v2 .photo .live {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 50px;
}
.grid-card-v2 .body { padding: 10px 12px 12px; }
.grid-card-v2 h4 { font-size: 14px; font-weight: 700; }
.grid-card-v2 .meta { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.grid-card-v2 .foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
}
.grid-card-v2 .price { font-size: 15px; font-weight: 800; color: var(--primary); }
.grid-card-v2 .star { font-size: 11px; font-weight: 700; color: var(--accent-pink); }

.circle-post {
  margin: 0 16px 12px; padding: 16px;
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.circle-grid { display: none; }
.circle-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.circle-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.circle-actions { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); margin-top: 10px; align-items: center; }
.btn-meet {
  margin-left: auto; background: var(--grad-primary); color: white;
  padding: 7px 16px; border-radius: 50px; font-size: 12px; font-weight: 700;
}

.section-head { padding: 16px 20px 10px; display: flex; justify-content: space-between; align-items: center; }
.section-head h2 { font-size: 17px; font-weight: 800; }
.section-head h2 em { color: var(--primary); font-style: normal; }
.section-head a { font-size: 13px; color: var(--primary); font-weight: 600; }

.chip {
  padding: 9px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
  background: var(--card); color: var(--text-2); cursor: pointer;
  display: inline-block; margin: 4px; box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}
.chip.active, .chip.selected {
  background: var(--primary-light); border-color: var(--primary); color: var(--primary);
}

.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--text); color: white;
  padding: 14px 28px; border-radius: 50px; font-size: 14px; font-weight: 600; z-index: 9999;
}
.hide-scroll::-webkit-scrollbar { display: none; }

/* 列表页用网格时显示 */
.guide-list-grid .guide-row { display: none; }
