/* ========================================
   AutoDrive Blog - Index Page Styles
   首页专用样式，避免与其他页面冲突
======================================== */

/* ========================================
   Hero Banner
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .hero::before {
    background: radial-gradient(ellipse at center, rgba(0, 153, 204, 0.08) 0%, transparent 70%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-intro {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.hero-disclaimer {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0.7;
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Articles - 4 Featured Articles */
.hero-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.featured-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.featured-article:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

/* Featured Image */
.featured-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

/* Category Badge */
.featured-category {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.9);
    color: white;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.featured-category.category-what {
    background: rgba(124, 58, 237, 0.9);
}

.featured-category.category-compare {
    background: rgba(236, 72, 153, 0.9);
}

/* Featured Content */
.featured-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.featured-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* -webkit-box-orient: vertical; */
    overflow: hidden;
    margin: 0;
}

.featured-article:hover .featured-title {
    color: var(--accent-color);
}

/* ========================================
   Understanding Section
======================================== */
.understanding-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    position: relative;
}

.understanding-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.understanding-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.understanding-header {
    text-align: center;
    margin-bottom: 4rem;
}

.understanding-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.understanding-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Understanding Cards Grid */
.understanding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.understanding-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.understanding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.understanding-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

.understanding-card:hover::before {
    opacity: 0.05;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.understanding-card:hover .card-icon {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.1);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-primary);
    transition: var(--transition);
}

.understanding-card:hover .card-icon svg {
    stroke: white;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.card-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
}

