/* ========================================
   沪上游导游平台 — 集合页样式
   "摩登繁华"文艺风格
   ======================================== */

/* --- CSS 变量 --- */
:root {
  --mist-rose: rgb(172, 149, 196);
  --mist-green: rgb(220, 235, 222);
  --tea-gold: rgb(251, 184, 76);
  --rice-paper: #fdfaf5;
  --warm-white: #fefefb;
  --text-warm: #4a3f3a;
  --text-soft: rgb(104, 91, 84);
  --font-heading: 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-warm);
  background-color: var(--rice-paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--text-warm); }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.2rem; }
a { color: var(--mist-rose); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--tea-gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- 通用布局 --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--mist-green); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--text-soft); margin-top: 8px; font-size: 1.05rem; }

/* --- 导航栏 --- */
.navbar {
  background: var(--warm-white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-height);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700;
  color: var(--text-warm);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo i { color: var(--tea-gold); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-soft); font-size: 0.95rem; font-weight: 500;
  transition: color 0.3s; padding: 8px 0; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--mist-rose); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%;
  height: 2px; background: var(--mist-rose); border-radius: 1px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-warm); cursor: pointer; }

/* --- Hero --- */
.platform-hero {
  background: linear-gradient(135deg, var(--mist-rose) 0%, #c4a6d6 30%, var(--tea-gold) 100%);
  color: #fff; text-align: center; padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.platform-hero h1 { font-size: 3rem; color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.platform-hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 32px; position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 48px; justify-content: center; position: relative; z-index: 1; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; display: block; }
.hero-stat .lbl { font-size: 0.95rem; opacity: 0.85; }

/* --- 导游卡片 --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.guide-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; align-items: center;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--mist-rose);
  margin-bottom: 16px;
}
.guide-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.guide-city { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 12px; }
.guide-city i { color: var(--tea-gold); margin-right: 4px; }
.guide-specialties { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; background: var(--mist-green); color: var(--text-warm); }
.guide-rating { color: var(--tea-gold); font-size: 0.95rem; margin-bottom: 4px; }
.guide-rating span { color: var(--text-soft); font-size: 0.85rem; }
.guide-desc { font-size: 0.9rem; color: var(--text-soft); margin: 12px 0 20px; line-height: 1.6; }

/* --- 按钮 --- */
.btn { display: inline-block; padding: 10px 28px; border-radius: 25px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; text-align: center; }
.btn-primary { background: var(--mist-rose); color: #fff; }
.btn-primary:hover { background: #937bb5; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--tea-gold); color: var(--text-warm); }
.btn-gold:hover { background: #e6a840; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* --- 如何预约 --- */
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-card { text-align: center; padding: 40px 24px; background: var(--warm-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.how-card .how-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--mist-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; color: var(--mist-rose); }

/* --- Footer --- */
.footer { background: var(--text-warm); color: rgba(255,255,255,0.7); padding: 48px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--tea-gold); }
.footer-brand p { margin-top: 12px; max-width: 300px; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* --- 响应式 --- */
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .platform-hero { padding: 60px 0 50px; }
  .platform-hero h1 { font-size: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .how-cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--warm-white); box-shadow: var(--shadow-md);
    padding: 16px 24px; gap: 12px; z-index: 99;
  }
}
@media (max-width: 480px) { .container { padding: 0 16px; } .section { padding: 48px 0; } .platform-hero h1 { font-size: 1.6rem; } }
