/* ====================
   ATS Diagnosis Page
==================== */

.ats-page {
    background:
        radial-gradient(circle at 10% -10%, rgba(78, 205, 196, 0.12), transparent 42%),
        radial-gradient(circle at 90% 0%, rgba(255, 107, 53, 0.14), transparent 38%),
        linear-gradient(180deg, #fffdf9 0%, #ffffff 42%, #f7fbff 100%);
}

.ats-page.has-floating-upgrade {
    padding-bottom: 110px;
}

.ats-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: var(--es-space-2xl);
}

.ats-hero-inner {
    max-width: 860px;
}

.ats-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    margin-bottom: var(--es-space-md);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--es-radius-full);
    color: var(--es-secondary);
    background: rgba(78, 205, 196, 0.16);
}

.ats-title {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.15;
    color: var(--es-gray-900);
    margin-bottom: var(--es-space-md);
}

.ats-subtitle {
    max-width: 760px;
    font-size: 18px;
    color: var(--es-gray-600);
}

.ats-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--es-space-md);
    margin-top: var(--es-space-lg);
}

.ats-hero-link {
    font-weight: 600;
    color: var(--es-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 26, 46, 0.2);
    padding-bottom: 1px;
    transition: color var(--es-transition-fast), border-color var(--es-transition-fast);
}

.ats-hero-link:hover {
    color: var(--es-primary);
    border-color: rgba(255, 107, 53, 0.55);
}

.ats-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: var(--es-space-md) 0 0;
    padding: 0;
    list-style: none;
}

.ats-hero-meta li {
    padding: 6px 12px;
    border-radius: var(--es-radius-full);
    font-size: 13px;
    color: var(--es-gray-700);
    background: rgba(26, 26, 46, 0.05);
    border: 1px solid rgba(26, 26, 46, 0.08);
}

.ats-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
    gap: var(--es-space-xl);
    align-items: start;
    margin-bottom: var(--es-space-xl);
}

.ats-form-card,
.ats-tips-card,
.ats-member-card,
.ats-result {
    border: 1px solid rgba(26, 26, 46, 0.06);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.06);
}

.ats-side-stack {
    display: flex;
    flex-direction: column;
    gap: var(--es-space-md);
    position: sticky;
    top: 92px;
}

.ats-card-title {
    margin-bottom: var(--es-space-lg);
    font-size: 24px;
}

.ats-field {
    margin-bottom: var(--es-space-lg);
}

.ats-field label {
    display: block;
    margin-bottom: var(--es-space-sm);
    font-weight: 600;
    color: var(--es-gray-800);
}

.ats-jd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: var(--es-space-sm);
}

.ats-jd-fetch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(26, 26, 46, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: var(--es-gray-800);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--es-transition-fast);
}

.ats-jd-fetch-btn:hover {
    border-color: rgba(255, 107, 53, 0.5);
    color: var(--es-primary);
}

.ats-jd-fetch-btn.is-ready {
    border-color: rgba(16, 185, 129, 0.45);
    color: #065f46;
    background: rgba(16, 185, 129, 0.08);
}

.ats-jd-fetch-btn.is-install {
    border-color: rgba(245, 158, 11, 0.5);
    color: #92400e;
    background: rgba(245, 158, 11, 0.12);
}

.ats-jd-fetch-btn.is-loading {
    opacity: 0.75;
    cursor: progress;
}

.ats-jd-status {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.ats-jd-status.is-checking {
    color: var(--es-gray-600);
}

.ats-jd-status.is-success {
    color: #065f46;
}

.ats-jd-status.is-warning {
    color: #92400e;
}

.ats-jd-helper {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(26, 26, 46, 0.12);
    background: rgba(26, 26, 46, 0.03);
}

.ats-jd-helper.is-connected {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
}

.ats-jd-helper-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--es-gray-700);
    margin-bottom: 6px;
}

.ats-jd-helper ol {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: var(--es-gray-600);
}

