*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{
  --ocean:#0891b2;
  --ocean-dark:#0e7490;
  --sand:#fde68a;
  --sunset:#f97316;
  --coral:#ec4899;
  --jungle:#15803d;
  --volcano:#dc2626;
  --bg:#f0f9ff;
  --card:#fff;
  --text:#0f172a;
  --text-light:#64748b;
  --border:#e0f2fe;
  --shadow:0 4px 24px rgba(8,145,178,.08);
  --shadow-lg:0 10px 40px rgba(8,145,178,.15);
}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
  background:linear-gradient(180deg,#f0f9ff 0%,#fef3c7 100%);
  background-attachment:fixed;
  color:var(--text);
  font-size:15px;
  line-height:1.6;
  padding-bottom:80px;
  min-height:100vh;
}

/* ====== Hero 顶部 ====== */
.hero{
  position:relative;
  height:280px;
  overflow:hidden;
  border-radius:0 0 32px 32px;
  margin-bottom:8px;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-image:url('scenery/penida.png');
  background-size:cover;
  background-position:center;
  animation:slowZoom 20s ease-in-out infinite alternate;
}
@keyframes slowZoom{from{transform:scale(1)}to{transform:scale(1.1)}}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(8,145,178,.55) 0%,rgba(236,72,153,.45) 50%,rgba(249,115,22,.5) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:24px 20px;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.4);
}
.hero-badge{
  display:inline-block;
  background:rgba(255,255,255,.25);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  margin-bottom:12px;
  width:fit-content;
  border:1px solid rgba(255,255,255,.4);
}
.hero-badge span{font-weight:700;color:#fde68a;font-size:16px;margin-left:4px}
.hero-title{font-size:32px;font-weight:800;letter-spacing:-.5px;line-height:1.2;margin-bottom:8px}
.hero-title span{color:#fde68a;font-style:italic}
.hero-sub{font-size:13px;opacity:.95;margin-bottom:14px}
.hero-meta{display:flex;gap:6px;flex-wrap:wrap}
.hero-chip{
  background:rgba(255,255,255,.22);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  padding:5px 11px;
  border-radius:14px;
  font-size:12px;
  border:1px solid rgba(255,255,255,.3);
}

/* ====== Tab栏 ====== */
.tabs{
  display:flex;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:100;
  overflow-x:auto;
  scrollbar-width:none;
  box-shadow:0 2px 12px rgba(8,145,178,.06);
}
.tabs::-webkit-scrollbar{display:none}
.tab{
  padding:14px 16px;
  font-size:14px;
  font-weight:500;
  color:var(--text-light);
  white-space:nowrap;
  cursor:pointer;
  border-bottom:3px solid transparent;
  transition:all .2s;
  flex-shrink:0;
}
.tab.active{
  color:var(--ocean);
  border-bottom-color:var(--ocean);
  font-weight:700;
}

/* ====== 主容器 ====== */
.container{padding:16px;max-width:900px;margin:0 auto}

/* ====== 卡片 ====== */
.card{
  background:var(--card);
  border-radius:20px;
  padding:18px;
  margin-bottom:14px;
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.card-banner{
  margin:-18px -18px 16px;
  height:140px;
  background-size:cover;
  background-position:center;
  position:relative;
  display:flex;
  align-items:flex-end;
  padding:16px;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.4);
}
.card-banner::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.5) 100%);
}
.card-banner-content{position:relative;z-index:2;width:100%}
.card-banner-date{font-size:13px;opacity:.95;display:flex;align-items:center;gap:6px}
.card-banner-title{font-size:20px;font-weight:700;margin-top:4px;letter-spacing:-.3px}

