/* ================================================================
   Cetus - 旅游社区样式表 v5
   重新设计 · 深邃星空蓝 + 温暖琥珀金 + 玻璃态卡片
   ================================================================ */

/* --- CSS 变量 --- */
:root {
  --primary: #0a0e27;
  --primary-light: #1a1a3e;
  --primary-dark: #060910;
  --accent: #f0a860;
  --accent-light: #ffc891;
  --ice: #64d8ff;
  --hero-bg: linear-gradient(160deg, #050814 0%, #0d1130 40%, #162040 100%);
  --bg: #f8f9fb;
  --card-bg: #ffffff;
  --text: #1e2130;
  --text-light: #4a5568;
  --text-muted: #8899aa;
  --border: #e8edf3;
  --danger: #e74c3c;
  --success: #27ae60;
  --warning: #f0a860;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 模块强调色 */
  --color-guide: #f0a860;
  --color-guide-bg: #fdf8f0;
  --color-qa: #f0a860;
  --color-qa-bg: #fdf8f0;
  --color-roundtable: #1a1a3e;
  --color-roundtable-bg: #f0f2f8;
  --color-diary: #f5576c;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  /* 淡网格背景纹理 */
  background-image:
    linear-gradient(rgba(10,14,39,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,14,39,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- 自定义滚动条 --- */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4cdd8; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9aa5b3; }

/* ================================================================
   Hero 区
   ================================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 20px 100px;
  background: var(--hero-bg);
  text-align: center;
  overflow: hidden;
}

/* 星空点阵背景 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 25% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 65% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 15% 65%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 30% 75%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 20% 90%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 5% 50%, rgba(240,168,96,0.4), transparent),
    radial-gradient(1px 1px at 95% 25%, rgba(100,216,255,0.5), transparent),
    radial-gradient(1px 1px at 45% 95%, rgba(100,216,255,0.4), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(240,168,96,0.2);
  margin-bottom: 24px;
  background: rgba(255,255,255,0.08);
  padding: 4px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 40px rgba(240,168,96,0.35), 0 0 80px rgba(100,216,255,0.2);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #f0a860, #ffc891);
  color: #1a1a3e;
  border: none;
  box-shadow: 0 4px 20px rgba(240,168,96,0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(240,168,96,0.55);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
}

.hero-btn-outline:hover {
  border-color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}

/* --- Hero 波浪分隔 --- */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* --- 子页面顶部 --- */
.header {
  text-align: center;
  padding: 36px 20px 24px;
  background: var(--hero-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 35% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 75% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

.logo {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 3px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 30px rgba(240,168,96,0.3);
}

.tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* --- 导航栏 --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,39,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 48px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--accent);
}

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-account:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* --- 板块通用 --- */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 40px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: -4px;
}

/* ================================================================
   游记精选板块
   ================================================================ */
.section-diary {
  background: #f8f9fb;
  padding-bottom: 40px;
}

.btn-diary-write {
  background: linear-gradient(135deg, #f5576c, #f093fb);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-diary-write:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,87,108,0.4);
}

.diary-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.diary-scroll::-webkit-scrollbar {
  height: 6px;
}

.diary-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.diary-scroll::-webkit-scrollbar-thumb {
  background: #c4cdd8;
  border-radius: 3px;
}

.diary-empty {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

.diary-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.diary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.diary-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.diary-card-body {
  padding: 14px 16px 16px;
}

.diary-card-dest {
  font-size: 0.75rem;
  color: var(--color-diary);
  font-weight: 600;
  margin-bottom: 4px;
}

.diary-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
}

.diary-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.diary-card-likes {
  color: var(--color-diary);
  font-weight: 600;
}

/* ================================================================
   攻略区 — 卡片网格
   ================================================================ */
.section-guides {
  background: #ffffff;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guides-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

.guide-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.guide-card-image {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.guide-card-body {
  padding: 12px 14px 14px;
}

.guide-card-dates {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.guide-card-dest {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.guide-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.guide-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.guide-card-adoptions {
  color: var(--accent);
  font-weight: 600;
}

/* --- 攻略制作器按钮 --- */
.btn-guide-maker {
  background: linear-gradient(135deg, #f0a860, #ffc891);
  color: #1a1a3e;
  border: none;
  border-radius: 20px;
  padding: 6px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-guide-maker:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,168,96,0.4);
}

/* --- 更多按钮 --- */
.btn-more {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.btn-more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ================================================================
   双列社区：圆桌 + 问答
   ================================================================ */
.section-community {
  background: #f8f9fb;
}

.community-split {
  display: flex;
  gap: 20px;
}

.community-col {
  flex: 1;
  min-width: 0;
}

.community-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.community-col .section-desc {
  margin-top: 0;
}

/* --- 帖子列表（紧凑型）--- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.9rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.community-post {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}

.community-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.community-post.roundtable { border-left-color: var(--color-roundtable); }
.community-post.qa { border-left-color: var(--accent); }

.community-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-post-excerpt {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-post-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.community-post-action {
  display: flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 2px 0;
}

.community-post-action:hover { color: var(--text); }
.community-post-action.voted { color: var(--accent); font-weight: 600; }

.community-post-action .action-icon { font-size: 0.95rem; }

.community-post-time {
  margin-left: auto;
}

/* ================================================================
   底部
   ================================================================ */
.footer {
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

/* ================================================================
   子页面通用样式 (roast.html / praise.html)
   ================================================================ */
.subpage-body { background: var(--bg); }

.subpage-header {
  padding: 20px 20px 16px;
}

.subpage-header .logo-sm {
  font-size: 1.6rem;
  letter-spacing: 2px;
}

.btn-back-home {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: var(--transition);
}

.btn-back-home:hover { color: var(--accent-light); }

.subpage-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.subpage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.subpage-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.subpage-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-publish {
  background: linear-gradient(135deg, #f0a860, #ffc891);
  color: #1a1a3e;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(240,168,96,0.25);
}

.btn-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,168,96,0.4);
}

.sort-select {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

/* --- 帖子列表（子页面用）--- */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid transparent;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-card-praise { border-left-color: var(--accent); }
.post-card-roast { border-left-color: var(--color-roundtable); }

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.post-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-praise { background: var(--color-qa-bg); color: #c0811a; }
.tag-roast { background: var(--color-roundtable-bg); color: var(--color-roundtable); }

.post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-target {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.post-target span {
  font-weight: 600;
  color: var(--text);
}

.post-content {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.post-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 2px 0;
}

.post-action:hover { color: var(--accent); }

.post-action.voted {
  color: var(--accent);
  font-weight: 600;
}

.post-action .action-icon { font-size: 1rem; }

/* --- 空状态 --- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-emoji { font-size: 3rem; margin-bottom: 12px; }

.empty-state p { font-size: 0.95rem; }

/* --- 模态框 --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

.modal-sm { max-width: 420px; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover { color: var(--text); }

.modal form { padding: 18px 20px; }

/* --- 表单 --- */
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.input, .textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: var(--card-bg);
  transition: var(--transition);
  color: var(--text);
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,168,96,0.12);
}

.textarea { resize: vertical; min-height: 80px; }

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* --- 按钮 --- */
.btn {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #f0a860, #ffc891);
  color: #1a1a3e;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(240,168,96,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,168,96,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }

/* --- 评论 --- */
.comment-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px 20px;
}

.comment-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child { border-bottom: none; }

.comment-item .comment-text {
  font-size: 0.88rem;
  color: var(--text);
}

.comment-item .comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 20px 16px;
  border-top: 1px solid var(--border);
}

.comment-input-row .input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* ================================================================
   出行神器
   ================================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.tools-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tools-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ================================================================
   响应式 — 移动端
   ================================================================ */
@media (max-width: 700px) {
  .hero {
    min-height: 50vh;
    padding: 40px 16px 90px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 4px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .hero-btn {
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  .hero-wave svg {
    height: 50px;
  }

  .header {
    padding: 24px 16px 18px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .section {
    padding: 20px 14px 28px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  /* 游记滚动 */
  .diary-card {
    flex: 0 0 220px;
  }

  .diary-card-image {
    height: 130px;
    font-size: 2.8rem;
  }

  /* 攻略网格 -> 2 列 */
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .guide-card-image {
    height: 80px;
    font-size: 1.8rem;
  }

  .guide-card-body {
    padding: 10px 12px 12px;
  }

  .guide-card-title {
    font-size: 0.85rem;
  }

  /* 双列社区 -> 上下堆叠 */
  .community-split {
    flex-direction: column;
    gap: 16px;
  }

  /* 子页面 */
  .subpage-topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }

  .subpage-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .modal {
    max-width: 100%;
    margin: 0 8px;
  }

  /* 导航栏移动端 */
  .nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav-inner {
    padding: 0 12px;
  }

  .nav-account {
    font-size: 0.82rem;
    padding: 6px 10px;
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .diary-card {
    flex: 0 0 200px;
  }
}