.ats-jd-helper-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ats-copy-url-btn {
    border: 1px solid rgba(26, 26, 46, 0.14);
    background: #fff;
    color: var(--es-gray-800);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ats-copy-url-btn:hover {
    border-color: rgba(255, 107, 53, 0.5);
    color: var(--es-primary);
}

.ats-self-check-btn {
    border: 1px solid rgba(6, 95, 70, 0.34);
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ats-self-check-btn:hover {
    border-color: rgba(6, 95, 70, 0.5);
    background: rgba(16, 185, 129, 0.16);
}

.ats-self-check-btn.is-loading {
    opacity: 0.75;
    cursor: progress;
}

.ats-copy-url-feedback {
    font-size: 12px;
    font-weight: 600;
}

.ats-copy-url-feedback.is-success {
    color: #065f46;
}

.ats-copy-url-feedback.is-warning {
    color: #92400e;
}

.ats-jd-helper.is-connected .ats-jd-helper-install {
    display: none;
}

.ats-self-check-report {
    margin-top: 10px;
    border: 1px solid rgba(26, 26, 46, 0.12);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.ats-self-check-report .title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ats-self-check-report ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.ats-self-check-report li {
    display: grid;
    grid-template-columns: 44px 110px 1fr;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.ats-self-check-report li span {
    font-weight: 800;
}

.ats-self-check-report li.ok span {
    color: #065f46;
}

.ats-self-check-report li.fail span {
    color: #b91c1c;
}

.ats-self-check-report li strong {
    color: var(--es-gray-800);
    font-weight: 700;
}

.ats-self-check-report li em {
    color: var(--es-gray-600);
    font-style: normal;
}

.ats-self-check-report.is-success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

.ats-self-check-report.is-warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.09);
}

.ats-jd-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--es-gray-600);
}

.ats-jd-plugin-link {
    margin-left: 6px;
    color: var(--es-primary);
    font-weight: 700;
    text-decoration: none;
}

.ats-jd-plugin-link:hover {
    text-decoration: underline;
}

.ats-ext-debug {
    margin-top: 12px;
    border: 1px dashed rgba(26, 26, 46, 0.2);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.03);
    padding: 10px 12px;
}

.ats-ext-debug-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--es-gray-700);
    margin-bottom: 8px;
}

.ats-ext-debug-grid {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 4px 10px;
    font-size: 12px;
}

.ats-ext-debug-grid span {
    color: var(--es-gray-600);
}

.ats-ext-debug-grid strong {
    color: var(--es-gray-900);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    word-break: break-word;
}

.ats-input,
.ats-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--es-gray-300);
    border-radius: var(--es-radius-lg);
    background: #fff;
    font-size: 15px;
    transition: border-color var(--es-transition-fast), box-shadow var(--es-transition-fast);
}

.ats-file-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px dashed var(--es-gray-300);
    border-radius: var(--es-radius-lg);
    background: #fff;
    transition: border-color var(--es-transition-fast), box-shadow var(--es-transition-fast);
}

.ats-file-input:focus {
    outline: none;
    border-color: var(--es-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.ats-upload-help,
.ats-file-meta {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--es-gray-600);
}

.ats-file-meta {
    color: var(--es-gray-700);
}

.ats-upload-zone {
    border: 1px dashed rgba(255, 107, 53, 0.35);
    border-radius: var(--es-radius-lg);
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.05) 0%, rgba(78, 205, 196, 0.06) 100%);
    padding: 18px;
    cursor: pointer;
    transition: border-color var(--es-transition-fast), transform var(--es-transition-fast), box-shadow var(--es-transition-fast);
}

.ats-upload-zone:hover {
    border-color: var(--es-primary);
    transform: translateY(-1px);
}

