/* ============== Automotive Solution Page (NEXSPC 4.0) ============== */

.auto-hero {
    position: relative;
    color: #fff;
    padding: 120px 0 90px;
    background-image: url('/static/images/smart-automotive-factory.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.auto-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 32, 95, 0.80);
}

.auto-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 400px at 70% 25%, rgba(41, 182, 246, 0.22), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.auto-hero .container {
    position: relative;
    z-index: 2;
}

.auto-hero h1 {
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.auto-hero .subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    margin-bottom: 22px;
    max-width: 660px;
}

.auto-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}

.auto-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.auto-badge i.material-symbols-outlined {
    font-size: 18px;
    color: #29b6f6;
}

.auto-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.auto-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #29b6f6;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 0;
}

.auto-cta-primary:hover {
    background: #039be5;
    transform: translateY(-2px);
    color: #fff !important;
}

.auto-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.auto-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    color: #fff !important;
}

.auto-hero-note {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.auto-hero-ui {
    position: relative;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    cursor: zoom-in;
}

.auto-hero-ui img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.auto-hero-ui .auto-ui-label {
    position: absolute;
    left: 18px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.auto-hero-ui .auto-ui-label .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #81c784;
    box-shadow: 0 0 0 6px rgba(129, 199, 132, 0.20);
}

.auto-trend-line {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.95;
}

.auto-trend-line svg {
    width: 100%;
    height: 100%;
}

.auto-trend-line path {
    stroke: rgba(41, 182, 246, 0.95);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 10px 24px rgba(41, 182, 246, 0.35));
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    transition: stroke-dashoffset 1.2s ease;
}

.auto-trend-line.grow path {
    stroke-dashoffset: 0;
}

/* Pain Points */
.auto-section-title {
    margin-bottom: 18px;
}

.auto-section-title h2 {
    color: #04205F;
    font-weight: 800;
    margin-bottom: 10px;
}

.auto-section-title p {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.auto-pain {
    background: #f8f9fa;
    padding: 60px 0;
}

.auto-pain-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 22px 0;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef1f4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.auto-pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.auto-pain-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f4;
    padding: 22px 22px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.auto-pain-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.9), rgba(4, 32, 95, 0.9));
    opacity: 0.55;
}

.auto-pain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(4, 32, 95, 0.25);
}

.auto-pain-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.auto-pain-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 193, 7, 0.28);
}

.auto-pain-icon i.material-symbols-outlined {
    font-size: 24px;
    color: #b07a00;
}

.auto-pain-card h3 {
    font-size: 1.22rem;
    font-weight: 800;
    color: #04205F;
    margin: 0;
    line-height: 1.3;
}

.auto-pain-card p {
    color: #444;
    line-height: 1.85;
    margin: 0;
    font-size: 1rem;
}

/* Core Solutions */
.auto-solution {
    padding: 60px 0 20px;
}

.auto-solution .intro-text {
    font-size: 1.08rem;
    line-height: 2;
    color: #555;
    text-align: left;
}

.auto-scenario {
    padding-top: 36px;
    padding-bottom: 36px;
}

.auto-scenario h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #04205F;
    margin-bottom: 10px;
}

.auto-scenario .en-title {
    margin-top: 0;
    color: #6a7b90;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.auto-checklist {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 0;
}

.auto-checklist li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
    color: #444;
    line-height: 1.8;
}

.auto-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #29b6f6;
    font-weight: 900;
}

.auto-value {
    font-size: 1rem;
    margin-top: 14px;
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(41, 182, 246, 0.10);
    border: 1px solid rgba(41, 182, 246, 0.22);
    color: #0b3b6b;
    font-weight: 600;
    line-height: 1.8;
}

.auto-shot {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
    background: #fff;
    cursor: zoom-in;
}

.auto-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.auto-shot-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    user-select: none;
}

.auto-shot-badge.badge-aiag {
    background: rgba(176, 122, 0, 0.55);
    border-color: rgba(255, 193, 7, 0.25);
}

.auto-shot-callout {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: #04205F;
    border: 1px solid rgba(4, 32, 95, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auto-shot-callout .danger {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #e53935;
    box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.18);
}

/* Before & After */
.auto-compare {
    background: #f8f9fa;
    padding: 60px 0;
}

.auto-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef1f4;
}

