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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ==================== 刷新防闪屏（已登录用户） ==================== */
/* 首屏就隐藏介绍页，避免“先回到登录介绍页 -> 又跳回主界面”的闪烁体验 */
.adhunter-preauth #authContainer {
    display: none !important;
}
.adhunter-preauth #appContainer {
    display: flex !important;
}

/* ==================== 滚动式产品介绍登录页 ==================== */

/* 品牌字体 */
.landing-container,
.landing-container * {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 主容器 */
.landing-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
    scroll-behavior: smooth;
}

/* 固定顶部导航 */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-logo-text {
    font-size: 26px;
    font-weight: 900;
    color: #1a1a2e;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1a1a2e 0%, #ff9f40 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-logo-badge {
    font-size: 10px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
    margin-top: -8px;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ff9f40;
}

.nav-login-btn {
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 159, 64, 0.3);
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 159, 64, 0.4);
}

/* Hero 首屏区域 */
.landing-hero {
    min-height: 100vh;
    padding: 120px 48px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fb 50%, #f0f4f8 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 159, 64, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: floatShape 12s ease-in-out infinite;
}

.hero-shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: floatShape 8s ease-in-out infinite 2s;
}

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

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

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

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #e67e22;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 159, 64, 0.2);
}

.hero-title {
    margin-bottom: 28px;
}

.hero-title-main {
    display: block;
    font-size: 64px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-sub {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: #ff9f40;
    margin-top: 12px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-desc strong {
    color: #2d3748;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    padding: 24px 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #ff9f40;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(255, 159, 64, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 159, 64, 0.45);
}

.hero-btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.hero-btn-secondary:hover {
    border-color: #ff9f40;
    color: #ff9f40;
}

/* Hero 右侧视觉区域 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-card-stack {
    position: relative;
    width: 400px;
    height: 350px;
}

.hero-float-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-float-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.hfc-1 {
    top: 0;
    left: 0;
    animation: floatCard 4s ease-in-out infinite;
}

.hfc-2 {
    top: 110px;
    left: 80px;
    animation: floatCard 4s ease-in-out infinite 0.5s;
}

.hfc-3 {
    top: 220px;
    left: 40px;
    animation: floatCard 4s ease-in-out infinite 1s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hfc-icon {
    font-size: 32px;
}

.hfc-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #a0aec0;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* 通用 Section 样式 */
.landing-section {
    padding: 100px 48px;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #e67e22;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 功能介绍区域 */
.section-features {
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}

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

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 32px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* 模式卡片区域 */
.section-sp-auto {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f3 100%);
}

.section-sp-manual {
    background: linear-gradient(180deg, #fff8f3 0%, #f0f7ff 100%);
}

.section-sb {
    background: linear-gradient(180deg, #f0f7ff 0%, #f8f5ff 100%);
}

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

.mode-cards-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin: 0 auto;
}

.mode-card {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.mode-card-warm::before {
    background: linear-gradient(90deg, #ff9f40, #ffb347);
}

.mode-card-blue::before {
    background: linear-gradient(90deg, #4299e1, #63b3ed);
}

.mode-card-purple::before {
    background: linear-gradient(90deg, #9f7aea, #b794f4);
}

.mode-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.mode-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.mode-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.mode-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}

.mode-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-features li {
    font-size: 13px;
    color: #718096;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-features li::before {
    content: '✓';
    color: #48bb78;
    font-weight: 700;
    font-size: 12px;
}

/* CTA 区域 */
.section-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
    padding: 80px 48px;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.cta-btn {
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 159, 64, 0.4);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 159, 64, 0.5);
}

/* 页脚 */
.landing-footer {
    background: #1a1a2e;
    padding: 40px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-pro {
    font-size: 9px;
    font-weight: 800;
    color: #1a1a2e;
    background: linear-gradient(135deg, #ff9f40 0%, #ffb347 100%);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* 登录弹窗 */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: white;
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

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

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    background: #e2e8f0;
    color: #1a1a2e;
}

.auth-modal-page {
    display: none;
}

.auth-modal-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-modal-header p {
    font-size: 15px;
    color: #64748b;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mode-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mode-cards-3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-desc {
        margin: 0 auto 36px;
    }
    
    .landing-nav-links .nav-link {
        display: none;
    }
}

@media (max-width: 768px) {
    .landing-nav-inner {
        padding: 0 24px;
    }
    
    .landing-hero {
        padding: 100px 24px 60px;
    }
    
    .hero-title-main {
        font-size: 42px;
    }
    
    .hero-title-sub {
        font-size: 20px;
    }
    
    .hero-card-stack {
        width: 300px;
        height: 280px;
    }
    
    .landing-section {
        padding: 60px 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .mode-cards,
    .mode-cards-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==================== 原登录/注册样式（保留给弹窗使用） ==================== */

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

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

/* 左侧品牌区域 */
.auth-brand {
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 50%, #ffb300 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.auth-brand::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-logo {
    font-size: 80px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.brand-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 2px;
}

.brand-features {
    margin-top: 60px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 16px;
    opacity: 0.9;
}

.feature-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 右侧表单区域 */
.auth-form-container {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.auth-header p {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
}

.auth-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    background: white;
    color: #ff9f40;
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.15);
}

.auth-form {
    animation: slideIn 0.3s ease;
}

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

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 4px rgba(255, 159, 64, 0.1);
    background: white;
}

.input-with-btn {
    display: flex;
    gap: 12px;
}

.input-with-btn input {
    flex: 1;
}

.btn-code {
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 159, 64, 0.4);
}

.btn-code:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.btn-auth {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(255, 159, 64, 0.3);
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 159, 64, 0.5);
}

.btn-auth:active {
    transform: translateY(-1px);
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.auth-links a {
    color: #ff9f40;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    transition: width 0.3s;
}

.auth-links a:hover::after {
    width: 100%;
}

.auth-links a:hover {
    color: #ffb300;
}

.app-container {
    width: 100%;
    display: flex;
}

/* 响应式设计 - 登录页面 */
@media (max-width: 1024px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .auth-brand {
        padding: 40px;
        min-height: 300px;
    }
    
    .brand-title {
        font-size: 36px;
    }
    
    .brand-features {
        margin-top: 40px;
    }
    
    .auth-form-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 20px;
    }
    
    .auth-card {
        max-width: 100%;
    }
    
    .auth-brand {
        padding: 30px;
    }
    
    .brand-logo {
        font-size: 60px;
    }
    
    .brand-title {
        font-size: 32px;
    }
    
    .brand-subtitle {
        font-size: 14px;
    }
    
    .auth-form-container {
        padding: 30px 25px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
}

/* ==================== SaaS Sidebar (Ant/Semi-inspired) ==================== */
.app-container {
    --sb-accent: #10B981;
    --sb-bg: #FFFFFF;
    --sb-surface: #F9FAFB;
    --sb-text: #6B7280;
    --sb-text-strong: #111827;
    --sb-border: #E5E7EB;
    --sb-header-h: 64px;
    --sb-w: 280px;
    --sb-w-collapsed: 72px;
}

.app-container.sidebar-collapsed {
    --sb-w: var(--sb-w-collapsed);
}

/* 左侧边栏 */
.sidebar {
    width: var(--sb-w);
    background: var(--sb-bg);
    color: var(--sb-text);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--sb-header-h));
    position: fixed;
    left: 0;
    top: var(--sb-header-h);
    border-right: 1px solid var(--sb-border);
    box-shadow: none;
    z-index: 1000;
    transition: width 160ms ease, background-color 160ms ease;
}

.sidebar-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--sb-border);
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--sb-text-strong);
}

