/* 全站補充樣式：導覽列、互動元件與彈窗 */

:root {
    --gold: #d9b16f;
    --gold-strong: #f3cf88;
}

button,
input {
    font: inherit;
}

.top-nav {
    border-bottom: 1px solid rgba(149, 183, 214, 0.13);
    background: rgba(6, 16, 31, 0.7);
}

.top-nav-inner {
    max-width: 1388px;
    margin: 0 auto;
    padding: 15px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    color: #e7edf9;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-decoration: none;
}

.top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.top-links a {
    color: #a8b8cd;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-links a:hover,
.top-links a:focus-visible {
    color: #68e3d3;
}

.point-link,
.point-button {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.point-button {
    appearance: none;
    -webkit-appearance: none;
}

.point-link:hover,
.point-button:hover {
    border-color: rgba(108, 222, 221, 0.62);
    background: rgba(27, 56, 78, 0.88);
    transform: translateY(-2px);
}

.point-link:focus-visible,
.point-button:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

.point-text {
    flex: 1;
}

.point-chevron {
    color: #d3e5f8;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.eyebrow {
    letter-spacing: 0.09em;
}

/* 股票詳情彈窗 */
.modal-overlay {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 7, 19, 0.78);
    backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
    display: none;
}

.modal-card {
    position: relative;
    width: min(100%, 590px);
    padding: 38px 38px 34px;
    background: linear-gradient(155deg, #0b253c, #081a2c);
    border: 1px solid rgba(85, 217, 222, 0.55);
    border-radius: 24px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.4),
        0 0 38px rgba(14, 189, 190, 0.09);
}

.modal-card::before {
    position: absolute;
    top: 0;
    left: 38px;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #74e5dc, transparent);
    content: "";
}

.modal-label {
    margin: 0 0 8px;
    color: #8ee8df;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.modal-card h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(25px, 5vw, 35px);
}

.modal-text {
    color: #d5e4ef;
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.modal-hint {
    margin: 18px 0 22px;
    color: #9aabc3;
    font-size: 13px;
}

.modal-x {
    position: absolute;
    top: 12px;
    right: 20px;
    border: 0;
    background: transparent;
    color: #cde4f2;
    font-size: 28px;
    cursor: pointer;
}

.modal-confirm {
    min-width: 160px;
    padding: 13px 36px;
    border: 0;
    border-radius: 999px;
    background: #13d68e;
    color: #03251a;
    font-weight: 900;
    cursor: pointer;
}

.modal-confirm:focus-visible,
.modal-x:focus-visible {
    outline: 3px solid #8efae5;
}

.link-note {
    color: #a9bacf;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 580px) {
    .top-nav-inner {
        padding: 14px 16px;
    }

    .top-links {
        gap: 13px;
    }

    .top-links a {
        font-size: 12px;
    }

    .brand {
        font-size: 12px;
    }

    .point {
        gap: 14px;
    }

    .modal-card {
        padding: 36px 22px 26px;
    }

    .modal-text {
        font-size: 15px;
    }
}
