@import "../../shared/css/variables-pc.css";
@import "login.css";
@import "main.css";
@import "alert.css";
@import "invite-content.css";
@import "checkout_package.css";
@import "checkout_first_top_up.css";
@import "checkout_top_up.css";
@import "calculator.css";
@import "floating-contact.css";

@import "footer.css";


body {
    min-width: 1280px;
    min-height: 100.1vh;
    background-color: #180D05;

    padding: 0;
    margin: 0;
    font-family: var(--font-family-primary);
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color: var(--color-text-primary);
    position: relative;
}

a {
    text-decoration: none;
}

/* ========== 导航栏容器 ========== */
.bg {
    background: #180D05;
}

.header {
    width: 100%;
}

.navigator-wrapper {
    /* 可保留，用于扩展 */
}

/* ========== 导航栏主容器 ========== */
.navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 13% 0.5rem;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
    z-index: 999;
}

/* ========== Logo 区域 ========== */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo img {
    display: block;
    width: 1.688rem;
    height: 1.688rem;
}

.navigator .title {
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
}

/* ========== 菜单区域 ========== */
.navigator .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 0.5rem;
}

/* ========== 通用菜单项 ========== */
.menu-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
    cursor: pointer;
    padding: 0.25rem 0;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.menu-item:hover {
    color: #FFC86E;
}

/* ========== 组织下拉选择器 ========== */
.dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 160px;
}

.dropdown-wrapper:hover {
    background: rgba(255, 255, 255, 0.05);
}

.org-name-wrapper {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-name-wrapper .menu-item {
    margin: 0;
    padding: 0;
}

.org-name-wrapper .menu-item.org-name {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========== 下拉按钮 ========== */
.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.dropdown-label {
    display: none; /* 原设计中有但未使用，隐藏 */
}

.dropdown-btn-icon {
    width: 0.75rem;
    height: auto;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* ========== 下拉选项面板 ========== */
.option {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 180px;
    background: #FFFFFF;
    border-radius: 0.75rem;
    padding: 0.375rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-option {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: #1A1A1A;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid #F0F0F0;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #FFF8ED;
    color: #EE4906;
}

.dropdown-option:active {
    background: #FFEBE3;
}

/* ========== 用户信息区域 ========== */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s ease;
}

.user-menu-item:hover .profile-avatar {
    border-color: rgba(255, 200, 110, 0.4);
}

/* ========== 退出登录 ========== */
.logout-wrapper {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.logout-wrapper:hover {
    background: rgba(255, 70, 70, 0.1);
}

.logout-wrapper .logout {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.logout-wrapper .logout:hover {
    color: #FF6B6B;
}

/* ========== 余额显示 ========== */
.navigator-balance-display {
    color: #FFC86E;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 200, 110, 0.08);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 200, 110, 0.12);
}

.navigator-balance-display:hover {
    background: rgba(255, 200, 110, 0.15);
}

/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
    .navigator {
        padding-left: 5%;
        padding-right: 5%;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .navigator .menu {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.25rem;
    }

    .dropdown-wrapper {
        min-width: 120px;
    }

    .org-name-wrapper {
        max-width: 120px;
    }
}

@media (max-width: 640px) {
    .navigator {
        padding-left: 1rem;
        padding-right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .logo {
        justify-content: center;
    }

    .navigator .menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .dropdown-wrapper {
        min-width: 100px;
    }

    .org-name-wrapper {
        max-width: 80px;
    }

    .menu-item {
        font-size: 0.75rem;
        margin: 0 0.25rem;
    }

    .option {
        left: 50%;
        transform: translateX(-50%);
        min-width: 160px;
    }

    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    min-width: 165px;
    margin-right: 1.8125rem;
    cursor: unset;
}

.user-avatar-container {
    border-radius: 50%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-left: 1.875rem;
    margin-right: 0.8125rem;
    width: 1.875rem;
    height: 1.875rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
}

.last-section {
    padding-top: var(--font-size-4xl);
    line-height: 2.375rem;
    display: flex;
    flex-flow: column;
    align-items: center;
    color: var(--color-text-inverse);
    text-align: center;
    font-weight: var(--font-weight-normal);
}

.last-section p, .last-section .block p {
    text-align: center;
    line-height: var(--line-height-normal);
}

.last-section a {
    color: var(--color-text-inverse);
    margin-bottom: var(--spacing-5);
}

.last-section .title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-6);
}

.last-section .sub-title {
    font-size: var(--font-size-md);
    margin: 0 0 var(--spacing-14) 0;
}

.last-section .download {
    background: var(--color-bg-primary);
    box-shadow: 0 2px 4px 0 rgba(77, 67, 46, 0.31);
    margin: 0 auto var(--spacing-32);
    width: 10%;
    min-width: 216px;
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.last-section .download a {
    color: #434343;
    letter-spacing: 0;
    font-weight: var(--font-weight-medium);
    margin: 0;
    padding: var(--spacing-2_5) var(--spacing-16);
    font-size: var(--font-size-lg);
}

.product-info-container .img-container {
    background-image: url(../images/common/logo2.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 4.5rem;
    height: 4.5rem;
}

.wechatImg-container {
    background-repeat: no-repeat;
    background-image: url(../images/common/qiuli.jpg);
    background-size: 100% 100%;
    width: 7.5rem;
    height: 7.5rem;
}

.zhihuImg-container {
    background-repeat: no-repeat;
    background-image: url(../images/common/zhihu2.webp), url(../images/common/zhihu2.png);
    background-size: 100% 100%;
    width: 7.5rem;
    height: 7.5rem;
}

.product-info-wrapper {
    border-bottom: var(--border-width-thin) solid var(--color-text-inverse);
}

.product-info-wrapper {
    display: flex;
    gap: var(--spacing-52);
    padding-right: 0;
    padding-left: 0;
    padding-top: 0;
    width: -webkit-max-content;
    width: max-content;
    width: -moz-max-content;
}


.contact-info-block {
    text-align: left;
    justify-self: end;
    margin: 0 auto var(--spacing-14) 0;
}

.contact-block-wrapper {
    display: flex;
    gap: var(--spacing-52);
}

.contact-title {
    text-align: justify;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-3xl);
    margin-top: 0;
    margin-bottom: 0;
}

.product-info-container {
    display: flex;
    align-items: flex-start;
}

.product-info-container .details-title {
    text-align: justify;
    font-weight: var(--font-weight-medium);
    margin-top: 0;
    margin-bottom: 0;
    font-size: var(--font-size-4xl);
}

.product-info-container .website {
    text-align: justify;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-md);
    letter-spacing: 3px;
    margin: 0;
}

.contact-mobile {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
}

.mobile-phone, .contact-content {
    text-align: justify;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-md);
    letter-spacing: 0;
    margin: 0;
}

.mobile-phone {
    margin-top: var(--spacing-3);
    margin-bottom: var(--spacing-2);
}

.scan-wrapper {
    display: flex;
    margin-left: var(--spacing-12);
}

.wechat, .zhihu {
    display: flex;
    flex-flow: column;
    width: 7.5rem;
}

.zhihu {
    margin-left: var(--spacing-6);
}

.wechat span, .zhihu span {
    text-align: center;
    margin-top: var(--spacing-5);
    font-size: var(--font-size-md);
}

.product-details {
    margin-left: var(--spacing-2);
}

div#recharge-login {
    position: relative;
    z-index: 20;
}

.checkout-main {
    position: relative;
}

.back-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 9999;
    width: 1.54rem;
    height: 1.54rem;
    cursor: pointer;
}

.back-btn img {
    width: 100%;
}