.ats-upload-zone:focus-visible {
    outline: none;
    border-color: var(--es-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
}

.ats-upload-zone.is-dragover {
    border-color: var(--es-secondary);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.16);
    background: linear-gradient(180deg, rgba(78, 205, 196, 0.1) 0%, rgba(255, 107, 53, 0.06) 100%);
}

.ats-upload-zone.is-has-file {
    border-style: solid;
    border-color: rgba(78, 205, 196, 0.6);
    background: rgba(78, 205, 196, 0.1);
}

.ats-upload-title {
    margin: 0;
    font-weight: 700;
    color: var(--es-gray-900);
}

.ats-upload-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--es-gray-600);
}

.ats-upload-progress {
    margin-top: 12px;
}

.ats-upload-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.1);
}

.ats-upload-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff6b35 0%, #4ecdc4 100%);
    transition: width 0.2s ease;
}

.ats-upload-progress-text {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--es-gray-700);
}

.ats-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.ats-input:focus,
.ats-textarea:focus {
    outline: none;
    border-color: var(--es-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

.ats-textarea.is-prefilled {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.ats-jd-prefill-notice {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.ats-jd-prefill-notice.is-success {
    color: #065f46;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.ats-jd-prefill-notice.is-warning {
    color: #92400e;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.ats-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--es-space-md);
}

.ats-loading {
    font-size: 14px;
    color: var(--es-gray-600);
}

.ats-error {
    margin-top: var(--es-space-md);
    color: #b42318;
    font-size: 14px;
}

.ats-tips-card h3 {
    margin-bottom: var(--es-space-md);
    font-size: 20px;
}

.ats-member-card h3 {
    margin-bottom: var(--es-space-sm);
    font-size: 18px;
}

.ats-member-current {
    margin: 0 0 var(--es-space-sm);
    font-size: 14px;
    color: var(--es-gray-700);
    padding: 8px 10px;
    border-radius: var(--es-radius-md);
    background: rgba(78, 205, 196, 0.12);
}

.ats-member-points {
    margin: 0;
    padding-left: 18px;
    color: var(--es-gray-700);
}

.ats-member-points li {
    margin-bottom: 8px;
    font-size: 14px;
}

.ats-member-link {
    display: inline-block;
    margin-top: var(--es-space-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--es-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.35);
}

.ats-member-link:hover {
    border-bottom-color: rgba(255, 107, 53, 0.7);
}

.ats-member-upgrade-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--es-space-sm);
    min-height: 38px;
    padding: 0 12px;
    border-radius: var(--es-radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--es-primary) 0%, #ff8e5f 100%);
}

.ats-member-upgrade-btn:hover {
    opacity: 0.92;
}

.ats-tips-list {
    margin: 0;
    padding-left: 20px;
    color: var(--es-gray-700);
}

.ats-tips-list li {
    margin-bottom: var(--es-space-sm);
}

.ats-result {
    padding: var(--es-space-xl);
}

.ats-result-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--es-space-md);
    margin-bottom: var(--es-space-lg);
}

.ats-result-source {
    font-size: 13px;
    color: var(--es-gray-500);
}

.ats-scores {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: var(--es-space-md);
    margin-bottom: var(--es-space-lg);
}

.ats-score-card {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: var(--es-radius-lg);
    padding: var(--es-space-md);
}

.ats-score-card span {
    display: block;
    font-size: 13px;
    color: var(--es-gray-600);
}

.ats-score-card strong {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    font-weight: 800;
    color: var(--es-secondary);
}

.ats-summary {
    margin-bottom: var(--es-space-lg);
    padding: var(--es-space-md);
    border-radius: var(--es-radius-lg);
    background: rgba(78, 205, 196, 0.1);
    color: var(--es-gray-800);
}

.ats-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--es-space-md);
}

.ats-result-block {
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: var(--es-radius-lg);
    padding: var(--es-space-md);
    background: #fff;
}

.ats-result-block h3 {
    margin-bottom: var(--es-space-sm);
    font-size: 17px;
}

