*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:"Noto Sans TC",sans-serif;
    color:#333;
    overflow-x:hidden;
    position:relative;
}

body::before{

    content:"";

    position:fixed;

    left:-10%;
    top:-10%;

    width:111%;
    height:111%;

    background:
        linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
        url("../images/bg.jpg") center center / cover no-repeat;

    z-index:-1;

    will-change:transform;

    transform:translate3d(0,0,0);

    transition:transform .12s linear;

}

.page{
    max-width:720px;
    margin:60px auto;
    padding:20px;
}

header{
    text-align:center;
    margin-bottom:24px;
}

h1{
    margin:0;
    color:#fff;
    font-size:36px;
    font-weight:700;
    letter-spacing:2px;
    text-shadow:0 3px 12px rgba(0,0,0,.45);
}

.subtitle{
    margin-top:10px;
    color:rgba(255,255,255,.92);
    font-size:16px;
    text-shadow:0 2px 8px rgba(0,0,0,.45);
}

.search-card{
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border-radius:20px;
    padding:28px;
    box-shadow:0 20px 40px rgba(0,0,0,.25);
}

input{
    width:100%;
    padding:15px;
    margin-bottom:14px;
    border:1px solid #d7dce5;
    border-radius:12px;
    font-size:16px;
    transition:.2s;
}

input:focus{
    outline:none;
    border-color:#00a0e9;
    box-shadow:0 0 0 4px rgba(0,160,233,.15);
}

/* ===== 查詢按鈕 ===== */

button{

    width:100%;
    height:56px;

    border:none;
    border-radius:12px;

    background:#00a0e9;
    color:#fff;

    font-size:17px;
    font-weight:700;

    cursor:pointer;

    position:relative;
    overflow:hidden;

    transition:background .2s;

}

button:hover{

    background:#0093d7;

}

button:disabled{

    cursor:default;

}

button span{

    position:relative;
    z-index:2;

}

/* 進度色塊 */

button::before{

    content:"";

    position:absolute;

    left:0;
    top:0;

    width:var(--progress,0%);
    height:100%;

    background:#0086c4;

    transition:width .08s linear;

    z-index:1;

}

/* 完成 */

button.success{

    background:#00a0e9;

}

.guide-link{

    margin:18px 0;

    text-align:center;

}

.guide-link a{

    color:#5b6f82;

    text-decoration:none;

    font-size:15px;

}

.guide-link a:hover{

    color:#00a0e9;

    text-decoration:underline;

}

/* ===== 底部說明文字 ===== */

.notice{

    margin-top:24px;

    text-align:center;

    color:#6b7280;

    font-size:13px;

    line-height:1.7;

}

/* ===== 查詢結果 ===== */

#result{

    margin-top:24px;

}

.file-link{

    display:block;

    width:100%;

    padding:14px 15px;

    margin-bottom:10px;

    background:#f8f9fb;

    border:1px solid #d9dee5;

    border-radius:12px;

    color:#00a0e9;

    font-size:16px;

    font-weight:500;

    text-decoration:none;

    word-break:break-word;

    transition:
        background .2s,
        border-color .2s,
        color .2s;

    animation:fadeUp .25s ease;

}

.file-link:hover{

    background:#edf1f5;

    border-color:#cfd6df;

    color:#0086c4;

}

.guide-section{

    margin:18px 0;

}

.section-divider{

    border:0;

    border-top:1px solid #d9dee5;

    margin:20px 0;

}

/* ===== 查無資料 ===== */

.no-result{

    background:rgba(255,255,255,.96);

    border-radius:14px;

    padding:20px;

    text-align:center;

    color:#666;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    animation:fadeUp .25s ease;

}

/* ===== 動畫 ===== */

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(10px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* ===== 手機版 ===== */

@media (max-width:768px){

    .page{

        margin-top:max(40px, env(safe-area-inset-top));

        padding:18px;

    }

    h1{

        font-size:30px;

    }

    .subtitle{

        font-size:15px;

    }

    .search-card{

        padding:20px;

        border-radius:16px;

    }

    input{

        font-size:16px;

    }

    button{

        height:54px;

        font-size:17px;

    }

    .file-link{

    font-size:15px;

    padding:14px 15px;

}

   .file-actions{

    gap:8px;

}

.file-actions a{

    margin:0;

    padding:12px;

    font-size:15px;

}

}
