/* 洛必塔 eCRF 产品介绍页 */

.ecrf-page {
    --ecrf-accent: #0071e3;
    --ecrf-accent-hover: #0077ed;
    --ecrf-ink: #1d1d1f;
    --ecrf-muted: #6e6e73;
    --ecrf-surface: #ffffff;
    --ecrf-bg: #f5f5f7;
    --ecrf-border: #d2d2d7;
}

.ecrf-hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 22px 80px;
    background: var(--ecrf-bg);
    overflow: hidden;
}

.ecrf-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 113, 227, 0.08), transparent 70%),
        linear-gradient(180deg, #fafafa 0%, var(--ecrf-bg) 100%);
    pointer-events: none;
}

.ecrf-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.ecrf-hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ecrf-accent);
    background: rgba(0, 113, 227, 0.08);
    padding: 6px 14px;
    border-radius: 980px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.ecrf-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.08;
    font-weight: 600;
    color: var(--ecrf-ink);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    text-wrap: balance;
}

.ecrf-hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.45;
    color: var(--ecrf-muted);
    max-width: 36em;
    margin: 0 auto 36px;
    text-wrap: pretty;
}

.ecrf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.ecrf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    line-height: 1.2;
    padding: 14px 28px;
    border-radius: 980px;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.ecrf-btn-primary {
    background: var(--ecrf-accent);
    color: #fff;
}

