/* =========================================================
   高高丈量世界 —— 旅行手账贴纸风样式
   配色：海盐蓝 · 奶油白 · 薄荷绿 · 日落橘 · 珊瑚橙
   ========================================================= */
:root {
  --sea-blue: #9fd6e8;      /* 海盐蓝 */
  --sea-deep: #6abbd4;
  --sea-soft: #d8f1f8;
  --cream: #fffdf8;         /* 奶油白 */
  --cream-dark: #fff6e6;
  --mint: #b8e6d2;          /* 薄荷绿 */
  --mint-soft: #e0f5ec;
  --sunset: #ffb088;        /* 日落橘 */
  --coral: #ff8c69;         /* 珊瑚橙 */
  --sun-yellow: #ffe49a;
  --lavender: #e6d8f5;
  --peach: #ffd8cc;
  --ink: #4a5560;
  --ink-soft: #7a8a96;
  --ink-light: #a8b8c4;
  --paper-line: #d6c8b8;
  --radius: 26px;
  --radius-sm: 18px;
  --radius-xl: 32px;
  --shadow: 0 12px 34px rgba(120, 130, 140, 0.14);
  --shadow-sm: 0 6px 18px rgba(120, 130, 140, 0.12);
  --font-cn: "ZCOOL KuaiLe", "YouYuan", "幼圆", "Yuanti SC", "圆体-简", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Quicksand", "ZCOOL KuaiLe", "Comic Sans MS", "YouYuan", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-cn);
  color: var(--ink);
  min-height: 100vh;
  /* 奶油纸纹底 + 天空渐变 */
  background:
    radial-gradient(120% 80% at 90% -5%, rgba(255, 228, 154, 0.45) 0%, rgba(255, 228, 154, 0) 50%),
    radial-gradient(90% 60% at 10% 5%, rgba(159, 214, 232, 0.45) 0%, rgba(159, 214, 232, 0) 55%),
    radial-gradient(80% 70% at 50% 100%, rgba(184, 230, 210, 0.35) 0%, rgba(184, 230, 210, 0) 50%),
    linear-gradient(180deg, #f7fbff 0%, #fffdf8 40%, #fff8ec 100%);
  background-attachment: fixed;
  position: relative;
}

/* 纸纹 + 颗粒感覆盖层 */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(198, 180, 160, 0.08) 28px, rgba(198, 180, 160, 0.08) 29px);
  mix-blend-mode: multiply;
}

