/* mRNA技术博客样式 */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --accent: #22d3ee;
    --bg-dark: #0f0a1a;
    --bg-card: #1a1333;
    --bg-card-hover: #251b4d;
    --text-primary: #f5f3ff;
    --text-secondary: #c4b5fd;
    --text-muted: #8b5cf6;
    --border: #4c1d95;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #22d3ee 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* 面包屑 */
.breadcrumb {
    padding: 100px 0 20px;
    background: var(--bg-dark);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* 英雄区 */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* 分类网格 */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    opacity: 0;
    transform: translateY(20px);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.card-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.card-body {
    padding: 20px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    opacity: 0;
    transform: translateY(20px);
}

.article-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.article-image {
    width: 120px;
    min-height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.article-content {
    padding: 16px;
    flex: 1;
}

.article-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.article-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.article-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 文章详情 */
.article-detail {
    padding: 100px 0 60px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header .tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-header .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: var(--primary-light);
}

.article-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.article-body ul, .article-body ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
}

/* 外链区域 */
.external-links {
    padding: 60px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.external-links h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.links-container a {
    padding: 8px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.links-container a:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* 页脚 */
.footer {
    padding: 40px 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; }
    .categories-grid, .article-grid { grid-template-columns: 1fr; }
    .article-card { flex-direction: column; }
    .article-image { width: 100%; min-height: 100px; }
}