.ats-result-block ul,
.ats-result-block ol {
    margin: 0;
    padding-left: 20px;
    color: var(--es-gray-700);
}

.ats-result-block li {
    margin-bottom: 6px;
}

.ats-keyword-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ats-keyword-list li {
    margin-bottom: 0;
    padding: 6px 10px;
    border-radius: var(--es-radius-full);
    background: rgba(255, 107, 53, 0.12);
    color: #923216;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .ats-grid {
        grid-template-columns: 1fr;
    }

    .ats-side-stack {
        position: static;
        top: auto;
    }

    .ats-scores {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .ats-title {
        font-size: 34px;
    }

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

    .ats-hero-actions {
        align-items: stretch;
    }

    .ats-hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .ats-hero-link {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        border: 1px solid rgba(26, 26, 46, 0.12);
        border-radius: var(--es-radius-lg);
        border-bottom-width: 1px;
    }

    .ats-form-card,
    .ats-tips-card,
    .ats-member-card,
    .ats-result {
        padding: var(--es-space-lg);
    }

    .ats-scores {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .ats-result-grid {
        grid-template-columns: 1fr;
    }

    .ats-page.has-floating-upgrade {
        padding-bottom: 130px;
    }
}

/* ========================================
   统计信任栏
======================================== */
.ats-stats-bar {
    background: linear-gradient(90deg, rgba(26,26,46,0.96) 0%, rgba(36,36,60,0.97) 100%);
    padding: 22px 0;
}

.ats-stats-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ats-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 44px;
}

.ats-stat strong {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.ats-stat strong span {
    font-size: 17px;
    font-weight: 600;
    margin-left: 2px;
    color: rgba(255,255,255,0.75);
}

.ats-stat > span:last-child {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 3px;
}

.ats-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ats-stats-list {
        gap: 8px 0;
    }
    .ats-stat {
        padding: 4px 22px;
    }
    .ats-stat-sep {
        display: none;
    }
}

/* ========================================
   通用节 kicker / header
======================================== */
.ats-section-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--es-primary);
    background: rgba(255,107,53,0.1);
    border-radius: var(--es-radius-full);
    padding: 4px 12px;
    margin-bottom: var(--es-space-sm);
}

.ats-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--es-space-xl);
}

.ats-section-header h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: var(--es-space-sm);
}

.ats-section-header p {
    color: var(--es-gray-600);
    font-size: 16px;
}

/* ========================================
   ATS 科普（什么是ATS）
======================================== */
.ats-explainer {
    background: #fafbff;
    border-top: 1px solid rgba(26,26,46,0.05);
    border-bottom: 1px solid rgba(26,26,46,0.05);
}

.ats-explainer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: var(--es-space-2xl);
    align-items: center;
}

.ats-explainer-text .ats-section-kicker {
    margin-bottom: var(--es-space-sm);
}

.ats-explainer-text h2 {
    font-size: clamp(22px, 2.8vw, 32px);
    margin-bottom: var(--es-space-md);
}

.ats-explainer-text p {
    color: var(--es-gray-700);
    line-height: 1.75;
    margin-bottom: var(--es-space-sm);
}

.ats-explainer-list {
    list-style: none;
    padding: 0;
    margin: var(--es-space-sm) 0 var(--es-space-md);
}

.ats-explainer-list li {
    padding: 8px 0 8px 24px;
    border-bottom: 1px solid rgba(26,26,46,0.06);
    color: var(--es-gray-700);
    position: relative;
    font-size: 15px;
}

.ats-explainer-list li::before {
    content: '›';
    position: absolute;
    left: 6px;
    color: var(--es-primary);
    font-weight: 700;
}

.ats-explainer-note {
    padding: 12px 16px;
    border-left: 3px solid var(--es-primary);
    background: rgba(255,107,53,0.06);
    border-radius: 0 var(--es-radius-md) var(--es-radius-md) 0;
    color: var(--es-gray-800) !important;
    font-size: 14px;
}