.sidebar-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--sb-text);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* 侧边栏导航 */
.sidebar-nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-item {
    margin-bottom: 4px;
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--sb-text);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
    position: relative;
    border-radius: 8px;
    font-weight: 500;
}

/* 悬停效果：微光 + 背景变化 */
.nav-link:hover {
    background: var(--sb-surface);
    color: var(--sb-text-strong);
}

.nav-link:active {
    background: #F3F4F6;
}

/* 激活状态 */
.nav-item.active > .nav-link {
    background: rgba(16, 185, 129, 0.10);
    color: var(--sb-accent);
    box-shadow: none;
    font-weight: 600;
}

/* 图标样式 */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: currentColor;
}

.nav-icon svg,
.nav-arrow svg,
.sidebar-collapse-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.nav-text {
    flex: 1;
    font-size: 14px;
    letter-spacing: 0;
    white-space: nowrap;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: transform 160ms ease, color 160ms ease;
    color: #9CA3AF;
}

.nav-item.has-children.expanded .nav-arrow {
    transform: rotate(180deg);
    color: var(--sb-text-strong);
}

/* 子菜单 - 动效优化 */
.nav-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* 连接线 */
.nav-children::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sb-border);
    border-radius: 1px;
}

.nav-item.has-children.expanded .nav-children {
    max-height: 600px; /* 足够大以容纳内容 */
}

.nav-child {
    padding: 10px 16px 10px 48px;
    color: var(--sb-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.nav-child:hover {
    color: var(--sb-text-strong);
    background: var(--sb-surface);
}

.nav-child.active {
    color: var(--sb-accent);
    background: rgba(16, 185, 129, 0.10);
    font-weight: 500;
}

.nav-child.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sb-accent);
    box-shadow: none;
}

