﻿/* =========================================================
   Trip 子頁
========================================================= */


.trip-page{
    padding:24px 28px 28px;
}

/* 標題更像子功能卡片標題 */
.trip-page legend{
    padding:5px 14px;
    border-radius:999px;

    background:rgba(255,255,255,.72);
    border:1px solid rgba(255,255,255,.72);

    color:#1f2937;
    font-size:14px;
    font-weight:900;
    letter-spacing:.08em;

    box-shadow:
        0 4px 12px rgba(15,23,42,.06),
        inset 0 1px 0 rgba(255,255,255,.85);
}

/* 分頁 / 篩選列 */
.trip-page center{
    margin:7px 0 9px;
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

/* 分頁、篩選連結做成小膠囊 */
.trip-page center > a,
.trip-page center > span{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:28px;
    height:24px;
    margin:2px 1px;
    padding:0 7px;

    border-radius:999px;

    font-size:12px;
    font-weight:800;
    line-height:1;
    text-decoration:none;
}

/* 一般分頁 */
.trip-page center > a{
    color:#2563eb;
    background:rgba(255,255,255,.50);
    border:1px solid rgba(148,163,184,.24);

    box-shadow:
        0 2px 6px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,.72);

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.trip-page center > a:hover{
    color:#1e40af;
    background:rgba(255,255,255,.82);
    border-color:rgba(59,130,246,.25);
    transform:translateY(-1px);
}

/* 目前頁數：原本是 inline style color:red 的 span */
.trip-page center > span[style*="Red"],
.trip-page center > span[style*="red"]{
    color:#fff !important;
    background:linear-gradient(135deg,#2563eb,#60a5fa);
    border:1px solid rgba(255,255,255,.55);

    box-shadow:
        0 5px 12px rgba(37,99,235,.24),
        inset 0 1px 0 rgba(255,255,255,.34);
}

/* Trip 子頁表格：不指定 width，保留原本小表格寬度 */
.trip-page > table,
.trip-page center + table{
    width:auto !important;
    min-width:0 !important;
    max-width:100%;

    margin:10px auto 8px !important;

    border-collapse:separate;
    border-spacing:0;

    border-radius:13px;
    overflow:hidden;

    background:rgba(255,255,255,.66);
    border:1px solid rgba(255,255,255,.62);

    box-shadow:
        0 8px 20px rgba(15,23,42,.065),
        inset 0 1px 0 rgba(255,255,255,.78);
}

/* 表頭列：原本 class="table3" */
.trip-page tr.table3{
    background:
        linear-gradient(180deg, rgba(248,250,252,.98), rgba(226,232,240,.78));
}

.trip-page tr.table3 td{
    padding:7px 10px !important;

    color:#334155;
    font-size:13px;
    font-weight:700;
    letter-spacing:.05em;
    white-space:nowrap;

    border-bottom:1px solid rgba(15,23,42,.13);
}

/* 表頭內排序連結 */
.trip-page tr.table3 td a{
    color:#1e3a8a;
    font-weight:700;
    text-decoration:none;
}

.trip-page tr.table3 td a:hover{
    color:#2563eb;
    text-decoration:underline;
}

/* 表格內容列：小表格，所以 padding 不要太大 */
.trip-page tbody td{
    padding:5px 9px !important;

    color:#1f2937;
    font-size:13px;
    font-weight:700;
    line-height:1.35;
    white-space:nowrap;

    border-bottom:1px solid rgba(15,23,42,.055);
}

/* 欄位間細線 */
.trip-page tbody td + td,
.trip-page tr.table3 td + td{
    border-left:1px solid rgba(15,23,42,.055);
}

/* 最後一列不要底線 */
.trip-page tbody tr:last-child td{
    border-bottom:none;
}

/* 淡淡斑馬紋 */
.trip-page tbody tr:nth-child(even){
    background:rgba(248,250,252,.52);
}

/* hover */
.trip-page tbody tr:hover{
    background:rgba(239,246,255,.70);
}

/* 表格內連結 */
.trip-page table a{
    color:#2563eb;
    font-weight:700;
    text-decoration:none;
}

.trip-page table a:hover{
    color:#1d4ed8;
    text-decoration:underline;
}

.trip-page table img{
    vertical-align:middle;
}

/* 詳細列表中的職業顏色保留，但加粗一點 */
.trip-page table font{
    font-weight:900;
}

/* 搜尋區 */
.trip-page form[name="trip"]{
    display:inline-flex;
    align-items:center;
    gap:6px;

    margin-top:6px;
    padding:8px 10px;

    border-radius:14px;
    background:rgba(255,255,255,.56);
    border:1px solid rgba(255,255,255,.62);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.76),
        0 4px 12px rgba(15,23,42,.045);
}

/* 搜尋輸入框：不要變太大 */
.trip-page form[name="trip"] input[type="text"]{
    width:96px;
    min-height:26px;

    padding:4px 8px !important;
    border-radius:9px !important;

    font-size:13px;
    font-weight:700;

    background:#f8fbff !important;
    border:1px solid rgba(100,116,139,.28) !important;
}

/* 搜尋按鈕：小顆 */
.trip-page form[name="trip"] input[type="submit"]{
    min-width:60px;
    height:27px;

    padding:0 11px !important;
    border-radius:999px !important;

    font-size:12px;
    font-weight:800;
    letter-spacing:.03em;

    background:linear-gradient(135deg,#2563eb,#60a5fa) !important;
    color:#fff;

    box-shadow:
        0 5px 12px rgba(37,99,235,.24),
        inset 0 1px 0 rgba(255,255,255,.34);

    transform:none;
}

.trip-page form[name="trip"] input[type="submit"]:hover{
    filter:saturate(1.08);
    transform:translateY(-1px);
}

/* 詳細列表下方統計區 */
.trip-page table + center,
.trip-page tbody + center{
    margin-top:11px;
    padding:10px 14px;

    display:block;

    border-radius:15px;
    background:rgba(255,255,255,.48);
    border:1px solid rgba(255,255,255,.58);

    color:#334155;
    font-size:13px;
    font-weight:700;
    line-height:1.65;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.74),
        0 5px 14px rgba(15,23,42,.045);
}

.trip-page table + center b,
.trip-page tbody + center b{
    color:#111827;
    font-weight:700;
}

/* 避免全站 glass-card hover 讓這種資料頁浮動太明顯 */
.trip-page.glass-card:hover{
    transform:none;
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255,255,255,.75);
}

