/* ============================================================
   数理彩研实验室 - 核心样式表
   CSS前缀: lab-
   设计风格: 学术论文实验室风 (Academic Lab)
   主色: #FAFAFA | 强调色: #2196F3 | 文字: #212121
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Roboto Slab', 'Noto Serif SC', 'Georgia', serif;
    background-color: #FAFAFA;
    color: #212121;
    line-height: 1.8;
    min-height: 100vh;
}

a { color: #2196F3; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #1769aa; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', 'Noto Serif SC', 'Georgia', serif;
    color: #212121;
    line-height: 1.4;
    margin-bottom: 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; color: #212121; }

ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

blockquote {
    border-left: 4px solid #2196F3;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: rgba(33,150,243,0.04);
    color: #757575;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

th, td {
    padding: 0.75em 1em;
    border: 1px solid #e0e0e0;
    text-align: left;
}

th {
    background: #f5f5f5;
    font-weight: 700;
    color: #212121;
}

/* === Layout Container === */
.lab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lab-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.lab-header {
    background: #FAFAFA;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    z-index: 100;
}

.lab-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lab-header-logo img {
    width: 160px;
    height: 40px;
}

.lab-header-logo-mobile img {
    width: 120px;
    height: 30px;
    display: none;
}

.lab-nav-main {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lab-nav-main li a {
    color: #2196F3;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.lab-nav-main li a:hover {
    color: #1769aa;
}

.lab-nav-main li a.lab-nav-active {
    color: #1769aa;
    border-bottom: 2px solid #2196F3;
}

.lab-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab-form-search {
    position: relative;
}

.lab-form-search .lab-form-input {
    width: 0;
    padding: 6px 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 0.9rem;
    transition: width 0.3s, border-color 0.3s;
    outline: none;
}

.lab-form-search.lab-search-active .lab-form-input {
    width: 180px;
    padding: 6px 8px;
    border-bottom-color: #2196F3;
}

.lab-form-search .lab-btn-search {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #2196F3;
    padding: 4px;
}

.lab-btn-cta {
    background: #2196F3;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.lab-btn-cta:hover {
    background: #1769aa;
    color: #fff;
    box-shadow: 0 0 10px rgba(33,150,243,0.2);
}

/* Hamburger */
.lab-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.lab-nav-hamburger span {
    width: 24px;
    height: 2px;
    background: #2196F3;
    transition: transform 0.3s;
}

/* Mobile nav */
.lab-nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FAFAFA;
    z-index: 999;
    padding: 60px 30px 30px;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.lab-nav-mobile.lab-nav-open {
    display: flex;
}

.lab-nav-mobile a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    color: #2196F3;
    border-bottom: 1px solid #e0e0e0;
}

.lab-nav-mobile .lab-nav-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #2196F3;
    cursor: pointer;
}

/* === Breadcrumb === */
.lab-breadcrumb {
    padding: 12px 0;
    font-size: 0.85rem;
    color: #757575;
}

.lab-breadcrumb a {
    color: #2196F3;
}

.lab-breadcrumb span {
    margin: 0 6px;
    color: #bdbdbd;
}

/* === Banner === */
.lab-banner {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lab-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250,250,250,0.85);
}

.lab-banner-content {
    position: relative;
    z-index: 1;
}

.lab-banner-content h1 {
    font-size: 2rem;
    color: #212121;
    margin-bottom: 8px;
}

.lab-banner-content p {
    color: #757575;
    font-size: 1rem;
}