/* ATS 流程示意图 */
.ats-explainer-visual {
    display: flex;
    justify-content: center;
}

.ats-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 280px;
}

.ats-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 116px;
    height: 80px;
    border-radius: var(--es-radius-xl);
    background: #fff;
    border: 1.5px solid rgba(26,26,46,0.1);
    box-shadow: 0 4px 16px rgba(26,26,46,0.07);
    font-size: 13px;
    font-weight: 600;
    color: var(--es-gray-800);
    text-align: center;
}

.ats-flow-icon {
    font-size: 24px;
    line-height: 1;
}

.ats-flow-resume { border-color: rgba(78,205,196,0.4); }
.ats-flow-ats    { border-color: rgba(255,107,53,0.4); background: rgba(255,107,53,0.05); }
.ats-flow-hr     { border-color: rgba(78,205,196,0.4); background: rgba(78,205,196,0.07); }
.ats-flow-trash  { border-color: rgba(180,35,24,0.25); background: rgba(180,35,24,0.04); }

.ats-flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    color: var(--es-gray-500);
    font-size: 12px;
}

.ats-flow-arrow::before {
    content: '';
    display: block;
    width: 2px;
    height: 18px;
    background: linear-gradient(180deg, rgba(26,26,46,0.15) 0%, rgba(26,26,46,0.35) 100%);
    border-radius: 2px;
}

.ats-flow-arrow::after {
    content: '▼';
    font-size: 10px;
    color: rgba(26,26,46,0.35);
}

.ats-flow-fork {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--es-space-md);
    width: 100%;
    margin-top: 4px;
}

.ats-flow-fork-yes,
.ats-flow-fork-no {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ats-flow-fork-label {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--es-radius-full);
}

.ats-flow-pass {
    background: rgba(78,205,196,0.15);
    color: #1d9b93;
}

.ats-flow-fail {
    background: rgba(180,35,24,0.1);
    color: #b42318;
}

@media (max-width: 900px) {
    .ats-explainer-grid {
        grid-template-columns: 1fr;
    }
    .ats-explainer-visual {
        display: none;
    }
}

/* ========================================
   四维诊断卡片
======================================== */
.ats-dimensions {
    background: #fff;
}

.ats-dim-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--es-space-lg);
}

.ats-dim-card {
    border-radius: var(--es-radius-xl);
    border: 1px solid rgba(26,26,46,0.07);
    padding: var(--es-space-lg);
    background: #fafbff;
    transition: box-shadow var(--es-transition-fast), transform var(--es-transition-fast);
}

.ats-dim-card:hover {
    box-shadow: 0 8px 28px rgba(26,26,46,0.1);
    transform: translateY(-3px);
}

.ats-dim-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--es-radius-lg);
    margin-bottom: var(--es-space-md);
}

.ats-dim-card h3 {
    font-size: 17px;
    margin-bottom: var(--es-space-sm);
    color: var(--es-gray-900);
}

.ats-dim-card p {
    font-size: 14px;
    color: var(--es-gray-600);
    line-height: 1.65;
    margin-bottom: var(--es-space-sm);
}

.ats-dim-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ats-dim-checklist li {
    font-size: 13px;
    color: var(--es-gray-600);
    padding: 4px 0 4px 18px;
    position: relative;
}

.ats-dim-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--es-accent, #4ecdc4);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .ats-dim-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ats-dim-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   三步诊断
======================================== */
.ats-howto {
    background: linear-gradient(135deg, rgba(26,26,46,0.97) 0%, rgba(36,36,60,0.98) 100%);
}

