:root {
    font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    color: #151515;
    background: #fafafa;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background-image: radial-gradient(#ddd 0.55px, transparent 0.55px);
    background-size: 5px 5px;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:focus-visible,
summary:focus-visible {
    outline: 3px solid #ff9900;
    outline-offset: 2px;
}
.site {
    max-width: 1170px;
    margin: auto;
    background: white;
    box-shadow: 0 0 3px #888;
}
.top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #050c74;
    color: white;
    min-height: 80px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    background: #ff9900;
    color: white;
    font-size: 27px;
    font-weight: 800;
    white-space: nowrap;
}
.mark {
    font-size: 45px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -10px;
    padding-right: 9px;
    line-height: 1;
}
.nav {
    display: flex;
    align-items: center;
    padding: 0 21px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav a {
    padding: 0 8px;
    border-right: 1px solid white;
    font-weight: 700;
    white-space: nowrap;
}
.nav a:last-child {
    border: 0;
}
.nav a.active {
    color: #ffb900;
}
.mobile-menu {
    display: none;
}
.content {
    position: relative;
    min-height: 580px;
    padding: 45px 30px 44px 315px;
    overflow: hidden;
}
.content:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 340px;
    background:
        linear-gradient(90deg, rgba(17, 32, 59, 0.15), rgba(255, 255, 255, 0.85) 87%, white),
        url("../img/office-bg.webp") center/cover;
    filter: blur(3px);
    transform: scale(1.03);
    z-index: 0;
}
.main {
    position: relative;
    z-index: 1;
}
.section-title {
    background: #ff9c00;
    color: white;
    font-size: 19px;
    font-weight: 700;
    padding: 5px 16px 5px 80px;
    position: relative;
    min-height: 31px;
    margin: 0;
}
.section-title .symbol {
    position: absolute;
    left: 10px;
    top: -19px;
    font-size: 47px;
    filter: drop-shadow(1px 2px 1px #666);
}
.news {
    padding: 21px 40px 25px 66px;
}
.news a {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: baseline;
    min-height: 35px;
    font-size: 16px;
    font-weight: 600;
}
.news a span:first-child:before {
    content: "▣";
    color: #66bb00;
    margin-right: 9px;
}
.news time {
    color: #a52020;
    white-space: nowrap;
    font-weight: 400;
}
.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.columns .ranking .section-title {
    background: #ffba00;
}
.columns .links .section-title {
    background: #946500;
}
.columns ul {
    list-style: none;
    padding: 15px 15px 10px 68px;
    margin: 0;
}
.columns li {
    margin: 9px 0;
    font-weight: 600;
    font-size: 16px;
}
.ranking li:before {
    content: "✳";
    display: inline-grid;
    place-items: center;
    background: #ffa000;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    margin-right: 8px;
}
.links li:before {
    content: "☎";
    display: inline-grid;
    place-items: center;
    background: #060d6c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    margin-right: 8px;
}
.inner {
    padding: 32px 23px 40px;
    min-height: 310px;
}
.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    border-bottom: 3px solid #e6a21e;
    padding: 0 0 10px;
    font-size: 29px;
    font-weight: 500;
    text-shadow: 1px 1px 2px #aaa;
}
.page-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 60px;
    font-size: 44px;
    color: #d1a127;
}
.rows {
    padding: 0 65px;
}
.row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    font-size: 17px;
    font-weight: 600;
}
.row-label:before {
    content: "▣";
    color: #65b900;
    margin-right: 7px;
}
.row time,
.date {
    color: #983535;
    white-space: nowrap;
    font-weight: 400;
}
.simple-list {
    padding: 12px 65px;
}
.simple-list a {
    display: block;
    font-size: 19px;
    font-weight: 600;
    padding: 13px 0;
}
.pagination {
    text-align: center;
    margin: 16px;
}
.pagination span {
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 7px 12px;
}
.link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px 25px;
    max-width: 730px;
    margin: 25px auto 45px;
}
.link-grid a {
    font-size: 17px;
    font-weight: 600;
}
.link-grid a:before {
    content: "☎";
    color: #080d5c;
    margin-right: 10px;
}
.article {
    max-width: 1030px;
    margin: auto;
    padding: 10px 45px 45px;
    font-size: 17px;
    line-height: 1.85;
}
.article h2 {
    font-size: 22px;
}
.article h3 {
    font-size: 19px;
    margin-top: 30px;
}
.content-note {
    color: #555;
    background: #f5f5f5;
    border-left: 3px solid #dfa11b;
    padding: 12px;
}
.back {
    display: inline-block;
    margin-top: 25px;
    color: #080d78;
    text-decoration: underline;
}
.footnav {
    background: #03094c;
    color: white;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 8px;
}
.footnav a {
    padding: 0 15px;
    border-right: 1px solid white;
    font-weight: 700;
}
.footnav a:last-child {
    border: 0;
}
.footer {
    background: #666;
    color: #fff;
    text-align: center;
    padding: 16px 15px 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}