/* === Home Modules === */
.lab-section {
    padding: 50px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lab-section:last-child {
    border-bottom: none;
}

.lab-section-title {
    font-size: 1.6rem;
    color: #212121;
    margin-bottom: 30px;
    padding-left: 16px;
    border-left: 4px solid #2196F3;
}

/* Module: Latest Research */
.lab-module-latest-research .lab-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Cards */
.lab-card-article {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(33,150,243,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.lab-card-article:hover {
    box-shadow: 0 0 10px rgba(33,150,243,0.2);
    transform: translateY(-2px);
}

.lab-card-article .lab-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.lab-card-article .lab-card-body {
    padding: 16px;
}

.lab-card-article .lab-card-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #212121;
}

.lab-card-article .lab-card-title a {
    color: #212121;
}

.lab-card-article .lab-card-title a:hover {
    color: #2196F3;
}

.lab-card-article .lab-card-meta {
    font-size: 0.8rem;
    color: #757575;
    margin-bottom: 8px;
}

.lab-card-article .lab-card-excerpt {
    font-size: 0.9rem;
    color: #757575;
    line-height: 1.6;
}

/* Module: Dashboard */
.lab-module-realtime-dashboard {
    background: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(33,150,243,0.08);
}

.lab-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lab-dashboard-item {
    text-align: center;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.lab-dashboard-item .lab-dashboard-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2196F3;
    font-family: 'Merriweather', serif;
}

.lab-dashboard-item .lab-dashboard-label {
    font-size: 0.85rem;
    color: #757575;
    margin-top: 4px;
}

/* Module: Formula Ranking */
.lab-module-top-formulas .lab-ranking-list {
    list-style: none;
    padding: 0;
    counter-reset: ranking;
}

.lab-module-top-formulas .lab-ranking-item {
    counter-increment: ranking;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lab-module-top-formulas .lab-ranking-item:hover {
    background: rgba(33,150,243,0.04);
}

.lab-module-top-formulas .lab-ranking-item::before {
    content: counter(ranking);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2196F3;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.lab-ranking-detail {
    display: none;
    padding: 16px 20px 16px 68px;
    background: #f5f8ff;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #757575;
    line-height: 1.7;
}

.lab-ranking-detail.lab-detail-open {
    display: block;
}

/* Module: Monte Carlo Entry */
.lab-module-montecarlo-entry {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f8ff 0%, #e3f2fd 100%);
    border-radius: 4px;
}

.lab-module-montecarlo-entry h2 {
    margin-bottom: 16px;
}

.lab-module-montecarlo-entry p {
    color: #757575;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lab-btn-primary {
    background: #2196F3;
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.lab-btn-primary:hover {
    background: #1769aa;
    color: #fff;
    box-shadow: 0 0 10px rgba(33,150,243,0.2);
}

/* Module: Download Center */
.lab-module-history-download .lab-download-list {
    list-style: none;
    padding: 0;
}

.lab-module-history-download .lab-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.lab-module-history-download .lab-download-item:hover {
    background: rgba(33,150,243,0.04);
}

.lab-download-info {
    display: flex;
    flex-direction: column;
}

.lab-download-name {
    font-weight: 600;
    color: #212121;
}

.lab-download-meta {
    font-size: 0.8rem;
    color: #757575;
}

.lab-btn-download {
    background: #fff;
    border: 2px solid #2196F3;
    color: #2196F3;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
}

.lab-btn-download:hover {
    background: #2196F3;
    color: #fff;
}

/* Module: Paper Selection */
.lab-module-paper-selection .lab-paper-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lab-paper-item {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #2196F3;
    box-shadow: 0 0 10px rgba(33,150,243,0.06);
}

.lab-paper-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 6px;
}

.lab-paper-author {
    font-size: 0.85rem;
    color: #2196F3;
    margin-bottom: 8px;
}

.lab-paper-abstract {
    font-size: 0.9rem;
    color: #757575;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Module: Researchers */
.lab-module-researchers .lab-researcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    justify-items: center;
}

.lab-researcher-card {
    text-align: center;
    transition: transform 0.3s;
}

.lab-researcher-card:hover {
    transform: translateY(-4px);
}

.lab-researcher-card .lab-img-researcher {
    width: 120px;
    height: 120px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    object-fit: cover;
    margin: 0 auto 12px;
    box-shadow: 0 0 10px rgba(33,150,243,0.15);
}

.lab-researcher-name {
    font-weight: 700;
    color: #212121;
    margin-bottom: 4px;
}

.lab-researcher-title {
    font-size: 0.8rem;
    color: #757575;
}

.lab-researcher-bio {
    display: none;
    font-size: 0.85rem;
    color: #757575;
    margin-top: 8px;
    padding: 8px;
    background: #f5f8ff;
    border-radius: 4px;
}

.lab-researcher-card:hover .lab-researcher-bio {
    display: block;
}

/* Module: Toolbox */
.lab-module-toolbox .lab-toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lab-card-formula {
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 0 10px rgba(33,150,243,0.08);
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.lab-card-formula:hover {
    box-shadow: 0 0 10px rgba(33,150,243,0.2);
}

.lab-card-formula h3 {
    color: #2196F3;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.lab-card-formula p {
    color: #757575;
    font-size: 0.9rem;
}

/* Module: Data Gallery */
.lab-module-data-gallery .lab-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.lab-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.lab-gallery-item img {
    width: 100%;
    transition: transform 0.3s;
}

.lab-gallery-item:hover img {
    transform: scale(1.05);
}

.lab-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33,33,33,0.7);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Module: Beginner Guide */
.lab-module-beginner-guide .lab-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.lab-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.lab-accordion-item:last-child {
    border-bottom: none;
}

.lab-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #fff;
    transition: background 0.3s;
    font-weight: 600;
    color: #212121;
}

.lab-accordion-header:hover {
    background: rgba(33,150,243,0.04);
}

.lab-accordion-header .lab-accordion-icon {
    color: #2196F3;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.lab-accordion-body {
    display: none;
    padding: 16px 20px;
    background: #f9fbff;
    color: #757575;
    line-height: 1.7;
    font-size: 0.95rem;
}

.lab-accordion-body.lab-accordion-open {
    display: block;
}

/* Module: Forum */
.lab-module-academic-forum .lab-forum-list {
    list-style: none;
    padding: 0;
}

.lab-module-academic-forum .lab-forum-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.lab-module-academic-forum .lab-forum-item:hover {
    background: rgba(33,150,243,0.04);
}

.lab-forum-topic {
    font-weight: 600;
    color: #212121;
}

.lab-forum-meta {
    font-size: 0.8rem;
    color: #757575;
    margin-top: 4px;
}

/* === Video === */
.lab-video-wrapper {
    max-width: 800px;
    margin: 20px auto;
}

.lab-video-player {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(33,150,243,0.1);
}

.lab-video-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #757575;
    margin-top: 8px;
}

/* === Article Page === */
.lab-page-article {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
}

.lab-article-main {
    min-width: 0;
}

.lab-article-header {
    margin-bottom: 24px;
}

.lab-h1-title {
    color: #2196F3;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.lab-article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #757575;
    flex-wrap: wrap;
}

.lab-article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lab-article-content {
    font-size: 1rem;
    line-height: 1.9;
}

.lab-article-content h2 {
    margin-top: 2em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.lab-article-content h3 {
    margin-top: 1.5em;
}

.lab-article-content img {
    margin: 1.5em auto;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(33,150,243,0.1);
}

/* Related Articles */
.lab-related-articles {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.lab-related-articles h3 {
    margin-bottom: 12px;
}

.lab-related-articles ul {
    list-style: none;
    padding: 0;
}

.lab-related-articles li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* Sidebar */
.lab-sidebar {
    position: sticky;
    top: 20px;
}

.lab-sidebar-widget {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(33,150,243,0.06);
}

.lab-sidebar-widget h3 {
    font-size: 1rem;
    color: #2196F3;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2196F3;
}

.lab-sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.lab-sidebar-widget li {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
}

/* === Category List Page === */
.lab-category-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
}

.lab-article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lab-list-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(33,150,243,0.06);
    transition: box-shadow 0.3s;
}

.lab-list-card:hover {
    box-shadow: 0 0 10px rgba(33,150,243,0.2);
}

.lab-list-card .lab-list-img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}

.lab-list-card .lab-list-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lab-list-card .lab-list-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.lab-list-card .lab-list-title a {
    color: #212121;
}

.lab-list-card .lab-list-title a:hover {
    color: #2196F3;
}

.lab-list-card .lab-list-excerpt {
    font-size: 0.9rem;
    color: #757575;
    line-height: 1.5;
    margin-bottom: 8px;
}

.lab-list-card .lab-list-meta {
    font-size: 0.8rem;
    color: #bdbdbd;
}

/* Pagination */
.lab-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.lab-pagination a, .lab-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #757575;
    transition: all 0.3s;
}

