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

body {
    margin: 0;
    background-color: #FFFFEE;
}

.ruzhi-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-left: 1px solid #5f9ea0;
    border-right: 1px solid #5f9ea0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header sticky ── */
.ruzhi-header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ── 導覽列 ── */
.ruzhi-nav {
    display: flex;
    background: #5f9ea0;
}

.ruzhi-nav a {
    display: block;
    padding: 7px 14px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.ruzhi-nav a:hover {
    background: rgba(0,0,0,0.15);
}

/* ── Banner ── */
.ruzhi-banner {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: #ddeeff;
}

/* logo 連結 */
.ruzhi-logo-link {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ruzhi-logo-link img {
    height: 100%;
    width: auto;
    display: block;
}

/* 左側 tagline */
.ruzhi-tagline {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: linear-gradient(to right, rgba(255,255,240,0.92) 70%, transparent);
    flex-wrap: wrap;
    line-height: 1.25;
}

.ruzhi-tagline-main {
    font-size: 18px;
    font-weight: 900;
    color: #1a3a5c;
    letter-spacing: 0.02em;
}

.ruzhi-tagline-main em {
    font-style: normal;
    color: #1a6fc4;
}

.ruzhi-tagline-num {
    font-size: 32px;
    font-weight: 900;
    color: #1a6fc4;
    line-height: 1;
}

.ruzhi-tagline-unit {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
    align-self: flex-end;
    margin-bottom: 4px;
}

/* ── 主內容 ── */
.ruzhi-main {
    border-top: 1px solid #5f9ea0;
    min-height: 232px;
    padding: 8px 0 2rem;
    overflow-x: auto;
    flex: 1;
}

/* ── 頁尾 ── */
.ruzhi-footer {
    min-height: 40px;
    background-color:blanchedalmond;
    background-repeat: repeat-x;
    background-size: auto 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    border-top: 1px solid #5f9ea0;
}

.ruzhi-footer a {
    color: #333;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.ruzhi-footer a:hover { text-decoration: underline; }

/* ── RWD ── */
@media (max-width: 600px) {
    .ruzhi-wrapper { border: none; }
    .ruzhi-nav { overflow-x: auto; }
    .ruzhi-banner { height: 90px; }
    .ruzhi-tagline-main { font-size: 14px; }
    .ruzhi-tagline-num { font-size: 24px; }
}