.ecrf-btn-primary:hover {
    background: var(--ecrf-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.ecrf-btn-secondary {
    background: transparent;
    color: var(--ecrf-accent);
    border: 1px solid var(--ecrf-accent);
}

.ecrf-btn-secondary:hover {
    background: var(--ecrf-accent);
    color: #fff;
}

/* Data entry matrix — base components (ecrf.html only) */
.ecrf-de-preview {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecrf-de-app {
    display: flex;
    min-height: 320px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ecrf-de-sidebar {
    flex: 0 0 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    background: linear-gradient(180deg, #4338CA 0%, #4F46E5 100%);
}

.ecrf-de-sidebar-logo {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.ecrf-de-sidebar-item {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
}

.ecrf-de-sidebar-item.is-active {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ecrf-de-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #F8FAFC;
}

.ecrf-de-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid var(--ecrf-de-border, #E2E8F0);
    font-size: 10px;
    color: var(--ecrf-de-muted, #64748B);
}

.ecrf-de-crumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ecrf-de-user {
    flex-shrink: 0;
    font-weight: 500;
    color: #334155;
}

.ecrf-de-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid var(--ecrf-de-border, #E2E8F0);
}

.ecrf-de-toolbar-left,
.ecrf-de-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ecrf-de-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ecrf-de-field-label {
    font-size: 10px;
    color: var(--ecrf-de-muted, #64748B);
    white-space: nowrap;
}

.ecrf-de-select {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    font-size: 10px;
    color: #334155;
    background: #fff;
    border: 1px solid var(--ecrf-de-border, #E2E8F0);
    border-radius: 8px;
    white-space: nowrap;
}

.ecrf-de-field--subject {
    gap: 4px;
}

.ecrf-de-subject-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--ecrf-de-primary-lightest, #EEF2FF);
    color: var(--ecrf-de-primary, #4F46E5);
}

.ecrf-de-btn-primary {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    background: var(--ecrf-de-primary, #4F46E5);
    border-radius: 8px;
    white-space: nowrap;
}

.ecrf-de-legend {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecrf-de-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--ecrf-de-muted, #64748B);
}

.ecrf-de-legend-dot {
    width: 18px;
    height: 14px;
    border-radius: 4px;
}

.ecrf-de-legend-dot--empty {
    background: #F1F5F9;
    border: 1.5px dashed #CBD5E1;
}

.ecrf-de-legend-dot--submitted {
    background: var(--ecrf-de-success-bg, #ECFDF5);
    border: 1.5px solid var(--ecrf-de-success-border, #6EE7B7);
}

.ecrf-de-stat {
    font-size: 10px;
    color: var(--ecrf-de-muted, #64748B);
    white-space: nowrap;
}

.ecrf-de-stat strong {
    color: var(--ecrf-de-primary, #4F46E5);
    font-weight: 600;
}

.ecrf-de-matrix-wrap {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.ecrf-de-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.ecrf-de-matrix th,
.ecrf-de-matrix td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--ecrf-de-border, #E2E8F0);
    text-align: center;
    vertical-align: middle;
}

.ecrf-de-matrix th {
    background: var(--ecrf-de-header-bg, #F8FAFC);
    color: #334155;
    font-weight: 600;
    font-size: 9px;
    white-space: nowrap;
}

.ecrf-de-matrix-form {
    text-align: left !important;
    padding-left: 10px !important;
    min-width: 88px;
    max-width: 110px;
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ecrf-de-form-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
    border-radius: 4px;
    background: var(--ecrf-de-primary-lightest, #EEF2FF);
}

.ecrf-de-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 26px;
    border-radius: 6px;
    vertical-align: middle;
}

.ecrf-de-cell--empty {
    background: #F1F5F9;
    border: 1.5px dashed #CBD5E1;
    color: #94A3B8;
}

.ecrf-de-cell--submitted {
    background: var(--ecrf-de-success-bg, #ECFDF5);
    border: 1.5px solid var(--ecrf-de-success-border, #6EE7B7);
    color: var(--ecrf-de-success, #059669);
}

.ecrf-de-cell--disabled {
    display: inline-block;
    width: 32px;
    height: 26px;
}

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

/* Data entry showcase */
.ecrf-de-showcase {
    --ecrf-de-primary: #4F46E5;
    --ecrf-de-primary-lightest: #EEF2FF;
    --ecrf-de-success: #059669;
    --ecrf-de-success-bg: #ECFDF5;
    --ecrf-de-success-border: #6EE7B7;
    --ecrf-de-muted: #64748B;
    --ecrf-de-border: #E2E8F0;
    --ecrf-de-header-bg: #F8FAFC;
    padding: 56px 22px 72px;
    background: linear-gradient(180deg, #fafafa 0%, var(--ecrf-surface) 100%);
    border-top: 0.5px solid var(--ecrf-border);
    border-bottom: 0.5px solid var(--ecrf-border);
}

.ecrf-de-showcase-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ecrf-de-showcase-lead {
    margin: 0 0 28px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--ecrf-muted);
    letter-spacing: 0.01em;
}

.ecrf-de-preview--page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ecrf-de-showcase .ecrf-de-app {
    min-height: 420px;
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 12px 40px rgba(79, 70, 229, 0.08);
}

.ecrf-de-showcase .ecrf-de-sidebar {
    flex: 0 0 52px;
    padding: 16px 0;
    gap: 12px;
}

.ecrf-de-showcase .ecrf-de-sidebar-logo {
    font-size: 10px;
}

.ecrf-de-showcase .ecrf-de-sidebar-item {
    width: 26px;
    height: 26px;
}

.ecrf-de-showcase .ecrf-de-topbar {
    padding: 10px 16px;
    font-size: 12px;
}

.ecrf-de-showcase .ecrf-de-toolbar {
    padding: 12px 16px;
    gap: 12px;
}

.ecrf-de-showcase .ecrf-de-field-label,
.ecrf-de-showcase .ecrf-de-select,
.ecrf-de-showcase .ecrf-de-btn-primary,
.ecrf-de-showcase .ecrf-de-stat {
    font-size: 12px;
}

.ecrf-de-showcase .ecrf-de-select {
    min-height: 32px;
    padding: 0 12px;
}

.ecrf-de-showcase .ecrf-de-subject-icon {
    width: 32px;
    height: 32px;
}

.ecrf-de-showcase .ecrf-de-btn-primary {
    min-height: 32px;
    padding: 0 14px;
}

.ecrf-de-showcase .ecrf-de-legend-item {
    font-size: 11px;
}

.ecrf-de-showcase .ecrf-de-legend-dot {
    width: 22px;
    height: 16px;
}

.ecrf-de-showcase .ecrf-de-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ecrf-de-showcase .ecrf-de-matrix {
    min-width: 640px;
    font-size: 12px;
}

.ecrf-de-showcase .ecrf-de-matrix th {
    font-size: 12px;
    padding: 10px 8px;
}

.ecrf-de-showcase .ecrf-de-matrix td {
    padding: 8px 6px;
}

.ecrf-de-showcase .ecrf-de-matrix-form {
    min-width: 120px;
    max-width: 160px;
    padding-left: 14px !important;
}

.ecrf-de-showcase .ecrf-de-form-icon {
    width: 16px;
    height: 16px;
}

.ecrf-de-showcase .ecrf-de-cell {
    width: 38px;
    height: 30px;
}

.ecrf-de-showcase .ecrf-de-cell--disabled {
    width: 38px;
    height: 30px;
}

.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr {
    animation: ecrfDeRowIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr:nth-child(1) { animation-delay: 0.06s; }
.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr:nth-child(2) { animation-delay: 0.12s; }
.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr:nth-child(3) { animation-delay: 0.18s; }
.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr:nth-child(4) { animation-delay: 0.24s; }
.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr:nth-child(5) { animation-delay: 0.3s; }
.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr:nth-child(6) { animation-delay: 0.36s; }
.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr:nth-child(7) { animation-delay: 0.42s; }
.ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr:nth-child(8) { animation-delay: 0.48s; }

/* Sections */
.ecrf-section {
    padding: 100px 22px;
    background: var(--ecrf-bg);
}

.ecrf-section--white {
    background: var(--ecrf-surface);
}

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

.ecrf-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--ecrf-ink);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-wrap: balance;
}

.ecrf-section-lead {
    font-size: 17px;
    line-height: 1.5;
    color: var(--ecrf-muted);
    max-width: 52ch;
    margin-bottom: 48px;
    text-wrap: pretty;
}

.ecrf-section-lead--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.ecrf-section-header--center .ecrf-section-lead {
    margin-bottom: 0;
}

.ecrf-iit-highlight {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    text-align: center;
}

.ecrf-iit-highlight span {
    display: inline-block;
    padding: 14px 26px;
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    font-weight: 600;
    color: var(--ecrf-accent);
    letter-spacing: 0.01em;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.22);
    border-radius: 980px;
    line-height: 1.35;
}

.ecrf-iit-highlight span::before {
    content: none;
}

/* Features bento */
.ecrf-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--ecrf-border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
}

.ecrf-feature {
    background: var(--ecrf-surface);
    padding: 36px 32px;
}

.ecrf-features .ecrf-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ecrf-ink);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    line-height: 1.35;
    text-wrap: balance;
}

.ecrf-features .ecrf-feature-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ecrf-muted);
    margin: 0;
    text-wrap: pretty;
}

.ecrf-feature--wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .ecrf-iit-highlight {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .ecrf-iit-highlight span {
        font-size: 1.0625rem;
        padding: 12px 20px;
    }

    .ecrf-de-showcase {
        padding: 40px 22px 56px;
    }

    .ecrf-de-showcase-lead {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Workflow */
.ecrf-workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ecrf-step {
    position: relative;
}

.ecrf-step-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--ecrf-accent);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.ecrf-step-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--ecrf-ink);
    margin-bottom: 8px;
}

.ecrf-step-desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ecrf-muted);
    margin: 0;
}

/* Compliance */
.ecrf-compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ecrf-compliance-item {
    padding: 32px;
    background: var(--ecrf-bg);
    border-radius: 12px;
}

.ecrf-compliance-item h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--ecrf-ink);
    margin-bottom: 8px;
}

.ecrf-compliance-item p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ecrf-muted);
    margin: 0;
}

/* 数据安全 */
.ecrf-section--security {
    --ecrf-security-body: #515154;
    --ecrf-security-index: var(--ecrf-de-primary, #4F46E5);
    --ecrf-security-tint: var(--ecrf-de-primary-lightest, #EEF2FF);
}

.ecrf-security-header {
    margin-bottom: clamp(36px, 5vw, 52px);
}

.ecrf-security-lead {
    max-width: 65ch;
    margin-bottom: 0;
    line-height: 1.58;
    color: var(--ecrf-security-body);
}

.ecrf-security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--ecrf-border);
    border-radius: 16px;
    overflow: hidden;
}

.ecrf-security-item {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 4vw, 40px) clamp(24px, 3.5vw, 36px);
    background: var(--ecrf-surface);
}

.ecrf-security-item--tint {
    background: var(--ecrf-security-tint);
}

.ecrf-security-index {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ecrf-security-index);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    line-height: 1;
}

.ecrf-security-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--ecrf-ink);
    margin: 0 0 16px;
    letter-spacing: -0.015em;
    line-height: 1.3;
    text-wrap: balance;
    max-width: 22ch;
}