.ats-howto .ats-section-kicker {
    color: var(--es-accent, #4ecdc4);
    background: rgba(78,205,196,0.15);
}

.ats-howto .ats-section-header h2 {
    color: #fff;
}

.ats-howto .ats-section-header p {
    color: rgba(255,255,255,0.6);
}

.ats-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--es-space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--es-space-md);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.ats-step {
    display: flex;
    align-items: flex-start;
    gap: var(--es-space-md);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--es-radius-xl);
    padding: var(--es-space-lg) var(--es-space-xl);
    transition: background var(--es-transition-fast);
}

.ats-step:hover {
    background: rgba(255,255,255,0.08);
}

.ats-step-num {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,107,53,0.35);
    font-variant-numeric: tabular-nums;
    min-width: 56px;
    flex-shrink: 0;
}

.ats-step-body h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: var(--es-space-xs);
}

.ats-step-body p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.ats-howto-cta {
    text-align: center;
    margin-top: var(--es-space-xl);
}

@media (max-width: 640px) {
    .ats-step {
        flex-direction: column;
        gap: var(--es-space-sm);
        padding: var(--es-space-md) var(--es-space-lg);
    }
    .ats-step-num {
        font-size: 32px;
    }
}

/* ========================================
   会员权益
======================================== */
.ats-membership {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-top: 1px solid rgba(26, 26, 46, 0.05);
    border-bottom: 1px solid rgba(26, 26, 46, 0.05);
}

.ats-membership .ats-section-header p {
    font-size: 15px;
    color: var(--es-gray-700);
}

.ats-membership .ats-section-header p strong {
    color: var(--es-secondary);
    font-weight: 700;
}

.ats-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--es-space-lg);
    margin-bottom: var(--es-space-xl);
}

@media (max-width: 1200px) {
    .ats-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ats-plan-grid {
        grid-template-columns: 1fr;
    }
}

.ats-plan-card {
    position: relative;
    border-radius: var(--es-radius-xl);
    border: 1px solid rgba(26, 26, 46, 0.08);
    background: #fff;
    box-shadow: 0 6px 22px rgba(26, 26, 46, 0.06);
    padding: var(--es-space-lg);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ats-plan-card.is-popular {
    border-color: rgba(255, 107, 53, 0.38);
    box-shadow: 0 14px 30px rgba(255, 107, 53, 0.16);
}

.ats-plan-card.is-current {
    outline: 2px solid rgba(78, 205, 196, 0.45);
    outline-offset: 2px;
}

/* 精英版卡片样式 */
.ats-plan-card.ats-plan-elite {
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: 0 14px 30px rgba(139, 92, 246, 0.16);
}

.ats-plan-card.ats-plan-elite .ats-plan-head h3 {
    color: #6b46c1;
}

/* 企业版卡片样式 */
.ats-plan-card.ats-plan-enterprise {
    border-color: rgba(14, 165, 233, 0.38);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.16);
}

.ats-plan-card.ats-plan-enterprise .ats-plan-head h3 {
    color: #0369a1;
}

.ats-plan-badge {
    position: absolute;
    right: 14px;
    top: -10px;
    padding: 4px 10px;
    border-radius: var(--es-radius-full);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8e5f 100%);
}

.ats-plan-head h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--es-gray-900);
}

.ats-plan-price {
    margin: 0;
    font-size: 14px;
    color: var(--es-gray-600);
}

.ats-plan-list {
    list-style: none;
    margin: var(--es-space-md) 0;
    padding: 0;
    flex: 1;
}

.ats-plan-list li {
    position: relative;
    padding: 7px 0 7px 20px;
    color: var(--es-gray-700);
    border-bottom: 1px dashed rgba(26, 26, 46, 0.07);
    font-size: 14px;
}

.ats-plan-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--es-accent, #4ecdc4);
    font-weight: 700;
}

.ats-plan-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    border-radius: var(--es-radius-lg);
    padding: 0 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--es-secondary);
    border: 1px solid rgba(26, 26, 46, 0.16);
    background: #fff;
    transition: transform var(--es-transition-fast), box-shadow var(--es-transition-fast), border-color var(--es-transition-fast);
}

