/* login.css - 登录页专用样式（双栏 + 顶部导航） */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

body.login-body {
    /* ★ 整体缩放到 90%，视觉效果等同于浏览器缩放 90% */
    zoom: 0.9;
    width: 111.11vw;     /* 1 / 0.9 ≈ 1.1111 */
    height: 111.11vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, sans-serif;
    color: #1e293b;
    background: linear-gradient(135deg, #eef4fb 0%, #dfe9f5 50%, #e8e3f5 100%);
}

/* ===================== 顶部导航 ===================== */
.app-topbar {
    flex-shrink: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    z-index: 100;
    position: relative;
}

.topbar-inner {
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.5px;
}

.topbar-nav {
    flex: 1;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.topbar-nav a {
    color: #475569;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.topbar-nav a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}

.topbar-actions {
    flex-shrink: 0;
}

.btn-trial {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 9px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-trial:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* ===================== 主区域 ===================== */
.main-wrapper {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

/* 左侧宣传区 */
.promo-panel {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 48px 40px 64px;
    scroll-behavior: smooth;
}

.promo-panel::-webkit-scrollbar {
    width: 6px;
}
.promo-panel::-webkit-scrollbar-track {
    background: transparent;
}
.promo-panel::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.2);
    border-radius: 3px;
}
.promo-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.35);
}

/* 品牌介绍 */
.hero-section {
    margin-bottom: 40px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-title .text-primary {
    color: #2563eb;
}

.hero-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
    margin: 0;
    max-width: 780px;
}

/* 数据指标条 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.stat-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.04);
    transition: all 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.18);
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}

.stat-unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 6px;
}

/* 使用步骤 */
.steps-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.section-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0 0 24px 0;
}

.steps-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.04);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.step-info {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

.step-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.step-arrow {
    color: #cbd5e1;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* 功能分组 */
.feature-section {
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature-card {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.04);
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.18);
}

/* 高亮卡片（私有化模块） */
.feature-card-highlight {
    background: linear-gradient(135deg, #faf5ff 0%, #f0f4ff 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-card-highlight:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(29, 78, 216, 0.06));
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.feature-icon-highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.08));
    color: #8b5cf6;
}

.feature-body {
    flex: 1;
    min-width: 0;
}

.feature-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.feature-body p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.badge-new {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    font-weight: 500;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

/* 版本对比 */
.compare-section {
    margin-bottom: 24px;
}

.compare-table-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.compare-table thead th {
    background: #f8fafc;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.85rem;
}

.compare-table thead .col-trial,
.compare-table thead .col-full {
    text-align: center;
    width: 120px;
}

.compare-table thead .col-full {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.04);
}

.compare-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:hover td {
    background: #f8fafc;
}

.compare-table tbody .col-trial,
.compare-table tbody .col-full {
    text-align: center;
}

.compare-table tbody .col-full {
    background: rgba(37, 99, 235, 0.02);
}

.compare-table i {
    font-size: 1rem;
}

.bottom-spacer {
    height: 20px;
}

/* ===================== 右侧登录卡片（固定 + 走马灯边框） ===================== */
.login-panel {
    flex: 0 0 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    flex-shrink: 0;
}

/* 走马灯容器 */
.login-card-wrap {
    position: relative;
    width: 100%;
    max-width: 404px;
    padding: 2px;                     /* 光晕露出宽度 */
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.18),
                0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 走马灯旋转光晕（蓝紫渐变） */
.login-card-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
        #2563eb, #60a5fa, #a78bfa, #818cf8, #2563eb);
    animation: loginCardRotate 4s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes loginCardRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 内层白卡 */
.login-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
}

.login-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 6px 0;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    margin: 0 0 28px 0;
}

.login-card .form-label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 6px;
}

.login-card .form-control {
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.login-card .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
    background: #fff;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group .form-control {
    flex: 1;
}

.btn-refresh {
    border-radius: 10px;
    padding: 0 14px;
    border-color: #e2e8f0;
    color: #64748b;
    background: #f8fafc;
}

.btn-refresh:hover {
    background: #eef4fb;
    border-color: #2563eb;
    color: #2563eb;
}

.btn-refresh .fa-sync-alt {
    transition: transform 0.3s ease;
}

.btn-refresh:active .fa-sync-alt {
    transform: rotate(180deg);
}

.captcha-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2563eb;
    background: #eef4fb;
    padding: 8px 14px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
    cursor: pointer;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.register-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.error-message {
    border-radius: 10px;
    font-size: 0.82rem;
    padding: 8px 14px;
}

