/* 机场流程、英语练习、求助卡、出发准备共用的内容页样式 */
.field section { scroll-margin-top: 16px; margin-top: 36px; }
.field h2 { font-size: 1.4rem; line-height: 1.4; margin-bottom: 12px; }
.fieldNav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fieldGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fieldGrid article { padding: clamp(16px, 2.5vw, 24px); }
.fieldGrid h3 { font-size: 1.1rem; }
.fieldGrid ol { margin: 8px 0 0; padding-inline-start: 1.35em; }
.fieldGrid li + li { margin-top: 4px; }
.fieldSource { margin-top: 8px; font-size: .9rem; }

/* 机场流程：环节插图 */
.conceptGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; }
.conceptGrid > div { padding: 12px 14px 16px; border: 1px solid var(--rule); border-radius: 16px; background: white; }
.scene { display: block; width: 100%; height: auto; margin-bottom: 10px; }
.scenePlane { color: #27726a; }
.conceptGrid dt { font-weight: 700; font-size: 1.1rem; }
.conceptGrid dt span { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); }
.conceptGrid dd { margin: 6px 0 0; font-size: .95rem; }

/* 机场流程：往返流程图。宽屏横排三站，窄屏竖排 */
.flowNote { color: var(--muted); margin-bottom: 8px; }
.flowTitle { margin: 22px 0 10px; font-size: 1.2rem; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1.25fr) 76px minmax(0, 1fr); align-items: start; margin: 0; padding: 0; list-style: none; }
.flowStop { padding: 14px 16px 16px; border: 1px solid var(--rule); border-radius: 16px; background: white; }
.flowStop.key { border: 2px solid #e2b75e; background: #fffaf0; }
.flowStop h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; }
.code { padding: 2px 8px; border-radius: 6px; background: var(--teal); color: white; font-size: .8rem; letter-spacing: .05em; }
.flowLeg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 40px; color: var(--muted); font-size: .9rem; text-align: center; }
.flowLeg svg { width: 32px; height: 32px; color: var(--teal); transform: scaleX(-1); }
.flowLeg::after { content: ""; width: 44px; height: 0; margin-top: 4px; border-top: 2px dashed #80a1a0; }
.miniSteps { position: relative; margin: 0; padding: 0; list-style: none; }
.miniSteps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 2px solid var(--rule); }
.miniSteps li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .95rem; line-height: 1.35; }
.miniSteps svg { flex-shrink: 0; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--soft); color: var(--teal); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.key .miniSteps svg { background: #fbecc8; }
.flowLink { display: inline-block; margin-top: 10px; font-size: .9rem; font-weight: 650; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .conceptGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .conceptGrid > div { padding: 8px 10px 12px; }
  .flowLeg { flex-direction: row; justify-content: center; gap: 8px; padding: 6px 0; }
  .flowLeg::after { display: none; }
  .flowLeg svg { transform: rotate(-90deg); width: 26px; height: 26px; }
}

/* 求助卡：整张卡可点击放大 */
.phraseCard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 16px; background: white; text-align: left; }
.phraseCard:hover { border-color: #287166; background: #fafcfb; }
.phraseCard strong { font-size: 1.15rem; }
.phraseCard [lang=en] { color: var(--muted); }
.phraseHint { margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 650; color: var(--teal); }
#phraseDialog { width: min(94vw, 820px); }
#phraseEn { margin: 20px 0 12px; font-size: clamp(1.7rem, 4.7vw, 3.4rem); font-weight: 700; line-height: 1.22; }
#phraseZh { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
#phraseStatus:not(:empty) { margin-top: 12px; }

/* 出发准备 */
.checklist { display: grid; gap: 8px; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: white; cursor: pointer; }
.checklist input { flex-shrink: 0; width: 24px; height: 24px; margin: 3px 0 0; accent-color: #27726a; }
.checklist label:has(input:checked) { background: var(--soft); color: var(--muted); }
#checklistCount { font-weight: 700; color: var(--muted); }
#offline p:first-of-type { max-width: 760px; }
.offlineStatus { max-width: 760px; margin-top: 12px; padding: 8px 14px; border-left: 4px solid #287166; background: var(--soft); }

/* 英语练习 */
.studyControls, .studyCard, .studyPaging { max-width: 760px; }
.studyControls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 10px; }
.studyControls select, .walkJump select { max-width: 100%; min-height: 48px; padding: 5px 10px; border: 1px solid #80a1a0; border-radius: 8px; background: white; font: inherit; color: inherit; }
#studyCount { margin-inline-start: auto; color: var(--muted); }
.studyCard { padding: clamp(18px, 2.8vw, 32px); }
.studyCard h2 { margin-top: 0; }
.studyLabel { margin-bottom: 4px; font-weight: 700; color: var(--muted); }
.studyEnglish { font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.42; }
#cardBack { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
#promptZh { margin-bottom: 14px; }
.studyListen, .studyTip, #studySpeechStatus:not(:empty) { margin-top: 10px; }
.studyTip { padding: 8px 12px; border-radius: 8px; background: var(--soft); }
.studyPaging { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.studyPaging button { flex: 1; }
button[data-speech-target][aria-pressed=true] { background: #e2efea; border-color: #287166; color: var(--teal); }
.dialogueHeading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.dialogueHeading h2 { margin: 0; }
.dialogueGroup { margin-top: 18px; }
.dialogueGroup h3 { margin-bottom: 8px; }
.dialogueGroup h4 { margin: 0; font-size: 1.1rem; }
.dialogueLine { margin-top: 10px; }
.dialogueLine p[lang=en] { font-size: 1.1rem; }

@media (max-width: 650px) {
  .fieldGrid { grid-template-columns: 1fr; }
}

/* 实景浏览 */
.walkJump { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.walkJump select { min-width: 0; }
.walkIntro { margin: -4px 0 14px; max-width: 760px; color: var(--muted); }
.walkGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.walkCard figcaption { display: block; padding: 10px 14px 12px; font-size: .95rem; }
.walkThumb { display: block; width: 100%; padding: 0; border: 0; background: #182d30; }
.walkThumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stepNo { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--teal); color: white; font-size: .8rem; font-weight: 700; }
#walkViewer { width: 96vw; max-width: 1400px; height: 94dvh; max-height: 94dvh; }
#walkViewer[open] { display: flex; flex-direction: column; }
.walkStage { flex: 1 1 auto; min-height: 0; margin-top: 10px; overflow: auto; border-radius: 8px; background: #182d30; }
.walkStage img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.walkStage.zoomed img { width: auto; height: auto; max-width: none; cursor: zoom-out; }
#walkCaption { flex-shrink: 0; margin-top: 10px; font-size: 1.05rem; }
.walkSource { font-size: .9rem; color: var(--muted); }
.walkSource, .walkPaging { flex-shrink: 0; }
.walkPaging { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.walkPaging button { min-width: 120px; }
#walkPosition, #walkCount { color: var(--muted); font-weight: 700; }

/* 实景浏览的开发者模式：照片下方显示文件名、对应题目和意见按钮 */
.walkDevBar, .walkDevRow { display: none; }
.walkDev .walkDevBar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 14px 12px; border-top: 1px dashed var(--rule); font-size: .8rem; color: var(--muted); }
.walkDevBar span { flex: 1 1 100%; overflow-wrap: anywhere; font-family: monospace; }
.walkDevBar .secondary, .walkDevRow .secondary { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
.walkDev .walkDevRow { display: flex; flex-shrink: 0; gap: 8px; margin-top: 8px; }
.walkDev .walkMarked { border: 2px solid #b3261e; }
.walkDev .walkMarked img { opacity: .45; }
.walkDev .walkNoted { border: 2px solid #be8733; }