.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  user-select:none;
}
.card-title{display:flex;align-items:center;gap:12px;flex:1}
.card-title .icon{
  width:42px;height:42px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;
  flex-shrink:0;
  color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
}
.title-main{font-size:15px;font-weight:600}
.title-sub{font-size:12px;color:var(--text-light);margin-top:2px}
.toggle{
  width:28px;height:28px;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-light);
  background:#f1f5f9;
  border-radius:50%;
  transition:transform .3s;
  font-size:12px;
}
.card.expanded .toggle{transform:rotate(180deg)}
.card-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .4s ease-out;
}
.card.expanded .card-body{
  max-height:8000px;
  transition:max-height .5s ease-in;
  padding-top:18px;
  margin-top:14px;
  border-top:1px solid var(--border);
}

/* ====== 时间线 ====== */
.timeline{position:relative;padding-left:30px}
.timeline::before{
  content:'';
  position:absolute;
  left:9px;top:8px;bottom:8px;
  width:2px;
  background:linear-gradient(to bottom,var(--ocean),var(--coral),var(--sunset));
  border-radius:1px;
}
.tl-item{position:relative;padding-bottom:18px}
.tl-item:last-child{padding-bottom:0}
.tl-item::before{
  content:'';
  position:absolute;
  left:-25px;top:5px;
  width:14px;height:14px;
  background:#fff;
  border:3px solid var(--ocean);
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(8,145,178,.1);
}
.tl-time{font-weight:700;color:var(--ocean);font-size:13px;font-family:'SF Mono',Menlo,monospace}
.tl-title{font-weight:600;margin:2px 0 4px;font-size:14px}
.tl-desc{font-size:13px;color:var(--text-light)}

