/* ===== Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
    background-color: #f7f9fa;
    color: #333;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 100px;
}

a {
    color: #00736a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Banner (Header) ===== */
.banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.banner-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 16px;
}

.banner_logo {
    width: 180px;
    height: 50px;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    margin-right: 12px;
}

.systemname {
    line-height: 1.3;
    color: #643527;
    padding-left: 4px;
}

.systemname p {
    margin: 0;
    font-weight: bold;
    font-size: 1.3em;
    white-space: nowrap;
}

/* ===== Container / Main content ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.body-content {
    padding-top: 36px;
    padding-bottom: 36px;
}

.site-relocated {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.site-relocated-box {
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #00a29a;
    padding: 36px 36px;
    text-align: center;
}

.site-relocated-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #00736a;
    margin: 0 0 18px 0;
}

.site-relocated-message {
    font-size: 1.05rem;
    color: #444;
    margin: 6px 0;
}

.site-relocated-countdown {
    color: #555;
    font-size: 1rem;
    margin: 20px 0;
}

.site-relocated-countdown #redirectCountdown {
    display: inline-block;
    min-width: 22px;
    font-weight: 700;
    color: #c0392b;
    font-size: 1.2rem;
}

.site-relocated-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 11px 26px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #ffffff !important;
    background-color: #00a29a;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 0 rgb(0, 113, 113);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.site-relocated-btn:hover,
.site-relocated-btn:focus {
    background-color: #068d85;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 5px 0 rgb(0, 113, 113);
}

.site-relocated-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgb(0, 113, 113);
}

.site-relocated-btn .fa {
    font-size: 1rem;
}

.site-relocated-newurl {
    margin-top: 22px;
    margin-bottom: 0;
    padding-top: 16px;
    border-top: 1px dashed #d0d0d0;
    font-size: 0.95rem;
    color: #555;
    word-break: break-all;
}

.site-relocated-newurl a {
    color: #00736a;
    text-decoration: underline;
}

/* ===== Footer ===== */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    padding: 24px 0;
    z-index: 999;
}

/* ===== RWD ===== */
@media (max-width: 991px) {
    .banner_logo {
        width: 140px;
        height: 40px;
    }
    .systemname p {
        font-size: 1em;
    }
    .site-relocated-title {
        font-size: 1.5rem;
    }
    .site-relocated-message {
        font-size: 1rem;
    }
    .site-relocated-box {
        padding: 32px 20px;
    }
}

@media (max-width: 575px) {
    body {
        padding-top: 80px;
    }
    .banner-brand {
        padding: 6px 10px;
    }
    .systemname p {
        font-size: 0.95em;
    }
    .site-relocated-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
