/* 貨態查詢系統（免登入公開頁）——沿用全站藍綠色系（見 CLAUDE.md 色系表） */
html, body { height: 100%; }
body {
    background: #eef2f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.search_page { flex: 1 0 auto; display: flex; flex-direction: column; min-height: 100vh; }

/* 品牌列：與全站標題漸層一致 */
.brand-bar {
    background: linear-gradient(135deg, #0f2c4d, #15497a, #1f7a8c);
    color: #fff;
    padding: .9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(15, 44, 77, .25);
}
.brand-bar img { height: 46px; }
.brand-title h1 { font-size: 1.25rem; font-weight: 700; margin: 0; letter-spacing: .05em; }
.brand-sub { font-size: .8rem; opacity: .85; }

/* 主要內容 */
.search-container { width: 100%; max-width: 880px; margin: 1.75rem auto; padding: 0 1rem; flex: 1 0 auto; }

/* 查詢卡 */
.query-card { border: 0; border-radius: .9rem; box-shadow: 0 6px 24px rgba(15, 44, 77, .10); overflow: hidden; }
.query-card .form-label { font-weight: 700; color: #2c3a4d; margin-bottom: .25rem; }
.query-card .card-footer { background: #f6f9fc; border-top: 1px solid #e5ecf4; }
.query-note { margin-top: .7rem; font-size: .82rem; color: #5b6b7f; }
.captcha-box { cursor: pointer; background: #fff; }
.captcha-box img { display: block; border-radius: 0; }

/* 結果卡 */
.result-card { border: 0; border-radius: .9rem; box-shadow: 0 6px 24px rgba(15, 44, 77, .10); margin-top: 1.25rem; overflow: hidden; }
.result-head {
    background: linear-gradient(135deg, #15497a, #1f7a8c);
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .65rem 1.1rem;
}

/* 狀態時間軸 */
.result-timeline { list-style: none; margin: 0; padding: .25rem 0 0; position: relative; }
.result-timeline::before {
    content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px;
    width: 3px; background: #dbe6f2; border-radius: 2px;
}
.result-timeline li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; position: relative; flex-wrap: wrap; }
.tl-icon {
    width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px;
    background: linear-gradient(135deg, #235eb7, #1f9d8f);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem; position: relative; z-index: 1; box-shadow: 0 2px 6px rgba(35, 94, 183, .35);
}
.tl-label { font-weight: 700; color: #2c3a4d; min-width: 4.5em; }
.tl-time { color: #5b6b7f; font-size: .85rem; }

/* 型態/日期膠囊的中性底色（web_style.css 的 .bg-secondary2 本頁未載入，於此補定義；
   狀態徽章色用 app-overrides 的 .ts-* 全站標準，由 JS 依 SearchStatus 指定） */
.bg-secondary2 { background: #64748b; }

/* 操作按鈕列 */
.result-actions { border-top: 1px dashed #dbe6f2; margin-top: .7rem; padding-top: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* 照片輪播 */
#photoCarousel .carousel-item img { max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; display: block; border-radius: .4rem; }
#photoCarousel .carousel-indicators [data-bs-target] { background-color: #235eb7; }
#photoCarousel .carousel-control-prev-icon, #photoCarousel .carousel-control-next-icon { filter: invert(.4); }

/* 頁尾 */
.footer_box {
    flex-shrink: 0;
    background: #0f2437; color: #cfd9e4;
    text-align: center; font-size: .8rem; line-height: 1.6;
    padding: .8rem 1rem; margin-top: 2rem;
}

@media (max-width: 576px) {
    .brand-bar { flex-wrap: wrap; padding: .7rem .9rem; }
    .brand-bar img { height: 38px; }
    .search-container { margin-top: 1rem; }
}
