@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --primary: #FF6B81;
  --primary-light: #FFF0F3;
  --primary-dark: #FF4757;
  --accent: #FFB347;
  --bg: #FFFBFA;
  --card: #FFFFFF;
  --text: #2D2A32;
  --text-2: #9B95A3;
  --text-3: #C4BFC8;
  --border: #F5E6EA;
  --shadow-sm: 0 4px 16px rgba(255,107,129,0.08);
  --shadow-md: 0 8px 28px rgba(255,107,129,0.14);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --nav-h: 76px;
  --safe-top: 44px;
  --font: 'Noto Sans SC', -apple-system, sans-serif;
  --grad-primary: linear-gradient(135deg, #FF6B81 0%, #FF8E9E 100%);
  --grad-hero: linear-gradient(160deg, #FFF0F3 0%, #FFFBFA 100%);
  --promo-bg: linear-gradient(120deg, #FF6B81, #FFB347);
  --img-placeholder: linear-gradient(135deg, #FFE8EC, #FFF5E8);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  background: #F5EDE8;
  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(--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: 15px; font-weight: 600; background: inherit;
}
.status-bar.light { color: var(--text); }
.status-bar-icons { font-size: 13px; color: var(--text-2); }

.page-header {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 16px; background: var(--card);
}
.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;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
  font-size: 18px; flex-shrink: 0;
}
.back-btn:active { transform: scale(0.95); }

/* 轻盈悬浮底栏 */
.bottom-nav {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 398px;
  height: 58px; background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px; z-index: 100;
  border-radius: 29px;
  box-shadow: 0 8px 32px rgba(255,107,129,0.15), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,255,255,0.8);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-3); font-size: 10px; font-weight: 600;
  padding: 6px 14px; transition: color 0.2s;
}
.nav-item i { font-size: 22px; }
.nav-item.active { color: var(--primary); }
.nav-fab {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
  box-shadow: 0 4px 16px rgba(255,107,129,0.4);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 50px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--grad-primary); color: white; box-shadow: 0 4px 14px rgba(255,107,129,0.35); }
.btn-dark { background: var(--grad-primary); color: white; box-shadow: 0 4px 14px rgba(255,107,129,0.3); }
.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: #FFF0F5; color: #FF6B9D; }
.tag-blue { background: #E8F4FD; color: #4A9EFF; }
.tag-orange { background: #FFF5E6; color: #FF9F43; }

.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}

.list-group { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
.list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; 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; }
.list-item .arrow { color: var(--text-3); }

.guide-row {
  display: flex; gap: 14px; padding: 16px 20px;
  background: var(--card); margin: 0 16px 12px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.guide-row:active { transform: scale(0.98); }
.guide-photo {
  width: 100px; height: 128px; border-radius: 18px;
  object-fit: cover; flex-shrink: 0;
}
.guide-photo-wrap { position: relative; flex-shrink: 0; }
.guide-photo-badge {
  position: absolute; bottom: 6px; left: 6px; right: 6px;
  background: rgba(255,107,129,0.85); color: white;
  font-size: 10px; text-align: center; padding: 3px 6px;
  border-radius: 50px; font-weight: 600;
}
.guide-info { flex: 1; min-width: 0; }
.guide-name { font-size: 16px; font-weight: 700; }
.guide-city { font-size: 12px; color: var(--text-2); }
.guide-stats { font-size: 12px; color: var(--text-2); margin: 4px 0 8px; }
.guide-stats strong { color: var(--primary); font-weight: 700; }
.guide-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.guide-footer { display: flex; justify-content: space-between; align-items: center; }
.guide-price { font-size: 17px; font-weight: 800; color: var(--primary); }
.guide-price small { font-size: 12px; font-weight: 500; color: var(--text-2); }

.circle-post {
  padding: 16px 20px; background: var(--card);
  margin: 0 16px 12px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.circle-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  width: 140px; flex-shrink: 0;
}
.circle-grid img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 12px;
}
.circle-grid img:first-child { grid-row: span 2; width: 140px; height: 140px; border-radius: 16px; }
.circle-body { display: flex; gap: 12px; }
.circle-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.circle-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.circle-actions {
  display: flex; align-items: center; gap: 14px; margin-top: 10px;
  font-size: 12px; color: var(--text-2);
}
.btn-meet {
  margin-left: auto; background: var(--grad-primary); color: white;
  padding: 7px 18px; border-radius: 50px; font-size: 12px; font-weight: 700;
  box-shadow: 0 3px 12px rgba(255,107,129,0.3);
}

.section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 20px 12px;
}
.section-head h2 { font-size: 18px; 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;
  border: 2px solid var(--border); background: var(--card);
  color: var(--text-2); cursor: pointer; display: inline-block; margin: 4px;
  font-weight: 500;
}
.chip.active, .chip.selected {
  background: var(--primary-light); border-color: var(--primary);
  color: var(--primary); font-weight: 600;
}

.settings-group { margin: 12px 0; }
.settings-group-title { padding: 8px 20px; font-size: 13px; color: var(--text-2); font-weight: 600; }

.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; box-shadow: var(--shadow-md);
}
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%,-50%) scale(0.9); } }
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { scrollbar-width: none; }

/* 首页 youth overrides */
.home-top { background: var(--grad-hero); }
.custom-pill {
  background: white !important; color: var(--primary) !important;
  box-shadow: var(--shadow-sm); font-weight: 700;
  border: 2px solid var(--primary-light);
}
.quick-box { border: none !important; box-shadow: var(--shadow-sm) !important; }
.feature-head h3 em { color: var(--primary) !important; }
.grid-card .orders { color: var(--primary) !important; }
.grid-card .rating { color: var(--accent) !important; }
.profile-top { background: var(--grad-hero) !important; color: var(--text) !important; }
.profile-badge { background: var(--primary-light) !important; color: var(--primary) !important; }
.promo-big { background: var(--grad-primary) !important; }