/* 手绘装饰层：海浪线、贝壳、小飞机、云朵、旅行箱、地图针、相机 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'%3E%3Cpath d='M10 80 Q35 60 60 80 T110 80 T160 80 T210 80' fill='none' stroke='%239fd6e8' stroke-width='3' stroke-linecap='round' opacity='0.55'/%3E%3Cpath d='M20 95 Q45 75 70 95 T120 95 T170 95 T220 95' fill='none' stroke='%23b8e6d2' stroke-width='2.5' stroke-linecap='round' opacity='0.5'/%3E%3Ctext x='160' y='45' font-size='28' opacity='0.55'%3E%F0%9F%90%9A%3C/text%3E%3Ctext x='20' y='55' font-size='24' opacity='0.5'%3E%E2%9C%88%EF%B8%8F%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='160' viewBox='0 0 280 160'%3E%3Ctext x='40' y='55' font-size='34' opacity='0.45'%3E%E2%98%81%EF%B8%8F%3C/text%3E%3Ctext x='190' y='120' font-size='30' opacity='0.45'%3E%F0%9F%93%B7%3C/text%3E%3Ctext x='110' y='95' font-size='26' opacity='0.4'%3E%F0%9F%97%BA%EF%B8%8F%3C/text%3E%3Cpath d='M230 30 Q255 20 270 40' fill='none' stroke='%23ffb088' stroke-width='2.5' stroke-linecap='round' opacity='0.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140' viewBox='0 0 240 140'%3E%3Ctext x='30' y='110' font-size='30' opacity='0.45'%3E%F0%9F%A7%B3%3C/text%3E%3Ctext x='170' y='55' font-size='26' opacity='0.45'%3E%F0%9F%93%8D%3C/text%3E%3Cpath d='M120 120 Q145 105 170 120 T220 120' fill='none' stroke='%23ff8c69' stroke-width='3' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-position: 5% 8%, 70% 25%, 30% 70%;
  background-size: 420px 240px, 520px 300px, 460px 260px;
  opacity: 0.9;
}

.num { font-family: var(--font-num); font-feature-settings: "tnum"; }

.app { position: relative; z-index: 1; max-width: 1500px; margin: 0 auto; padding: 16px; }

/* ---------------- 顶栏：云朵卡片 ---------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 253, 248, 0.92);
  border: 2px solid rgba(159, 214, 232, 0.55);
  border-radius: var(--radius-xl);
  padding: 12px 22px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.topbar::before {
  content: "☁️";
  position: absolute; left: -12px; top: -14px; font-size: 34px;
  filter: drop-shadow(2px 3px 0 rgba(159,214,232,.25));
  transform: rotate(-12deg);
}
.topbar::after {
  content: "✈️";
  position: absolute; right: 18px; top: -16px; font-size: 28px;
  filter: drop-shadow(2px 3px 0 rgba(255,176,136,.25));
  transform: rotate(16deg);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; color: var(--sea-deep); }
.brand .logo {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sea-blue), var(--mint));
  display: grid; place-items: center; color: #fff; font-size: 22px;
  box-shadow: 0 5px 12px rgba(106, 187, 212, .35);
  border: 2px solid #fff;
}
.top-actions { display: flex; align-items: center; gap: 12px; }
.store-badge {
  font-family: var(--font-cn); font-size: 12px; color: var(--ink-soft);
  background: rgba(255,255,255,.8); border: 1.5px dashed var(--sea-blue);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap; user-select: none;
}
.store-badge.on { color: #0a7d6e; background: rgba(184,230,210,.35); border-style: solid; border-color: var(--mint); }
.store-badge.on.cloud { color: #6a4bd0; background: rgba(230,216,245,.45); border-color: var(--lavender); }

/* ---------------- 云同步弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(74, 85, 96, .45); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px;
}
.modal-mask.open { display: flex; }
.modal {
  width: min(440px, 94vw); max-height: 88vh; overflow: auto;
  background: var(--cream); border: 2px solid var(--sea-blue);
  border-radius: var(--radius); padding: 22px 22px 18px;
  box-shadow: var(--shadow); font-family: var(--font-cn); color: var(--ink);
  position: relative;
}
.modal::before {
  content: "🧷"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-8deg);
  font-size: 26px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.1));
}
.modal-head { font-size: 20px; color: var(--sea-deep); margin-bottom: 6px; text-align: center; }
.modal-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; }
.modal label { display: block; font-size: 13px; color: var(--ink-soft); margin: 10px 0 4px; }
.modal-input {
  width: 100%; font-family: var(--font-cn); font-size: 14px; color: var(--ink);
  border: 2px dashed var(--sea-blue); border-radius: 14px; padding: 9px 12px; outline: none;
  background: #fff;
}
.modal-input:focus { border-style: solid; border-color: var(--sea-deep); }
.modal-sql { background: var(--sea-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px; border: 1.5px solid var(--sea-blue); }
.modal-sql-title { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.modal-sql pre {
  font-family: "Quicksand", monospace; font-size: 12px; line-height: 1.5;
  background: #3a4a52; color: #e8f3f5; border-radius: 12px; padding: 10px 12px; overflow: auto; margin: 0 0 8px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal-status { font-size: 13px; margin-top: 10px; min-height: 18px; text-align: center; }
.modal-status.ok { color: #0a9d6e; }
.modal-status.err { color: #d2624f; }

/* ---------------- 贴纸按钮 ---------------- */
.btn {
  font-family: var(--font-cn); cursor: pointer; border: none;
  padding: 9px 18px; font-size: 15px; transition: transform .12s ease, box-shadow .12s ease;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; position: relative;
}
.btn::after {
  content: "";
  position: absolute; inset: 0; border-radius: 999px;
  border: 2px dashed rgba(255,255,255,.7); pointer-events: none;
}
.btn:active { transform: scale(.96) rotate(-1deg); }
.btn-primary {
  background: linear-gradient(135deg, var(--sunset), var(--coral));
  color: #fff; box-shadow: 0 6px 16px rgba(255, 140, 105, .35);
}
.btn-ghost { background: #fff; color: var(--sea-deep); box-shadow: var(--shadow-sm); border: 2px solid var(--sea-blue); }
.btn-soft { background: var(--sea-soft); color: var(--sea-deep); border: 2px dashed var(--sea-blue); }
.btn-soft:hover { background: var(--sea-blue); color: #fff; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--lavender), var(--peach));
  color: var(--ink); display: grid; place-items: center; font-size: 16px;
  box-shadow: var(--shadow-sm); border: 2px solid #fff;
}

/* ---------------- 布局 ---------------- */
.body { display: flex; gap: 18px; align-items: flex-start; }
.sidebar {
  width: 300px; flex: 0 0 300px;
  background: rgba(255, 253, 248, 0.88);
  border: 2px solid rgba(159, 214, 232, 0.5);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 16px; box-shadow: var(--shadow-sm);
  position: sticky; top: 16px;
}
.sidebar::before {
  content: "🧳"; position: absolute; right: -10px; top: 30px; font-size: 32px;
  transform: rotate(18deg); filter: drop-shadow(2px 3px 0 rgba(255,176,136,.25));
}
.workspace { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* ---------------- 侧栏 ---------------- */
.side-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.side-head .title { font-size: 20px; color: var(--sea-deep); }
.side-head .count { color: var(--ink-soft); font-size: 13px; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 2px dashed var(--sea-blue); border-radius: 999px;
  padding: 9px 14px; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.search-box input { border: none; outline: none; flex: 1; font-family: var(--font-cn); font-size: 14px; background: transparent; }
.search-box .mag { color: var(--sea-deep); }
.add-btn { width: 100%; justify-content: center; margin-bottom: 14px; }
.section-label { font-size: 14px; color: var(--ink-soft); margin: 6px 4px 8px; }
.dest-list { display: flex; flex-direction: column; gap: 10px; }
.dest {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .12s ease;
  border: 2px solid transparent;
}
.dest:hover { transform: translateY(-2px) rotate(-0.5deg); }
.dest.active { background: var(--sea-soft); border-color: var(--sea-blue); outline: none; }
.dest .emoji { font-size: 22px; width: 34px; height: 34px; display: grid; place-items: center; }
.dest .cover-img {
  width: 38px; height: 38px; border-radius: 12px; object-fit: cover;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.dest .name { font-size: 15px; }
.dest .date { font-size: 12px; color: var(--ink-soft); }
.dest .del { margin-left: auto; color: #c98; opacity: .6; cursor: pointer; font-size: 13px; }
.dest .del:hover { opacity: 1; color: #e06; }

/* ---------------- 便签卡片 ---------------- */
.card {
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow);
  position: relative; overflow: visible;
  border: 2px solid rgba(255,255,255,.8);
}
.card::before {
  content: "";
  position: absolute; top: -12px; left: 28px;
  width: 48px; height: 18px;
  background: rgba(255, 255, 255, .55);
  border-left: 2px dashed rgba(0,0,0,.08);
  border-right: 2px dashed rgba(0,0,0,.08);
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute; bottom: -10px; right: 30px; width: 60px; height: 22px;
  background: rgba(255,255,255,.5);
  border-left: 2px dashed rgba(0,0,0,.08);
  border-right: 2px dashed rgba(0,0,0,.08);
  transform: rotate(5deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  pointer-events: none;
}
.card .decor { position: absolute; right: 16px; top: 14px; font-size: 26px; opacity: .85; pointer-events: none; }
.card-title { font-size: 19px; color: var(--ink); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }

.c-yellow { background: linear-gradient(135deg, rgba(255, 248, 220, .96), rgba(255, 228, 154, .55)); border-color: rgba(255, 214, 112, .5); }
.c-blue   { background: linear-gradient(135deg, rgba(216, 241, 248, .96), rgba(159, 214, 232, .55)); border-color: rgba(106, 187, 212, .45); }
.c-mint   { background: linear-gradient(135deg, rgba(232, 245, 236, .96), rgba(184, 230, 210, .55)); border-color: rgba(130, 205, 172, .45); }
.c-pink   { background: linear-gradient(135deg, rgba(253, 231, 238, .96), rgba(255, 176, 200, .45)); border-color: rgba(255, 154, 179, .45); }
.c-cyan   { background: linear-gradient(135deg, rgba(224, 246, 250, .96), rgba(159, 214, 232, .45)); border-color: rgba(106, 187, 212, .4); }
.c-orange { background: linear-gradient(135deg, rgba(255, 240, 230, .96), rgba(255, 176, 136, .5)); border-color: rgba(255, 140, 105, .45); }
.c-purple { background: linear-gradient(135deg, rgba(242, 228, 245, .96), rgba(230, 216, 245, .55)); border-color: rgba(200, 180, 220, .45); }

/* 模块间手绘波浪分隔线 */
.card + .card::before {
  content: "✂ ✁ ✂";
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 14px; color: var(--ink-light); letter-spacing: 6px;
  background: transparent; width: auto; height: auto; border: none; box-shadow: none;
}

/* ---------------- 目的地头部 ---------------- */
.dest-header { display: flex; gap: 18px; align-items: center; }
.dest-cover {
  width: 118px; height: 118px; border-radius: var(--radius-sm); flex: 0 0 118px;
  background: linear-gradient(135deg, var(--sunset), var(--coral), var(--sun-yellow));
  display: grid; place-items: center;
  font-size: 54px; box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
  position: relative; cursor: pointer; overflow: hidden;
}
.dest-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.dest-cover .edit-hint {
  position: absolute; inset: auto 0 0 0; background: rgba(74,85,96,.55);
  color: #fff; font-size: 11px; text-align: center; padding: 4px 0;
  opacity: 0; transition: opacity .2s;
}
.dest-cover:hover .edit-hint { opacity: 1; }
.dest-cover .add-photo {
  display: none; position: absolute; inset: 0; place-items: center;
  background: rgba(255,255,255,.35); color: var(--ink); font-size: 28px;
}
.dest-cover:hover .add-photo { display: grid; }
.dest-info { flex: 1; min-width: 0; }
.dest-info .dn { font-size: 27px; color: var(--ink); }
.dest-info .dm { color: var(--ink-soft); font-size: 14px; margin: 4px 0; }
.dest-info .dd { color: var(--coral); font-size: 13px; font-weight: 700; }
.share-btn { align-self: flex-start; }

/* 图标选择器 */
.icon-picker-mask {
  position: fixed; inset: 0; background: rgba(74,85,96,.45); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px;
}
.icon-picker-mask.open { display: flex; }
.icon-picker {
  width: min(420px, 94vw); max-height: 80vh; overflow: auto;
  background: var(--cream); border: 2px solid var(--sea-blue);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.icon-picker-head { font-size: 18px; color: var(--sea-deep); margin-bottom: 14px; text-align: center; }
.icon-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.icon-cell {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 26px;
  background: #fff; border: 2px dashed var(--sea-blue); border-radius: 14px;
  cursor: pointer; transition: transform .12s, background .12s;
}
.icon-cell:hover { transform: scale(1.08); background: var(--sea-soft); border-style: solid; }
.icon-picker .btn { width: 100%; justify-content: center; }
.photo-row { margin-bottom: 12px; text-align: center; }
.photo-row input[type="file"] { display: none; }
.photo-row label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mint-soft); color: #3a8a6e;
  border: 2px dashed var(--mint); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; font-size: 14px;
}

/* ---------------- 交通 ---------------- */
.transport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flight {
  background: rgba(255,255,255,.78); border-radius: var(--radius-sm); padding: 16px;
  box-shadow: var(--shadow-sm); border: 2px dashed rgba(159,214,232,.5);
  position: relative;
}
.flight::before {
  content: "✈️"; position: absolute; right: 10px; top: 8px; font-size: 22px; opacity: .45;
}
.flight .fl { font-size: 14px; color: var(--sea-deep); margin-bottom: 6px; }
.flight .route { font-size: 17px; color: var(--ink); }
.flight .detail { font-family: var(--font-num); font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.add-line { margin-top: 12px; }

/* ---------------- 物品清单 ---------------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px;
  box-shadow: var(--shadow-sm); border: 1.5px dashed var(--sea-blue);
}
.chip.cur { background: var(--sea-blue); color: #fff; border-style: solid; }
.checklist { display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.8); border-radius: 14px;
  padding: 9px 12px; box-shadow: var(--shadow-sm); font-size: 14px;
  cursor: pointer; border: 1.5px dashed transparent;
}
.check:hover { border-color: var(--mint); }
.check .box {
  width: 22px; height: 22px; border-radius: 8px; border: 2px solid var(--sea-blue);
  display: grid; place-items: center; color: #fff; cursor: pointer; flex: 0 0 22px; font-size: 13px;
  background: #fff;
}
.check.done .box { background: var(--mint); border-color: var(--mint); }
.check.done .ct { text-decoration: line-through; color: var(--ink-soft); }
.add-item { margin-top: 10px; }

/* ---------------- 每日路线 ---------------- */
.day-card {
  background: rgba(255,255,255,.8); border-radius: var(--radius-sm); padding: 14px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
  border: 2px dashed rgba(255, 154, 179, .4);
}
.day-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.day-tag { background: var(--coral); color: #fff; border-radius: 999px; padding: 3px 12px; font-family: var(--font-num); font-weight: 700; font-size: 13px; }
.day-title { font-size: 16px; }
.route-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.stop {
  background: #fff; border: 2px solid var(--sea-blue); border-radius: 999px; padding: 7px 14px;
  font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 6px rgba(159,214,232,.2);
}
.stop .x { color: #c98; cursor: pointer; font-size: 12px; }
.dash { color: var(--coral); font-family: var(--font-num); font-weight: 700; }
.add-stop { border: 2px dashed var(--sea-blue); color: var(--sea-deep); background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: var(--font-cn); font-size: 13px; }
.add-day { margin-top: 4px; }

/* ---------------- 地图 ---------------- */
.map-wrap { position: relative; }
.map {
  position: relative; height: 260px; border-radius: var(--radius-sm); overflow: hidden;
  background:
    radial-gradient(80% 60% at 30% 20%, #d8f3ff 0%, rgba(216,243,255,0) 60%),
    linear-gradient(180deg, #eafbff 0%, #d6f3e6 100%);
  box-shadow: inset 0 0 0 3px rgba(159,214,232,.35);
  cursor: crosshair;
}
.map .hill { position: absolute; bottom: 0; left: 0; right: 0; height: 70px; background: var(--mint); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .55; }
.map .hill.b { left: 40%; height: 50px; background: #9adbb8; opacity: .65; }
.map::before {
  content: "🌊"; position: absolute; bottom: 4px; left: 12px; font-size: 28px; opacity: .5;
}
.marker {
  position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column;
  align-items: center; cursor: pointer;
}
.marker .pin { font-size: 24px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.marker .lbl { font-size: 11px; background: #fff; padding: 2px 6px; border-radius: 8px; box-shadow: var(--shadow-sm); margin-top: 2px; white-space: nowrap; }
.map-legend { font-family: var(--font-num); font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.map-hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* ---------------- 花费 ---------------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.exp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.exp-table th, .exp-table td { text-align: left; padding: 9px 10px; }
.exp-table thead th { color: var(--coral); font-weight: normal; border-bottom: 2px dashed var(--sunset); }
.exp-table tbody tr { background: rgba(255,255,255,.65); }
.exp-table tbody tr:nth-child(even) { background: rgba(255,255,255,.4); }
.exp-table .amt { font-family: var(--font-num); font-weight: 600; }
.exp-table .cat { color: var(--sea-deep); }
.exp-total { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; font-size: 15px; }
.exp-total b { font-family: var(--font-num); color: var(--coral); font-size: 18px; }
.add-exp { margin-top: 10px; }

/* ---------------- 天气 ---------------- */
.weather-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.w-card {
  flex: 0 0 156px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,.85); border-radius: var(--radius-sm); padding: 14px;
  box-shadow: var(--shadow-sm); border: 2px dashed var(--sunset);
}
.w-card .wd { font-family: var(--font-num); font-size: 12px; color: var(--ink-soft); }
.w-card .wt { font-family: var(--font-num); font-size: 26px; color: var(--coral); font-weight: 700; }
.w-card .wc { font-size: 14px; }
.weather-note { margin-top: 12px; background: var(--cream-dark); border: 2px dashed var(--sunset); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: #8a6d3b; }

/* ---------------- 备注 ---------------- */
.notes-box {
  width: 100%; min-height: 110px; border: 2px dashed var(--lavender); border-radius: var(--radius-sm);
  padding: 12px; font-family: var(--font-cn); font-size: 14px; resize: vertical; outline: none;
  background: rgba(255,255,255,.75);
}
.saved-tag { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

/* ---------------- 输入框通用 ---------------- */
.inline-input {
  border: none; border-bottom: 2px dashed transparent; background: transparent; font-family: var(--font-cn);
  font-size: inherit; color: inherit; outline: none; padding: 2px 4px; border-radius: 6px; width: 100%;
}
.inline-input:focus { border-bottom-color: var(--sea-blue); background: rgba(255,255,255,.6); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.field label { font-size: 12px; color: var(--ink-soft); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 920px) {
  .body { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; border-radius: var(--radius); position: static;
  }
  .transport-grid { grid-template-columns: 1fr; }
  .weather-row { flex-wrap: nowrap; }
  .dest-header { flex-direction: column; text-align: center; }
  .dest-cover { margin: 0 auto; }
  .icon-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------------- 只读分享视图（好友通过链接打开） ---------------- */
.share-view .sidebar { display: none; }
.share-view .top-actions { display: none; }
.share-view .body { display: block; }
.share-view .workspace { max-width: 920px; margin: 0 auto; }
.share-view input, .share-view textarea {
  pointer-events: none; -webkit-user-select: none; user-select: none;
  background: transparent !important; border-color: transparent !important;
  box-shadow: none !important; color: inherit; resize: none;
}
.share-view .share-btn, .share-view .add-line, .share-view .add-item,
.share-view .add-stop, .share-view .add-day, .share-view .add-exp,
.share-view #addMarkerBtn, .share-view .x, .share-view .del,
.share-view .add-exp-cat, .share-view #addExpAny, .share-view #expSummaryBtn,
.share-view .add-wcard, .share-view .link-form, .share-view .link-list,
.share-view .icon-picker-trigger, .share-view .dest-cover .edit-hint,
.share-view .dest-cover .add-photo {
  display: none !important;
}
.share-banner {
  display: none; align-items: center; gap: 8px; margin-left: 12px;
  background: var(--cream-dark); color: #9a6b00; border: 2px dashed var(--sunset);
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
}
.share-view .share-banner { display: inline-flex; }
.share-view select { pointer-events: none; -webkit-user-select: none; user-select: none; background: transparent !important; box-shadow: none !important; }

/* ---------------- 路线拖拽 ---------------- */
.stop { cursor: grab; user-select: none; }
.stop:active { cursor: grabbing; }
.stop .mv, .day-mv { font-size: 11px; color: var(--sea-deep); cursor: pointer; opacity: .55; margin: 0 2px; }
.stop .mv:hover, .day-mv:hover { opacity: 1; }
.day-handle { cursor: grab; color: var(--sea-deep); font-size: 18px; line-height: 1; user-select: none; padding: 0 2px; }
.day-handle:active { cursor: grabbing; }
.stop.drag-over, .day-card.drag-over { outline: 2px dashed var(--coral); outline-offset: 2px; }

/* ---------------- 行程开始/结束日 ---------------- */
.trip-dates { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.trip-dates label { font-size: 12px; color: var(--ink-soft); }
.trip-dates .dt {
  width: auto; font-family: var(--font-num); font-size: 13px; color: var(--sea-deep);
  border: 2px dashed var(--sea-blue); border-radius: 12px; padding: 5px 10px; background: #fff;
}
.trip-days-hint { font-size: 12px; color: var(--ink-soft); margin-left: auto; }

/* ---------------- 地图连线 ---------------- */
.link-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.link-svg line { stroke: var(--coral); stroke-width: 0.7; stroke-dasharray: 1.5 1; opacity: .85; }
.link-form { margin-top: 12px; background: rgba(255,255,255,.75); border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow-sm); border: 2px dashed var(--sea-blue); }
.lf-title { font-size: 14px; color: var(--sea-deep); margin-bottom: 8px; }
.lf-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lf-row > span { color: var(--coral); font-weight: 700; }
.lf-row .modal-input { flex: 1; min-width: 0; }
.lf-dist { flex: 0 0 92px !important; width: 92px !important; }
.link-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.link-row { display: flex; align-items: center; justify-content: space-between; background: var(--sea-soft); border-radius: 10px; padding: 7px 12px; font-size: 13px; }
.link-row .lk b { color: var(--coral); }
.link-row .x { color: #c98; cursor: pointer; }

/* ---------------- 花费类别分栏 + 汇总 ---------------- */
.exp-filter { width: auto !important; min-width: 110px; font-size: 13px; padding: 6px 10px; }
.exp-cat-card { background: rgba(255,255,255,.78); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-sm); margin-bottom: 12px; border: 2px dashed rgba(159,214,232,.45); }
.exp-cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.exp-cat-head b { color: var(--coral); font-family: var(--font-num); }
.exp-cat-card .add-exp-cat { margin-top: 8px; }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sum-box { background: rgba(255,255,255,.8); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow-sm); border: 2px dashed var(--sunset); }
.sum-h { font-size: 13px; color: var(--coral); margin-bottom: 6px; }
.exp-date, .w-day, .w-cond {
  width: auto; min-width: 64px; border: 2px dashed var(--sea-blue); border-radius: 12px;
  padding: 4px 8px; background: #fff; font-family: var(--font-cn); font-size: 13px; color: var(--ink);
}

/* ---------------- 天气横滑卡片 ---------------- */
.w-top { display: flex; align-items: center; justify-content: space-between; }
.w-top .x { color: #c98; cursor: pointer; font-size: 13px; }
.w-temp { display: flex; align-items: center; gap: 4px; }
.w-temp .inline-input { width: 46px; text-align: center; font-family: var(--font-num); font-size: 18px; color: var(--coral); }
.w-sep { color: var(--coral); font-weight: 700; }
.w-unit { color: var(--ink-soft); font-size: 13px; }
.w-day, .w-cond { width: auto; max-width: 100%; }

/* ---------------- 只读分享视图补充 ---------------- */
.share-view .add-exp-cat, .share-view #addExpAny, .share-view #expSummaryBtn,
.share-view .add-wcard, .share-view .link-form, .share-view .link-list { display: none !important; }

/* ============ 模块拖拽 / 折叠（手账便签可排序） ============ */
.module-head { display: flex; align-items: center; gap: 8px; }
.module-handle { cursor: grab; color: var(--teal); font-size: 20px; line-height: 1; user-select: none; }
.module-handle:active { cursor: grabbing; }
.module-head .card-title { flex: 1; margin: 0; }
.module-tools { display: flex; gap: 4px; }
.module-tools .mv { font-size: 12px; color: var(--teal); cursor: pointer; opacity: .6; }
.module-tools .mv:hover { opacity: 1; }
.collapse-btn { font-weight: 700; }
.module.is-collapsed { padding-bottom: 14px; }

/* ============ 放大字体（给长辈看） ============ */
body.big-font .inline-input, body.big-font textarea, body.big-font select { font-size: 18px !important; }
body.big-font .card-title { font-size: 24px !important; }
body.big-font .day-title { font-size: 20px !important; }
body.big-font .chip, body.big-font .day-tag, body.big-font .num, body.big-font .lbl { font-size: 15px !important; }
body.big-font .notes-box { font-size: 17px !important; }
body.big-font .dest-header .dn { font-size: 30px !important; }

/* ============ 每日照片 / 住宿 / 备注 ============ */
.day-photos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.day-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; box-shadow: var(--shadow); cursor: pointer; }
.day-thumb-wrap { position: relative; display: inline-block; }
.day-thumb-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #ff6b6b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25); z-index: 2; }
.day-thumb-del:hover { background: #e23b3b; }
.add-photo-btn { width: 56px; height: 56px; border-radius: 12px; border: 2px dashed var(--sea-blue); background: rgba(159,214,232,.15); color: var(--teal); font-size: 12px; cursor: pointer; }
.photo-full { font-size: 12px; color: var(--ink-soft); }
.day-acc { margin-top: 8px; }
.day-note { margin-top: 6px; min-height: 46px; resize: vertical; }

/* ============ 地图标记工具（改名 / 删除） ============ */
.marker .mk-tools { display: none; position: absolute; top: -10px; right: -10px; gap: 2px; }
.marker:hover .mk-tools { display: flex; }
.mk-tools span { background: #fff; border-radius: 8px; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.mk-edit { color: #0a7d6e; }
.mk-del { color: #d9534f; }

/* ============ 侧栏文件夹 ============ */
.folder { margin-top: 8px; }
.folder-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: linear-gradient(135deg, var(--mint-soft), #fff); border-radius: 12px; cursor: pointer; }
.folder-toggle { color: var(--teal); font-size: 11px; }
.folder-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.folder .dest-list { margin-top: 6px; padding-left: 10px; border-left: 3px dashed var(--mint); }
.folder .mv.sm, .dest .mv.sm { font-size: 10px; opacity: .5; cursor: pointer; }
.dest .mv.sm:hover, .folder .mv.sm:hover { opacity: 1; }

/* ============ 照片放大遮罩 ============ */
.photo-modal { display: none; position: fixed; inset: 0; background: rgba(20,30,40,.85); z-index: 50; align-items: center; justify-content: center; }
.photo-modal.open { display: flex; }
.photo-modal img { max-width: 90vw; max-height: 90vh; border-radius: 16px; }
.photo-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 30px; cursor: pointer; }

/* ============ 空状态提示 ============ */
.empty-hint { color: var(--ink-soft); font-size: 13px; padding: 8px 0; }

/* ============ 只读分享视图：文本自动换行 ============ */
.ro-text { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; display: block; }
.share-view .ro-text { padding: 3px 0; }
/* 分享视图隐藏所有编辑/添加/拖拽控件，仅保留查看 */
.share-view .module-handle, .share-view .module-tools, .share-view .day-handle,
.share-view .add-day, .share-view .add-wcard, .share-view .add-item, .share-view .add-photo-btn,
.share-view .add-exp-cat, .share-view .addExpAny, .share-view #expSummaryBtn,
.share-view .link-form, .share-view .mk-tools, .share-view #addMarkerBtn,
.share-view .x, .share-view .del, .share-view .mv, .share-view .folder-toggle { display: none !important; }
.share-view .marker { cursor: default; }

/* ============ 指针拖拽（鼠标 / 触屏通用） ============ */
.pd-dragging { cursor: grabbing; }
.pd-dragging-item { opacity: .45; }
.pd-drop-target { outline: 2px dashed var(--teal); outline-offset: 3px; }
.module-handle, .day-handle, .marker, .dest, .folder-head { touch-action: none; }
.module-handle, .day-handle { display: inline-block; padding: 2px 6px; }
.dest { cursor: grab; }
.folder-head { cursor: grab; }