.auto-compare-table thead th {
    background: linear-gradient(135deg, #04205F 0%, #1a4a8a 100%);
    color: #fff;
    padding: 18px 18px;
    text-align: left;
    font-weight: 800;
    font-size: 1.05rem;
}

.auto-compare-table tbody td {
    padding: 18px 18px;
    border-bottom: 1px solid #eef1f4;
    color: #444;
    line-height: 1.9;
    vertical-align: top;
}

.auto-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.auto-compare-table .old {
    color: #6c757d;
}

.auto-compare-table .new {
    background: rgba(41, 182, 246, 0.08);
    border-left: 4px solid rgba(41, 182, 246, 0.70);
    font-weight: 650;
    color: #0b3b6b;
}

.auto-big-num {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: #29b6f6;
    margin-right: 6px;
}

/* CTA */
.auto-cta {
    padding: 70px 0 90px;
    background: linear-gradient(180deg, rgba(4, 32, 95, 0.05), rgba(4, 32, 95, 0.00));
}

.auto-cta-box {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eef1f4;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.10);
    padding: 28px;
    overflow: hidden;
}

.auto-pdf-mock {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: linear-gradient(135deg, #04205F 0%, #1a4a8a 60%, #29b6f6 120%);
    position: relative;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transform: perspective(900px) rotateY(-10deg);
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.auto-pdf-mock::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 22px;
    background: rgba(255, 255, 255, 0.15);
}

.auto-pdf-mock::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    transform: rotate(25deg);
}

.auto-pdf-mock .title {
    position: absolute;
    inset: 18px 16px auto 16px;
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

.auto-pdf-mock .sub {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
}

.auto-pdf-mock .tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

/* Right floating TOC */
.auto-toc {
    position: fixed;
    right: 18px;
    top: 140px;
    z-index: 50;
    width: 200px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(4, 32, 95, 0.10);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    padding: 12px;
    backdrop-filter: blur(10px);
}

.auto-toc .title {
    font-weight: 900;
    color: #04205F;
    font-size: 13px;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
}

.auto-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3a4b;
    font-weight: 650;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auto-toc a:hover {
    background: rgba(41, 182, 246, 0.10);
    transform: translateY(-1px);
    color: #04205F;
}

.auto-toc a.active {
    background: rgba(41, 182, 246, 0.14);
    color: #04205F;
    border: 1px solid rgba(41, 182, 246, 0.28);
}

.auto-toc .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(4, 32, 95, 0.25);
    flex: 0 0 auto;
}

.auto-toc a.active .dot {
    background: #29b6f6;
    box-shadow: 0 0 0 6px rgba(41, 182, 246, 0.18);
}

/* Lightbox */
.auto-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.auto-lightbox.open {
    display: flex;
}

.auto-lightbox-inner {
    max-width: 1100px;
    width: 100%;
    max-height: 86vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.40);
    position: relative;
    display: flex;
    flex-direction: column;
}

.auto-lightbox-bar {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(4, 32, 95, 0.92), rgba(26, 74, 138, 0.92));
    color: #fff;
}

.auto-lightbox-bar .cap {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.2px;
    opacity: 0.95;
}

.auto-lightbox-close {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 800;
    cursor: pointer;
}

.auto-lightbox-body {
    padding: 14px;
    overflow: auto;
    background: #f6f7f9;
}

.auto-lightbox-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* Mobile adaptation */
.auto-mobile-cta {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(4, 32, 95, 0.10);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 16px 52px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.auto-mobile-cta .text {
    font-size: 12px;
    color: #2d3a4b;
    font-weight: 700;
    line-height: 1.3;
}

.auto-mobile-cta .btn {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 14px;
    background: #29b6f6;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    border: 0;
}

@media (max-width: 992px) {
    .auto-hero h1 {
        font-size: 2.25rem;
    }

    .auto-hero {
        padding: 105px 0 70px;
    }

    .auto-pain-grid {
        grid-template-columns: 1fr;
    }

    .auto-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .auto-hero {
        padding: 96px 0 56px;
    }

    .auto-hero .subtitle {
        font-size: 1.05rem;
    }

    .auto-mobile-cta {
        display: flex;
    }

    /* Give space for bottom CTA */
    body {
        padding-bottom: 86px;
    }

    .auto-compare-table,
    .auto-compare-table thead,
    .auto-compare-table tbody,
    .auto-compare-table th,
    .auto-compare-table td,
    .auto-compare-table tr {
        display: block;
        width: 100%;
    }

    .auto-compare-table thead {
        display: none;
    }

    .auto-compare-table tbody tr {
        border-bottom: 1px solid #eef1f4;
    }

    .auto-compare-table tbody td {
        border-bottom: none;
        padding: 14px 16px;
    }

    .auto-compare-table tbody td:first-child {
        font-weight: 900;
        color: #04205F;
        padding-top: 16px;
    }

    .auto-compare-table .new {
        border-left: 0;
        border-top: 3px solid rgba(41, 182, 246, 0.75);
    }
}