.browser-tip {
    margin-top: 20px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.browser-tip a {
    color: #2563eb;
    text-decoration: none;
}

.browser-tip a:hover {
    text-decoration: underline;
}

/* ===================== 底部备案 ===================== */
.app-footer {
    flex-shrink: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(37, 99, 235, 0.06);
    font-size: 0.78rem;
}

.app-footer a {
    color: #94a3b8;
    text-decoration: none;
}

.app-footer a:hover {
    color: #2563eb;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1200px) {
    .promo-panel {
        padding: 32px 32px 32px 40px;
    }
    .login-panel {
        flex: 0 0 400px;
        padding: 20px;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    html, body {
        height: auto;
        overflow: auto;
    }
    .login-body {
        height: auto;
        min-height: 100vh;
    }
    .main-wrapper {
        flex-direction: column;
        overflow: visible;
    }
    .promo-panel {
        overflow: visible;
        padding: 24px;
    }
    .login-panel {
        flex: none;
        width: 100%;
        padding: 24px;
    }
    .login-card-wrap {
        max-width: 480px;
        margin: 0 auto;
    }
    .topbar-nav {
        display: none;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .steps-row {
        flex-direction: column;
        gap: 12px;
    }
    .step-arrow {
        transform: rotate(90deg);
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ==================== 移动端适配 ==================== */
@media (max-width: 992px) {
    /* ★ 取消缩放，回到普通流式布局 */
    html, body {
        height: auto;
        overflow: auto;
    }
    body.login-body {
        zoom: 1;
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        display: block;
    }

    /* 主区域：改为纵向排列 */
    .main-wrapper {
        flex-direction: column;
        overflow: visible;
    }

    /* 登录卡片置顶（用户体验：进入就能操作） */
    .login-panel {
        order: 1;
        flex: none;
        width: 100%;
        padding: 20px 16px;
    }
    .promo-panel {
        order: 2;
        overflow: visible;
        padding: 20px 16px 40px;
    }

    /* 登录卡片 */
    .login-card-wrap {
        max-width: 480px;
        margin: 0 auto;
    }
    .login-card {
        padding: 28px 22px;
    }
    .login-title {
        font-size: 1.5rem;
    }
    .login-subtitle {
        font-size: 0.82rem;
        margin-bottom: 22px;
    }
    .login-card .form-control {
        padding: 12px 16px;   /* 触摸友好 */
        font-size: 1rem;
    }
    .btn-login {
        padding: 14px;
        font-size: 1.05rem;
    }
    .btn-refresh {
        padding: 0 16px;
    }

    /* 顶部导航：隐藏锚点，只保留品牌 + 试用按钮 */
    .topbar-inner {
        padding: 0 16px;
        gap: 10px;
    }
    .topbar-nav {
        display: none;
    }
    .brand-logo {
        width: 34px;
        height: 34px;
    }
    .brand-text h1 {
        font-size: 1rem;
    }
    .brand-text span {
        display: none;
    }
    .btn-trial {
        padding: 8px 14px;
        font-size: 0.82rem;
        border-radius: 20px;
    }

    /* 宣传区 */
    .hero-section {
        margin-bottom: 28px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* 数据指标：两列 */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 28px;
    }
    .stat-item {
        padding: 14px 10px;
    }
    .stat-num {
        font-size: 1.5rem;
    }
    .stat-unit {
        font-size: 0.75rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }

    /* 步骤：纵向 + 隐藏箭头 */
    .steps-section {
        margin-bottom: 28px;
    }
    .steps-row {
        flex-direction: column;
        gap: 10px;
    }
    .step-arrow {
        display: none;
    }
    .step-item {
        padding: 12px 14px;
    }

    /* 功能卡片：单列 */
    .feature-section {
        margin-bottom: 28px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .feature-card {
        padding: 14px 16px;
    }
    .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .feature-body h4 {
        font-size: 0.92rem;
    }
    .feature-body p {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.15rem;
    }
    .section-subtitle {
        font-size: 0.82rem;
        margin-bottom: 18px;
    }

    /* 对比表：横向可滚动 */
    .compare-section {
        margin-bottom: 20px;
    }
    .compare-table-wrap {
        overflow-x: auto;
    }
    .compare-table {
        min-width: 500px;
        font-size: 0.82rem;
    }
    .compare-table thead th,
    .compare-table tbody td {
        padding: 10px 12px;
    }

    /* 底部 */
    .app-footer {
        height: 36px;
        font-size: 0.72rem;
    }
}

/* 超小屏（≤480px）进一步压缩 */
@media (max-width: 480px) {
    .login-card {
        padding: 24px 18px;
    }
    .login-title {
        font-size: 1.35rem;
    }
    .hero-title {
        font-size: 1.35rem;
    }
    .stats-row {
        gap: 8px;
    }
    .stat-num {
        font-size: 1.3rem;
    }
}
.contact-link {
    color: #6c757d;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}