/**
 * ====================================
 * 公共样式文件 (Common Styles)
 * ====================================
 *
 * 本文件包含网站通用的 CSS 样式，包括：
 * - CSS 变量和重置样式
 * - 通用工具类（容器、按钮、卡片、徽章等）
 * - 导航栏样式（桌面端和移动端）
 * - 页面容器和动画
 * - 弹窗样式（主弹窗和二级弹窗）
 * - 页脚样式
 * - Toast 提示样式
 *
 * 注意：
 * - 响应式样式请参考 responsive.css
 * - 页面专属样式（首页、套餐页、账户页、博客页）不包含在此文件中
 * ====================================
 */

/* --- 核心变量与重置 --- */
:root {
    /* 浅紫色调配色方案 - 优化版 */
    --primary: #8b5cf6;       /* 主色：蓝紫色 */
    --primary-dark: #7c3aed;  /* 深主色 */
    --bg-body: #f8f7ff;       /* 背景色：极浅紫白，更干净 */
    --bg-card: #ffffff;       /* 卡片背景 */

    --text-main: #1e1b4b;     /* 主文字：深蓝黑，对比度更高 */
    --text-sub: #64748b;      /* 副文字：蓝灰 */

    /* 核心跳色（粉色系） - 全局应用 */
    --pop-pink: #ec4899;      /* 亮粉色 */
    --pop-pink-hover: #db2777; /* 深粉色 */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); /* 紫粉渐变 */

    /* 高级投影与边框 */
    --border-light: 1px solid #f1f5f9;
    --border-hover: 1px solid rgba(236, 72, 153, 0.3);

    --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.05);
    --shadow-card: 0 10px 30px -5px rgba(139, 92, 246, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(236, 72, 153, 0.15); /* Hover 时的粉色光晕 */

    --radius-md: 16px;
    --radius-lg: 24px; /* 全局统一大圆角 */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弹性动效 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    height: 100%;
}
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* 阻止背景滚动 */
body.modal-open {
    overflow: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; font-family: inherit; transition: var(--transition); outline: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #d8b4fe; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- 通用工具类 --- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }

/* 按钮风格升级 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px; border-radius: 50px; font-weight: 600;
    font-size: 1rem; letter-spacing: 0.5px;
    position: relative; overflow: hidden; z-index: 1;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(236, 72, 153, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -8px rgba(236, 72, 153, 0.6);
}
.btn-outline {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white; border-color: var(--primary);
}

/* 支付方式按钮 hover 样式 */
.payment-method-btn:hover,
.recharge-payment-method-btn:hover {
    background: var(--pop-pink) !important;
    color: white !important;
    border-color: var(--pop-pink) !important;
}

/* 充值金额按钮样式 */
.recharge-amount-btn {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    min-height: 48px;
}

/* 全局统一卡片风格 (Unified Card Style) */
.u-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
}
.u-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(236, 72, 153, 0.2);
}

/* 博客推荐套餐卡片悬停效果 */
.blog-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
}

