/* ==========================================================================
   1. 基础全局样式与重置
   ========================================================================== */
body {
    background: #000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    overflow-x: hidden;
}
.container {
    max-width: 100%;
    padding: 12px 40px 40px;
    background: transparent;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}
.cyber-modal-overlay *,
.cyber-modal-overlay *::before,
.cyber-modal-overlay *::after {
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. 头部（保持不变）
   ========================================================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
    z-index: 100;
    height: 160px;
}
.header-left {
    display: flex;
    align-items: center;
    min-width: max-content;
    transform: translate(24px, 12px);
}
h1 {
    font-size: 56px;
    margin: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #0070f3, #00a6f4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
    font-weight: 300 !important;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 166, 244, 0.2);
}
h1 img {
    height: 220px;
    width: 220px;
    object-fit: contain;
    border-radius: 50%;
    margin-right: 22px;
}

/* ==========================================================================
   3. 导航（保持不变）
   ========================================================================== */
.nav-menu {
    display: flex;
    gap: 40px;
    margin-top: 15px;
    flex: 1;
    justify-content: center;
    margin-left: -50px;
}
.nav-item {
    position: relative;
    cursor: pointer;
    padding: 25px 0;
    font-size: 18px;          /* 原 16px */
    font-weight: 500;
    color: #cbd5e1;
    transition: color 0.2s;
}
.nav-item:hover { color: #fff; }
.mega-dropdown {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    background: rgba(13, 13, 20, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}
.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-intro {
    width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 24px;
}
.dropdown-intro h3 {
    margin: 0 0 12px 0;
    font-size: 26px;          /* 原 22px */
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.dropdown-intro p {
    margin: 0;
    font-size: 18px; !important;         /* 原 13px */
    color: #8896a7;
    line-height: 1.6;
    text-align: justify;
}
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, max-content));
    gap: 16px;
}
.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}
.dropdown-link .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 166, 244, 0.1);
    color: #00a6f4;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.dropdown-link:hover .icon-box {
    background: #00a6f4;
    color: #fff;
}
.dropdown-link .text-box {
    display: flex;
    flex-direction: column;
}
.dropdown-link .title {
    font-size: 18px;          /* 原 15px */
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.dropdown-link .desc {
    font-size: 16px;          /* 原 12px */
    color: #8896a7;
    margin-top: 4px;
    white-space: nowrap;
}
.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(2, 340px);
    gap: 20px 24px;
}
.disclaimer-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.disclaimer-item h4 {
    margin: 0;
    font-size: 18px;          /* 原 14px */
    color: #00a6f4;
    font-weight: 600;
}
.disclaimer-item p {
    margin: 0;
    font-size: 16px;          /* 原 12px */
    color: #cbd5e1;
    line-height: 1.6;
    text-align: justify;
}

/* ==========================================================================
   4. 右侧交互区（保持不变）
   ========================================================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 45px;
    height: 100%;
    margin-top: 15px;
    min-width: max-content;
}
.nav-stats {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}
.nav-stats:hover .label { color: #ffffff; }
.nav-stats .label {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
    display: block;
    transition: color 0.3s;
    white-space: nowrap;
}
.counter-runner {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 56px !important;
    line-height: 56px !important;
    overflow: hidden !important;
    font-size: 56px !important;
    font-weight: normal !important;
    color: #fff !important;
    min-width: 70px !important;
    transition: color 0.3s;
}
.nav-stats:hover .counter-runner { color: #00a6f4; }
.counter-digit-slot {
    height: 56px !important;
    line-height: 56px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 2.5s cubic-bezier(0.1, 1, 0.1, 1) !important;
}
.counter-digit-slot span {
    display: block !important;
    height: 56px !important;
    line-height: 56px !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 0 2px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.lang-switch {
    position: relative;
    display: inline-block;
}
.lang-toggle-btn {
    background: transparent;
    border: none;
    font-size: 40px;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, color 0.2s;
    line-height: 1;
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(20, 20, 40, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 150px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}
.lang-switch:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown li {
    padding: 10px 20px;
    margin: 2px 6px;
    font-size: 14px;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.lang-dropdown li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.lang-dropdown li.active {
    background: #0070f3;
    color: white;
    font-weight: 600;
}

/* ==========================================================================
   5. 主 Banner（保持不变）
   ========================================================================== */
