/* ============================================================
   曼谷攻略 · 共享设计系统 (与 bangkok-day1 风格统一)
   ============================================================ */
:root{
  --bg:#fdf6ec; --card:#ffffff; --ink:#33291d; --muted:#8a7a6a;
  --line:#ecdfce; --rail:#e2c9a8;
  --teal:#16a89a; --orange:#f08a24; --purple:#6d5ae0; --green:#1fa463;
  --pink:#e6398f; --navy:#3a2f7a; --gold:#c9a227;
  --accent:#e8622c; --accent2:#f2a900; --star:#f5b301;
  --grad:linear-gradient(115deg,#7b4dd6 0%,#c14ab0 45%,#f0793f 100%);
}
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased;font-size:15px;}

/* ---------- 全局顶部导航 ---------- */
.topbar{position:sticky;top:0;z-index:100;background:var(--grad);color:#fff;box-shadow:0 2px 12px rgba(80,40,110,.18);}
.topbar .bar{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:4px;padding:0 14px;height:54px;}
.topbar .brand{font-weight:800;font-size:17px;color:#fff;text-decoration:none;margin-right:auto;letter-spacing:.5px;white-space:nowrap;}
.topbar .menu{display:flex;align-items:stretch;height:100%;}
.topbar .mi{position:relative;display:flex;align-items:center;}
.topbar .mi>a{color:#fff;text-decoration:none;font-size:14.5px;font-weight:600;padding:0 13px;height:100%;display:flex;align-items:center;opacity:.96;transition:.15s;white-space:nowrap;}
.topbar .mi>a:hover{background:rgba(255,255,255,.16);}
.topbar .mi.active>a{box-shadow:inset 0 -3px 0 #fff;}
.topbar .sub{position:absolute;top:100%;left:0;min-width:128px;background:#fff;border-radius:0 0 12px 12px;
  box-shadow:0 10px 24px rgba(60,30,90,.22);padding:6px;display:none;flex-direction:column;z-index:110;}
.topbar .mi:hover .sub,.topbar .mi.open .sub{display:flex;}
.topbar .sub a{color:var(--ink);text-decoration:none;font-size:14px;padding:8px 12px;border-radius:8px;white-space:nowrap;}
.topbar .sub a:hover{background:#f6eada;color:var(--accent);}
.topbar .sub a.active{background:#fdeee4;color:var(--accent);font-weight:700;}
.topbar .hamburger{display:none;background:transparent;border:none;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:5px 9px;border-radius:8px;}
.topbar .hamburger:hover{background:rgba(255,255,255,.16);}

@media(max-width:680px){
  .topbar .bar{height:50px;padding:0 12px;position:relative;}
  .topbar .brand{font-size:16px;}
  .topbar .hamburger{display:flex;align-items:center;}
  /* 菜单变为下拉面板 */
  .topbar .menu{position:absolute;top:100%;left:0;right:0;height:auto;flex-direction:column;background:#fff;display:none;
    box-shadow:0 14px 26px rgba(60,30,90,.22);max-height:80vh;overflow-y:auto;border-radius:0 0 14px 14px;}
  .topbar.open .menu{display:flex;}
  .topbar .mi{align-items:stretch;flex-direction:column;}
  .topbar .mi>a{color:var(--ink);height:auto;padding:13px 18px;opacity:1;border-bottom:1px solid #f1e7d7;font-size:15px;}
  .topbar .mi.active>a{background:#fdeee4;color:var(--accent);box-shadow:none;}
  .topbar .mi.open>a{background:#f6eada;color:var(--accent);}
  /* 子菜单：默认收起，点父项展开（手风琴），竖向缩进显示 */
  .topbar .sub{position:static;display:none;box-shadow:none;border-radius:0;padding:0;min-width:0;background:#faf3ea;}
  .topbar .mi.open .sub{display:flex;}
  .topbar .sub a{padding:11px 18px 11px 38px;border-bottom:1px solid #f1e7d7;font-size:14px;}
}

/* ---------- HERO ---------- */
.hero{background:var(--grad);color:#fff;padding:30px 20px 28px;}
.hero.center{text-align:center;}
.hero .inner{max-width:920px;margin:0 auto;}
.hero .emoji{font-size:40px;display:block;margin-bottom:8px;}
.daybadge{display:inline-block;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.4);
  border-radius:20px;padding:3px 14px;font-size:12.5px;letter-spacing:.5px;margin-bottom:14px;}
.hero h1{font-size:32px;font-weight:800;letter-spacing:1px;}
.hero .sub{opacity:.92;font-size:14px;margin-top:6px;}
.chips{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px;}
.hero.center .chips{justify-content:center;}
.chips .c{background:#fff;color:var(--ink);border-radius:12px;padding:10px 18px;min-width:150px;box-shadow:0 4px 14px rgba(60,30,90,.18);text-align:left;}
.chips .c .k{font-size:11.5px;color:var(--muted);}
.chips .c .v{font-size:15px;font-weight:700;margin-top:1px;}
@media(max-width:560px){.hero h1{font-size:25px;}.chips .c{flex:1;min-width:0;}}

/* ---------- 二级页内导航 / 分类切换 ---------- */
.subnav{position:sticky;top:54px;z-index:40;background:rgba(253,246,236,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);}
.subnav .inner{max-width:920px;margin:0 auto;display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding:11px 12px;}
.subnav a{text-decoration:none;color:#a04ab0;border:1.5px solid #e2b6d6;border-radius:18px;padding:5px 15px;font-size:13.5px;font-weight:600;transition:.2s;}
.subnav a:hover,.subnav a.active{background:var(--grad);color:#fff;border-color:transparent;}
@media(max-width:680px){.subnav{top:50px;}}

/* ---------- 通用容器 / 卡片 ---------- */
.wrap{max-width:1100px;margin:0 auto;padding:26px 16px 60px;}
.wrap.narrow{max-width:920px;}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;
  box-shadow:0 6px 18px rgba(120,90,50,.08);display:flex;flex-direction:column;transition:.25s;}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(120,90,50,.14);}

/* ---------- 时间线 (行程页) ---------- */
.timeline{position:relative;padding-left:34px;}
.timeline::before{content:"";position:absolute;left:11px;top:8px;bottom:8px;width:3px;
  background:repeating-linear-gradient(var(--rail),var(--rail) 8px,transparent 8px,transparent 16px);border-radius:2px;}
.event{position:relative;margin-bottom:26px;}
.event>.node{position:absolute;left:-29px;top:18px;width:16px;height:16px;border-radius:50%;
  background:#fff;border:3px solid var(--orange);box-shadow:0 0 0 4px var(--bg);}
.chead{padding:12px 18px;color:#fff;display:flex;align-items:center;justify-content:space-between;}
.chead .eng{font-size:13px;font-weight:700;letter-spacing:1px;opacity:.95;}
.chead .ic{font-size:24px;}
.cbody{padding:16px 18px 18px;}
.timepill{display:inline-block;font-size:12px;color:#fff;background:rgba(0,0,0,.16);border-radius:14px;padding:2px 12px;margin-bottom:2px;}
.title{font-size:18px;font-weight:800;margin:10px 0 4px;display:flex;align-items:center;gap:8px;}
.leg{display:flex;align-items:center;gap:14px;background:#faf5ee;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:12px 0;}
.leg .t{text-align:center;}
.leg .t .big{font-size:26px;font-weight:800;line-height:1;}
.leg .t .pl{font-size:11.5px;color:var(--muted);margin-top:5px;}
.leg .mid{flex:1;text-align:center;color:var(--muted);font-size:12px;}
.leg .mid .dur{display:inline-block;border-top:1px dashed #c9b89f;padding-top:3px;min-width:80px;}
.leg .meta{text-align:right;font-size:12px;color:var(--muted);line-height:1.5;}
@media(max-width:560px){.leg .t .big{font-size:22px;}}

.note{font-size:13.5px;color:#5d5142;background:#fbf6ee;border-left:3px solid var(--orange);border-radius:0 8px 8px 0;padding:9px 13px;margin:10px 0;}
.tip{font-size:13.5px;background:#fdeef4;border-left:3px solid var(--pink);border-radius:0 8px 8px 0;padding:10px 13px;margin:10px 0;color:#7a3a58;}
.tip .en{font-style:italic;color:#b14a7d;}
.blk{margin:12px 0;}
.blk h4{font-size:14px;margin-bottom:6px;display:flex;align-items:center;gap:6px;}
.blk ul{list-style:none;padding-left:2px;}
.blk li{font-size:13.5px;padding:3px 0;color:#4d4336;}
.blk li b{color:var(--ink);}

/* 站点 chip 流程 */
.route{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:10px 0;font-size:13px;}
.route .st{border-radius:9px;padding:3px 10px;font-weight:600;color:#fff;white-space:nowrap;}
.route .arr{color:var(--muted);font-weight:700;}
.route .walk{background:#eef0f4;color:#556;border-radius:9px;padding:3px 9px;}
.sukhumvit{background:#7cb342;} .silom{background:#0a8a5f;} .gold{background:#c9a227;}
.arl{background:#8e2f4c;} .ferry{background:#1597a8;}

/* 通用表格 */
table{width:100%;border-collapse:collapse;margin:12px 0;font-size:13px;}
th,td{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top;}
th{background:#f7efe3;font-weight:700;color:#5d4a30;}
td .price{font-weight:700;color:var(--orange);}

/* 楼层卡 */
.floors{display:grid;gap:8px;}
.floor{border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:#fbfbfb;}
.floor .fh{font-weight:700;font-size:14px;}
.floor .fd{font-size:13px;color:#5d5142;margin-top:2px;}

/* 通用标签 */
.tag{display:inline-block;font-size:12px;border-radius:11px;padding:2px 9px;margin:2px 3px 2px 0;background:#eef0f4;color:#566;border:1px solid #e0e3ea;}
.tag.flt{background:#ece8fc;color:#5a45c9;border-color:#d6cdf5;}
.tag.warn{background:#ffe9e0;color:#d2521f;border-color:#f6cdbb;}
.tag.ok{background:#e3f6ea;color:#1c8b4f;border-color:#bfe8cf;}
.tag.gold{background:#fbf0cf;color:#9a7710;border-color:#f0dca0;font-weight:600;}

/* ---------- 美食卡片 (吃喝玩乐) ---------- */
.section-title{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:700;margin:10px 0 18px;padding-bottom:8px;border-bottom:2px dashed var(--line);}
.section-title .dot{font-size:26px;}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:22px;}
.hero-img{position:relative;height:180px;background:#f0e6d8;}
.hero-img img{width:100%;height:100%;object-fit:cover;display:block;}
.hero-img .noimg{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px;
  background:repeating-linear-gradient(45deg,#f4ebdd,#f4ebdd 12px,#efe3d4 12px,#efe3d4 24px);}
.rating{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.72);color:#fff;border-radius:20px;padding:4px 11px;font-size:13px;font-weight:700;display:flex;align-items:center;gap:3px;}
.rating .star{color:var(--star);}
.card-body{padding:16px 16px 18px;display:flex;flex-direction:column;gap:10px;flex:1;}
.card-name{font-size:19px;font-weight:700;line-height:1.3;}
.card-name small{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-top:2px;}
.meta{font-size:13px;color:var(--muted);display:flex;gap:7px;align-items:flex-start;}
.meta .ic{flex:none;font-size:14px;line-height:1.5;}
.meta a{color:var(--accent);text-decoration:none;border-bottom:1px dotted var(--accent);}
.thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;}
.thumbs .t{aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:#f0e6d8;}
.thumbs .t img{width:100%;height:100%;object-fit:cover;display:block;}
.thumbs .t .noimg{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--muted);background:#f4ebdd;text-align:center;padding:4px;}
.label{font-size:12px;font-weight:700;color:var(--ink);letter-spacing:.5px;margin-bottom:1px;}
.dishes{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px;}
.dishes .tag{background:#fdeee4;color:var(--accent);font-size:12px;padding:3px 9px;border-radius:12px;border:1px solid #f6d8c4;margin:0;}
.dishes .tag.star{background:#fff4d6;color:#b67a00;border-color:#f3dca0;font-weight:600;}

.disclaimer{background:#fff8ec;border:1px solid #f3e2c0;border-radius:12px;padding:14px 18px;font-size:12.5px;color:#8a6d3b;line-height:1.7;margin-top:28px;}
.disclaimer b{color:#a85a00;}

/* ---------- 首页入口卡 ---------- */
.home-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;}
.home-card{display:block;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:22px 20px;box-shadow:0 6px 18px rgba(120,90,50,.08);transition:.22s;}
.home-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(120,90,50,.16);}
.home-card .hi{font-size:34px;}
.home-card h3{font-size:18px;margin:8px 0 4px;}
.home-card p{font-size:13px;color:var(--muted);line-height:1.55;}
.home-card .links{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px;}
.home-card .links span{font-size:12px;background:#f6eada;color:#9a6a2a;border-radius:10px;padding:2px 9px;}

/* ---------- 备忘 / 英语 ---------- */
.panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 18px rgba(120,90,50,.08);padding:18px 20px;margin-bottom:20px;}
.panel h3{font-size:17px;display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px dashed var(--line);}
.checklist{list-style:none;}
.checklist li{display:flex;gap:10px;align-items:flex-start;font-size:14px;padding:6px 0;border-bottom:1px dotted #efe3d4;color:#4d4336;}
.checklist li:last-child{border-bottom:none;}
.checklist li .bx{flex:none;width:17px;height:17px;border:2px solid var(--accent2);border-radius:5px;margin-top:3px;}
.phrase{margin:0 0 4px;}
.phrase td{vertical-align:top;}
.phrase .cn{color:var(--muted);font-size:13px;width:38%;}
.phrase .en{font-weight:600;color:var(--ink);}
.phrase .th{color:var(--purple);font-size:13px;}

footer{text-align:center;color:var(--muted);font-size:13px;padding:18px 16px 36px;}
footer span{color:#a04ab0;font-weight:600;}

/* ---------- 手机端统一适配 ---------- */
@media(max-width:600px){
  .wrap{padding:20px 13px 50px;}
  .grid{grid-template-columns:1fr;gap:16px;}          /* 单列，修复 330px 横向溢出 */
  .home-grid{grid-template-columns:1fr;gap:14px;}
  .vocab{grid-template-columns:1fr;}
  .section-title{font-size:20px;margin:6px 0 14px;}
  .hero{padding:24px 18px 22px;}
  .hero .emoji{font-size:34px;}
  .panel{padding:15px 15px;}
  /* 行程页 */
  .timeline{padding-left:26px;}
  .event>.node{left:-23px;}
  .leg{gap:8px;padding:12px 10px;}
  .leg .t .pl{font-size:11px;}
  .chead .eng{font-size:11px;letter-spacing:.5px;}
  th,td{padding:6px 7px;font-size:12px;}
  .phrase-table .cn{width:40%;font-size:12.5px;}
}
@media(max-width:360px){
  .leg{flex-wrap:wrap;justify-content:center;}
  .leg .mid{order:3;width:100%;}
  .leg .meta{text-align:center;}
}

/* ---------- 图片点击预览 (lightbox) ---------- */
.card img,.shots img,.thumbs .t img,.hero-img img{cursor:zoom-in;}
.lb-overlay{position:fixed;inset:0;background:rgba(18,10,6,.92);display:none;align-items:center;justify-content:center;padding:22px;z-index:1000;cursor:zoom-out;}
.lb-overlay.show{display:flex;}
.lb-overlay img{max-width:94vw;max-height:90vh;border-radius:10px;box-shadow:0 14px 44px rgba(0,0,0,.55);cursor:default;}
.lb-close{position:fixed;top:14px;right:16px;width:44px;height:44px;border:none;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;font-size:26px;line-height:44px;text-align:center;cursor:pointer;z-index:1001;padding:0;}
.lb-close:hover{background:rgba(0,0,0,.72);}

/* ---------- 地图链接按钮 ---------- */
.maplink{display:inline-block;font-size:11.5px;font-weight:600;color:#fff;background:#1a73e8;border-radius:11px;
  padding:1px 9px;margin-left:7px;text-decoration:none;vertical-align:middle;white-space:nowrap;cursor:pointer;}
.maplink:hover{background:#1666cc;}
.title .maplink{font-size:12px;}