.trip-page.glass-card:hover::after{
    animation:none;
    opacity:0;
}

/* =========================================================
   Trip 系列表單
========================================================= */
.trip-form-wrap{
    display:flex;
    justify-content:center;
    width:100%;
}

.trip-edit-form{
    width:fit-content;
    max-width:100%;

    margin:8px auto 0 !important;
    padding:14px 18px;

    display:flex;
    flex-direction:column;
    align-items:stretch;

    border-radius:18px;
    background:rgba(255,255,255,.48);
    border:1px solid rgba(255,255,255,.60);

    box-shadow:
        0 8px 20px rgba(15,23,42,.055),
        inset 0 1px 0 rgba(255,255,255,.78);
}

/* 說明區 */
.trip-form-note{
    min-width:420px;
    max-width:540px;

    margin:0 0 10px;
    padding:9px 12px;

    display:block;

    border-radius:14px;
    background:rgba(248,250,252,.68);
    border:1px solid rgba(148,163,184,.20);

    color:#475569;
    font-size:13px;
    font-weight:700;
    line-height:1.6;
    text-align:left;
}

.trip-form-note div{
    display:block;
}

.trip-form-note div + div{
    margin-top:2px;
}

.trip-form-note a{
    color:#2563eb;
    font-weight:900;
    text-decoration:none;
}

.trip-form-note a:hover{
    color:#1d4ed8;
    text-decoration:underline;
}

/* 一般欄位列 */
.trip-form-row{
    display:grid;
    grid-template-columns:86px 210px;
    align-items:center;
    gap:8px;

    margin:5px 0;
}

/* 左側標籤 */
.trip-form-row label{
    color:#334155;
    font-size:13px;
    font-weight:900;
    text-align:right;
    white-space:nowrap;
}

/* text / password */
.trip-edit-form input[type="text"],
.trip-edit-form input[type="password"]{
    width:210px;
    min-height:28px;

    padding:4px 8px !important;

    border-radius:10px !important;
    border:1px solid rgba(100,116,139,.28) !important;

    background:#f8fbff !important;

    color:#111827;
    font-size:13px;
    font-weight:700;

    box-shadow:
        inset 0 1px 2px rgba(15,23,42,.045),
        0 1px 0 rgba(255,255,255,.75);
}

.trip-edit-form input[type="text"]:focus,
.trip-edit-form input[type="password"]:focus{
    outline:none;
    border-color:rgba(37,99,235,.58) !important;

    background:#fff !important;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.14),
        inset 0 1px 2px rgba(15,23,42,.05);
}

/* radio 列 */
.trip-form-radio-row{
    display:grid;
    grid-template-columns:86px 210px;
    align-items:center;
    gap:8px;

    margin:5px 0;
}

.trip-radio-title{
    color:#334155;
    font-size:13px;
    font-weight:900;
    text-align:right;
    white-space:nowrap;
}

.trip-radio-options{
    display:flex;
    align-items:center;
    gap:8px;
}

.trip-radio-option{
    display:inline-flex;
    align-items:center;
    gap:6px;

    min-height:28px;
    padding:4px 10px;

    border-radius:999px;
    background:rgba(248,250,252,.72);
    border:1px solid rgba(148,163,184,.22);

    color:#334155;
    font-size:13px;
    font-weight:800;

    cursor:pointer;
}

.trip-radio-option input[type="radio"]{
    width:15px;
    height:15px;
    margin:0;

    accent-color:#2563eb;
    cursor:pointer;
}

.trip-radio-option span{
    white-space:nowrap;
}

/* 送出列 */
.trip-form-actions{
    margin-top:10px;
    text-align:center;
}

/* 送出按鈕 */
.trip-edit-form input[type="submit"]{
    min-width:88px;
    height:30px;

    padding:0 18px !important;
    border:0 !important;
    border-radius:999px !important;

    background:linear-gradient(135deg,#2563eb,#60a5fa) !important;
    color:#fff;

    font-size:13px;
    font-weight:900;
    letter-spacing:.08em;

    box-shadow:
        0 7px 16px rgba(37,99,235,.25),
        inset 0 1px 0 rgba(255,255,255,.34);

    cursor:pointer;

    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;
}

.trip-edit-form input[type="submit"]:hover{
    transform:translateY(-1px);
    filter:saturate(1.08);
    box-shadow:
        0 10px 20px rgba(37,99,235,.30),
        inset 0 1px 0 rgba(255,255,255,.40);
}

.trip-edit-form input[type="submit"]:active{
    transform:translateY(0) scale(.98);
}