:root {
    --bottle-gold: #B8933A;
    --bottle-gold-light: #D4AA55;
    --bottle-gold-dark: #7A5E1E;
    --bottle-red: #8B1A1A;
    --bottle-red-mid: #A52020;
    --bottle-cream: #F8F2E6;
    --bottle-ink: #1C1208;
    --bottle-ink-mid: #3A2E14;
    --bottle-base: #2A1A04;
    --bottle-border-gold: 1px solid #C9A84C;
}

body {
    background: radial-gradient(ellipse at 50% 0%, #3A1006 0%, #1C0B03 55%, #0D0501 100%);
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--bottle-ink);
    overflow-x: hidden;
}

#page.bottle-page {
    max-width: 1180px;
    margin: 48px auto 60px;
    padding: 0 16px;
    position: relative;
    display: block;
    isolation: isolate;
}

.bottle-page .site-header {
    background: var(--bottle-red);
    width: 70%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 46px 46px 0 0;
    border: 3px solid var(--bottle-gold);
    border-bottom: none;
    box-shadow: inset 0 8px 0 -4px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.bottle-page .header-banner {
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    align-items: center;
    gap: 22px;
    padding: 18px 28px 16px;
    background: linear-gradient(90deg, #6B1212 0%, #8B1A1A 40%, #9E2020 100%);
    border-bottom: 3px solid var(--bottle-gold);
    position: relative;
}

.bottle-page .header-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 18px,
            rgba(184, 147, 58, 0.06) 18px,
            rgba(184, 147, 58, 0.06) 20px);
    pointer-events: none;
}

.bottle-page .logo-area,
.bottle-page .exam-title-block {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1;
    color: inherit;
    text-decoration: none;
    width: 100%;
    min-width: 0;
}

.bottle-page .exam-title-block {
    justify-content: flex-start;
}

.bottle-page .company-logo,
.bottle-page .jar-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bottle-page .company-logo img,
.bottle-page .jar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bottle-page .site-title-block {
    display: block;
    min-width: 0;
}

.bottle-page .site-name {
    display: block;
    font-family: 'Noto Serif TC', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--bottle-gold-light);
    letter-spacing: 2px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.bottle-page .site-sub {
    display: block;
    font-size: 12px;
    color: rgba(212, 170, 85, 0.7);
    letter-spacing: 2px;
    margin-top: 2px;
}

.bottle-page .site-operator {
    display: block;
    margin-top: 5px;
    color: rgba(240, 217, 138, 0.82);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.bottle-page .exam-text {
    text-align: left;
    min-width: 0;
}

.bottle-page .exam-label {
    font-size: 11px;
    color: rgba(212, 170, 85, 0.7);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.bottle-page .exam-name {
    font-family: 'Noto Serif TC', serif;
    font-size: 16px;
    font-weight: 600;
    color: #F0D98A;
    letter-spacing: 1.5px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.bottle-page .jar-shoulder {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 46px;
}

.bottle-page .jar-shoulder--top path {
    fill: var(--bottle-red);
}

.bottle-page .jar-shoulder--bottom path {
    fill: var(--bottle-base);
}

.bottle-page .bottle-nav {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
    background-color: #5C1010;
    background-image: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.08) 0px, rgba(0, 0, 0, 0.08) 1px,
            transparent 1px, transparent 3px);
    display: block;
    border-top: 2px solid var(--bottle-gold-dark);
    border-bottom: 2px solid var(--bottle-gold-dark);
    box-shadow:
        inset 40px 0 40px -35px rgba(0, 0, 0, 0.5),
        inset -40px 0 40px -35px rgba(0, 0, 0, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.35);
}

.bottle-page .bottle-nav.nav-open {
    z-index: 2100;
}

#page.bottle-page > .bottle-nav {
    position: sticky;
    z-index: 99990 !important;
}

#page.bottle-page > .bottle-nav.nav-open {
    z-index: 99999 !important;
}

#page.bottle-page > .jar-shoulder,
#page.bottle-page > .bottle-main,
#page.bottle-page > .bottle-footer {
    z-index: 1 !important;
}

.bottle-page .nav-inner {
    width: 100%;
    display: flex;
    position: relative;
}

.bottle-page .nav-links {
    display: flex;
    width: 100%;
}

.bottle-page .nav-dropdown {
    position: relative;
    display: flex;
}

.bottle-page .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 230px;
    background: #5C1010;
    border: 1px solid rgba(184, 147, 58, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.bottle-page .nav-dropdown:hover .nav-dropdown-menu,
.bottle-page .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.bottle-page .nav-dropdown-menu a {
    width: 100%;
    white-space: nowrap;
    border-right: 0;
    border-bottom: 1px solid rgba(184, 147, 58, 0.2);
}

.bottle-page .nav-dropdown__chevron {
    font-size: 11px;
}

.bottle-page .nav-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans TC', sans-serif;
    color: rgba(240, 217, 138, 0.9);
    font-size: 14px;
    letter-spacing: 1px;
    padding: 13px 22px;
}