.card-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   Responsive Design for Index Page
======================================== */
@media (max-width: 1024px) {
    .hero-layout {
        gap: 3rem;
    }

    .hero-articles {
        gap: 0.875rem;
    }

    .featured-image {
        height: 120px;
    }

    .featured-content {
        padding: 0.875rem;
    }

    .featured-title {
        font-size: 0.8rem;
    }

    .featured-category {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .understanding-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .understanding-card {
        padding: 1.875rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-intro {
        max-width: 100%;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .hero-articles {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .featured-image {
        height: 120px;
    }

    .featured-content {
        padding: 0.75rem;
    }

    .featured-title {
        font-size: 0.8rem;
    }

    .featured-category {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .understanding-section {
        padding: 80px 0;
    }

    .understanding-header {
        margin-bottom: 3rem;
    }

    .understanding-title {
        font-size: 2rem;
    }

    .understanding-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .understanding-card {
        padding: 1.75rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .card-title {
        font-size: 1.125rem;
    }

    .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-articles {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .featured-image {
        height: 160px;
    }

    .featured-content {
        padding: 1rem;
    }

    .featured-title {
        font-size: 0.875rem;
    }

    .featured-category {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .understanding-section {
        padding: 60px 0;
    }

    .understanding-header {
        margin-bottom: 2.5rem;
    }

    .understanding-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }

    .understanding-title {
        font-size: 1.75rem;
    }

    .understanding-grid {
        gap: 1.25rem;
    }

    .understanding-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 1.25rem;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    .card-title {
        font-size: 1.0625rem;
        margin-bottom: 0.875rem;
    }

    .card-text {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}


/* ========================================
   Section Layouts - Unique Designs
======================================== */

/* Section A: Why + Mechanism - Grid Layout with Featured Card */
.why-mechanism {
    background: var(--bg-dark);
}

.why-mechanism .section-header {
    text-align: center;
    max-width: 100%;
    margin-bottom: 3rem;
}

.why-mechanism .articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-mechanism .article-card:first-child>a,
.why-mechanism .article-card>a,
.system-impact .article-card>a,
.comparison .article-card>a,
.what-structure .article-card >a {
    display: contents;
}

.why-mechanism .article-card:first-child {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.why-mechanism .article-card:first-child .article-card-image {
    height: 100%;
    min-height: 350px;
}

.why-mechanism .article-card:first-child .article-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.why-mechanism .article-card:first-child .article-card-title {
    font-size: 2rem;
    line-height: 1.2;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 1.5rem;
}

.why-mechanism .article-card:first-child .article-card-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Section B: What + Structure - Masonry-like Layout */
.what-structure {
    background: var(--secondary-color);
}

.what-structure .section-header {
    text-align: center;
}

.what-structure .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.what-structure .article-card:nth-child(1),
.what-structure .article-card:nth-child(4),
.what-structure .article-card:nth-child(7) {
    transform: translateY(20px);
}

.what-structure .article-card {
    transition: var(--transition);
}

.what-structure .article-card:hover {
    transform: translateY(0) !important;
}

/* Section C: Comparison - Two Column Featured Layout */
.comparison {
    background: var(--bg-dark);
}

.comparison .section-header {
    text-align: center;
}

.comparison .articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.comparison .article-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.comparison .article-card-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.comparison .article-card-content {
    flex: 1;
}

.comparison .article-card:nth-child(even) {
    flex-direction: row-reverse;
}

.comparison .article-card:nth-child(even) .article-card-content {
    padding-right: 10px;
    padding-left: 1.5rem;
}

.comparison .article-card:nth-child(odd) .article-card-content {
    padding-left: 10px;
    padding-right: 1.5rem;
}

/* Section D: System + Impact - Horizontal Scroll Cards */
.system-impact {
    background: var(--secondary-color);
    overflow: hidden;
}

.system-impact .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.system-impact .scroll-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.system-impact .articles-grid-wrapper {
    flex: 1;
    overflow: hidden;
}

.system-impact .articles-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-card);
    scroll-behavior: smooth;
}

.system-impact .articles-grid::-webkit-scrollbar {
    height: 8px;
}

.system-impact .articles-grid::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

.system-impact .articles-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.system-impact .article-card {
    min-width: 350px;
    max-width: 350px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Responsive Adjustments for Sections */
@media (max-width: 1440px) {
    .why-mechanism .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-mechanism .article-card:first-child {
        grid-column: span 3;
    }
}

@media (max-width: 1024px) {
    .why-mechanism .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-mechanism .article-card:first-child {
        grid-column: span 3;
        display: flex;
        flex-direction: column;
    }

    .why-mechanism .article-card:first-child .article-card-image {
        width: 100%;
        min-height: 300px;
    }

    .why-mechanism .article-card:first-child .article-card-content {
        padding: 2rem;
    }

    .why-mechanism .article-card:first-child .article-card-title {
        font-size: 1.75rem;
    }

    .what-structure .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison .articles-grid {
        grid-template-columns: 1fr;
    }

    .comparison .article-card {
        flex-direction: column !important;
    }

    .comparison .article-card-image {
        width: 100%;
        height: 220px;
    }

    .comparison .article-card-content {
        padding: 1.5rem !important;
    }

    .system-impact .article-card {
        min-width: 320px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {

    .why-mechanism .section-header,
    .what-structure .section-header,
    .comparison .section-header,
    .system-impact .section-header {
        text-align: center;
    }

    .why-mechanism .section-title-row,
    .comparison .section-title-row {
        flex-direction: column;
        gap: 1rem;
    }

    .why-mechanism .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .why-mechanism .article-card:first-child {
        grid-column: span 2;
    }

    .why-mechanism .article-card:first-child .article-card-title {
        font-size: 1.5rem;
    }

    .why-mechanism .article-card:first-child .article-card-content {
        padding: 1.5rem;
    }

    .comparison .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison .article-card {
        flex-direction: row !important;
        align-items: stretch;
    }

    .comparison .article-card-image {
        width: 180px;
        height: auto;
        min-height: 180px;
        flex-shrink: 0;
    }

    .comparison .article-card-content {
        flex: 1;
        padding: 1.25rem !important;
        display: flex;
        flex-direction: column;
    }

    .what-structure .articles-grid {
        grid-template-columns: 1fr;
    }

    .what-structure .article-card:nth-child(1),
    .what-structure .article-card:nth-child(4),
    .what-structure .article-card:nth-child(7) {
        transform: translateY(0);
    }

    .system-impact .article-card {
        min-width: 280px;
        max-width: 280px;
    }

    .system-impact .scroll-controls {
        position: relative;
    }

    .system-impact .scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
    }

    .system-impact .scroll-btn-prev {
        left: 10px;
    }

    .system-impact .scroll-btn-next {
        right: 10px;
    }

    .system-impact .scroll-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .why-mechanism .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-mechanism .article-card:first-child {
        grid-column: span 1;
    }

    .comparison .article-card-image {
        width: 140px;
        min-height: 100px !important;
    }

    .comparison .article-card-content {
        padding: 1rem !important;
    }

    .comparison .article-card-title {
        font-size: 1rem;
    }

    .comparison .article-card-excerpt {
        font-size: 0.8125rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .article-card-title {
        margin-bottom: 0rem;
    }

    .system-impact .article-card {
        min-width: 260px;
        max-width: 260px;
    }

    .system-impact .scroll-btn {
        width: 40px;
        height: 40px;
    }

    .system-impact .scroll-btn svg {
        width: 18px;
        height: 18px;
    }

    .system-impact .scroll-btn-prev {
        left: 8px;
    }

    .system-impact .scroll-btn-next {
        right: 8px;
    }
}


/* ========================================
   Section Decorations & Visual Effects
======================================== */

/* Section A: Why + Mechanism - Corner Accent */
.why-mechanism {
    position: relative;
}

.why-mechanism::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.why-mechanism .section-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.why-mechanism .section-badge {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.why-mechanism .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.why-mechanism .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Section B: What + Structure - Grid Pattern Background */
.what-structure {
    position: relative;
}

.what-structure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.what-structure .section-badge {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.what-structure .section-title {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section C: Comparison - Diagonal Split */
.comparison {
    position: relative;
    overflow: hidden;
}

.comparison::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.comparison .section-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.comparison .section-badge {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 2px solid #f472b6;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.comparison .section-title {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.comparison .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    border-radius: 2px;
}

/* Section D: System + Impact - Wave Pattern */
.system-impact {
    position: relative;
}

.system-impact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.03) 100%);
    pointer-events: none;
}

.system-impact .section-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.system-impact .section-title {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Number Indicators */
.why-mechanism .section-header::before,
.what-structure .section-header::before,
.comparison .section-header::before,
.system-impact .section-header::before {
    content: attr(data-number);
    position: absolute;
    top: -20px;
    font-size: 8rem;
    font-weight: 900;
    font-family: var(--font-display);
    opacity: 0.03;
    line-height: 1;
    pointer-events: none;
}

.why-mechanism .section-header {
    position: relative;
}

.why-mechanism .section-header::before {
    content: '01';
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
}

.what-structure .section-header {
    position: relative;
}

.what-structure .section-header::before {
    content: '02';
    left: 50%;
    transform: translateX(-50%);
    color: #a78bfa;
}

.comparison .section-header {
    position: relative;
}

.comparison .section-header::before {
    content: '03';
    left: 50%;
    transform: translateX(-50%);
    color: #f472b6;
}

.system-impact .section-header {
    position: relative;
}

.system-impact .section-header::before {
    content: '04';
    left: 50%;
    transform: translateX(-50%);
    color: #4ade80;
}

/* Enhanced Article Cards for Each Section */
.why-mechanism .article-card {
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.why-mechanism .article-card:hover {
    border-left-color: var(--accent-color);
}

.what-structure .article-card {
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.what-structure .article-card:hover {
    border-top-color: #a78bfa;
}

.comparison .article-card {
    border-radius: 20px;
    overflow: hidden;
}

.comparison .article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.comparison .article-card:hover::before {
    opacity: 1;
}

.system-impact .article-card {
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.system-impact .article-card:hover {
    border-color: #4ade80;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}

/* Scroll Buttons */
.system-impact .scroll-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid #4ade80;
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 2;
}

.system-impact .scroll-btn:hover {
    background: #4ade80;
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}

.system-impact .scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.system-impact .scroll-btn:disabled:hover {
    background: var(--bg-card);
    color: var(--text-secondary);
    transform: scale(1);
    box-shadow: none;
}

.system-impact .scroll-btn svg {
    width: 24px;
    height: 24px;
}

/* Scroll Indicator for System Impact */
.system-impact .scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.system-impact .scroll-indicator svg {
    width: 20px;
    height: 20px;
    animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes slideRight {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

/* Responsive Adjustments for Decorations */
@media (max-width: 768px) {

    .why-mechanism::before,
    .comparison::before,
    .system-impact::before {
        display: none;
    }

    .why-mechanism .section-title::after,
    .comparison .section-title::before {
        display: none;
    }

    .why-mechanism .section-header::before,
    .what-structure .section-header::before,
    .comparison .section-header::before,
    .system-impact .section-header::before {
        font-size: 5rem;
        opacity: 0.02;
    }
}