/* 侧边栏底部 - 用户卡片 */
.sidebar-footer {
    padding: 12px;
    background: var(--sb-bg);
    border-top: 1px solid var(--sb-border);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 10px;
    transition: background-color 160ms ease;
}

.user-info:hover {
    background: var(--sb-surface);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--sb-accent);
    box-shadow: none;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--sb-text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--sb-text);
    margin-top: 2px;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: var(--sb-bg);
    color: var(--sb-text);
    border: 1px solid var(--sb-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout::before {
    content: ''; /* Logout Icon placeholder if needed, using text for now */
}

.btn-logout:hover {
    background: #FEF2F2;
    color: #EF4444;
    border-color: #FECACA;
}

.btn-logout:active {
    background: #FEE2E2;
}

.sidebar-divider {
    height: 1px;
    background: var(--sb-border);
    margin: 10px 8px;
}

.sidebar-collapse-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--sb-border);
    border-radius: 10px;
    background: var(--sb-bg);
    color: var(--sb-text);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sidebar-collapse-btn:hover {
    background: var(--sb-surface);
    color: var(--sb-text-strong);
}

.sidebar-collapse-btn:active {
    background: #F3F4F6;
}

.app-container.sidebar-collapsed .nav-text,
.app-container.sidebar-collapsed .sidebar-subtitle,
.app-container.sidebar-collapsed .sidebar-header h2,
.app-container.sidebar-collapsed .sidebar-collapse-text,
.app-container.sidebar-collapsed .user-details,
.app-container.sidebar-collapsed .btn-logout {
    display: none;
}

.app-container.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 10px 10px;
}

.app-container.sidebar-collapsed .nav-arrow {
    display: none;
}

/* 主内容区 */
.main-content {
    margin-left: var(--sb-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sb-header-h);
    background: var(--sb-bg);
    padding: 0 24px 0 calc(var(--sb-w) + 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sb-border);
    box-shadow: none;
    z-index: 1100;
}

.header h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sb-text-strong);
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--sb-surface);
    transform: translateY(-2px);
}

/* 页面内容区 */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: calc(var(--sb-header-h) + 20px) 24px 24px;
}

/* 表格内输入框 */
.table-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
}

.table-input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 2px rgba(255, 159, 64, 0.15);
}

.asin-textarea {
    min-height: 110px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.5;
}

.number-input {
    text-align: right;
}

.table-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    background-color: #ffffff;
}

.table-select:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 2px rgba(255, 159, 64, 0.15);
}

/* 主页欢迎区 */
.welcome-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.welcome-section h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 159, 64, 0.4);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 开发中页面 */
.coming-soon {
    background: white;
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.coming-soon h2 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 15px;
}

.coming-soon p {
    font-size: 18px;
    color: #718096;
}

/* 工具栏 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 20px 0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.search-box {
    margin-left: auto;
}

.search-box input {
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 3px rgba(255, 159, 64, 0.1);
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 380px);
    overflow-y: auto;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 2000px;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
}

.data-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: white;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th:last-child {
    border-right: none;
}

.data-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.001);
}

.data-table td {
    padding: 14px 12px;
    font-size: 13px;
    color: #495057;
    white-space: nowrap;
    border-right: 1px solid #f1f3f5;
}

.data-table td:last-child {
    border-right: none;
}

/* 复选框样式 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9f40;
}

/* 操作按钮 */
.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-edit:hover {
    background: #1976d2;
    color: white;
}

.btn-delete {
    background: #fff3e0;
    color: #ff9f40;
}

.btn-delete:hover {
    background: #ff9f40;
    color: white;
}

/* 清空按钮样式（橙黄色） */
.btn-danger {
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.4);
}

/* 表格操作列样式 */
.data-table td:last-child {
    text-align: center;
    vertical-align: middle;
    padding: 10px;
}

.data-table .btn-sm {
    white-space: nowrap;
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 0 0;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #ff9f40;
    color: white;
    border-color: #ff9f40;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    width: 520px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
    padding: 24px 24px 20px;
}

.modal h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1f2933;
}