.lab-pagination a:hover {
    border-color: #2196F3;
    color: #2196F3;
}

.lab-pagination .lab-page-active {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
}

/* === Monte Carlo Simulator === */
.lab-calc-container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(33,150,243,0.1);
}

.lab-calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.lab-calc-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lab-calc-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212121;
}

.lab-calc-group input, .lab-calc-group select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.lab-calc-group input:focus, .lab-calc-group select:focus {
    border-color: #2196F3;
}

.lab-calc-button {
    grid-column: 1 / -1;
    background: #2196F3;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.lab-calc-button:hover {
    background: #1769aa;
}

.lab-calc-display {
    min-height: 200px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    background: #f9fbff;
}

.lab-calc-display canvas {
    width: 100%;
    max-height: 300px;
}

/* === Footer === */
.lab-footer {
    background: #212121;
    color: #e0e0e0;
    padding: 50px 0 0;
    margin-top: 50px;
}

.lab-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lab-footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2196F3;
}

.lab-footer-col ul {
    list-style: none;
    padding: 0;
}

.lab-footer-col li {
    margin-bottom: 8px;
}

.lab-footer-col a {
    color: #bdbdbd;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.lab-footer-col a:hover {
    color: #2196F3;
}

.lab-footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #bdbdbd;
}

