/* ============================================
   plate-tectonics.css — 板块构造学专题样式
   ============================================ */

/* ---- Page Hero ---- */
.plate-hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f1729 0%, #1a2f4f 40%, #0d1f35 100%);
    padding-top: 72px;
}

.plate-hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.plate-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 860px;
    padding: 0 var(--space-lg);
}

.plate-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}

.plate-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.plate-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-sm) 0;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.breadcrumb-inner a { color: var(--color-text-secondary); transition: var(--transition-fast); }
.breadcrumb-inner a:hover { color: var(--color-secondary); }
.breadcrumb-inner .sep { opacity: 0.4; }
.breadcrumb-inner .current { color: var(--color-text); font-weight: 500; }

/* ---- Intro Section ---- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.intro-text h3 {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.intro-text p {
    color: var(--color-text-secondary);
    line-height: 1.9;
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.intro-text .lead {
    font-size: 1.0625rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Timeline */
.history-timeline {
    position: relative;
    padding-left: 28px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.timeline-entry {
    position: relative;
    margin-bottom: var(--space-xl);
}

.timeline-entry:last-child { margin-bottom: 0; }

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--color-card);
    border: 2px solid var(--color-primary);
    z-index: 2;
}

.timeline-entry .year {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.timeline-entry h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.timeline-entry p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---- Boundary Types ---- */
.boundary-section {
    background: var(--color-card);
}

.boundary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.boundary-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: var(--transition-base);
}

.boundary-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.boundary-canvas-wrap {
    width: 100%;
    height: 220px;
    background: linear-gradient(180deg, #0a1628, #1a2f4f);
    position: relative;
}

.boundary-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.boundary-card-body {
    padding: var(--space-xl);
}

.boundary-card-body .type-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.boundary-card:nth-child(1) .type-label { background: #E8F5E9; color: #2E7D32; }
.boundary-card:nth-child(2) .type-label { background: #FFEBEE; color: #C62828; }
.boundary-card:nth-child(3) .type-label { background: #FFF3E0; color: #E65100; }

.boundary-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.boundary-card-body p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.boundary-features {
    list-style: none;
}

.boundary-features li {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.boundary-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ---- Wilson Cycle ---- */
.wilson-section { background: var(--color-bg); }

.wilson-cycle-wrap {
    background: var(--color-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.wilson-canvas-wrap {
    width: 100%;
    height: 420px;
    position: relative;
    background: linear-gradient(160deg, #0a1628, #1a2f4f);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.wilson-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.wilson-stages {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.wilson-stage {
    text-align: center;
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: var(--transition-base);
    cursor: default;
}

.wilson-stage:hover {
    border-color: var(--color-primary-light);
    background: var(--color-sky);
}

.wilson-stage .stage-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 auto var(--space-sm);
}

.wilson-stage h4 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.wilson-stage .stage-example {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ---- Global Plates Map ---- */
.plates-section { background: var(--color-card); }

.plates-map-wrap {
    background: linear-gradient(160deg, #0a1628, #1a2f4f);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.plates-map-canvas-wrap {
    width: 100%;
    height: 480px;
    position: relative;
}

.plates-map-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.plates-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-card);
    border-top: 1px solid var(--color-border-light);
}

.plates-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.plates-legend-item .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}

/* ---- Driving Forces ---- */
.forces-section { background: var(--color-bg); }

.forces-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.force-card {
    background: var(--color-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    padding: var(--space-xl);
    transition: var(--transition-base);
}

.force-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.force-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.force-card h3 .force-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.force-card:nth-child(1) h3 .force-icon { background: #E8F5E9; }
.force-card:nth-child(2) h3 .force-icon { background: #E3F2FD; }
.force-card:nth-child(3) h3 .force-icon { background: #FFF3E0; }
.force-card:nth-child(4) h3 .force-icon { background: #F3E5F5; }

.force-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.force-card .force-formula {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-primary);
    background: var(--color-bg);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.mantle-canvas-wrap {
    width: 100%;
    height: 360px;
    background: linear-gradient(180deg, #1a1a2e, #0f3460);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: var(--space-2xl);
    border: 1px solid var(--color-border-light);
}

.mantle-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---- Supercontinent Cycle ---- */
.supercontinent-section { background: var(--color-card); }

.super-timeline {
    position: relative;
    padding: var(--space-xl) 0;
}

.super-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    transform: translateX(-50%);
}

.super-item {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
    position: relative;
}

.super-item:nth-child(even) { flex-direction: row-reverse; }

.super-item-content {
    flex: 1;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition-base);
}

.super-item-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.super-item-year {
    width: 100px;
    text-align: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-card);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-md);
    z-index: 2;
}

.super-item h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.super-item p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---- Case Studies ---- */
.cases-section { background: var(--color-bg); }

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.case-card {
    background: var(--color-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: var(--transition-base);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.case-card-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0a1628, #1a3a5c);
    position: relative;
    overflow: hidden;
}

.case-card-img canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.case-card-body {
    padding: var(--space-xl);
}

.case-card-body .case-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.case-card:nth-child(1) .case-tag { background: #E8F5E9; color: #2E7D32; }
.case-card:nth-child(2) .case-tag { background: #E3F2FD; color: #01579B; }
.case-card:nth-child(3) .case-tag { background: #FFF3E0; color: #E65100; }

.case-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.case-card-body p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.case-data-row {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.case-data-row .cd-item {
    text-align: center;
}

.case-data-row .cd-item .num {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.case-data-row .cd-item .lbl {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ---- Data Charts ---- */
.data-section { background: var(--color-card); }

.data-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.data-chart-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
}

.data-chart-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.data-chart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    color: var(--color-text);
}

.data-chart-header .src {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.data-chart-body {
    padding: var(--space-xl);
}

.data-chart-canvas-wrap {
    width: 100%;
    height: 300px;
    position: relative;
}

.data-chart-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---- Related ---- */
.related-section { background: var(--color-bg); }

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.related-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.related-card .rel-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--space-sm);
    background: var(--color-sky);
}

.related-card h4 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.related-card p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .intro-grid { grid-template-columns: 1fr; }
    .boundary-grid { grid-template-columns: 1fr; }
    .wilson-stages { grid-template-columns: repeat(3, 1fr); }
    .forces-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .data-charts-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .super-item,
    .super-item:nth-child(even) { flex-direction: column; gap: var(--space-md); }
    .super-item-year { width: auto; padding: var(--space-xs) var(--space-lg); }
    .super-timeline-line { left: 24px; }
    .plates-map-canvas-wrap { height: 380px; }
    .wilson-canvas-wrap { height: 340px; }
}

@media (max-width: 767px) {
    .wilson-stages { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: 1fr; }
    .plates-map-canvas-wrap { height: 300px; }
    .wilson-canvas-wrap { height: 280px; }
    .mantle-canvas-wrap { height: 280px; }
    .boundary-canvas-wrap { height: 180px; }
    .case-card-img { height: 160px; }
    .data-chart-canvas-wrap { height: 240px; }
}