.modal-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.modal textarea {
    width: 100%;
    min-height: 160px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    resize: vertical;
    font-family: Consolas, Menlo, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.modal textarea:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 2px rgba(255, 159, 64, 0.15);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.neg-container {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.neg-block {
    flex: 1;
}

.neg-block h4 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag-success {
    background: #d4edda;
    color: #155724;
}

.tag-warning {
    background: #fff3cd;
    color: #856404;
}

.tag-danger {
    background: #f8d7da;
    color: #721c24;
}

.tag-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .header {
        padding: 20px 30px;
    }
    
    .page-content {
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .page-content {
        padding: 15px 20px;
    }
    
    .toolbar {
        flex-wrap: wrap;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动条样式 */
.table-container::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* SKU 输入框样式 */
.sku-input {
    cursor: text !important;
}

.sku-cell {
    cursor: pointer;
}

.sku-cell small {
    display: block;
    font-size: 10px;
    margin-top: 2px;
}

/* 无否词提示 */
.no-neg-word {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* 进度提示弹窗 */
.progress-toast {
    position: fixed;
    top: 80px;
    right: 30px;
    width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

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

.progress-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.progress-icon {
    font-size: 32px;
    animation: spin 2s linear infinite;
}

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

.progress-text {
    flex: 1;
}

.progress-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.progress-desc {
    font-size: 13px;
    color: #718096;
}

.progress-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #cbd5e0;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.progress-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    width: 0%;
    transition: width 0.5s ease;
}

/* 关键词弹窗样式 */
.keyword-modal {
    width: 1400px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.keyword-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.keyword-toolbar label {
    font-size: 13px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 6px;
}

.small-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
}

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

.keyword-list {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
}

.keyword-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 0;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-align: center;
}

.keyword-list-header > div {
    padding: 0 12px;
}

.keyword-list-header > div:first-child {
    text-align: left;
}

.keyword-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
    padding: 0;
}

.keyword-input {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.keyword-input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 2px rgba(255, 159, 64, 0.1);
}

.keyword-input.kw-name {
    font-weight: 500;
}

.btn-remove-keyword {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff3e0;
    color: #ff9f40;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-keyword:hover {
    background: #ff9f40;
    color: white;
}

.keyword-cell {
    cursor: pointer;
    transition: all 0.2s;
}

.keyword-cell:hover {
    background: #f8f9fa;
}

.keyword-placeholder {
    padding: 8px;
    display: block;
}

/* 手动广告表格特殊样式 */
#manualDataTable .keyword-cell {
    font-weight: 500;
    text-align: center;
}

/* 商品&类目行样式 */
.product-row .prod-id {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-weight: 600;
}

.product-row .prod-expanded:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ASIN单元格样式 */
.asin-cell {
    cursor: pointer;
    text-align: center;
    padding: 12px;
}

.asin-cell:hover {
    background: #f8f9fa;
}

/* 模式切换开关样式 */
.mode-switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.mode-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.mode-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ff9f40;
    transition: 0.3s;
    border-radius: 24px;
}

.mode-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mode-switch input:checked + .mode-slider {
    background-color: #ff9f40;
}

.mode-switch input:checked + .mode-slider:before {
    transform: translateX(26px);
}

.mode-switch input:focus + .mode-slider {
    box-shadow: 0 0 0 3px rgba(255, 159, 64, 0.2);
}

/* 非阻塞提示Toast */
.toast-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideDown 0.3s ease;
    min-width: 320px;
    max-width: 90vw;
}

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

.toast-notification.toast-error {
    border-left: 4px solid #c62828;
}

.toast-notification.toast-success {
    border-left: 4px solid #2e7d32;
}

.toast-notification.toast-warning {
    border-left: 4px solid #ff9f40;
}

.toast-notification.toast-info {
    border-left: 4px solid #ff9f40;
}

.toast-icon {
    font-size: 20px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-error .toast-icon {
    background: #fef2f2;
    color: #c62828;
}

.toast-success .toast-icon {
    background: #f0fdf4;
    color: #2e7d32;
}

.toast-warning .toast-icon {
    background: #fffbeb;
    color: #d97706;
}

.toast-info .toast-icon {
    background: #fff7ed;
    color: #ff9f40;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
    word-break: break-word;
}

/* 批量插入弹窗 */
.batch-modal {
    width: 1200px;
    max-width: 95vw;
}

.batch-content {
    display: flex;
    gap: 24px;
    margin: 16px 0;
    min-height: 450px;
}

.batch-left {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.batch-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.batch-textarea {
    width: 100%;
    flex: 1;
    min-height: 450px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 14px;
    resize: none;
    font-family: Consolas, Menlo, Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    transition: all 0.3s;
}

.batch-textarea:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 3px rgba(255, 159, 64, 0.15);
}

.batch-hint {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
    line-height: 1.7;
    border-left: 4px solid #ff9f40;
}

.batch-hint strong {
    color: #ff9f40;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.batch-hint > div {
    margin-bottom: 6px;
}

.batch-hint .highlight {
    color: #ff9f40;
    font-weight: 600;
}

.batch-hint code {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    color: #ff9f40;
    font-weight: 600;
    font-size: 12px;
}

.batch-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffecb3 100%);
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    line-height: 1.7;
    border-left: 4px solid #ff9f40;
}