.footer p {
    margin: 0;
}
.note {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 8px;
    background: #fafafa;
}
@media (max-width: 900px) {
    .top {
        flex-wrap: wrap;
    }
    .brand {
        flex: 1;
    }
    .top > .nav {
        display: none;
    }
    .mobile-menu {
        display: block;
        align-self: center;
        position: relative;
    }
    .mobile-menu summary {
        cursor: pointer;
        padding: 19px;
        color: white;
        font-weight: bold;
    }
    .mobile-menu nav {
        position: absolute;
        z-index: 10;
        right: 0;
        top: 100%;
        background: #070d66;
        min-width: 220px;
        box-shadow: 0 5px 10px #0005;
    }
    .mobile-menu nav a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #fff3;
    }
    .content {
        padding-left: 170px;
    }
    .content:before {
        width: 220px;
    }
    .news {
        padding-left: 20px;
        padding-right: 10px;
    }
    .columns ul {
        padding-left: 25px;
    }
}
@media (max-width: 640px) {
    .brand {
        font-size: 23px;
    }
    .content {
        padding: 24px 14px 35px;
        min-height: 0;
    }
    .content:before {
        width: 100%;
        height: 150px;
        bottom: auto;
        opacity: 0.28;
        background:
            linear-gradient(transparent, white),
            url("../img/office-bg.webp") center/cover;
    }
    .section-title {
        padding-left: 65px;
    }
    .news {
        padding: 16px 2px 20px;
    }
    .news a {
        padding: 7px 5px;
        align-items: flex-start;
        font-size: 15px;
        border-bottom: 1px solid #eee;
        line-height: 1.5;
        flex-wrap: wrap;
        gap: 0;
    }
    .news time {
        margin-left: 25px;
        font-size: 13px;
    }
    .columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .columns ul {
        padding: 10px 15px 5px 20px;
    }
    .inner {
        padding: 23px 16px 35px;
    }
    .page-title {
        font-size: 23px;
    }
    .rows,
    .simple-list {
        padding: 0 5px;
    }
    .row {
        font-size: 15px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .row time {
        margin-left: 24px;
        font-size: 13px;
    }
    .link-grid {
        grid-template-columns: 1fr;
        margin: 20px 5px;
    }
    .article {
        padding: 5px;
        font-size: 16px;
    }
    .footnav a {
        font-size: 13px;
        margin: 5px 0;
    }
    .footer {
        font-size: 13px;
    }
}

.section-title .more {
    float: right;
    color: #c20f00;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 22px;
}
.section-title .more:hover {
    text-decoration: underline;
}
.rank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 45px;
    max-width: 750px;
    margin: 25px auto 30px;
}
.rank-grid a {
    font-size: 18px;
    font-weight: 600;
}
.rank-grid a:before {
    content: "✳";
    display: inline-grid;
    place-items: center;
    background: #ffa000;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    margin-right: 8px;
}
.contact-page {
    padding: 30px 24px 0;
}
.contact-top {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 440px;
}
.contact-info {
    padding: 15px 22px;
    font-size: 18px;
}
.contact-info h1,
.contact-form h2 {
    font-size: 21px;
    color: #ff7900;
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
    margin: 0 0 18px;
}
.contact-info h1:after,
.contact-form h2:after {
    content: "";
    display: block;
    width: 100px;
    border-bottom: 3px solid #f80;
    position: relative;
    top: 14px;
}
.contact-info p {
    margin: 13px 0;
}
.contact-info span {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background: #284d84;
    color: #fff;
    margin-right: 8px;
    font-size: 14px;
}
.map-panel {
    position: relative;
    min-height: 430px;
    background: #eaf0f4;
}
.map-panel iframe {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 430px;
}
.map-panel a {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: #fff;
    color: #274b83;
    padding: 5px 8px;
}
.contact-form {
    background: #f2f2f2;
    padding: 40px;
    margin: 20px -24px 0;
}
.contact-form > p {
    color: #666;
}
.contact-form label {
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: start;
    gap: 20px;
    margin: 14px 0;
    font-size: 17px;
}
.contact-form label b {
    color: #e11;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #999;
    background: #fff;
    padding: 10px;
    font: inherit;
}
.form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
}
.form-actions button {
    border: 0;
    border-radius: 30px;
    background: #274b83;
    color: #fff;
    padding: 10px 25px;
    cursor: pointer;
}
.form-actions button:first-child {
    background: #aaa;
}
.form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
@media (max-width: 700px) {
    .rank-grid,
    .contact-top {
        grid-template-columns: 1fr;
    }
    .contact-top {
        gap: 20px;
    }
    .contact-page {
        padding: 20px 16px 0;
    }
    .map-panel,
    .map-panel iframe {
        min-height: 300px;
    }
    .contact-form {
        margin: 20px -16px 0;
        padding: 24px 16px;
    }
    .contact-form label {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
.captcha-field {
    display: flex;
    align-items: center;
    gap: 15px;
}
.captcha-field input {
    max-width: 160px;
}
.captcha-field img {
    background: #eee;
}
.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-error {
    background: #fff0f0;
    border-left: 4px solid #b22;
    padding: 8px 15px;
}
.form-success {
    background: #e7f5e8;
    border-left: 4px solid #398047;
    padding: 12px;
}

.brand-logo {
    display: block;
    width: 176px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
.brand {
    min-width: 236px;
    justify-content: center;
}
@media (max-width: 640px) {
    .brand {
        min-width: 0;
        justify-content: flex-start;
    }
    .brand-logo {
        width: 176px;
    }
}

/* Mobile layout matching the supplied reference. */
@media (max-width: 640px) {
    .top {
        position: relative;
        background: #ff9900;
        border-bottom: 7px solid #f47700;
        min-height: 92px;
        flex-wrap: nowrap;
        align-items: center;
    }
    .brand {
        padding: 15px 8.75%;
        flex: 1;
        min-width: 0;
    }
    .brand-logo {
        width: 52vw;
        max-width: 250px;
    }
    .mobile-menu {
        position: static;
        margin-right: 4.5%;
        flex: none;
    }
    .mobile-menu summary {
        display: block;
        width: 56px;
        height: 52px;
        padding: 0;
        border: 2px solid #fff6d0;
        border-radius: 4px;
        font-size: 0;
        list-style: none;
        position: relative;
    }
    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }
    .mobile-menu summary:before {
        content: "";
        position: absolute;
        left: 9px;
        right: 9px;
        top: 10px;
        height: 2px;
        background: #fff6d0;
        box-shadow:
            0 13px #fff6d0,
            0 26px #fff6d0;
    }
    .mobile-menu nav {
        top: 100%;
        left: 0;
        right: 0;
        min-width: 0;
    }
    .home-content {
        padding: 53px 8.75% 40px;
        isolation: isolate;
    }
    .home-content:before {
        width: 100%;
        height: 100%;
        bottom: 0;
        top: 0;
        opacity: 0.45;
        background:
            linear-gradient(#ffffffb8, #ffffffb8),
            url("../img/office-bg.webp") center/cover;
        filter: blur(2px);
    }
    .home-content .section-title {
        font-size: clamp(19px, 5vw, 24px);
        font-weight: 500;
        line-height: 1.4;
        min-height: 36px;
        padding: 3px 7% 3px 30%;
        white-space: nowrap;
    }
    .home-content .section-title .symbol {
        left: 0;
        top: -17px;
        font-size: 64px;
        width: clamp(64px, 18vw, 86px);
        height: auto;
        max-height: 86px;
        object-fit: contain;
    }
    .home-content .section-title .more {
        font-size: clamp(17px, 4.5vw, 22px);
        line-height: 1.6;
        font-weight: 700;
    }
    .home-content .news {
        padding: 28px 0 22px;
    }
    .home-content .news a {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 0;
        min-height: 66px;
        border: 0;
        font-size: clamp(16px, 4.6vw, 22px);
        font-weight: 500;
        line-height: 1.35;
    }
    .home-content .news a span:first-child {
        display: block;
        max-width: 72%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .home-content .news a span:first-child:before {
        content: "▣";
        display: inline-grid;
        place-items: center;
        width: 20px;
        height: 20px;
        background: #8bc329;
        color: #d9f4af;
        border-radius: 50%;
        font-size: 15px;
        margin-right: 6px;
    }
    .home-content .news time {
        margin-left: 0;
        font-size: inherit;
        letter-spacing: 1px;
        font-weight: 600;
    }
    .home-content .columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .home-content .columns ul {
        padding: 24px 0 0;
    }
    .home-content .columns li {
        margin: 0 0 16px;
        font-size: clamp(16px, 4.6vw, 22px);
        line-height: 1.4;
        font-weight: 500;
    }
    .home-content .ranking li:before,
    .home-content .links li:before {
        width: 20px;
        height: 20px;
        font-size: 14px;
        margin-right: 6px;
    }
    .home-content .links li:before {
        content: "↗";
    }
    .home-content .links .more {
        color: #fff36c;
    }
    .footnav {
        display: none;
    }
    .footer {
        padding: 18px 13% 40px;
        text-align: left;
        font-size: clamp(16px, 4.5vw, 22px);
        line-height: 1.5;
        letter-spacing: 1px;
        font-weight: 500;
    }
    .footer-desktop {
        display: none;
    }
    .footer-mobile {
        display: block;
    }
    .footer-mobile address {
        font-style: normal;
    }
    .footer-mobile p {
        margin: 12px 0 0;
    }
}
@media (min-width: 641px) {
    .footer-mobile {
        display: none;
    }
}

@media (max-width: 640px) {
    .home-content .news time {
        order: -1;
    }
}

/* Keep each mobile news date and title together. */
@media (max-width: 640px) {
    .home-content .news a {
        min-height: 0;
        gap: 6px;
        padding: 0 0 24px;
    }
    .home-content .news a:last-child {
        padding-bottom: 0;
    }
    .home-content .news a span:first-child {
        max-width: 100%;
        width: 100%;
    }
    .home-content .news time {
        order: -1;
    }
}

.news-page-icon {
    display: none;
}
@media (max-width: 640px) {
    .news-listing {
        padding: 30px 6.7% 44px;
        background: #fff;
    }
    .news-listing .page-title {
        gap: 18px;
        min-height: 94px;
        font-size: 32px;
        font-weight: 500;
        border-bottom: 4px solid #e6a21e;
        padding: 0 0 10px;
        margin-bottom: 18px;
    }
    .news-listing .page-title .page-icon {
        display: none;
    }
    .news-listing .news-page-icon {
        display: block;
        width: 70px;
        height: auto;
        flex: none;
    }
    .news-listing .rows {
        padding: 0;
    }
    .news-listing .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 20px;
        min-height: 56px;
        padding: 12px 0;
        font-size: clamp(15px, 4.8vw, 22px);
        line-height: 1.5;
        font-weight: 600;
    }
    .news-listing .row-label {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .news-listing .row-label:before {
        content: "▣";
        display: inline-grid;
        place-items: center;
        width: 20px;
        height: 20px;
        background: #8bc329;
        color: #d9f4af;
        border-radius: 50%;
        font-size: 15px;
        margin-right: 6px;
    }
    .news-listing .row time {
        margin: 0;
        font-size: inherit;
        font-weight: 600;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .news-listing .pagination {
        text-align: left;
        margin: 14px 0 0;
    }
    .news-listing .pagination span {
        font-size: 18px;
        padding: 9px 14px;
    }
}

/* Keep contact labels, required marks and controls in their own columns. */
.contact-top {
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
}
.contact-info,
.map-panel,
.contact-form,
.contact-form form {
    min-width: 0;
}
.contact-info p {
    overflow-wrap: anywhere;
}
.contact-form label {
    grid-template-columns: 210px minmax(0, 1fr);
}
.contact-form .field-label {
    display: block;
}
.contact-form input,
.contact-form textarea {
    min-width: 0;
    max-width: 100%;
}
.captcha-field {
    min-width: 0;
    flex-wrap: wrap;
}
.captcha-field input {
    flex: 1 1 100px;
}
.captcha-field img {
    flex: none;
    max-width: 100%;
    height: auto;
}
.map-panel iframe {
    display: block;
}
.form-actions {
    flex-wrap: wrap;
}
@media (max-width: 700px) {
    .contact-top {
        grid-template-columns: minmax(0, 1fr);
    }
    .contact-info {
        padding: 15px 0;
    }
    .contact-form label {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .contact-form .field-label {
        line-height: 1.5;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }
    .contact-form textarea {
        resize: vertical;
    }
    .form-actions {
        padding: 16px 0;
    }
    .form-actions button {
        padding: 10px 20px;
    }
}

.article-image {
    max-width: 100%;
    height: auto;
}
.article {
    overflow-wrap: anywhere;
}
.article table {
    max-width: 100%;
    border-collapse: collapse;
}
.article td,
.article th {
    border: 1px solid #ddd;
    padding: 6px;
}
.category-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 15px 0;
}
.category-nav a {
    padding: 8px;
    background: #f5f5f5;
}
.pagination a {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 7px 12px;
}
.contact-form .captcha-field img {
    width: 120px;
    height: 42px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0;
}
.social-links a {
    color: inherit;
}

.social-floating {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 30;
}
.social-floating a {
    display: block;
    background: #156487;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 8px #0002;
}
.social-floating a[href*="line.me"] {
    background: #168b3b;
}
.social-floating a[href*="youtube.com"] {
    background: #c32828;
}
@media (max-width: 767px) {
    .social-floating {
        right: 4px;
        gap: 5px;
    }
    .social-floating a {
        padding: 8px;
        font-size: 11px;
    }
}

/* Full viewport height: short pages fill the screen; long pages scroll normally. */
html {
    min-height: 100%;
}
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.site > .top,
.site > .footnav,
.site > .footer {
    flex: 0 0 auto;
}
.site > .content,
.site > .inner,
.site > .contact-page {
    flex: 1 0 auto;
    min-width: 0;
}

/* Frontend typography and social icons, 2026-10-07. */
.page-title,
.section-title,
.home-content .section-title,
.contact-info h1,
.contact-form h2 {
    font-size: 22px;
}
.article h2,
.article h3,
.article h4,
.row,
.simple-list a,
.rank-grid a,
.link-grid a,
.news a,
.columns li,
.home-content .news a,
.home-content .columns li {
    font-size: 18px;
}
.social-floating {
    margin: 0;
    gap: 10px;
    right: max(12px, calc((100vw - 1170px) / 2 + 12px));
}
.social-floating a {
    padding: 0;
    background: transparent !important;
    box-shadow: none;
    border-radius: 50%;
    line-height: 0;
}
.social-floating img {
    display: block;
    width: clamp(40px, 4vw, 52px);
    height: auto;
}
@media (max-width: 640px) {
    .social-floating {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        margin: 22px 0 0;
    }
    .social-floating img {
        width: 44px;
    }
    .news-listing .page-title {
        font-size: 22px;
    }
    .news-listing .row {
        font-size: 18px;
        gap: 10px;
    }
    .news-listing .row time {
        font-size: 14px;
    }
    .home-content .news time {
        font-size: 16px;
    }
}
.article table {
    border-collapse: collapse;
}
.article caption {
    font-weight: bold;
    padding: 6px;
}
.article th,
.article td {
    overflow-wrap: anywhere;
}