/* 文章详情页右下角 eSIM 购买浮窗 */
.blog-esim-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    padding: 14px 22px;
    border-radius: 50px;
    box-shadow: 0 8px 30px -5px rgba(102, 126, 234, 0.5);
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatPulse 2s ease-in-out infinite;
}
@keyframes floatPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.blog-esim-float:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px -5px rgba(102, 126, 234, 0.6);
    animation: none;
}
.blog-esim-float .float-icon {
    font-size: 1.3rem;
}
.blog-esim-float .float-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}
.blog-esim-float .float-arrow {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
}
.badge-hot { background: #fdf2f8; color: var(--pop-pink); border: 1px solid #fce7f3; }
.badge-new { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }

/* --- 导航栏 --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding: 16px 0;
    transition: var(--transition);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--text-main); display: flex; align-items: center; gap: 8px; letter-spacing: -1px; }
.logo i { color: var(--primary); }

.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-link { font-weight: 600; color: var(--text-sub); font-size: 0.95rem; position: relative; padding: 5px 0; }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
    background: var(--pop-pink); transition: var(--transition); border-radius: 3px; transform: translateX(-50%);
}
.nav-link:hover { color: var(--text-main); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text-main); }

.nav-actions { display: flex; gap: 16px; align-items: center; }
.lang-select { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 50px; transition: 0.3s; position: relative; }
.lang-select:hover { background: #f3f4f6; }

/* 语言下拉菜单 */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}
.lang-option:hover {
    background: #f3f4f6;
}
.lang-option.active {
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.user-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3); }
.mobile-toggle { display: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 80px 0 20px 0;
}
.mobile-menu.active {
    right: 0;
}
.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}
.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}
.mobile-menu-close i {
    font-size: 1.2rem;
    color: var(--text-main);
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mobile-nav-link {
    display: block;
    padding: 16px 24px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(139, 92, 246, 0.05);
    border-left-color: var(--pop-pink);
    color: var(--primary);
}
.mobile-lang-select {
    margin: 16px 24px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

/* 移动端语言下拉菜单 */
.mobile-lang-dropdown {
    margin: 0 24px 0 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}
.mobile-lang-dropdown.active {
    max-height: 400px;
    padding: 8px 0;
    margin-bottom: 16px;
    opacity: 1;
    overflow-y: auto;
}
.mobile-lang-option {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}
.mobile-lang-option:hover {
    background: #f3f4f6;
}
.mobile-lang-option.active {
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary);
    font-weight: 600;
}
.mobile-login-btn {
    margin: 16px 24px;
    width: calc(100% - 48px);
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* --- SPA 页面容器 --- */
#app { flex: 1; transition: opacity 0.3s ease; }
#app.app-loading { opacity: 0; }
.page-section { display: none; animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); padding-top: 60px; min-height: calc(100vh - 80px - 400px); }
.page-section.active { display: block; }

/* 关于我们页面特殊居中样式 */
#about.page-section {
    display: none;
    padding: 120px 0 60px !important; /* 顶部更大，底部适中，使用 !important 确保生效 */
    min-height: auto !important; /* 覆盖通用的 min-height */
}
#about.page-section.active {
    display: block; /* 改为普通块级元素 */
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Footer --- */
footer {
    background: white;
    padding: 40px 0 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 25px; color: var(--text-main); font-weight: 800; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { color: var(--text-sub); transition: 0.2s; display: inline-flex; align-items: center; white-space: nowrap; }
.footer-links a:hover { color: var(--pop-pink); padding-left: 5px; }
.footer-bottom { text-align: center; color: #9ca3af; font-size: 0.9rem; padding-top: 30px; padding-bottom: 20px; border-top: 1px solid #f1f5f9; }
.footer-bottom a { color: #9ca3af; transition: 0.2s; text-decoration: none; }
.footer-bottom a:hover { color: var(--pop-pink); }

/* --- Modals --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 27, 75, 0.4); backdrop-filter: blur(8px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
    padding: 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
    background: white; width: 90%; max-width: 520px;
    border-radius: 32px; padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative; transform: scale(0.95); transition: transform 0.3s;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: auto;
    box-sizing: border-box;
}
.modal-overlay.open .modal { transform: scale(1); }
.close-modal { position: absolute; top: 24px; left: 24px; font-size: 1.5rem; color: #cbd5e1; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: var(--text-main); }

.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
.form-input {
    width: 100%; padding: 14px 20px; border: 2px solid #f1f5f9; border-radius: 12px;
    font-size: 1rem; transition: 0.2s; background: #f8fafc;
}
.form-input:focus { border-color: var(--primary); background: white; outline: none; }
.input-group { display: flex; gap: 12px; }

/* --- Toast --- */
.toast {
    position: fixed; bottom: 40px; right: 40px;
    background: white; padding: 16px 24px; border-radius: 50px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1); border: 1px solid #f1f5f9;
    display: flex; align-items: center; gap: 16px;
    transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}
.toast.show { transform: translateY(0); }
.toast-img { width: 36px; height: 36px; border-radius: 50%; background: #ddd; object-fit: cover; }

/* --- 成功提示 Toast（居中显示） --- */
.toast-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.2);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    pointer-events: none;
}
.toast-center.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* --- 套餐详情弹窗 --- */
.package-detail-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s;
    max-height: calc(100vh - 40px);
    margin: auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-overlay.open .package-detail-modal { transform: scale(1); }

/* --- 套餐卡片样式 (Package Card) --- */
/* 热门套餐 - 核心设计复用 */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.8rem; color: var(--text-main); margin-bottom: 16px; letter-spacing: -1px; }
.section-header p { color: var(--text-sub); font-size: 1.1rem; }