.lab-footer-bottom {
    border-top: 1px solid #424242;
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}

.lab-footer-copyright {
    font-size: 0.85rem;
    color: #757575;
    margin-bottom: 8px;
}

.lab-footer-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 12px 0;
}

.lab-footer-badges img {
    width: 80px;
    height: 80px;
}

.lab-footer-seo {
    font-size: 12px;
    color: #757575;
    line-height: 1.5;
    max-width: 800px;
    margin: 12px auto 0;
}

.lab-footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.lab-footer-social a {
    color: #757575;
    font-size: 0.9rem;
}

.lab-footer-social a:hover {
    color: #2196F3;
}

/* === Timeline === */
.lab-timeline {
    position: relative;
    padding-left: 30px;
}

.lab-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2196F3;
}

.lab-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.lab-timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #2196F3;
    border-radius: 50%;
    border: 2px solid #fff;
}

.lab-timeline-year {
    font-weight: 700;
    color: #2196F3;
    font-size: 1.1rem;
}

.lab-timeline-desc {
    color: #757575;
    font-size: 0.95rem;
}

/* === FAQ === */
.lab-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.lab-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.lab-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    color: #212121;
    transition: background 0.3s;
}

.lab-faq-question:hover {
    background: rgba(33,150,243,0.04);
}

.lab-faq-answer {
    display: none;
    padding: 16px 20px;
    background: #f9fbff;
    color: #757575;
    line-height: 1.7;
}

.lab-faq-answer.lab-faq-open {
    display: block;
}

/* === Legal Pages === */
.lab-legal-content {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(33,150,243,0.06);
}

.lab-legal-content h2 {
    margin-top: 2em;
    color: #2196F3;
}

.lab-legal-content h3 {
    margin-top: 1.5em;
}

/* === SVG Formula Animation === */
.lab-formula-handwrite {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: lab-handwrite 3s ease forwards;
}

@keyframes lab-handwrite {
    to { stroke-dashoffset: 0; }
}

.lab-card-article:hover .lab-formula-handwrite {
    animation-duration: 1.5s;
}

/* === Data Flow Waterfall === */
.lab-waterfall-bg {
    position: relative;
    overflow: hidden;
}

.lab-waterfall-bg::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(33,150,243,0.03) 30%,
        rgba(33,150,243,0.06) 60%,
        transparent 100%);
    animation: lab-waterfall 4s linear infinite;
    pointer-events: none;
}

@keyframes lab-waterfall {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* === Coordinate Axis Animation === */
@keyframes lab-axis-draw {
    from { stroke-dashoffset: 500; }
    to { stroke-dashoffset: 0; }
}

.lab-axis-animate {
    stroke-dasharray: 500;
    animation: lab-axis-draw 2s ease forwards;
}

/* === Responsive === */
@media (max-width: 1199px) {
    .lab-page-article,
    .lab-category-content {
        grid-template-columns: 1fr;
    }
    .lab-sidebar {
        position: static;
    }
}

@media (max-width: 991px) {
    .lab-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lab-nav-main {
        display: none;
    }
    .lab-nav-hamburger {
        display: flex;
    }
    .lab-header-logo img {
        display: none;
    }
    .lab-header-logo-mobile img {
        display: block;
    }
    .lab-btn-cta.lab-desktop-only {
        display: none;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    .lab-banner { height: 180px; }
    .lab-section { padding: 30px 0; }
    .lab-list-card {
        flex-direction: column;
    }
    .lab-list-card .lab-list-img {
        width: 100%;
        height: 180px;
    }
    .lab-calc-form {
        grid-template-columns: 1fr;
    }
    .lab-footer-grid {
        grid-template-columns: 1fr;
    }
    .lab-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 479px) {
    body { font-size: 15px; }
    .lab-container { padding: 0 12px; }
    .lab-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .lab-card-grid {
        grid-template-columns: 1fr;
    }
}
