/* ============================
   CodeGate - 全局样式
   ============================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-dark: #5849C2;
    --primary-light: #A29BFE;
    --primary-bg: #F0EDFF;
    --accent: #00C9A7;
    --accent-dark: #00A88A;
    --bg: #FFFFFF;
    --bg-gray: #F8F9FC;
    --bg-dark: #1A1A2E;
    --text: #2D2D3A;
    --text-light: #6B6B7B;
    --text-muted: #9B9BAB;
    --border: #E8E8F0;
    --danger: #FF6B6B;
    --warning: #FFB443;
    --success: #00C9A7;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================
   导航栏
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 22px;
}

.logo-icon {
    font-size: 26px;
}

.accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-bg);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ============================
   按钮
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

/* ============================
   页面通用
   ============================ */
.page {
    min-height: 100vh;
    padding-top: 64px;
}

.page.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-gray {
    background: var(--bg-gray);
    max-width: 100%;
}

.section-gray > * {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
}

/* ============================
   Hero
   ============================ */
.hero {
    position: relative;
    padding: 120px 24px 100px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #F8F9FC 0%, #FFFFFF 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    left: -100px;
}

.orb2 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: -80px;
    right: -80px;
    animation-delay: 2s;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: #FF6CB6;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ============================
   平台网格
   ============================ */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.platform-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.platform-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.platform-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.platform-card-price {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================
   功能卡片
   ============================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--primary-bg);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================
   步骤卡片
   ============================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.step-card {
    position: relative;
    padding: 36px 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow);
}

.step-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-bg);
    line-height: 1;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================
   CTA Banner
   ============================ */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    font-size: 16px;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-content .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}

.cta-emoji {
    font-size: 80px;
    opacity: 0.3;
}

/* ============================
   页面横幅
   ============================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #FFFFFF 100%);
    padding: 48px 24px 32px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

/* ============================
   接码页面
   ============================ */
.receive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

.filter-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.search-box input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.country-list {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 12px;
    padding-right: 4px;
}

.country-list::-webkit-scrollbar {
    width: 4px;
}

.country-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.country-item:hover {
    background: var(--primary-bg);
}