.bottle-page .nav-toggle-chevron {
    transition: transform 0.2s;
}

.bottle-page .bottle-nav.nav-open .nav-toggle-chevron {
    transform: rotate(180deg);
}

.bottle-page .bottle-nav a {
    color: rgba(240, 217, 138, 0.85);
    text-decoration: none;
    padding: 12px 22px;
    font-size: 14px;
    letter-spacing: 1px;
    border-right: 0.5px solid rgba(184, 147, 58, 0.25);
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottle-page .bottle-nav a:hover,
.bottle-page .bottle-nav a.active {
    background: rgba(184, 147, 58, 0.18);
    color: #F0D98A;
}

.bottle-page .bottle-nav a.active {
    font-weight: 500;
}

.bottle-page .bottle-nav .login-link {
    margin-left: auto;
    border-left: 0.5px solid rgba(184, 147, 58, 0.25);
    border-right: none;
}

.bottle-page .bottle-main {
    position: relative;
    z-index: 1;
    background-color: var(--bottle-cream);
    background-image: radial-gradient(circle, rgba(184, 147, 58, 0.06) 1px, transparent 1.5px);
    background-size: 14px 14px;
    width: 100%;
    padding: 36px 40px;
    min-height: 360px;
    box-shadow: 0 10px 26px rgba(58, 28, 10, 0.18);
}

.bottle-page .front-marquee-preview {
    width: 100%;
    margin: -10px 0 8px;
    padding: 7px 14px;
    color: #5f4600;
    background: #fff3cd;
    border: 1px solid #d9b94c;
    font-size: 14px;
    font-weight: 700;
}

.bottle-page .front-marquee-preview--empty {
    margin-bottom: 24px;
    background: #f7f7f7;
    border-color: #b8b8b8;
    color: #3f3f3f;
}

.bottle-page .front-marquee-preview + .front-marquee {
    margin-top: 0;
}

.bottle-page .front-marquee {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 50px;
    margin: -10px 0 28px;
    overflow: hidden;
    color: var(--bottle-ink-mid);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(122, 94, 30, 0.34);
    border-left: 4px solid var(--bottle-red);
    box-shadow: 0 3px 10px rgba(58, 28, 10, 0.1);
}

.bottle-page .front-marquee__mark,
.bottle-page .front-marquee__toggle {
    flex: 0 0 46px;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottle-page .front-marquee__mark {
    color: #fff;
    background: var(--bottle-red);
    font-size: 18px;
}

.bottle-page .front-marquee__viewport {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.bottle-page .front-marquee__items {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bottle-page .front-marquee__item {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: none;
    align-items: center;
    color: inherit;
}

.bottle-page .front-marquee__item.is-current {
    display: flex;
}

.bottle-page .front-marquee--rl .front-marquee__item,
.bottle-page .front-marquee--lr .front-marquee__item {
    width: max-content;
    max-width: none;
    white-space: nowrap;
}

.bottle-page .front-marquee--bt .front-marquee__item,
.bottle-page .front-marquee--tb .front-marquee__item {
    width: 100%;
    padding: 5px 14px;
    justify-content: center;
    text-align: center;
}

.bottle-page .front-marquee__message {
    color: var(--bottle-ink-mid);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bottle-page a.front-marquee__message:hover,
.bottle-page a.front-marquee__message:focus-visible {
    color: var(--bottle-red);
    text-decoration: underline;
}

.bottle-page .front-marquee__toggle {
    border: 0;
    border-left: 1px solid rgba(122, 94, 30, 0.2);
    border-radius: 0;
    background: transparent;
    color: var(--bottle-red);
    font-size: 20px;
    cursor: pointer;
}

.bottle-page .front-marquee__toggle:hover,
.bottle-page .front-marquee__toggle:focus-visible {
    background: rgba(184, 147, 58, 0.12);
    outline: 2px solid var(--bottle-gold-dark);
    outline-offset: -3px;
}

.bottle-page .front-marquee.is-reduced-motion {
    height: auto;
    max-height: 132px;
}

.bottle-page .front-marquee.is-reduced-motion .front-marquee__viewport {
    height: auto;
    max-height: 130px;
    overflow-y: auto;
}

.bottle-page .front-marquee.is-reduced-motion .front-marquee__items {
    height: auto;
}

.bottle-page .front-marquee.is-reduced-motion .front-marquee__item {
    position: static;
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    white-space: normal;
    transform: none !important;
}

.bottle-page .front-marquee.is-reduced-motion .front-marquee__item + .front-marquee__item {
    border-top: 1px solid rgba(122, 94, 30, 0.16);
}

.bottle-page .bottle-content {
    width: 100%;
}

.bottle-page .news-preview-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 11px 14px;
    color: #5a4100;
    background: #fff3cd;
    border: 1px solid #d9b954;
    border-left: 4px solid #a07800;
    font-size: 14px;
    line-height: 1.5;
}

.bottle-page .news-preview-notice > i {
    flex: 0 0 auto;
    font-size: 18px;
}

.bottle-page .news-preview-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    color: #fff;
    background: #7a5e1e;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}

.bottle-page .news-list {
    margin-top: 12px;
    border-top: 2px solid var(--bottle-gold);
    border-bottom: 1px solid rgba(122, 94, 30, 0.28);
    background: rgba(255, 255, 255, 0.72);
}

.bottle-page .news-list__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
}

.bottle-page .news-list__table th {
    padding: 14px 18px;
    background: rgba(184, 147, 58, 0.11);
    color: var(--bottle-ink-mid);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.bottle-page .news-list__table td {
    padding: 18px;
    border-top: 1px solid rgba(122, 94, 30, 0.18);
    vertical-align: middle;
}

.bottle-page .news-list__number {
    width: 76px;
    text-align: center !important;
    color: var(--bottle-gold-dark);
    font-weight: 700;
}

.bottle-page .news-list__date {
    width: 190px;
    color: #655b4b;
    font-size: 14px;
    white-space: nowrap;
}

.bottle-page .news-list__title a {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    max-width: 100%;
    color: #125a80;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bottle-page .news-list__title a:hover,
.bottle-page .news-list__title a:focus-visible {
    color: var(--bottle-red);
    text-decoration: underline;
}

.bottle-page .news-list__title i {
    flex: none;
    color: var(--bottle-gold-dark);
}

.bottle-page .news-list__table tbody tr:hover {
    background: rgba(184, 147, 58, 0.06);
}

.bottle-page .news-list__empty {
    text-align: center;
    color: #655b4b;
}

.bottle-page .news-detail {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bottle-page .news-detail iframe {
    display: block;
    width: min(100%, 560px);
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

.bottle-page .news-detail img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 639px) {
    .bottle-page .news-list__table thead,
    .bottle-page .news-list__number {
        display: none;
    }

    .bottle-page .news-list__table tr {
        display: block;
        padding: 14px 16px;
        border-top: 1px solid rgba(122, 94, 30, 0.18);
    }

    .bottle-page .news-list__table tbody tr:first-child {
        border-top: 0;
    }

    .bottle-page .news-list__table td {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
    }

    .bottle-page .news-list__date {
        margin-top: 6px;
        font-size: 13px;
    }

    .bottle-page .news-list__empty {
        text-align: center;
    }

    .bottle-page .news-preview-notice {
        align-items: flex-start;
        margin-bottom: 14px;
        font-size: 13px;
    }
}

.bottle-page .content-divider-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 820px);
    margin: 22px auto 0;
    color: rgba(184, 147, 58, 0.78);
    font-family: 'Noto Serif TC', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.5;
    text-align: center;
}

.bottle-page .content-divider-line {
    flex: 1 1 180px;
    max-width: 320px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 147, 58, 0.42));
}

.bottle-page .content-divider-line:last-child {
    background: linear-gradient(90deg, rgba(184, 147, 58, 0.42), transparent);
}

.bottle-page .content-divider-text {
    flex: 0 1 auto;
    min-width: 0;
}

.bottle-page .bottle-footer {
    position: relative;
    z-index: 1;
    background-color: var(--bottle-base);
    background-image: radial-gradient(circle, rgba(201, 168, 76, 0.07) 1px, transparent 1.5px);
    background-size: 14px 14px;
    width: 78%;
    margin: 0 auto;
    border: 3px solid var(--bottle-gold-dark);
    border-top: none;
    border-radius: 0 0 46px 46px;
    padding: 26px 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    box-shadow: inset 0 -8px 0 -4px rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.45);
}

.bottle-page .footer-logo-mark {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bottle-page .footer-logo-mark img {
    width: 135%;
    height: 100%;
    object-fit: contain;
}

.bottle-page .footer-info h5 {
    font-family: 'Noto Serif TC', serif;
    font-size: 20px;
    color: var(--bottle-gold-light);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.bottle-page .footer-info p {
    font-size: 18px;
    color: rgba(212, 170, 85, 0.65);
    line-height: 1.9;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.bottle-page .footer-info strong {
    color: rgba(212, 170, 85, 0.85);
    font-weight: 500;
}

.bottle-page .footer-links {
    text-align: right;
}

.bottle-page .footer-contact-icon {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 0 10px auto;
}

.bottle-page .footer-links a,
.bottle-page .footer-links small {
    display: block;
    color: rgba(212, 170, 85, 0.65);
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.bottle-page .footer-links a:hover {
    color: var(--bottle-gold-light);
}

.bottle-page .footer-links small {
    color: rgba(212, 170, 85, 0.35);
    font-size: 16px;
    margin-top: 12px;
}

.bottle-page .footer-center-icon {
    text-align: center;
    font-family: 'Noto Serif TC', serif;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--bottle-gold-light);
}

@media (max-width: 768px) {
    #page.bottle-page {
        margin: 28px auto 44px;
        padding: 0 10px;
    }

    .bottle-page .site-header {
        width: 76%;
    }

    .bottle-page .header-banner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 22px 16px;
    }

    .bottle-page .site-name {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .bottle-page .site-sub {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .bottle-page .exam-label {
        font-size: 10px;
    }

    .bottle-page .exam-name {
        font-size: 14px;
    }

    .bottle-page .nav-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .bottle-page .nav-toggle {
        display: flex;
    }

    .bottle-page .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #5C1010;
        border-top: 2px solid var(--bottle-gold-dark);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
        z-index: 100000;
    }

    .bottle-page .nav-dropdown {
        display: block;
    }

    .bottle-page .nav-dropdown-menu {
        position: static;
        display: block;
        min-width: 0;
        border: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.14);
    }

    .bottle-page .nav-dropdown-menu a {
        padding-left: 38px;
        font-size: 13px;
    }

    .bottle-page .bottle-nav.nav-open .nav-links {
        display: flex;
    }

    .bottle-page .bottle-nav a {
        padding: 14px 22px;
        font-size: 14px;
        width: 100%;
        border-right: none;
        border-bottom: 0.5px solid rgba(184, 147, 58, 0.25);
    }

    .bottle-page .bottle-nav a:last-child {
        border-bottom: none;
    }

    .bottle-page .bottle-nav .login-link {
        margin-left: 0;
        border-left: none;
    }

    .bottle-page .bottle-main {
        padding: 28px 20px;
    }

    .bottle-page .front-marquee {
        height: 54px;
        margin: -8px 0 24px;
    }

    .bottle-page .front-marquee__mark,
    .bottle-page .front-marquee__toggle {
        flex-basis: 42px;
        width: 42px;
    }

    .bottle-page .front-marquee__message {
        font-size: 14px;
    }

    .bottle-page .content-divider-links {
        gap: 10px;
        margin-top: 20px;
        font-size: 11px;
    }

    .bottle-page .content-divider-line {
        flex-basis: 72px;
    }

    .bottle-page .bottle-footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 22px;
        gap: 16px;
    }

    .bottle-page .footer-logo-mark {
        margin: 0 auto;
    }

    .bottle-page .footer-links {
        text-align: center;
    }

    .bottle-page .footer-contact-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .bottle-page .footer-links a {
        display: inline-block;
        margin: 0 10px 8px;
    }
}

@media (max-width: 480px) {
    .bottle-page .site-header {
        width: 84%;
    }

    .bottle-page .header-banner {
        padding: 16px 18px 14px;
    }

    .bottle-page .logo-area {
        gap: 10px;
    }

    .bottle-page .company-logo,
    .bottle-page .company-logo svg,
    .bottle-page .company-logo img,
    .bottle-page .jar-icon,
    .bottle-page .jar-icon svg,
    .bottle-page .jar-icon img {
        width: 42px;
        height: 42px;
    }

    .bottle-page .site-name {
        font-size: 14.5px;
        letter-spacing: 0.5px;
    }

    .bottle-page .site-sub {
        font-size: 9px;
    }

    .bottle-page .site-operator {
        margin-top: 3px;
        font-size: 13px;
        line-height: 1.35;
    }

    .bottle-page .exam-name {
        font-size: 13px;
    }

    .bottle-page .nav-toggle {
        padding: 12px 18px;
        font-size: 13px;
    }

    .bottle-page .bottle-nav a {
        padding: 13px 18px;
        font-size: 13px;
    }

    .bottle-page .bottle-main {
        padding: 22px 14px;
    }

    .bottle-page .front-marquee {
        margin-top: -4px;
        margin-bottom: 20px;
    }

    .bottle-page .front-marquee__mark,
    .bottle-page .front-marquee__toggle {
        flex-basis: 38px;
        width: 38px;
    }

    .bottle-page .front-marquee__message {
        font-size: 13px;
    }

    .bottle-page .content-divider-links {
        letter-spacing: 1px;
    }

    .bottle-page .content-divider-line {
        flex-basis: 28px;
    }

    .bottle-page .bottle-footer {
        padding: 20px 16px;
    }

    .bottle-page .footer-info h5 {
        font-size: 19px;
    }

    .bottle-page .footer-info p,
    .bottle-page .footer-links a {
        font-size: 17px;
    }

    .bottle-page .footer-links small {
        font-size: 15px;
    }
}