.ats-plan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(26, 26, 46, 0.09);
    border-color: rgba(26, 26, 46, 0.28);
}

.ats-plan-btn-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--es-primary) 0%, #ff8e5f 100%);
}

.ats-plan-btn-primary:hover {
    border-color: transparent;
}

.ats-plan-current {
    display: inline-flex;
    align-items: center;
    margin-top: var(--es-space-sm);
    font-size: 12px;
    color: #1d9b93;
    background: rgba(78, 205, 196, 0.13);
    border-radius: var(--es-radius-full);
    padding: 3px 10px;
    font-weight: 700;
}

.ats-benefits-compare {
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: var(--es-radius-xl);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.06);
}

.ats-benefits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ats-benefits-table thead th {
    text-align: left;
    padding: 14px;
    background: #1f2332;
    color: #fff;
    font-weight: 700;
}

.ats-benefits-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    color: var(--es-gray-700);
}

.ats-benefits-table tbody tr:nth-child(even) td {
    background: #fafcff;
}

.ats-benefits-table tbody td:first-child {
    font-weight: 600;
    color: var(--es-gray-800);
}

@media (max-width: 1100px) {
    .ats-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ats-benefits-compare {
        overflow-x: auto;
    }

    .ats-benefits-table {
        min-width: 700px;
    }
}

@media (max-width: 760px) {
    .ats-plan-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   底部悬浮会员条
======================================== */
.ats-floating-upgrade {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(1080px, calc(100vw - 28px));
    z-index: 40;
}

.ats-floating-upgrade-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--es-space-md);
    border-radius: var(--es-radius-xl);
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(22, 26, 40, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 26px rgba(10, 12, 18, 0.38);
}

.ats-floating-upgrade-text {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ats-floating-upgrade-text strong {
    color: #fff;
    font-size: 14px;
}

.ats-floating-upgrade-text span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.ats-floating-upgrade-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ats-floating-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--es-radius-lg);
    background: linear-gradient(90deg, #ff6b35 0%, #ff925f 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.ats-floating-upgrade-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.ats-floating-upgrade-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 860px) {
    .ats-floating-upgrade-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .ats-floating-upgrade-actions {
        width: 100%;
    }

    .ats-floating-upgrade-btn {
        flex: 1;
    }
}

@media (max-width: 560px) {
    .ats-floating-upgrade {
        bottom: 10px;
        width: calc(100vw - 16px);
    }

    .ats-floating-upgrade-inner {
        padding: 10px 12px;
        border-radius: var(--es-radius-lg);
    }

    .ats-floating-upgrade-link {
        display: none;
    }
}

/* ========================================
   FAQ 手风琴
======================================== */
.ats-faq {
    background: #fafbff;
    border-top: 1px solid rgba(26,26,46,0.05);
}

.ats-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.ats-faq-item {
    border: 1px solid rgba(26,26,46,0.07);
    border-radius: var(--es-radius-xl);
    background: #fff;
    margin-bottom: var(--es-space-sm);
    overflow: hidden;
    transition: box-shadow var(--es-transition-fast);
}

.ats-faq-item[open] {
    box-shadow: 0 4px 18px rgba(26,26,46,0.08);
}

.ats-faq-q {
    padding: var(--es-space-md) var(--es-space-lg);
    font-size: 16px;
    font-weight: 600;
    color: var(--es-gray-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--es-space-sm);
    user-select: none;
}

.ats-faq-q::-webkit-details-marker { display: none; }

.ats-faq-q::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--es-primary);
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ats-faq-item[open] .ats-faq-q::after {
    content: '−';
}

.ats-faq-a {
    padding: 0 var(--es-space-lg) var(--es-space-md);
    border-top: 1px solid rgba(26,26,46,0.06);
}

.ats-faq-a p {
    margin: var(--es-space-sm) 0 0;
    color: var(--es-gray-700);
    font-size: 15px;
    line-height: 1.7;
}