.country-item.selected {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.country-flag {
    font-size: 20px;
}

.country-name {
    flex: 1;
}

.country-price {
    font-size: 12px;
    color: var(--text-muted);
}

.platform-list {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 12px;
}

.platform-list::-webkit-scrollbar {
    width: 4px;
}

.platform-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.platform-item:hover {
    background: var(--primary-bg);
}

.platform-item.selected {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.platform-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 700;
}

.platform-item-name {
    flex: 1;
}

.platform-item-price {
    font-size: 12px;
    color: var(--text-muted);
}

/* 接码结果区 */
.receive-result {
    min-height: 500px;
}

.result-empty, .result-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.result-empty h3, .result-loading h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-empty p, .result-loading p {
    color: var(--text-light);
    max-width: 360px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-active {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.number-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    margin-bottom: 24px;
}

.number-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.number-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

.number-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.number-flag {
    font-size: 40px;
}

.number-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.meta-item {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.meta-item strong {
    color: white;
}

.number-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.number-actions .btn-sm {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.number-actions .btn-sm:hover {
    background: rgba(255,255,255,0.25);
}

.number-actions .btn-danger {
    border-color: rgba(255,107,107,0.6);
    color: #FFD0D0;
}

/* 短信区 */
.sms-area {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.sms-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.sms-status {
    font-size: 13px;
    color: var(--warning);
    padding: 4px 12px;
    background: rgba(255, 180, 67, 0.1);
    border-radius: 20px;
    font-weight: 600;
}

.sms-status.received {
    color: var(--success);
    background: rgba(0, 201, 167, 0.1);
}

.sms-list {
    padding: 24px;
    min-height: 200px;
}

.sms-empty {
    text-align: center;
    padding: 20px;
}

.loading-pulse {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.sms-empty p {
    color: var(--text-light);
    margin-bottom: 6px;
}

.sms-hint {
    font-size: 13px !important;
    color: var(--text-muted) !important;
}

.sms-message {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    border-left: 3px solid var(--success);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.sms-message-icon {
    width: 36px;
    height: 36px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.sms-message-content {
    flex: 1;
}

.sms-message-sender {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sms-message-code {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.sms-message-text {
    font-size: 13px;
    color: var(--text-light);
}

.sms-message-time {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

/* 滚动动态 */
.ticker-container {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    padding: 16px 0;
}

.ticker-track {
    display: flex;
    gap: 40px;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
}

.ticker-item strong {
    color: var(--primary);
}

/* ============================
   账号商城
   ============================ */
.market-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.market-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
}

.category-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.category-item.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.category-item-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: 10px;
}

.range-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.range-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px 0;
}

.sort-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

.market-main {
    min-width: 0;
}

.market-search-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.market-search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
}

.market-search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.result-count {
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.account-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.account-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.account-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.account-platform-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.account-platform-info {
    flex: 1;
}

.account-platform-name {
    font-size: 16px;
    font-weight: 700;
}

.account-type {
    font-size: 12px;
    color: var(--text-muted);
}

.account-card-body {
    padding: 16px 20px;
    flex: 1;
}

.account-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0;
}

.account-feature::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.account-card-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
}

.account-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
}

.account-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.account-price-currency {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.account-original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.account-stock {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.account-actions {
    display: flex;
    gap: 8px;
}

.account-actions .btn {
    flex: 1;
}

/* ============================
   定价表
   ============================ */
.pricing-table {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th {
    background: var(--bg-gray);
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    color: var(--text);
}

.price-table td {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.price-table tr:hover {
    background: var(--bg-gray);
}

.price-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: white;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
}

.price-amount {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

/* 套餐卡片 */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.plan-card {
    position: relative;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
}

.plan-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.plan-popular {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
}

.plan-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-gray);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.plan-badge.popular {
    background: var(--primary);
    color: white;
}

.plan-price {
    margin-bottom: 12px;
}

.plan-amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
}

.plan-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
}

/* ============================
   FAQ
   ============================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.faq-q:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 22px;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding-bottom: 18px;
}

.faq-a p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================
   购物车
   ============================ */
.cart-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
    z-index: 900;
    transition: var(--transition);
}

.cart-fab:hover {
    transform: scale(1.1);
}

.cart-icon {
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: white;
    z-index: 995;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
}

.cart-panel.show {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.cart-close:hover {
    background: var(--bg-gray);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    font-size: 15px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
}

.cart-item-type {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    font-size: 15px;
}

.cart-total-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* ============================
   登录弹窗
   ============================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 28px;
}

.modal-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.modal-tip {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
}

/* ============================
   充值二维码弹窗
   ============================ */
.recharge-modal {
    max-width: 420px;
}

.modal-tabs h3 {
    color: var(--text);
}

.recharge-amount-row {
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.recharge-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-left: 4px;
}

.qr-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.qr-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #FFFFFF;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    min-width: 224px;
    min-height: 224px;
}

.qr-box img, .qr-box canvas {
    display: block;
}

.qr-tip {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.payment-link {
    background: var(--bg-gray);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.payment-link-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.payment-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-link-url {
    flex: 1;
    font-size: 13px;
    color: var(--primary-dark);
    word-break: break-all;
    font-weight: 600;
    line-height: 1.4;
}

.recharge-steps {
    margin-bottom: 24px;
}

.recharge-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    padding: 6px 0;
}

.recharge-step-num {
    width: 22px;
    height: 22px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.recharge-actions {
    display: flex;
    gap: 12px;
}

.recharge-actions .btn {
    flex: 1;
}

/* ============================
   Toast
   ============================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 24px;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s ease;
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.fade-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* ============================
   页脚
   ============================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 24px 24px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social span {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.footer-social span:hover {
    background: var(--primary);
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    padding: 6px 0;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ============================
   响应式
   ============================ */
@media (max-width: 1024px) {
    .receive-container {
        grid-template-columns: 1fr;
    }

    .market-layout {
        grid-template-columns: 1fr;
    }

    .market-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .market-sidebar .filter-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-right .btn-outline {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-num {
        font-size: 28px;
    }

    .stat-divider {
        display: none;
    }

    .section {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .cta-banner {
        padding: 36px 24px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cta-emoji {
        font-size: 48px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .market-sidebar {
        grid-template-columns: 1fr;
    }

    .market-search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .number-value {
        font-size: 24px;
    }

    .number-meta {
        flex-direction: column;
        gap: 8px;
    }

    .page-title {
        font-size: 28px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
}