.placeholder-message {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    padding: 0 20px;
}
.hero-content {
    max-width: 1000px;
    animation: fadeInHero 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-title {
    display: block;
    font-size: 42px;
    margin: 0 0 28px 0;
    line-height: 1.4;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 400 !important;
    letter-spacing: 2px;
}
.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 850px;
    margin: 0 auto;
    font-weight: 300 !important;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   6. 响应式（1024px 以下）
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .container { padding: 16px 20px; }
    .header {
        height: auto;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
        align-items: center;
        text-align: center;
    }
    h1 { font-size: 32px; justify-content: center; }
    h1 img { height: 70px; width: 70px; margin-right: 8px; }
    .nav-menu { margin-left: 0; width: 100%; gap: 24px; justify-content: center; flex-wrap: wrap; }
    .nav-item { padding: 10px 0; font-size: 15px; }
    .counter-runner {
        height: 38px !important;
        font-size: 38px !important;
        min-width: 50px !important;
        line-height: 38px !important;
    }
    .counter-digit-slot {
        height: 38px !important;
        line-height: 38px !important;
    }
    .counter-digit-slot span {
        height: 38px !important;
        line-height: 38px !important;
        margin: 0 !important;
    }
    .mega-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100vw;
        max-height: 75vh;
        overflow-y: auto;
        box-sizing: border-box;
        border-radius: 20px 20px 0 0;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .nav-item:hover .mega-dropdown { transform: none; }
    .dropdown-intro {
        width: 100%;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 12px;
    }
    .dropdown-grid { grid-template-columns: 1fr; gap: 10px; }
    .dropdown-link { padding: 10px; }
    .dropdown-link .title,
    .dropdown-link .desc { white-space: normal; }
    .disclaimer-grid { grid-template-columns: 1fr; gap: 16px; }
    .header-right { width: 100%; justify-content: center; gap: 30px; margin-top: 10px; }
    .lang-toggle-btn { font-size: 30px; }
}

/* ==========================================================================
   7. 骨架屏（保持不变）
   ========================================================================== */