.batch-warning strong {
    color: #c62828;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.batch-warning > div {
    margin-bottom: 4px;
}

.batch-warning code {
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    color: #ff9f40;
    font-weight: 700;
}

.batch-example {
    background: white;
    padding: 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #495057;
    border: 2px solid #e9ecef;
    flex: 1;
}

.batch-example strong {
    color: #2d3748;
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.example-item {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.example-item code {
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    color: #2d3748;
    font-size: 12px;
    display: block;
    border-left: 3px solid #ff9f40;
}

.example-item .example-note {
    color: #ff9f40;
    font-size: 11px;
    font-style: italic;
    padding-left: 13px;
}

/* 响应式：小屏幕改为上下排版 */
@media (max-width: 1024px) {
    .batch-modal {
        width: 90vw;
    }
    
    .batch-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .batch-left {
        flex: none;
        width: 100%;
    }
    
    .batch-textarea {
        min-height: 300px;
    }
}

/* Toast 错误提示特殊样式 */
.toast-notification.toast-error .toast-message {
    white-space: pre-line;
    line-height: 1.6;
}

/* 主页表格样式 */
.page-header {
    padding: 20px 0;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
}

.page-desc {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

/* ==================== 购买记录页面样式 ==================== */

#purchaseHistoryPage {
    padding: 20px;
}

#purchaseHistoryTable {
    width: 100%;
}

#purchaseHistoryTable th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    padding: 14px 12px;
    font-size: 14px;
    white-space: nowrap;
}

#purchaseHistoryTable td {
    padding: 14px 12px;
    font-size: 14px;
    vertical-align: middle;
}

#purchaseHistoryTable tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* 订单号单元格 */
.order-no-cell .order-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 金额单元格 */
.amount-cell {
    font-weight: 600;
    color: #ef4444;
}

/* 时间单元格 */
.time-cell {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.status-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.status-error {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* 卡密单元格 */
.license-cell {
    min-width: 180px;
}

/* 状态/操作列 */
.status-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-sub {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.status-sub--expired {
    color: #dc2626;
    font-weight: 600;
}

.action-cell {
    white-space: nowrap;
}

.action-muted {
    color: #94a3b8;
}

.btn-action {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-action-primary {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #16a34a;
}

.btn-action-primary:hover {
    background: rgba(34, 197, 94, 0.2);
}

.btn-action-secondary {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
    color: #6366f1;
}

.btn-action-secondary:hover {
    background: rgba(99, 102, 241, 0.16);
}

.no-license {
    color: #94a3b8;
}

.license-code-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: #0f172a;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy-sm {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.btn-copy-sm:hover {
    opacity: 1;
}

.license-codes-multi .btn-view-codes {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #6366f1;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.license-codes-multi .btn-view-codes:hover {
    background: #6366f1;
    color: white;
}

/* 加载/空/错误状态 */
.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: 48px 24px !important;
}

.loading-cell {
    color: #64748b;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

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

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-icon {
    font-size: 48px;
}

.empty-state p {
    color: #64748b;
    font-size: 14px;
}

.empty-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.empty-link:hover {
    text-decoration: underline;
}

.error-cell {
    color: #ef4444;
}

/* 购买记录分页 */
#purchaseHistoryPagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

#purchaseHistoryPagination .page-btn {
    padding: 10px 20px;
}

#purchaseHistoryPagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 卡密弹窗 */
#licenseCodesModal .license-codes-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 16px 0;
}

#licenseCodesModal .license-code-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#licenseCodesModal .code-index {
    font-weight: 600;
    color: #64748b;
    min-width: 24px;
}

#licenseCodesModal .license-code {
    flex: 1;
    max-width: none;
}

#dataListTable {
    width: 100%;
}

#dataListTable th {
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    font-weight: 600;
}

#dataListTable td {
    text-align: center;
    padding: 15px;
}

#dataListTable tbody tr:hover {
    background: #f8f9fa;
}

/* 确认弹窗样式 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.confirm-header {
    padding: 25px 30px 20px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.confirm-icon {
    font-size: 32px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.confirm-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.confirm-body {
    padding: 30px;
}

.confirm-message {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    margin: 0;
    white-space: pre-line;
}

.confirm-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.confirm-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
}

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

/* ==================== 修改密码弹窗样式 ==================== */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.modal .form-group input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 3px rgba(255, 159, 64, 0.1);
}

/* 响应式设计 - 登录卡片 */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 25px;
    }
}

/* ==================== 账号信息页面样式 ==================== */

.account-container-new {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.account-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8e8e8;
}

