/* 公告弹窗 — Zeplin Rectangle 134 / pc/51yc/splash-ad/desktop */
#announcement-popup {
    --ann-pink: #f7327b;
    --ann-black: #000000;
    --ann-grey: #8e8e8e;
    --ann-divider: #333333;
    --ann-close: #979797;
    --ann-white: #ffffff;
    --ann-text-dark: #111111;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    font-family: "PingFang SC", "PingFangSC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

#announcement-popup .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

/* Rectangle 134: 600×631, #000, radius 15px, padding 30px */
#announcement-popup .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
    background: var(--ann-black);
    /* border: 1px solid var(--ann-divider); */
    border-radius: 15px;
    padding: 30px;
    color: var(--ann-white);
    box-shadow: none;
}

#announcement-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

#announcement-popup .popup-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 25px;
    color: var(--ann-white);
}

#announcement-popup .close-btn {
    background: none;
    border: none;
    color: var(--ann-close);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

#announcement-popup .close-btn:hover {
    color: var(--ann-white);
}

/* Line 6 / Line 7 */
#announcement-popup .popup-divider {
    width: 100%;
    height: 1px;
    background: var(--ann-divider);
    margin: 29px 0 30px;
}

#announcement-popup .popup-divider--footer {
    margin: 30px 0;
}

/* 主体内容区 */
#announcement-popup .popup-body {
    display: flex;
    flex-direction: column;
}

/* 第一行：邮箱（左）+ 保存按钮（右） */
#announcement-popup .popup-email-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

#announcement-popup .popup-email-row .email-section {
    flex: 1;
    min-width: 0;
}

#announcement-popup .save-address-btn {
    flex-shrink: 0;
    width: 146px;
    height: 40px;
    box-sizing: border-box;
    background: var(--ann-pink);
    color: var(--ann-white);
    border: none;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: opacity 0.2s;
}

#announcement-popup .save-address-btn:hover {
    opacity: 0.9;
}

#announcement-popup .email-section {
    background: none;
    padding: 0;
    margin: 0;
}

#announcement-popup .email-content {
    display: flex;
    flex-direction: column;
}

#announcement-popup .email-primary {
    color: var(--ann-pink);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

#announcement-popup .email-note {
    color: var(--ann-grey);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

/* 地址列表：邮箱下方全宽 */
#announcement-popup .address-section {
    margin-top: 20px;
}

#announcement-popup .address-item {
    display: block;
    font-size: 16px;
    line-height: 24px;
    color: #8e8e8e;
}

#announcement-popup .address-label {
    /* color: var(--ann-white); */
}

#announcement-popup .address-link {
    /* color: var(--ann-white); */
    color: #8e8e8e;
    text-decoration: none;
    word-break: break-all;
    font-size: 16px;
}

#announcement-popup .address-link--accent {
    color: var(--ann-pink);
}

#announcement-popup .address-link:hover {
    text-decoration: underline;
}

#announcement-popup .warning-text {
    color: var(--ann-pink);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin: 20px 0 ;
    text-align: left;
}
#announcement-popup .warning-text .gray{
    color: #8e8e8e;
}

/* Rectangle 136–138: 独立粉边链接框 */
#announcement-popup .highlight-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

#announcement-popup .highlight-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: var(--ann-black);
    border: 1px solid var(--ann-pink);
    border-radius: 10px;
    color: var(--ann-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    transition: background 0.2s;
}

#announcement-popup .highlight-link:hover {
    background: rgba(247, 50, 123, 0.08);
    text-decoration: none;
}

/* 底部按钮组 */
#announcement-popup .button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

#announcement-popup .action-btn {
    flex: 0 0 126px;
    width: 126px;
    height: 40px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    transition: opacity 0.2s;
}

#announcement-popup .action-btn:hover {
    opacity: 0.9;
}

#announcement-popup .btn-community,
#announcement-popup .btn-vpn {
    background: var(--ann-white);
    color: var(--ann-text-dark);
}

#announcement-popup .btn-close {
    background: var(--ann-pink);
    color: var(--ann-white);
}

#announcement-popup .color-fff {
    color: var(--ann-white);
}

/* h5/51yc/splash-ad-2/mobile — Zeplin 矩形 305×421 */
@media (max-width: 768px) {
    #announcement-popup .popup-content {
        width: calc(100% - 70px);
        max-width: 305px;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    #announcement-popup .popup-title {
        font-size: 14px;
        line-height: 20px;
    }

    #announcement-popup .popup-divider {
        margin: 19px 0 20px;
    }

    #announcement-popup .popup-divider--footer {
        margin: 19px 0 11px;
    }

    /* 邮箱左 + 保存按钮右（91×26） */
    #announcement-popup .popup-email-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    #announcement-popup .save-address-btn {
        width: 91px;
        height: 26px;
        padding: 0 7px;
        border-radius: 3px;
        font-size: 11px;
        line-height: 15px;
        margin-top: 1px;
    }

    #announcement-popup .email-primary,
    #announcement-popup .email-note {
        font-size: 12px;
        line-height: 14px;
    }

    #announcement-popup .address-section {
        margin-top: 20px;
    }

    #announcement-popup .address-item {
        font-size: 12px;
        line-height: 14px;
    }

    #announcement-popup .address-link {
        font-size: 12px;
    }

    #announcement-popup .warning-text {
        font-size: 12px;
        line-height: 14px;
        margin: 20px 0;
    }

    /* Rectangle 136–138: 264×32, gap 6px */
    #announcement-popup .highlight-links {
        gap: 6px;
        margin-top: 6px;
    }

    #announcement-popup .highlight-link {
        height: 32px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 12px;
        line-height: 17px;
    }

    /* 底部三按钮 83.58×30 */
    #announcement-popup .button-group {
        flex-wrap: nowrap;
        gap: 7px;
    }

    #announcement-popup .action-btn {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
        height: 30px;
        padding: 0 4px;
        border-radius: 6px;
        font-size: 10.5px;
        line-height: 15px;
    }

    #announcement-popup .btn-close {
        flex: 1 1 0;
    }
}

@media (max-width: 768px) {
    #site-header.site-header .header-wrap.row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        row-gap: 0 !important;
        min-height: 0 !important;
    }
    #site-header.site-header .header-wrap > .col-auto.col-md-5 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    #site-header.site-header .header-wrap > .col-auto.col-md-5 .navbar {
        display: none !important;
    }
    #site-header.site-header .header-wrap > .header-right {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: flex-end !important;
    }
}