.packages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === 核心设计风格: Package Card === */
.package-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}
/* 卡片悬停效果 - 点击卡片区域跳转详情 */
.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(236, 72, 153, 0.2);
}

.pkg-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.pkg-flag {
    width: 56px; height: auto;
    border-radius: 6px;
    border: 1px solid #DDDDDD; /* 灰色边框 */
    display: block;
    transition: transform 0.3s;
}
.package-card:hover .pkg-flag { transform: scale(1.08); }

.pkg-badge {
    background: var(--gradient-primary); color: white;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

.pkg-title { font-size: 1.35rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.pkg-data {
    font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(to right, #1e1b4b, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 6px 0 16px;
}
.pkg-info-row { display: flex; gap: 8px; margin-bottom: 24px; }
.pkg-tag {
    background: #f8fafc; color: #64748b;
    padding: 6px 12px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}

.pkg-footer {
    display: flex; justify-content: space-between; align-items: flex-end;
    border-top: 1px dashed #e2e8f0; padding-top: 16px;
}
.pkg-label-sm { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.pkg-price { font-size: 1.6rem; font-weight: 800; color: var(--pop-pink); line-height: 1; }

/* 购买按钮 - 圆形箭头 */
.pkg-buy-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--text-main); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: var(--transition);
    position: relative;
    z-index: 10;
}
/* 鼠标悬停在按钮本身时，按钮高亮 */
.pkg-buy-btn:hover {
    background: var(--pop-pink);
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.pkg-detail-header {
    position: relative;
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    flex-shrink: 0;
}

.pkg-detail-close {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}
.pkg-detail-close:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.pkg-detail-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.pkg-detail-flag {
    width: 48px;
    height: auto;
    border-radius: 6px;
    border: 2px solid white;
}

.pkg-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    flex: 1;
}

.pkg-detail-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pkg-detail-specs {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.pkg-detail-spec-item {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.pkg-detail-spec-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.pkg-detail-spec-value {
    font-size: 1.3rem;
    font-weight: 800;
}

.pkg-detail-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.pkg-detail-section {
    margin-bottom: 32px;
}

.pkg-detail-section:last-child {
    margin-bottom: 0;
}

.pkg-detail-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkg-detail-section-title i {
    color: var(--primary);
    font-size: 1rem;
}

.pkg-detail-info-grid {
    display: grid;
    gap: 12px;
}

.pkg-detail-info-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid #f1f5f9;
    gap: 12px;
}

.pkg-detail-info-label {
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pkg-detail-info-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.pkg-detail-info-value.clickable {
    color: var(--primary);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    padding-right: 18px;
}

.pkg-detail-info-value.clickable:after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    transition: 0.2s;
    position: absolute;
    right: 0;
    top: 2px;
}

.pkg-detail-info-value.clickable:hover {
    color: var(--pop-pink);
}

.pkg-detail-info-value.clickable:hover:after {
    transform: translateX(3px);
}

/* --- 二级弹窗（覆盖范围/运营商列表） --- */
.sub-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2500;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.sub-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.sub-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    border-radius: 20px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
}

.sub-modal-overlay.open .sub-modal {
    transform: scale(1);
}

.sub-modal-header {
    padding: 24px 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sub-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-modal-title i {
    font-size: 1.1rem;
}

.sub-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    line-height: 1;
}

.sub-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.sub-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.sub-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-modal-list-item {
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-modal-list-item:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    transform: translateX(4px);
}

.sub-modal-list-item i {
    color: var(--primary);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.sub-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-sub);
}

.sub-modal-empty i {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.sub-modal-count {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

.pkg-detail-verification {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
}

.pkg-detail-verification-title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkg-detail-verification-title i {
    color: #f59e0b;
}

.pkg-detail-verification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkg-detail-verification-list li {
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.pkg-detail-verification-list li:before {
    content: "•";
    position: absolute;
    left: 6px;
    font-weight: 700;
    color: #f59e0b;
}

.pkg-detail-warning {
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pkg-detail-warning i {
    color: #dc2626;
    font-size: 1.2rem;
    margin-top: 2px;
}

.pkg-detail-warning-text {
    color: #7f1d1d;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 600;
}

.pkg-detail-footer {
    padding: 24px 32px 32px;
    flex-shrink: 0;
}

.pkg-detail-buy-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
    transition: var(--transition);
}

.pkg-detail-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.4);
}

.pkg-detail-buy-price {
    font-size: 1.3rem;
    margin-left: 8px;
}