.header-content {
    flex: 1;
}

.account-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ff9f40 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.account-subtitle-new {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-modify-password {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-modify-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.3);
}

.btn-icon {
    font-size: 18px;
}

.account-content-new {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.account-main-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.info-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

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

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.info-card-modern:hover {
    border-color: #ff9f40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.15);
}

.card-header-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-icon-modern {
    font-size: 20px;
}

.card-label-modern {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.card-value-modern {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 卡密卡片 */
.key-card-modern {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border: 2px solid #ffe0b2;
    border-radius: 12px;
    padding: 24px;
}

.key-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.key-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

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

.btn-key-action {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-key-action:hover {
    background: #ff9f40;
    color: white;
    border-color: #ff9f40;
}

.btn-copy-modern:hover {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.key-display-modern {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.key-value {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 2px;
    color: #1a1a1a;
}

/* 到期信息卡片 */
.expire-card-modern {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    border: 2px solid #c8e6c9;
    border-radius: 12px;
    padding: 24px;
}

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

.expire-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expire-label {
    font-size: 14px;
    color: #666;
}

.expire-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.expire-status-modern {
    display: flex;
    align-items: center;
}

.status-badge-modern {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge-modern.status-active {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.status-badge-modern.status-warning {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
}

.status-badge-modern.status-expired {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
}

.expire-footer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.remain-days-label {
    font-size: 14px;
    color: #666;
}

.remain-days-value {
    font-size: 28px;
    font-weight: 700;
    color: #4caf50;
}

.remain-days-unit {
    font-size: 16px;
    color: #666;
}

/* 设备绑定区域 */
.account-side-section {
    display: flex;
    flex-direction: column;
}

.device-section-modern {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 30px;
}

.device-card-modern {
    margin-top: 20px;
}

.device-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.device-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.device-count-modern {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.device-separator {
    margin: 0 8px;
    color: #999;
}

.device-progress-modern {
    margin-bottom: 20px;
}

.progress-bar-modern {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #ff9f40 0%, #ffc107 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.progress-current {
    font-size: 20px;
    font-weight: 700;
    color: #ff9f40;
}

.progress-total {
    color: #999;
}

.device-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.tip-icon {
    font-size: 18px;
}

.tip-text {
    flex: 1;
}

/* 记住密码样式 */
.remember-password-group {
    margin-bottom: 0;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #666;
}

.remember-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9f40;
}

.remember-checkbox:hover {
    color: #ff9f40;
}

.checkbox-label {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .account-content-new {
        grid-template-columns: 1fr;
    }
    
    .device-section-modern {
        position: static;
    }
}

@media (max-width: 768px) {
    .account-container-new {
        padding: 20px;
    }
    
    .account-header-new {
        flex-direction: column;
        gap: 20px;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .account-title {
        font-size: 28px;
    }
}

/* ==================== 卡密购买页面样式 ==================== */

.license-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.license-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.license-section .section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.license-section .section-desc {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 25px;
}

/* 套餐卡片网格 */
.package-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 套餐卡片 */
.package-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.recommend-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.recommend-tag.hot {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.package-header {
    padding: 30px 20px;
    color: white;
    text-align: center;
}

.package-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price-symbol {
    font-size: 20px;
    margin-right: 5px;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
}

.price-unit {
    font-size: 16px;
    margin-left: 5px;
    opacity: 0.9;
}

.package-body {
    padding: 25px 20px;
}

.package-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #555;
}

.package-feature .icon {
    font-size: 20px;
    margin-right: 10px;
}

.purchase-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.purchase-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 授权状态 */
.license-active, .license-inactive, .license-error, .license-loading {
    padding: 20px;
    border-radius: 8px;
}

.license-active {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
}

.license-inactive {
    background: #fef3c7;
    border: 1px solid #fde68a;
    text-align: center;
}

.license-error {
    background: #fee;
    border: 1px solid #fcc;
    text-align: center;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.status-header .icon {
    font-size: 24px;
}

.status-body {
    display: grid;
    gap: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.status-item label {
    color: #6b7280;
    font-weight: 500;
}

.status-item span {
    color: #111827;
    font-weight: 600;
}

.status-item span.active {
    color: #10b981;
}

.status-item span.expired {
    color: #ef4444;
}

.status-item span.warning {
    color: #f59e0b;
}

.license-code {
    font-family: 'Courier New', monospace;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 设备列表 */
.device-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.device-list h4 {
    margin-bottom: 15px;
    color: #374151;
}

.device-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.device-item.current {
    border-color: #3b82f6;
    background: #eff6ff;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.device-fingerprint {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 13px;
}

.current-tag {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.device-time {
    display: flex;
    gap: 20px;
}

.device-time small {
    color: #9ca3af;
    font-size: 12px;
}

/* 无授权状态 */
.inactive-message {
    color: #78350f;
    margin: 15px 0;
}

.activate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 激活卡密表单 */
.activate-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
}

.license-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.license-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-activate {
    padding: 12px 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* 购买记录 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.order-no {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 14px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.order-status.success {
    background: #d1fae5;
    color: #065f46;
}

.order-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.order-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.order-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-info {
    display: flex;
    gap: 20px;
    color: #374151;
}

.order-time {
    display: flex;
    gap: 20px;
}

.order-time small {
    color: #9ca3af;
    font-size: 12px;
}

.order-licenses {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.order-licenses label {
    display: block;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 500;
}

.license-code-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.license-code-item code {
    flex: 1;
    background: white;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #111827;
}

.copy-btn {
    padding: 6px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* 空状态 */
.empty-history, .history-error {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-history .icon, .history-error .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination button {
    padding: 8px 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span {
    color: #6b7280;
    font-size: 14px;
}

/* 加载状态 */
.license-loading, .history-loading {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .license-container {
        padding: 15px;
    }
    
    .package-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .activate-form {
        flex-direction: column;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .license-code-item {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================== 账号信息页面（AccX v3：玻璃拟态 + 动效） ==================== */

.accx-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 20px;
    padding: 24px;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 159, 64, 0.10), transparent 58%),
                radial-gradient(1000px 520px at 90% 20%, rgba(56, 189, 248, 0.08), transparent 58%),
                radial-gradient(900px 480px at 55% 110%, rgba(255, 193, 7, 0.06), transparent 60%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.accx-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.accx-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(86px);
    opacity: 0.18;
    transform: translate3d(0, 0, 0);
    animation: accxFloat 10s ease-in-out infinite;
}

.accx-orb-1 {
    top: -220px;
    left: -220px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 159, 64, 0.8), rgba(255, 159, 64, 0.05) 60%, transparent 70%);
    animation-duration: 12s;
}

.accx-orb-2 {
    top: -260px;
    right: -260px;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.75), rgba(56, 189, 248, 0.05) 60%, transparent 72%);
    animation-duration: 14s;
    animation-direction: reverse;
}

.accx-orb-3 {
    bottom: -260px;
    left: 40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 193, 7, 0.65), rgba(255, 193, 7, 0.05) 60%, transparent 72%);
    animation-duration: 16s;
}

.accx-noise {
    position: absolute;
    inset: 0;
    display: none;
}

.accx-shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.accx-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.accx-hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.accx-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.accx-subtitle {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
}

.accx-primary-btn {
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 10px 24px rgba(255, 159, 64, 0.25);
    will-change: transform;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.accx-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 159, 64, 0.35);
}

.btn-icon-wrapper svg {
    display: block;
}

.accx-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
}

.accx-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.accx-card {
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accx-card-glass {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
}

.accx-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 159, 64, 0.28);
    box-shadow: 0 16px 34px -14px rgba(255, 159, 64, 0.28);
}

.accx-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.accx-card-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.accx-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 159, 64, 0.12);
    color: #ff9f40;
}

.accx-ico svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.accx-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.accx-field {
    padding: 14px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.accx-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.accx-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accx-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.accx-chip {
    border: 1px solid rgba(203, 213, 225, 0.6);
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.accx-chip:hover {
    transform: translateY(-2px);
    border-color: #ff9f40;
    color: #d97706;
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.15);
}

.accx-chip:active {
    transform: translateY(0);
}

.accx-chip-ok {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
    color: #16a34a;
}

.accx-chip-ok:hover {
    border-color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.accx-keybox {
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92));
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
}

/* 卡密盒子的光效 */
.accx-keybox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px 140px at 10% 0%, rgba(255, 159, 64, 0.12), transparent 55%),
                radial-gradient(520px 140px at 90% 110%, rgba(56, 189, 248, 0.10), transparent 55%);
    pointer-events: none;
}

.accx-key {
    display: block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 15px;
    letter-spacing: 1.2px;
    color: #0f172a;
    user-select: text;
    overflow-wrap: anywhere;
    text-align: center;
}

.accx-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
}

.accx-kv {
    display: grid;
    gap: 16px;
}

.accx-kv-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.accx-kv-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.accx-kv-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.accx-kv-big {
    font-size: 26px;
    font-weight: 800;
    color: #ff9f40;
    text-shadow: 0 2px 4px rgba(255, 159, 64, 0.1);
}

.accx-unit {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-shadow: none;
}

.accx-device-counter {
    font-weight: 800;
    color: #0f172a;
    font-size: 18px;
}

.accx-muted {
    color: #94a3b8;
    font-weight: 600;
    margin: 0 2px;
}

.accx-progress {
    margin-top: 16px;
}

.accx-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.accx-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff9f40 0%, #ffc107 100%);
    box-shadow: 0 0 10px rgba(255, 159, 64, 0.4);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accx-progress-text {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: right;
}

.accx-tip {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 159, 64, 0.08);
    border: 1px solid rgba(255, 159, 64, 0.2);
    color: #d97706;
    font-size: 13px;
    font-weight: 600;
}

.accx-tip-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
}

.accx-tip-ico svg {
    width: 16px;
    height: 16px;
}

.accx-card-sticky {
    position: sticky;
    top: 24px;
}

/* 账号页-激活卡密和购买记录区域 */
.accx-section {
    margin-top: 32px;
}

.accx-card-full {
    width: 100%;
}

.accx-section-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.accx-activate-form {
    display: flex;
    gap: 16px;
    align-items: center;
}

.accx-license-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 1px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #0f172a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.accx-license-input:focus {
    outline: none;
    border-color: #ff9f40;
    box-shadow: 0 0 0 4px rgba(255, 159, 64, 0.15);
}

.accx-license-input::placeholder {
    color: #cbd5e1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: normal;
}

.accx-activate-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.2);
}