.skeleton-line {
    display: block;
    width: 100%;
    height: 18px;
    background: linear-gradient(90deg, #0d0d14 25%, #161b26 50%, #0d0d14 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: hackPulse 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 0 auto;
}
.skeleton-title {
    max-width: 580px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(90deg, #07070c 25%, #111a2e 50%, #07070c 75%);
    background-size: 200% 100%;
}
@keyframes hackPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.hero-title:not(:empty):not(:has(span)),
.hero-desc:not(:empty):not(:has(span)) {
    animation: textDecodeFade 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes textDecodeFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

html[data-i18n-ready] [data-i18n],
.i18n-ready [data-i18n] {
    opacity: 1;
}

/* ==========================================================================
   8. 按钮（保持不变）
   ========================================================================== */
.hero-action { margin-top: 36px; display: flex; justify-content: center; }
.btn-cyber-red {
    display: inline-block;
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 500;
    color: #ff4a5a;
    text-decoration: none;
    letter-spacing: 2px;
    background: rgba(255, 74, 90, 0.04);
    border: 1px solid rgba(255, 74, 90, 0.35);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 74, 90, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.btn-cyber-red:hover {
    color: #ffffff !important;
    background: #ff4a5a;
    border-color: #ff4a5a;
    box-shadow: 0 0 25px rgba(255, 74, 90, 0.5), 0 0 50px rgba(255, 74, 90, 0.2);
    transform: translateY(-2px);
}
.btn-cyber-red:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(255, 74, 90, 0.3);
}

/* ==========================================================================
   9. 模态框 - 完美版（右侧不滚动，仅文本框内部滚动）
   ========================================================================== */
.cyber-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cyber-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cyber-modal-wrapper {
    position: relative;
    width: 95%;
    max-width: 1180px;
    height: 85vh;
    max-height: 95vh;
    min-height: 520px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.96) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cyber-modal-overlay.is-open .cyber-modal-wrapper {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.modal-close-btn:hover { color: #ff4a5a; }

/* 左侧 */
.modal-left-box {
    flex: 0 0 32%;
    background: #050508;
    padding: 30px 20px 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    overflow: visible;          /* 允许内容溢出 */
}
.modal-left-box .brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-left-box .brand-header img {
    width: 100px;          /* 原 44px */
    height: 100px;         /* 原 44px */
    object-fit: contain;
}
.modal-left-box .brand-header span {
    font-size: 40px;      /* 原 26px */
    font-weight: normal;
    color: #ffffff;
    white-space: nowrap;
}
.modal-left-box .matrix-title {
    margin-top: 20px;     /* 适当增加顶部间距 */
    font-size: 40px;      /* 原 22px */
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.modal-left-box .highlight-red {
    font-size: 48px;      /* 确保红色部分同步变大 */
    color: #ff4a5a;
    display: block;
    text-shadow: 0 0 20px rgba(255, 74, 90, 0.4);
}
.modal-left-box .binary-matrix-stream.aligned-right {
    margin-top: auto;
    margin-bottom: 4px;
    font-size: 14px;               /* 增大字号 */
    line-height: 1.9;
    text-align: center;
    overflow: visible;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,1) 100%);
}
.modal-left-box .binary-matrix-stream.aligned-right .matrix-row {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;          /* 增大数字间隔，更协调 */
    overflow: visible !important;

}
.modal-left-box .binary-matrix-stream.aligned-right .matrix-row span {
    flex-shrink: 0 !important;            /* 每个二进制单元格不压缩 */
    white-space: nowrap !important;
    display: inline-block !important;
    letter-spacing: 0.08em;        /* 微调字符间距，让8位数字更紧凑 */
}

/* ================= 右侧 - 优化布局，修复间距与对齐 ================= */
.modal-right-box {
    position: relative;   /* 新增 */
    flex: 1;
    background: #ffffff;
    padding: 12px 40px 24px 40px; /* 稍微调整内外边距，原 24px 40px 24px 40px */ 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 改为 flex-start 让内容从顶部开始，不再强制居中 */
    overflow: hidden;
    color: #1e293b;
}

/* 通过增加顶部 margin-top 将表单整体向上推 */
.modal-right-box form {
    margin-top: -10px; 
}

/* 增大表单项间距 */
.modal-right-box .form-group {
    margin-bottom: 18px !important; /* 统一加大间距 */
}

/* 按钮容器：强制右下角对齐 */
.modal-right-box .form-submit-row {
    display: flex; !important;
    justify-content: flex-end; !important;  /* 水平靠右 */
    margin-top: 0 !important;      /* 不再自动推底 */
    padding-top: 0 !important;     /* 去掉多余上内边距 */
}

/* 修正 label 的一些间距 */
.modal-right-box .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

/* 输入框、选择框、自定义通道 */
.modal-right-box .form-group input,
.modal-right-box .form-group select,
.modal-right-box .custom-single-channel,
.modal-right-box .custom-single-channel input {
    height: 36px;
    line-height: 34px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.modal-right-box .form-group input:focus,
.modal-right-box .form-group select:focus,
.modal-right-box .custom-single-channel:focus-within {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}
.modal-right-box .custom-single-channel {
    display: flex;
    align-items: center;
    padding: 0;
    height: 36px;
    background: #ffffff;
}
.modal-right-box .whatsapp-badge {
    background: #f1f5f9;
    color: #128c7e;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #e2e8f0;
}
.modal-right-box .custom-single-channel input {
    border: none !important;
    height: 100%;
    padding: 0 12px;
    flex: 1;
}
.modal-right-box .form-group textarea {
    height: 100px;
    min-height: 100px;
    max-height: 100px;
    padding: 6px 12px;
    font-size: 14px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.modal-right-box .form-footer-notice {
    margin: 10px 0 4px 0 !important;   /* 上间距10px，下间距4px */
    margin-bottom: 4px !important; /* 保持与按钮的微小间隙 */
    font-size: 12px;
    color: #64748b;
}

/* ★★★ 按钮向右下角靠拢 ★★★ */
.modal-right-box .form-submit-row {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 6px !important;   /* 按钮紧贴上方内容 */
    padding-top: 10px !important;
}


.modal-right-box .btn-submit-quote {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 0 28px;
    height: 38px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.modal-right-box .btn-submit-quote:hover { background: #1e293b; }

/* 双列并排 (form-grid-row) */
.modal-right-box .form-grid-row {
    display: flex;
    gap: 16px;
    width: 100%;
}
.modal-right-box .form-grid-row .form-group {
    flex: 1;
}
.modal-right-box .form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}
.modal-right-box .form-row .form-group {
    flex: 1;
}

/* 错误状态 */
.form-group.has-error input,
.form-group.has-error .custom-single-channel {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}
.form-group.has-error label { color: #b91c1c; }
.error-msg {
    color: #ef4444;
    font-size: 11px;
    margin-top: 2px;
    display: none;
}
.form-group.has-error .error-msg { display: block; }

/* ==========================================================================
   10. 移动端 (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .cyber-modal-wrapper {
        flex-direction: column;
        height: auto;
        max-height: 96vh;
        min-height: auto;
        width: 92%;
    }
    .modal-left-box {
        flex: 0 0 auto;
        width: 100%;
        padding: 16px 20px;
        min-height: 100px;
        justify-content: flex-start;
    }
    .modal-left-box .binary-matrix-stream.aligned-right {
        display: none;
    }
    .modal-right-box {
        flex: 1;
        width: 100%;
        padding: 16px 20px;
        overflow-y: auto;
        justify-content: flex-start;
    }
    .modal-right-box .form-grid-row,
    .modal-right-box .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================================
   最终强制修复（间距 + 按钮位置 + 表单上移）
   ============================================================ */
.modal-right-box .form-group {
    margin-bottom: 18px !important;
}
.modal-right-box .form-submit-row {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 6px !important;   /* 改为固定小值，紧贴上方内容 */
    padding-top: 10px !important;
}
.modal-right-box form {
    margin-top: -10px !important;
}

/* 预先隐藏这些动态组件，防止它们在初始化前“抢跑” */
.cyber-modal-overlay, 
.binary-matrix-stream {
    visibility: hidden;
}

/* 一旦页面就绪，JS 会通过类名或内联样式将它们设为 visible */
.is-ready .cyber-modal-overlay,
.is-ready .binary-matrix-stream {
    visibility: visible;
}

/* ==========================================================================
   11. 新增：产品功能对比矩阵表格样式
   ========================================================================== */
/* 让右侧内容区内部允许垂直滚动，确保表格和表单能共存 */
.modal-right-box .modal-form-scroll-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

/* 滚动条美化 */
.modal-right-box .modal-form-scroll-body::-webkit-scrollbar {
    width: 6px;
}
.modal-right-box .modal-form-scroll-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.modal-right-box .modal-form-scroll-body::-webkit-scrollbar-track {
    background: transparent;
}

/* 表格外部容器：防止移动端撑开 */
.product-matrix-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 14px 0 24px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

/* 表格核心样式 */
.product-matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    color: #334155;
    min-width: 600px; /* 确保在窄屏下表格不挤压变形 */
}

.product-matrix-table th,
.product-matrix-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* 表头样式 */
.product-matrix-table thead th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.product-matrix-table thead th:first-child {
    border-top-left-radius: 7px;
}
.product-matrix-table thead th:last-child {
    border-top-right-radius: 7px;
}

/* 隔行变色 */
.product-matrix-table tbody tr:nth-child(even) {
    background: #ffffff;
}
.product-matrix-table tbody tr:hover {
    background: #f1f5f9;
}

/* 功能名列加粗 */
.product-matrix-table .feature-name {
    font-weight: 500;
    color: #1e293b;
}

/* 状态单元格（居中） */
.product-matrix-table td:not(.feature-name) {
    text-align: center;
    font-weight: 600;
}

/* 完美适配打勾与打叉的颜色 */
.product-matrix-table .status-yes {
    color: #10b981; /* 极客绿 */
    font-size: 14px;
}
.product-matrix-table .status-yes span {
    font-size: 11px;
    color: #64748b;
    font-weight: normal;
    margin-left: 2px;
}
.product-matrix-table .status-no {
    color: #ef4444; /* 警示红 */
    font-size: 14px;
    opacity: 0.4;
}

/* ============================================================
   🟢 针对一页无滚动条展示 & 整个对比表格上移的功能优化
   ============================================================ */

/* 1. 解除右侧区域的局部滚动，让其完全展开平铺 */
.modal-right-box {
    overflow-y: visible !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.modal-form-scroll-body {
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
    padding-right: 0 !important; /* 隐藏以前为了滚动条预留的右侧间距 */
}

/* 2. 让整个大弹窗的包装盒自适应内部高度，杜绝内部出现独立滚动条 */
.cyber-modal-wrapper {
    height: auto !important;
    max-height: 90vh !important; /* 限制最高不超过屏幕 90%，防止溢出屏幕 */
    overflow-y: auto !important;  /* 如果屏幕实在太矮，只让最外层统一出一个平滑滚动条，内部表格和表单决不割裂 */
}

/* 3. 产品功能对比表格向上移动，同时微调内边距让其排版更紧凑 */
.product-matrix-table-wrapper {
    margin-top: -6px !important;    /* 原 -4px */
    margin-bottom: 24px !important; /* 增大下方外边距，自然地把下方表单资料栏目往下移动推开 */
}

.product-matrix-table th, 
.product-matrix-table td {
    padding: 8px 10px !important;   /* 稍微压缩单元格上下高度，使得在一页内完全平铺展开 */
    font-size: 13px !important;
}

/* 4. 微调下方输入框之间的行间距，确保紧凑且一目了然 */
.modal-right-box .form-group {
    margin-bottom: 12px !important;
}

/* ==========================================================================
   追加：全局动画与表单底部对齐优化管理
   ========================================================================== */

/* 原 HTML 里的 body 渐入配置移入此处 */

/* “借助专业的 Web3...” 副标题往上移一点 */
.modal-right-box .modal-subtitle {
    margin-top: -8px !important;   /* 原 -4px，再上移一点 */
    margin-bottom: 16px !important; /* 控制与表格的间距 */
}

/* 底部包裹层：横向弹性布局 */
.form-actions-wrapper {
    display: flex !important;
    align-items: center !important;       /* 垂直居中对齐 */
    justify-content: space-between !important; /* 左右两端分布 */
    gap: 20px !important;                 /* 防止两部分挨得太近 */
    margin-top: 8px !important;          /* 增加与上方表单的间距 */
}

/* 左侧提示文字基础微调 */
.form-actions-wrapper .form-footer-notice {
    margin: 0 !important;  
    padding: 0 !important;               /* 清除多余的外边距干扰 */
    line-height: 1.4 !important;         /* 与按钮高度协调 */
    flex: 1 !important;                   /* 自动铺满左边剩余空间 */
}

/* 右侧提交按钮行微调 */
.form-actions-wrapper .form-submit-row {
    margin: 0 !important;               /* 移除以往包裹层的强制 margin */
    display: flex !important;
    padding: 0 !important;
    align-items: center !important;          /* 防止按钮被挤压变形 */
}

/* 移动端媒体查询：在小屏幕上自动变成上下两排 */
@media (max-width: 768px) {
    .form-actions-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .form-actions-wrapper .form-submit-row {
        width: 100% !important;
    }
    .form-actions-wrapper .btn-submit-quote {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* 输入框错误状态抖动动画 */
@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.form-group.has-error input,
.form-group.has-error .custom-single-channel {
    animation: shake-error 0.4s ease-in-out;
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}
