* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 24px;
    color: #667eea;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    font-size: 14px;
    color: #888;
    margin: 2px 0 0 0;
}

/* 顶栏导航 */
.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-nav-btn {
    padding: 10px 20px;
    background: transparent;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.header-nav-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.header-nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* 顶栏按钮 */
.header-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 联系客服悬浮按钮 */
.floating-contact-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    z-index: 999;
}

.floating-contact-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.floating-contact-btn svg {
    width: 24px;
    height: 24px;
}

.floating-contact-btn span {
    writing-mode: vertical-rl;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: #555;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f5f5f5;
}

.nav-link:hover {
    background: #667eea;
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 主内容区 */
.main {
    padding: 40px 0;
}

.hero {
    text-align: center;
    color: white;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* 搜索框 */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #888;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 50px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.3);
}

.search-input::placeholder {
    color: #aaa;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #e0e0e0;
}

.search-clear svg {
    width: 16px;
    height: 16px;
    color: #666;
}

/* 搜索无结果 */
.search-no-result {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.search-no-result h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.search-no-result p {
    font-size: 16px;
    opacity: 0.8;
}

/* 大区导航 */
.continent-nav-section {
    margin-bottom: 30px;
}

.continent-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.continent-btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continent-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.continent-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 大洲区域 */
.continent-section {
    display: grid;
    gap: 30px;
}

.continent-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.continent-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.continent-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.region-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.region-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.region-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.region-count {
    font-size: 12px;
    color: #888;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1400px !important;
    width: 95% !important;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #667eea;
    transition: all 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.modal-close:hover {
    background: #667eea;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.modal-header {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

/* 详情页内容布局优化 */
.detail-sections-container {
    display: block !important;
    margin-bottom: 25px !important;
}

.detail-section {
    margin-bottom: 20px !important;
    width: 100% !important;
}

/* 当前选择信息 */
.selection-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.selection-label {
    font-weight: 600;
    font-size: 14px;
}

.selection-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
}

.selection-item svg {
    width: 16px;
    height: 16px;
}

.price-item {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    margin-left: auto;
}

.price-item.has-price {
    background: #fff;
    color: #667eea;
    animation: pricePulse 0.5s ease;
}

@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.price-value {
    font-size: 18px;
}

/* 详情区域 */
.detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e8eaff;
}

.detail-section.selectable {
    background: #fff;
    border: 2px solid #e8eaff;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.select-hint {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 可选择选项样式 */
.select-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.select-option:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.select-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.select-option.disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.select-option.disabled:hover {
    border-color: #e0e0e0;
    color: #ccc;
    transform: none;
    box-shadow: none;
}

/* 立即购买区域 */
.buy-section {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 100%);
    border-radius: 16px;
    border: 2px solid #667eea;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.selected-package-info {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    flex: 1 1 400px;
    min-width: 400px;
}

.selected-package-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.selected-package-info .info-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #667eea;
}

.selected-package-info .info-label {
    color: #888;
}

.selected-package-info .info-value {
    color: #333;
    font-weight: 500;
}

.selected-package-info .info-row:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-package-info .plan-id-value {
    font-family: monospace;
    font-size: 15px;
    color: #667eea;
    font-weight: 600;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f0f2ff;
    border: 1px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.copy-btn:hover {
    background: #667eea;
}

.copy-btn:hover svg {
    color: white;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    color: #667eea;
    transition: color 0.2s ease;
}

.copy-btn.copied {
    background: #52c41a;
    border-color: #52c41a;
}

.copy-btn.copied svg {
    color: white;
}

.copy-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #fff7e6 0%, #fff1cc 100%);
    border: 1px solid #ffd591;
    border-radius: 8px;
    font-size: 13px;
    color: #d48806;
}

.copy-hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.buy-btn-container {
    flex: 1 1 300px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    width: 100%;
    max-width: 300px;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.5);
}

.buy-btn svg {
    width: 22px;
    height: 22px;
}

/* 标签样式 */
.region-tag,
.type-tag,
.coverage-tag {
    display: inline-block;
    padding: 6px 14px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.region-tag:hover,
.coverage-tag:hover {
    border-color: #667eea;
    color: #667eea;
}

.type-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* 覆盖地区 */
.coverage-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e8eaff;
}

.coverage-tag {
    font-size: 13px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    margin: 4px 4px;
    display: inline-block;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

/* 响应式 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
    }

    .header-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .floating-contact-btn {
        right: 10px;
        padding: 12px 8px;
        font-size: 10px;
    }

    .floating-contact-btn svg {
        width: 20px;
        height: 20px;
    }

    .nav {
        justify-content: center;
    }

    .hero h2 {
        font-size: 28px;
    }

    .region-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .modal-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
    }

    .modal-title {
        font-size: 20px;
    }

    .package-grid {
        grid-template-columns: 1fr;
    }

    .selection-info {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .selection-item {
        justify-content: center;
    }

    .price-item {
        margin-left: 0;
        justify-content: center;
    }

    .select-option {
        min-width: 70px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 实体卡查询充值弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.qr-code-container {
    margin-bottom: 30px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    display: block;
}

.qr-code-text {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.operation-guide {
    margin-top: 20px;
}

.operation-guide h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.guide-image {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    .qr-code {
        width: 160px;
        height: 160px;
    }
    
    .modal-content h3 {
        font-size: 20px;
    }
    
    .modal-content p {
        font-size: 14px;
    }
}
