/* ========== 设计变量 ========== */
:root {
  /* 三色调色板 */
  --c-primary: #088395;        /* 主色：海洋绿松石 */
  --c-primary-dark: #056a7a;   /* 主色深：hover/激活 */
  --c-secondary: #ff7a59;      /* 辅色：温暖珊瑚 */
  --c-secondary-dark: #e85a3a; /* 辅色深：hover */
  --c-accent: #0a4d68;         /* 辅助色：深海蓝 */

  /* 中性基色 */
  --c-paper: #ffffff;
  --c-ink: #1a2238;
  --c-ink-2: #4a5568;
  --c-ink-3: #8a94a6;
  --c-line: #e8e3da;
  --c-line-soft: #f0ece3;

  /* 语义色 */
  --c-success: #2bb673;
  --c-warn: #f0a040;
  --c-danger: #e94f4f;

  /* 兼容旧引用 */
  --c-ocean: var(--c-primary);
  --c-ocean-soft: var(--c-primary-dark);
  --c-deep: var(--c-accent);
  --c-coral: var(--c-secondary);
  --c-coral-dark: var(--c-secondary-dark);
  --c-cream: var(--c-paper);
  --c-bg: var(--c-paper);
  --c-sand: #f4d35e;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 32px;

  --shadow-s: 0 2px 8px rgba(26, 34, 56, 0.06);
  --shadow-m: 0 6px 22px rgba(26, 34, 56, 0.08);
  --shadow-l: 0 14px 40px rgba(26, 34, 56, 0.12);

  --ff: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-secondary); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--c-ink); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ========== 通用容器 ========== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ========== 顶部导航 ========== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line-soft);
}
.topbar-inner {
  height: 68px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
}
.topbar-inner > .brand { justify-self: start; }
.topbar-inner > .nav-menu { justify-self: start; margin-left: 36px; }
.topbar-inner > .nav-actions { justify-self: end; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--c-accent); }
.brand-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-primary);
  position: relative; overflow: hidden;
}
.brand-logo::before {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 10px;
  background: var(--c-sand); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.brand-logo::after {
  content: ""; position: absolute; top: 5px; right: 6px; width: 8px; height: 8px;
  background: var(--c-sand); border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 11px; color: var(--c-ink-3); font-weight: 400; letter-spacing: 1px; }

.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu a { font-size: 14px; color: var(--c-ink-2); position: relative; padding: 8px 0; }
.nav-menu a.active { color: var(--c-accent); font-weight: 500; }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-primary); border-radius: 2px;
}

/* 导航 hover 下拉 */
.nav-dropdown { position: relative; padding: 8px 0; }
.nav-dropdown > .nav-link { cursor: pointer; }
.nav-dropdown > .nav-link::after {
  content: ""; display: inline-block; margin-left: 6px; vertical-align: middle;
  border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px);
}
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  min-width: 260px; background: #fff;
  border: 1px solid var(--c-line-soft); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m); padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity .18s, visibility .18s, transform .18s;
  z-index: 200;
}
.nav-dropdown::before { content:""; position:absolute; top:100%; left:0; right:0; height:8px; }
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s);
  transition: background .15s; align-items: center;
}
.nav-dropdown-item:hover { background: var(--c-line-soft); }
.nav-dropdown-item.active { background: rgba(8,131,149,0.08); }
.nav-dropdown-item.active .nav-dropdown-title { color: var(--c-primary); }
.nav-dropdown-icon { font-size: 22px; line-height: 1; }
.nav-dropdown-title { font-size: 14px; font-weight: 500; color: var(--c-ink); white-space: nowrap; }
.nav-dropdown-desc { font-size: 12px; color: var(--c-ink-3); margin-top: 2px; white-space: nowrap; }

.nav-actions { display: flex; gap: 12px; align-items: center; }

/* 头像悬浮菜单 */
.avatar-menu { position: relative; }
.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-primary);
  color: #fff; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar-btn:hover { background: var(--c-primary-dark); box-shadow: 0 4px 12px rgba(8,131,149,0.3); }
.avatar-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px; background: #fff; border: 1px solid var(--c-line-soft);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all .18s; z-index: 200;
}
.avatar-menu:hover .avatar-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.avatar-dropdown a, .avatar-dropdown button {
  display: flex; align-items: center; width: 100%;
  padding: 10px 14px; font-size: 14px; color: var(--c-ink-2);
  background: none; border: none; cursor: pointer; text-align: left;
  border-radius: 6px; transition: all .15s; font-family: inherit;
}
.avatar-dropdown a:hover, .avatar-dropdown button:hover {
  background: var(--c-line-soft); color: var(--c-secondary);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-s); font-size: 14px; font-weight: 500;
  background: var(--c-paper); color: var(--c-ink); border: 1px solid var(--c-line);
  transition: all .2s;
}
.btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-primary {
  background: var(--c-primary);
  color: #fff; border-color: transparent;
}
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-coral {
  background: var(--c-secondary);
  color: #fff; border-color: transparent;
}
.btn-coral:hover { background: var(--c-secondary-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--c-line); color: var(--c-ink-2); }
.btn-ghost:hover { background: var(--c-paper); color: var(--c-accent); border-color: var(--c-primary); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ========== 图标按钮 ========== */
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-paper); border: 1px solid var(--c-line);
  color: var(--c-ink-2); transition: all .2s; position: relative;
}
.icon-btn:hover { color: var(--c-secondary); border-color: var(--c-secondary); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  background: var(--c-secondary); color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid var(--c-paper);
}
.icon-btn svg { width: 18px; height: 18px; }