.accx-loading {
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 购买记录列表样式 */
.accx-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accx-order-item {
    padding: 20px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.accx-order-item:hover {
    border-color: #ff9f40;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.accx-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.accx-order-no {
    font-size: 13px;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

.accx-order-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.accx-order-status.success {
    background: #dcfce7;
    color: #166534;
}

.accx-order-status.warning {
    background: #fef3c7;
    color: #b45309;
}

.accx-order-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.accx-order-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accx-order-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
}

.accx-order-time {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.accx-order-time small {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accx-order-licenses {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.accx-order-licenses label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.accx-license-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-top: 8px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.accx-license-code-item code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #0f172a;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.accx-license-code-item .copy-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.accx-license-code-item .copy-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.accx-empty-history {
    padding: 60px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.accx-empty-history .icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.accx-empty-history p {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.accx-history-error {
    padding: 32px;
    text-align: center;
    color: #ef4444;
    font-size: 14px;
    background: #fee2e2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.accx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.accx-pagination button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.accx-pagination button:hover:not(:disabled) {
    background: #fff7ed;
    border-color: #ff9f40;
    color: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 159, 64, 0.1);
}

.accx-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.accx-pagination span {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 640px) {
    .accx-activate-form {
        flex-direction: column;
    }
    .accx-activate-btn {
        width: 100%;
    }
}

/* 状态徽章（由 js/account.js 渲染） */
.accx-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.accx-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.accx-badge--ok {
    border-color: rgba(34, 197, 94, 0.2);
    background: #dcfce7;
    color: #15803d;
}

.accx-badge--ok::before {
    background: #16a34a;
}

.accx-badge--warn {
    border-color: rgba(245, 158, 11, 0.2);
    background: #fef3c7;
    color: #b45309;
}

.accx-badge--warn::before {
    background: #d97706;
}

.accx-badge--bad {
    border-color: rgba(239, 68, 68, 0.2);
    background: #fee2e2;
    color: #991b1b;
}

.accx-badge--bad::before {
    background: #dc2626;
}

.accx-badge--none {
    border-color: rgba(148, 163, 184, 0.2);
    background: #f1f5f9;
    color: #64748b;
}

.accx-badge--none::before {
    background: #94a3b8;
}

/* 入场动画：由 JS 加 accx-enter 类触发 */
.accx-page.accx-enter .accx-hero,
.accx-page.accx-enter .accx-card {
    animation: accxEnter 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.accx-page.accx-enter .accx-card:nth-child(2) {
    animation-delay: 100ms;
}

.accx-page.accx-enter .accx-card:nth-child(3) {
    animation-delay: 200ms;
}

.accx-page.accx-enter .accx-col-side .accx-card:nth-child(2) {
    animation-delay: 300ms;
}

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

@keyframes accxFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 20px, 0) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .accx-orb {
        animation: none;
    }
    .accx-page.accx-enter .accx-hero,
    .accx-page.accx-enter .accx-card {
        animation: none;
    }
    .accx-fill {
        transition: none;
    }
}

@media (max-width: 980px) {
    .accx-grid {
        grid-template-columns: 1fr;
    }
    .accx-card-sticky {
        position: static;
    }
}

@media (max-width: 640px) {
    .accx-page {
        padding: 20px;
    }
    .accx-title {
        font-size: 24px;
    }
    .accx-fields {
        grid-template-columns: 1fr;
    }
}

