/* 离线旅行包 · 与 H5 流程页统一（Trip.com 风格）：Inter、品牌蓝 #2C61FE、页面底 #F0F2F5、无边框白卡、胶囊按钮
   一屏一个重点：蓝色主卡说清「包里有什么 + 一个按钮」，其余是白卡列表；说明文字收成一行小灰字 */
.lc-offline,.lc-card-dialog{--op-brand:#2C61FE;--op-brand-soft:#EAF0FF;--op-text:#121826;--op-muted:#6F7685;--op-line:#E6E9EE;--op-bg:#F0F2F5;--op-ok:#1BA672;--op-ok-soft:#E6F7F0;--op-warn:#B4650A;--op-warn-soft:#FFF4E5}
.lc-offline{background:var(--op-bg);color:var(--op-text);font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC",sans-serif;align-items:stretch!important;width:393px;margin:0 auto}
.lc-offline button,.lc-offline input,.lc-offline textarea,.lc-offline select,.lc-card-dialog button{font:inherit}
.lc-offline button,.lc-offline a,.lc-card-dialog button{touch-action:manipulation}
.lc-offline button{cursor:pointer}
.lc-offline button:disabled{cursor:default;opacity:.5}
.lc-offline :focus-visible,.lc-card-dialog :focus-visible{outline:2px solid #2C61FE;outline-offset:2px}

/* 顶部：iOS 状态栏（运行时从设计稿克隆）+ 返回 · 居中标题 · Help 小按钮，和流程页一致 */
.op-header{background:#fff;flex:none;padding:0 0 6px}
.op-header [data-pencil-name="Status Bar"]{flex-shrink:0}
.op-topline{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;height:48px;padding:0 16px}
.op-topline h1{font-size:17px;font-weight:700;line-height:1.2;letter-spacing:0;margin:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op-back{border:0;background:var(--op-bg);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;color:var(--op-text);flex:none}
.op-help-pill{justify-self:end;display:flex;align-items:center;gap:4px;border:0;background:var(--op-brand-soft);color:var(--op-brand);border-radius:16px;padding:3px 10px 3px 4px;font-size:13px!important;font-weight:700}
.op-help-pill img{width:24px;height:24px}
.op-chip{font-size:11px;font-weight:600;padding:3px 8px;border-radius:12px;background:var(--op-bg);color:var(--op-muted)}
.op-chip.is-offline{background:var(--op-warn-soft);color:var(--op-warn)}
.op-net{display:block;width:fit-content;margin:0 auto 4px}
.op-net[hidden]{display:none}

.op-body{padding:12px 16px 28px;gap:12px!important;display:flex;flex-direction:column}
.op-body h2{font-size:18px;font-weight:700;line-height:1.3;margin:0 0 6px}
.op-body h3{font-size:15px;font-weight:600;margin:0 0 4px}
.op-body p{margin:0 0 10px}
.op-body p:last-child{margin-bottom:0}
.op-muted{color:var(--op-muted);font-size:12px}
.op-kicker{font-size:11px;letter-spacing:.06em;font-weight:700;color:var(--op-brand);text-transform:uppercase;margin-bottom:8px}
/* 区块小标题：和行前检查的 DO THIS NEXT / STILL TO DO 同款 */
.op-label{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--op-muted);margin:6px 2px -4px}
.op-foot{font-size:11px!important;line-height:1.6;color:var(--op-muted);text-align:center;margin:4px 8px 0!important}
.op-link{border:0;background:none;padding:0;color:var(--op-brand);font-size:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.op-page-title{font-size:20px!important;margin:4px 2px 0!important}

.op-card{background:#fff;border-radius:12px;padding:16px;min-width:0}
.op-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.op-icon{width:40px;height:40px;border-radius:10px;background:var(--op-brand-soft);color:var(--op-brand);display:grid;place-items:center;flex:none}
.op-icon svg,.op-btn svg,.op-back svg,.op-icon-btn svg{width:20px;height:20px;flex:none}

/* 首页主卡：状态 · 一句话标题 · 包里有什么 · 一个按钮（与行前检查顶部蓝卡同款） */
.op-hero{border-radius:16px;padding:16px;color:#fff;background:linear-gradient(135deg,#2C61FE,#1D4FE0);box-shadow:0 6px 18px #2C61FE2E}
.op-hero-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.op-hero-status{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#DCE6FF}
.op-hero-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#FFC24B;flex:none}
.op-hero.is-saved .op-hero-status::before{background:#5BE3A6}
.op-hero-tag{font-size:10px;font-weight:700;letter-spacing:.04em;border:1px solid #ffffff4D;background:#ffffff1A;border-radius:10px;padding:2px 7px}
.op-body .op-hero h2{font-size:21px;line-height:1.25;color:#fff;margin:0 0 12px;letter-spacing:-.01em}
.op-inside{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 14px;padding:0}
.op-inside li{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;background:#ffffff1F;border-radius:8px;padding:6px 8px;min-width:0}
.op-inside svg{width:15px;height:15px;flex:none;opacity:.9}
.op-hero .op-btn.op-hero-save{background:#fff;color:var(--op-brand)}
.op-hero-saved{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#DCE6FF}
.op-hero .op-btn.op-hero-update{width:auto;min-height:32px;padding:5px 14px;font-size:12px;background:#ffffff26;color:#fff;flex:none}
.op-hero .op-progress{accent-color:#fff;margin:0 0 12px}

/* 四个格子：白卡 + 彩色图标 + 标题 + 一行状态；该先做的那格蓝框 + 标签 */
.op-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.op-tile,.op-tone--hotel{--tile-accent:#2C61FE;--tile-soft:#EAF0FF}
.op-tile--phrases,.op-tone--phrases{--tile-accent:#7350B9;--tile-soft:#F0E9FC}
.op-tile--internet,.op-tone--internet{--tile-accent:#1D8A7E;--tile-soft:#E2F4F1}
.op-tile--support,.op-tone--support{--tile-accent:#C26A1B;--tile-soft:#FFF0DF}
.op-tile{position:relative;border:1.5px solid transparent;background:#fff;border-radius:14px;padding:14px;text-align:left;min-width:0;color:var(--op-text);display:flex;flex-direction:column;align-items:flex-start;gap:2px;transition:transform .16s,box-shadow .16s}
.op-tile .op-icon,.op-place-choice .op-icon{background:var(--tile-soft);color:var(--tile-accent)}
.op-tile .op-icon{margin-bottom:10px}
.op-tile strong{font-size:16px;font-weight:700;line-height:1.3}
.op-tile small{font-size:12px;color:var(--op-muted);line-height:1.4;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op-tile.is-next{border-color:var(--op-brand);box-shadow:0 4px 14px #2C61FE1F}
.op-badge{position:absolute;top:12px;right:12px;background:var(--op-brand);color:#fff;font-size:10px;font-weight:700;letter-spacing:.02em;border-radius:10px;padding:2px 8px}
.op-tile:active,.op-trip-link:active,.op-place-choice:active{transform:scale(.98)}
@media(hover:hover){.op-tile:hover{box-shadow:0 6px 18px #17264B12}}

/* Trip.com 柜台：保留为商业触点，缩成一行白卡 */
.op-trip-entry{min-width:0}
.op-trip-link{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:14px;padding:12px 14px;background:#fff;color:var(--op-text);text-align:left;transition:transform .16s}
.op-trip-logo{flex:none;width:64px;height:40px;white-space:nowrap;border-radius:10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2C61FE,#1D4FE0);color:#fff;font-size:12px;font-weight:800;letter-spacing:-.02em}
.op-trip-logo b{font-weight:500;opacity:.85}
.op-trip-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.op-trip-copy strong{font-size:15px;line-height:1.3}
.op-trip-copy span{font-size:12px;color:var(--op-muted)}
.op-trip-link>svg,.op-place-choice>svg,.op-online-row>svg{width:18px;height:18px;flex:none;color:#A3AAB6}

/* 按钮：胶囊形，主按钮品牌蓝，次按钮浅蓝底，描边按钮白底蓝边 */
.op-btn{border:0;background:var(--op-brand);color:#fff;border-radius:24px;padding:12px 16px;min-height:44px;font-size:15px;font-weight:700!important;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;text-align:center;width:100%}
.op-btn.secondary{background:var(--op-brand-soft);color:var(--op-brand)}
.op-btn.outline{background:#fff;color:var(--op-brand);border:1px solid #C9D6FF}
.op-btn.danger{background:#FFF0EE;color:#C2412D}
.op-btn+.op-btn{margin-top:8px}
.op-btn.op-link{width:auto;min-height:32px;padding:4px 0;background:none;border-radius:0;font-size:13px;font-weight:600!important;color:var(--op-brand);justify-content:flex-start;gap:4px}
.op-btn.op-link svg{width:16px;height:16px}
.op-link-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:18px;row-gap:2px;margin-top:8px}
.op-link-row .op-btn+.op-btn{margin-top:0}
.op-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.op-actions .op-btn{flex:1;min-width:100px;font-size:13px;min-height:40px;padding:9px 12px}
.op-actions .op-btn+.op-btn{margin-top:0}
.op-actions .op-btn svg{width:17px;height:17px}
.op-icon-btn{flex:none;width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--op-bg);color:var(--op-text);text-decoration:none}
.op-icon-btn svg{width:18px;height:18px}
.op-icon-btn.is-call{background:var(--op-brand-soft);color:var(--op-brand)}
.op-icon-btn:disabled{opacity:.35}
.op-notice{padding:12px 14px;border-radius:10px;background:var(--op-warn-soft);color:var(--op-warn);font-size:12px}
.op-notice.success{background:var(--op-ok-soft);color:var(--op-ok)}
.op-empty{padding:28px 16px;text-align:center;border:1px dashed #DADFE6;border-radius:12px;color:var(--op-muted);background:#fff}
.op-empty h2{color:var(--op-text)}
.op-zh{font-size:17px;line-height:1.55;color:var(--op-text);overflow-wrap:anywhere}
.op-en{font-size:12px;line-height:1.5;color:var(--op-muted);overflow-wrap:anywhere}
.op-demo{display:inline-block;background:var(--op-warn-soft);color:var(--op-warn);border-radius:4px;font-size:10px;font-weight:700;padding:2px 6px}

/* 列表白卡：行之间细分隔线（与权限页同款） */
.op-list{background:#fff;border-radius:12px;padding:0 14px;min-width:0}
.op-list>*+*{border-top:1px solid var(--op-line)}

/* 酒店：上方是司机会看到的中文卡，下方是紧凑表单 */
.op-hotel-source{display:flex;align-items:center;gap:10px;padding:0 2px}
.op-hotel-source .op-icon{width:32px;height:32px;border-radius:9px}
.op-hotel-source .op-icon svg{width:17px;height:17px}
.op-body .op-hotel-source h2{font-size:15px;margin:0 0 2px}
.op-driver-card{background:#fff;border-radius:14px;padding:16px;border-left:4px solid var(--op-brand);min-width:0}
.op-driver-card .op-label{margin:0 0 8px}
.op-driver-zh,.op-hotel-name{font-size:24px;font-weight:800;line-height:1.35;letter-spacing:.01em;overflow-wrap:anywhere}
.op-driver-addr{font-size:16px;line-height:1.55;margin:4px 0 0;overflow-wrap:anywhere}
.op-driver-card.is-saved .op-demo{margin:0 0 14px}
.op-driver-card.is-saved .op-hotel-name{margin:0}
.op-driver-card.is-saved .op-en{margin:6px 0 10px}
.op-driver-card.is-saved .op-en+.op-btn,.op-driver-card.is-saved .op-muted+.op-btn{margin-top:14px}
.op-form{display:flex;flex-direction:column;gap:12px}
.op-form-group{background:#fff;border-radius:12px;padding:2px 14px}
.op-form-group .op-field{margin:0;padding:10px 0 8px;border-bottom:1px solid var(--op-line)}
.op-form-group .op-field:last-child{border-bottom:0}
.op-form-group .op-field input,.op-form-group .op-field textarea{border:0;padding:2px 0;margin-top:2px;border-radius:0;font-size:16px}
.op-form-group .op-field textarea{min-height:44px}
.op-field{display:block;font-size:11px;font-weight:600;color:var(--op-muted);margin-bottom:12px}
.op-field input,.op-field textarea{display:block;width:100%;border:1px solid #DADFE6;background:#fff;border-radius:10px;padding:10px 12px;margin-top:4px;color:var(--op-text);font-size:16px;font-weight:400;min-width:0}
.op-field input:focus,.op-field textarea:focus{border-color:var(--op-brand);outline:0}
.op-field textarea{min-height:80px;resize:vertical}
.op-check{display:flex;gap:9px;align-items:center;font-size:13px;margin:2px 2px 0}
.op-check input{width:19px;height:19px;flex:none;margin:0;accent-color:#2C61FE}

.op-footer{padding:10px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--op-line);background:#fff;flex:none}

/* 地点与短语 */
.op-tabs{display:flex;gap:8px;overflow:auto;padding:2px 0 2px;flex:none;scrollbar-width:none}
.op-tabs::-webkit-scrollbar{display:none}
.op-tabs button{border:0;border-radius:16px;background:#fff;color:var(--op-muted);padding:7px 14px;white-space:nowrap;font-size:13px;font-weight:600}
.op-tabs button[aria-pressed=true]{background:var(--op-brand);color:#fff}
.op-place-choice{display:flex;align-items:center;gap:12px;text-align:left;color:var(--op-text);width:100%;font:inherit;border:0;background:none;padding:14px 0;transition:transform .16s}
.op-place-choice>.op-icon{align-self:flex-start;width:38px;height:38px}
.op-place-choice-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}
.op-place-choice-copy strong{font-size:15px;line-height:1.35}
.op-place-choice-copy>span{font-size:12px;color:var(--op-muted);line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.op-place-choice-copy small{display:flex;gap:4px;font-size:11px;color:#8A919E;line-height:1.45}
.op-place-choice-copy small svg{width:12px;height:12px;flex:none;margin-top:2px}
.op-phrase{display:flex;align-items:center;gap:8px;padding:12px 0}
.op-phrase>div{flex:1;min-width:0}
.op-body .op-phrase p{margin:0}

/* 服务点：标牌插画在上，名称位置紧随其后 */
.op-place-hero{padding:12px 12px 16px}
.op-place-art{display:block;width:100%;height:132px;object-fit:cover;background:var(--op-bg);border-radius:10px;margin:0 0 14px}
.op-place-hero .op-kicker,.op-place-hero h2,.op-place-hero>p{padding:0 4px}
.op-location{display:flex;gap:8px;margin:12px 4px 0;padding:10px 12px;background:var(--op-bg);border-radius:10px}
.op-location>svg{width:16px;height:16px;flex:none;color:var(--op-brand);margin-top:2px}
.op-location div{display:flex;flex-direction:column;gap:1px;min-width:0;overflow-wrap:anywhere}
.op-location strong{font-size:13px}
.op-location span{font-size:13px}
.op-location small{font-size:11px;color:var(--op-muted)}
.op-find-steps{padding-left:22px;margin:4px 0 14px}
.op-find-steps li{padding-left:4px;margin-bottom:8px;font-size:13px;line-height:1.6}
.op-find-steps li::marker{color:var(--op-brand);font-weight:700}
.op-fallback{border-top:1px solid var(--op-line);margin-top:14px;padding-top:14px}
.op-fallback h3{font-size:14px!important}
.op-fallback p{font-size:12px;color:var(--op-muted)}
.op-service-details{padding:0 4px;color:var(--op-muted);font-size:12px}
.op-service-details>summary{font-size:12px;font-weight:600;cursor:pointer;min-height:32px;color:var(--op-muted);text-align:center;list-style-position:inside}
.op-service-details[open]{background:#fff;border-radius:12px;padding:8px 14px 14px}
.op-service-details[open]>summary{margin-bottom:8px}
.op-source{margin-top:10px;color:var(--op-muted);font-size:11px;overflow-wrap:anywhere}
.op-source summary{cursor:pointer;min-height:28px}
.op-source a{color:var(--op-brand)}

/* 联网向导：步骤条 + 大图标 + 选项 */
.op-step-progress{display:flex;align-items:center;gap:6px;color:var(--op-muted);font-size:12px;padding:0 2px}
.op-step-progress i{width:7px;height:7px;border-radius:50%;background:var(--op-brand)}
.op-step-progress b{color:var(--op-text)}
.op-step-progress span{margin-left:auto;font-size:11px}
.op-guide-card p{font-size:14px;line-height:1.6;color:#3B4352}
.op-step-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--op-brand-soft);color:var(--op-brand);margin-bottom:12px}
.op-step-icon svg{width:24px;height:24px}
.op-step-icon.is-done{background:var(--op-ok-soft);color:var(--op-ok)}
.op-guide-options{display:flex;flex-direction:column;gap:8px}
.op-guide-options .op-btn{margin:0;text-align:left;justify-content:space-between;border-radius:12px}
.op-guide-options .op-btn svg{width:18px;height:18px}
.op-request-preview{margin:12px 0;padding:12px;border-radius:10px;background:var(--op-bg)}
.op-request-preview [lang=zh-CN]{font-size:16px;line-height:1.6;white-space:pre-line;margin-bottom:4px!important}
.op-request-preview [lang=en]{font-size:12px;white-space:pre-line}

/* 求助：一个大按钮 + 联系人列表（图标按钮）+ 在线客服一行 */
.op-ask .op-btn:not(.secondary){margin-top:4px}
.op-contact{display:flex;align-items:center;gap:8px;padding:12px 0;overflow-wrap:anywhere}
.op-contact-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.op-contact-copy strong{font-size:14px}
.op-contact-copy span{font-size:12px;color:var(--op-muted)}
.op-contact .op-number{font-size:14px;color:var(--op-text);font-weight:600;letter-spacing:.2px}
.op-contact-copy .op-link{align-self:flex-start;font-size:12px;margin-top:2px}
.op-contact-copy .op-source{margin-top:2px}
.op-contact-form{padding:12px 0 14px}
.op-contact-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.op-contact-inputs .op-field{margin:0}
.op-contact-form .op-btn{margin-top:10px;min-height:38px;font-size:13px;padding:8px 12px}
.op-online-row{display:flex;align-items:center;gap:12px;background:#fff;border-radius:12px;padding:12px 14px;color:var(--op-text);text-decoration:none}
.op-online-row>span:nth-child(2){flex:1;display:flex;flex-direction:column}
.op-online-row strong{font-size:14px}
.op-online-row small{font-size:12px;color:var(--op-muted)}
.op-online-row[aria-disabled=true]{opacity:.55}
.op-progress{width:100%;height:6px;border:0;border-radius:3px;overflow:hidden;accent-color:#2C61FE;margin:10px 0}

/* 其他页面里的离线包入口：白卡 + 浅蓝图标 */
.op-entry{margin:12px 16px 0;padding:12px 14px;max-width:calc(100% - 32px);background:#fff;border:1px solid #DADFE6;border-radius:12px;color:#121826;font:600 14px/1.4 Inter,-apple-system,sans-serif;cursor:pointer;text-align:left;display:flex;align-items:center;gap:12px}
.op-entry svg{width:36px;height:36px;flex:none;padding:8px;border-radius:10px;background:#EAF0FF;color:#2C61FE}
.op-entry small{display:block;font-size:12px;font-weight:400;color:#6F7685}

.lc-card-dialog{border:0;padding:0;margin:auto;border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;background:#fff;color:#121826;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.lc-card-dialog::backdrop{background:#121826b3}
.lc-card-dialog.in-phone{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;z-index:90;border-radius:inherit;overflow:auto}
.lc-card-dialog.in-phone .op-dialog-wrap{padding:58px 24px 28px}
.lc-card-dialog.in-phone .op-dialog-body [lang=zh-CN]{font-size:30px}
.lc-card-dialog.in-phone .op-dialog-body.is-large [lang=zh-CN]{font-size:40px}
.op-dialog-wrap{max-width:600px;margin:auto;min-height:100%;display:flex;flex-direction:column;padding:max(20px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));gap:18px}
.op-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#6F7685;font-size:12px}
.op-dialog-body{flex:1;display:flex;flex-direction:column;justify-content:center;gap:20px;padding:18px 0;overflow-wrap:anywhere}
.op-dialog-body [lang=zh-CN]{font-size:clamp(28px,7vw,46px);font-weight:700;line-height:1.55;white-space:pre-line}
.op-dialog-body.is-large [lang=zh-CN]{font-size:clamp(36px,9vw,60px)}
.op-dialog-body [lang=en]{font-size:18px;line-height:1.6;color:#6F7685;white-space:pre-line}
.op-dialog-body .op-context{font-size:22px!important;white-space:pre-wrap;color:#2C61FE}
.lc-card-dialog .op-dialog-body .op-context{font-size:14px!important;line-height:1.65;color:#6F7685;border-top:1px solid #DADFE6;padding-top:14px}
.lc-card-dialog .op-back{font-size:22px;line-height:1;width:36px;height:36px}
body.offline-open #lcdot,body.offline-open #hint{display:none}
@media(prefers-reduced-motion:reduce){.lc-offline *, .lc-card-dialog *{scroll-behavior:auto!important;transition:none!important}}