/* ====== 待办&分类 ====== */
.section-title{
  font-size:13px;
  color:var(--text-light);
  margin:16px 0 10px;
  display:flex;align-items:center;gap:6px;
  font-weight:600;
}
.todo-list{
  background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);
  border-radius:14px;
  padding:14px;
  margin-top:12px;
}
.todo-list h4{font-size:13px;color:#92400e;margin-bottom:10px;font-weight:600}
.todo{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:6px 0;
  cursor:pointer;
  font-size:13px;
}
.todo input[type=checkbox]{
  width:18px;height:18px;
  margin-top:2px;
  accent-color:var(--ocean);
  flex-shrink:0;
  cursor:pointer;
}
.todo span{flex:1;color:#78350f;line-height:1.5}
.todo input:checked+span{text-decoration:line-through;opacity:.5}

/* 物品分类 */
.cat-group{
  background:#f0f9ff;
  border-radius:12px;
  padding:12px;
  margin-bottom:10px;
  border-left:4px solid var(--ocean);
}
.cat-title{
  font-size:13px;
  font-weight:700;
  color:var(--ocean-dark);
  margin-bottom:8px;
  display:flex;align-items:center;gap:6px;
}
.cat-items{display:flex;flex-wrap:wrap;gap:6px}
.cat-item{
  display:flex;align-items:center;gap:5px;
  background:#fff;
  border:1px solid #cffafe;
  padding:5px 10px;
  border-radius:8px;
  font-size:12px;
  color:var(--text);
  cursor:pointer;
  transition:all .15s;
}
.cat-item.checked{
  background:linear-gradient(135deg,var(--ocean),var(--ocean-dark));
  color:#fff;
  border-color:transparent;
}
.cat-item.checked .check{display:inline}
.cat-item .check{display:none;font-size:10px}
.cat-item .emoji{font-size:14px}

/* 警告框 */
.alert{
  padding:12px 14px;
  border-radius:10px;
  margin-top:10px;
  font-size:13px;
  border-left:4px solid;
  line-height:1.6;
}
.alert-danger{background:#fef2f2;border-color:var(--volcano);color:#991b1b}
.alert-warn{background:#fffbeb;border-color:#f59e0b;color:#92400e}
.alert-info{background:#eff6ff;border-color:#3b82f6;color:#1e40af}
.alert-success{background:#f0fdf4;border-color:#10b981;color:#065f46}

/* 按钮 */
.btn-group{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.btn{
  padding:9px 14px;
  border-radius:10px;
  border:none;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  transition:transform .15s,box-shadow .2s;
}
.btn:active{transform:scale(.96)}
.btn-map{background:linear-gradient(135deg,#06b6d4,#0891b2);color:#fff;box-shadow:0 2px 8px rgba(8,145,178,.3)}
.btn-link{background:linear-gradient(135deg,#f97316,#ec4899);color:#fff;box-shadow:0 2px 8px rgba(236,72,153,.3)}
.btn-call{background:linear-gradient(135deg,#10b981,#059669);color:#fff;box-shadow:0 2px 8px rgba(16,185,129,.3)}
.btn-secondary{background:#f1f5f9;color:var(--text)}

/* 数据卡 */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}
.stat{
  background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(240,249,255,.9));
  backdrop-filter:blur(20px);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.6);
}
.stat .label{font-size:12px;color:var(--text-light)}
.stat .value{
  font-size:24px;
  font-weight:700;
  background:linear-gradient(135deg,var(--ocean),var(--coral));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-top:4px;
}
.stat .desc{font-size:11px;color:var(--text-light);margin-top:2px}

/* 进度条 */
.progress-wrap{
  background:#fff;
  border-radius:16px;
  padding:14px;
  margin-bottom:16px;
  box-shadow:var(--shadow);
}
.progress-label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px;font-weight:600}
.progress-bar{height:10px;background:#e0f2fe;border-radius:5px;overflow:hidden}
.progress-fill{
  height:100%;
  background:linear-gradient(90deg,var(--ocean),var(--coral),var(--sunset));
  border-radius:5px;
  transition:width .5s;
}

/* 主题色 */
.icon.theme-flight{background:linear-gradient(135deg,#06b6d4,#0891b2)}
.icon.theme-dive{background:linear-gradient(135deg,#10b981,#059669)}
.icon.theme-volcano{background:linear-gradient(135deg,#f59e0b,#dc2626)}
.icon.theme-city{background:linear-gradient(135deg,#6366f1,#4f46e5)}
.icon.theme-food{background:linear-gradient(135deg,#ec4899,#db2777)}
.icon.theme-prep{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}
.icon.theme-rest{background:linear-gradient(135deg,#64748b,#475569)}

/* 标签 */
.badge{
  display:inline-block;
  padding:3px 9px;
  border-radius:10px;
  font-size:11px;
  font-weight:600;
  margin-left:6px;
  vertical-align:middle;
}
.badge-confirmed{background:#d1fae5;color:#065f46}
.badge-pending{background:#fef3c7;color:#92400e}
.badge-suggested{background:#dbeafe;color:#1e40af}

/* 费用行 */
.cost-row{display:flex;justify-content:space-between;padding:10px 0;font-size:13px;border-bottom:1px dashed var(--border);gap:10px}
.cost-row:last-child{border:none}
.cost-row .label{color:var(--text-light);flex:1}
.cost-row .value{font-weight:600;text-align:right}

/* 联系卡片 */
.contact{
  background:linear-gradient(135deg,#fef3c7 0%,#fed7aa 100%);
  border-radius:14px;
  padding:14px;
  margin-bottom:8px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:inherit;
  transition:transform .15s;
}
.contact:active{transform:scale(.98)}
.contact .name{font-weight:600;font-size:14px}
.contact .num{font-size:12px;color:var(--text-light);margin-top:2px}

/* 预订管理 */
.booking{
  border:2px solid var(--border);
  border-radius:14px;
  padding:14px;
  margin-bottom:12px;
  background:#fff;
  position:relative;
}
.booking.confirmed{border-color:#10b981;background:linear-gradient(135deg,#f0fdf4,#fff)}
.booking.pending{border-color:#f59e0b;background:linear-gradient(135deg,#fffbeb,#fff)}
.booking.suggested{border-color:#3b82f6;background:linear-gradient(135deg,#eff6ff,#fff);border-style:dashed}
.booking-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;flex-wrap:wrap;gap:6px}
.booking-name{font-weight:600;font-size:14px}
.booking-desc{font-size:12px;color:var(--text-light);margin-bottom:10px}
.booking-input-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.booking-input{
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:13px;
  background:#fff;
  width:100%;
  font-family:inherit;
}
.booking-input:focus{outline:2px solid var(--ocean);outline-offset:-1px;border-color:transparent}
.booking-input-label{font-size:11px;color:var(--text-light);margin-bottom:3px;display:block}

/* section */
.section{display:none}
.section.active{display:block;animation:fadeIn .3s}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ===== 美食/住宿/交通 新增样式 ===== */
.edit-tip{
  background:linear-gradient(135deg,#eff6ff,#f0f9ff);
  border:1px dashed #3b82f6;
  padding:8px 12px;
  border-radius:8px;
  font-size:12px;
  color:#1e40af;
  margin-bottom:12px;
}
.editable-field{
  cursor:pointer;
  -webkit-user-select:none;
  user-select:none;
  transition:background .15s;
  padding:2px 4px;
  border-radius:4px;
  margin-left:-4px;
}
.editable-field:active{background:rgba(6,182,212,.15)}
.edit-badge{
  display:inline-block;
  background:var(--coral);
  color:#fff;
  font-size:10px;
  padding:1px 6px;
  border-radius:6px;
  margin-left:6px;
  font-weight:500;
}

/* 美食列表 */
.food-list{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:8px;
}
.food-item{
  background:linear-gradient(135deg,#fef3c7 0%,#fed7aa 100%);
  border-radius:12px;
  padding:12px;
  border-left:4px solid #f97316;
}
.food-name{font-weight:700;font-size:14px;color:#7c2d12;margin-bottom:4px}
.food-meta{display:flex;gap:8px;margin-bottom:4px;flex-wrap:wrap}
.food-tag{
  background:rgba(255,255,255,.7);
  color:#9a3412;
  padding:2px 8px;
  border-radius:8px;
  font-size:11px;
  font-weight:600;
}
.food-price{color:#b91c1c;font-size:12px;font-weight:600}
.food-note{color:#78350f;font-size:12px;line-height:1.5}

/* 住宿 */
.stay-box{
  background:linear-gradient(135deg,#e0f2fe,#cffafe);
  border-radius:12px;
  padding:14px;
  border-left:4px solid var(--ocean);
  margin-top:8px;
}
.stay-name{font-weight:700;font-size:14px;color:var(--ocean-dark);margin-bottom:4px}
.stay-price{color:#b45309;font-size:13px;font-weight:600;margin-bottom:4px}
.stay-note{color:var(--text-light);font-size:12px;line-height:1.5}

/* 交通 */
.transport-list{margin-top:8px}
.transport-item{
  display:flex;
  gap:10px;
  padding:8px 10px;
  background:#f8fafc;
  border-radius:8px;
  margin-bottom:6px;
  font-size:13px;
  align-items:flex-start;
}
.transport-type{
  background:var(--ocean);
  color:#fff;
  padding:2px 8px;
  border-radius:6px;
  font-size:11px;
  font-weight:600;
  flex-shrink:0;
  white-space:nowrap;
}
.transport-desc{color:var(--text);line-height:1.5;flex:1}

/* 浮动按钮 */
.fab{
  position:fixed;
  bottom:20px;right:20px;
  width:56px;height:56px;
  border-radius:28px;
  background:linear-gradient(135deg,var(--ocean),var(--coral));
  color:#fff;
  border:none;
  font-size:24px;
  box-shadow:0 6px 20px rgba(8,145,178,.4);
  cursor:pointer;
  z-index:99;
}

/* 响应式 */
@media(min-width:768px){
  .stats{grid-template-columns:repeat(4,1fr)}
  .hero-title{font-size:42px}
  .hero{height:340px}
}
@media(max-width:600px){
  .hero{height:240px}
  .hero-title{font-size:26px}
  .container{padding:12px}
  .booking-input-row{grid-template-columns:1fr}
}