.ecrf-security-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 52ch;
}

.ecrf-security-list li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ecrf-security-body);
    text-wrap: pretty;
}

.ecrf-security-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ecrf-security-index);
    opacity: 0.55;
}

.ecrf-security-item--tint .ecrf-security-list li::before {
    opacity: 0.7;
}

/* CTA */
.ecrf-cta {
    text-align: center;
    padding: 100px 22px;
    background: var(--ecrf-ink);
    color: #fff;
}

.ecrf-cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.ecrf-cta-desc {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    max-width: 40em;
    margin: 0 auto 32px;
}

.ecrf-cta .ecrf-btn-primary {
    background: #fff;
    color: var(--ecrf-ink);
}

.ecrf-cta .ecrf-btn-primary:hover {
    background: #f5f5f7;
}

.ecrf-cta .ecrf-btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.ecrf-cta .ecrf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ecrf-nav-active {
    opacity: 1 !important;
    font-weight: 500;
}

@media (max-width: 1068px) {
    .ecrf-features {
        grid-template-columns: 1fr;
    }

    .ecrf-feature--wide {
        grid-column: span 1;
    }

    .ecrf-workflow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ecrf-hero {
        min-height: auto;
        padding: 88px 22px 64px;
    }

    .ecrf-compliance-grid,
    .ecrf-workflow,
    .ecrf-security-grid {
        grid-template-columns: 1fr;
    }

    .ecrf-security-title {
        max-width: none;
    }

    .ecrf-security-list {
        max-width: none;
    }

    .ecrf-security-item {
        padding: 28px 24px;
    }

    .ecrf-section {
        padding: 72px 22px;
    }

    .ecrf-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .ecrf-btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecrf-btn {
        transition: none;
    }

    .ecrf-de-showcase.is-visible .ecrf-de-matrix tbody tr {
        animation: none !important;
    }

    .ecrf-security-item {
        opacity: 1;
        transform: none;
    }
}