/* ========== 页脚 ========== */
.footer {
  background: var(--c-accent);
  background-clip: padding-box;
  color: rgba(255,255,255,0.7); margin-top: auto;
  padding: 20px 0;
}
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  font-size: 12px; text-align: center;
}

/* ========== 标签 ========== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px;
  background: var(--c-line-soft); color: var(--c-ink-2);
}
.tag-ocean { background: rgba(8, 131, 149, 0.1); color: var(--c-primary); }
.tag-coral { background: rgba(255, 122, 89, 0.12); color: var(--c-secondary-dark); }
.tag-sand { background: rgba(244, 211, 94, 0.2); color: #b07c00; }
.tag-deep { background: rgba(10, 77, 104, 0.1); color: var(--c-accent); }
.tag-success { background: rgba(43, 182, 115, 0.12); color: var(--c-success); }
.tag-danger { background: rgba(233, 79, 79, 0.12); color: var(--c-danger); }

/* ========== 卡片 ========== */
.card {
  background: var(--c-paper); border-radius: var(--radius-m);
  box-shadow: var(--shadow-s); overflow: hidden;
  transition: all .25s;
}
.card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }

/* ========== 图片占位（色块） ========== */
.ph {
  position: relative; overflow: hidden;
  background: var(--c-primary);
}
.ph-coral { background: var(--c-secondary); }
.ph-sunset { background: #ff8a5b; }
.ph-lagoon { background: #4ec5d1; }
.ph-reef { background: #00b4a6; }
.ph-sand { background: #f4d35e; }
.ph-jungle { background: #5cb874; }
.ph-night { background: #1a2238; }
.ph-room { background: #c79a6a; }
.ph-water { background: #4ec5d1; }
.ph-food { background: #ff7a59; }
.ph-activity { background: #5cb874; }
.ph-label {
  position: absolute; z-index: 2; left: 12px; bottom: 12px;
  color: #fff; font-size: 12px; font-weight: 500;
  background: rgba(0,0,0,0.28); padding: 4px 10px; border-radius: 12px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.5px;
}
.ph-icon {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%);
  color: rgba(255,255,255,0.55); font-size: 32px;
}

/* ========== 网格 ========== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .container { padding: 0 16px; }
}

/* ========== 分区标题 ========== */
.section { padding: 60px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px;
}
.section-title {
  font-size: 26px; font-weight: 600; color: var(--c-ink); letter-spacing: 0.5px;
}
.section-title small {
  display: block; font-size: 13px; color: var(--c-ink-3); font-weight: 400; margin-top: 4px;
  letter-spacing: 1px; text-transform: uppercase;
}
.section-sub { font-size: 14px; color: var(--c-ink-3); max-width: 540px; }

/* ========== 工具类 ========== */
.text-coral { color: var(--c-secondary); }
.text-ocean { color: var(--c-primary); }
.text-deep { color: var(--c-accent); }
.text-muted { color: var(--c-ink-3); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-b { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hide { display: none !important; }

/* ========== Toast ========== */
.toast-wrap {
  position: fixed; top: 88px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: rgba(26, 34, 56, 0.92); color: #fff;
  padding: 10px 22px; border-radius: 999px; font-size: 13px;
  box-shadow: var(--shadow-l); backdrop-filter: blur(10px);
  animation: toast-in .25s ease;
}
.toast-success { background: rgba(43, 182, 115, 0.95); }
.toast-warn { background: rgba(240, 160, 64, 0.95); }
.toast-error { background: rgba(233, 79, 79, 0.95); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ========== Modal ========== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10, 20, 40, 0.5); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(4px); animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--c-paper); border-radius: var(--radius-l); padding: 28px;
  max-width: 560px; width: 100%; max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-l); animation: modal-in .25s ease;
}
@keyframes modal-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--c-line-soft); color: var(--c-ink-2); font-size: 18px; }
.modal-close:hover { background: var(--c-line); }

/* ========== 表单 ========== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--c-ink-2); margin-bottom: 6px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--c-line);
  border-radius: var(--radius-s); background: var(--c-paper); transition: all .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(8, 131, 149, 0.12);
}

/* ========== 评分星 ========== */
.stars { display: inline-flex; gap: 2px; color: var(--c-sand); font-size: 13px; }
.stars .star { color: var(--c-line); }
.stars .star.on { color: var(--c-sand); }

/* ========== 加载态 ========== */
.empty {
  text-align: center; padding: 60px 20px; color: var(--c-ink-3);
}
.empty .empty-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.5; }

/* ========== 面包屑 ========== */
.crumb { font-size: 13px; color: var(--c-ink-3); padding: 16px 0; }
.crumb a:hover { color: var(--c-primary); }
.crumb .sep { margin: 0 8px; opacity: 0.5; }

/* ========== 通用 hero 背景 ========== */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-paper); }
::-webkit-scrollbar-thumb { background: #c8c0b0; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #a89e8a; }
