.b-t {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== 弹框基础样式 ========== */
.popup {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
}

.popup .navbar {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color);
}

.popup .navbar .title {
    color: var(--text-primary);
    font-weight: 600;
}

.popup .navbar a.link {
    color: var(--accent-primary) !important;
}

.popup-close {
    color: var(--text-primary) !important;
}

/* ========== 通用弹框容器 ========== */
.duoyuyan,
.home-tips-box,
.signin-container {
    background: var(--bg-card) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 1px solid var(--border-color);
}

/* ========== 弹框标题 ========== */
.duo-title,
.home-tips-title,
.signin-title {
    color: var(--text-primary) !important;
    font-size: 1.5rem !important;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.duo-title::after,
.home-tips-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 3px;
}

/* ========== 弹框内容 ========== */
.home-tips-content,
.signin-subtitle {
    color: var(--text-secondary) !important;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========== 列表项样式 ========== */
.lg-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
    max-height: 50vh;
    overflow-y: auto;
    padding: 5px;
}

/* 滚动条样式 */
.lg-list::-webkit-scrollbar {
    width: 6px;
}

.lg-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.lg-list::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.lg-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.lg-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

/* 悬停效果 */
.lg-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.3);
    border-color: var(--accent-primary);
}

/* 激活状态 */
.lg-item.active-lg {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15), rgba(3, 218, 198, 0.1));
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.2);
}

.lg-item.active-lg::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* 国家图标样式 */
.lg-item .country-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.lg-item:hover .country-icon {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.lg-item.active-lg .country-icon {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.4);
}

.lg-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.lg-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--bg-elevated);
    padding: 4px 12px;
    border-radius: 12px;
    margin: 0;
}

.lg-item.active-lg .lg-desc {
    background: rgba(124, 77, 255, 0.2);
    color: var(--accent-primary);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .lg-list {
        gap: 12px;
    }
    
    .lg-item {
        padding: 15px 12px;
    }
    
    .lg-item .country-icon {
        width: 40px;
        height: 40px;
    }
    
    .lg-name {
        font-size: 0.95rem;
    }
    
    .lg-desc {
        font-size: 0.85rem;
        padding: 3px 10px;
    }
}

/* ========== 按钮区域 ========== */
.action-btns,
.signin-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
    padding: 0 20px 20px;
}

/* 确保所有弹框使用统一的 action-btns 样式 */
.popup-home-tips .action-btns,
.popup-home-message .action-btns,
.popup-home-topic .action-btns,
.popup-logout-tips .action-btns,
.popup-languages .action-btns,
.popup-switching-national-units .action-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
    padding: 0 20px 20px;
}

/* 单独设置只有一个按钮的弹框样式 */
.popup-home-topic .action-btns {
    justify-content: center;
}

.can,
.yes,
.signin-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.can {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.can:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.2);
}

.can:active {
    transform: translateY(0);
}

.yes {
    background: var(--accent-primary);
    color: white;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.3);
}

.yes:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    box-shadow: 0 8px 20px rgba(3, 218, 198, 0.4);
    transform: translateY(-2px);
}

.yes:active {
    transform: translateY(0);
}

/* 按钮闪光效果 */
.yes::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(30deg);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

/* Orange 主题适配 */
.orange .yes {
    background: linear-gradient(90deg, #ff5801, #fe8400);
    border-color: #ff5801;
}

.orange .yes:hover {
    background: linear-gradient(90deg, #fe8400, #ff5801);
    box-shadow: 0 8px 20px rgba(255, 88, 1, 0.4);
}

.orange .can:hover {
    border-color: #ff5801;
    box-shadow: 0 5px 15px rgba(255, 88, 1, 0.2);
}

/* ========== 响应式调整 ========== */
@media (max-width: 480px) {
    .duo-title,
    .home-tips-title {
        font-size: 1.3rem !important;
    }

    .action-btns {
        padding: 0 15px 15px;
        gap: 12px;
    }

    .can,
    .yes,
    .signin-btn {
        padding: 10px 15px;
        font-size: 1rem;
    }
}

/* ========== 特殊弹框样式 ========== */
.popup-home-topic .home-tips-box {
    max-width: 95%;
}

.popup-home-topic .home-tips-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-align: left;
}

.home-tips-checkbox {
    margin: 15px 0;
}

.home-tips-checkbox .item-checkbox {
    padding: 10px 0;
}

.home-tips-checkbox .item-title {
    color: var(--text-secondary);
}

/* ========== 滚动条样式 ========== */
.popup-home-topic .home-tips-content::-webkit-scrollbar {
    width: 5px;
}

.popup-home-topic .home-tips-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

.icon-wangzhanshezhi {
    font-size: 1.5rem;
    color: #fff706;
}