/* 实验室中心页面样式 - 方案C大图沉浸式 */

:root {
    --primary-color: #0066ff;
    --accent-color: #0066ff;
    --text-dark: #000;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #e5e5e5;
    --bg-light: #fafafa;
    --bg-dark: #0a0a0a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Hero ===== */
.lab-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    overflow: hidden;
}
.lab-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0,102,255,0.12), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,102,255,0.06), transparent 50%);
}
.lab-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.lab-hero-content .section-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    padding: 6px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-weight: 600;
}
.lab-hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 14px;
}
.lab-hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
}

/* ===== 精选大图卡片 ===== */
.featured-section {
    padding: 50px 60px 30px;
    background: var(--bg-light);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header h3 {
    font-size: 13px;
    color: var(--text-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}
.featured-card {
    position: relative;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
.featured-card-img {
    position: absolute;
    inset: 0;
}
.featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: var(--transition);
}
.featured-card:hover::before {
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.15) 100%);
}
.featured-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    z-index: 2;
    max-width: 65%;
}
.featured-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.featured-tag {
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}
.featured-tag.recommend { background: rgba(16,185,129,0.85); color: #fff; }
.featured-tag.pdf { background: rgba(0,102,255,0.85); color: #fff; }
.featured-tag.date { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }
.featured-title {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.35;
    letter-spacing: -0.5px;
}
.featured-summary {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 24px;
}
.featured-foot {
    display: flex;
    align-items: center;
    gap: 20px;
}
.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    color: #000;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.featured-link:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,102,255,0.3);
}
.featured-views {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===== 全部方案列表区 ===== */
.list-section {
    padding: 30px 60px 60px;
    background: var(--bg-light);
}
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
}
.list-header h3 {
    font-size: 13px;
    color: var(--text-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}
.list-count {
    font-size: 13px;
    color: var(--text-light);
}

/* 列表网格 - 2列大图沉浸式 */
.lab-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 大图沉浸式卡片（方案C） */
.lab-card {
    position: relative;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
/* 第一个卡片占满整行 */
.lab-card:first-child {
    grid-column: 1 / -1;
    height: 420px;
}
.lab-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

/* 卡片全幅背景图 */
.lab-card-bg {
    position: absolute;
    inset: 0;
}
.lab-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.lab-card:hover .lab-card-bg img {
    transform: scale(1.05);
}
/* 无封面时的渐变背景 */
.lab-card-bg.no-cover {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lab-card-bg.no-cover span {
    color: rgba(255,255,255,0.08);
    font-size: 80px;
    font-weight: 900;
}

/* 渐变遮罩 - 从底部深到顶部透明 */
.lab-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
    transition: var(--transition);
}
.lab-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

/* 卡片内容区 - 底部叠加 */
.lab-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    z-index: 2;
}
.lab-card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.lab-card-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.lab-card-tag.pdf {
    background: rgba(0,102,255,0.8);
    color: #fff;
}
.lab-card-tag.date {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}
.lab-card-tag.featured-tag {
    background: rgba(16,185,129,0.85);
    color: #fff;
}
.lab-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition);
}
.lab-card:hover .lab-card-title { color: rgba(255,255,255,0.95); }
.lab-card-summary {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
}
.lab-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lab-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    transition: var(--transition);
}
.lab-card-link:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.lab-card-views {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* 空状态 */
.lab-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.lab-empty p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* 加载状态 */
.lab-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.lab-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: lab-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes lab-spin {
    to { transform: rotate(360deg); }
}

/* ===== 详情页 ===== */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 30px 80px;
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: var(--transition);
}
.article-back:hover { color: var(--accent-color); }
.article-header {
    margin-bottom: 40px;
}
.article-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.article-tag {
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.article-tag.pdf { background: rgba(0,102,255,0.08); color: var(--accent-color); }
.article-tag.date { background: #f0f0f0; color: var(--text-light); }
.article-tag.views { background: #f0f0f0; color: var(--text-light); }
.article-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.35;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.article-summary {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

/* 封面图（保留但不再使用） */
.article-cover {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}
.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 详情页配图（单列全宽，与文字宽度一致） */
.article-detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.detail-image-item {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* 富文本内容 */
.article-content {
    font-size: 16px;
    color: #333;
    line-height: 2;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-dark);
}
.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 16px;
    color: var(--text-dark);
}
.article-content p {
    margin-bottom: 16px;
}
.article-content a {
    color: var(--accent-color);
    text-decoration: underline;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article-content table th,
.article-content table td {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    text-align: left;
}
.article-content table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* PDF预览区 */
.article-pdf {
    margin-top: 50px;
    border-top: 2px solid var(--accent-color);
    padding-top: 30px;
}
.article-pdf h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdf-viewer {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}
.pdf-viewer iframe {
    width: 100%;
    height: 80vh;
    border: none;
}
.pdf-page {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e0e0e0;
}
.pdf-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}
.pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.pdf-download:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,255,0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .featured-section, .list-section { padding-left: 30px; padding-right: 30px; }
    .featured-card-body { max-width: 80%; }
    .featured-title { font-size: 28px; }
}
@media (max-width: 768px) {
    .lab-hero-content h1 { font-size: 36px; }
    .featured-card { height: 350px; }
    .featured-card-body { max-width: 100%; padding: 30px; }
    .featured-title { font-size: 22px; }
    .featured-summary { display: none; }
    .lab-list { grid-template-columns: 1fr; }
    .lab-card { height: 320px; }
    .lab-card:first-child { height: 350px; }
    .lab-card-body { padding: 24px; }
    .lab-card-title { font-size: 20px; }
    .article-title { font-size: 26px; }
}
