/* 极简科技资讯网站样式 */
/* 完全静态，无JS依赖，SEO友好 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 顶部导航 */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #1f2937;
}

.site-title span {
    color: #2563eb;
}

.site-tagline {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #4b5563;
    margin: 4px 0;
    transition: 0.3s;
}

.site-navigation {
    flex: 2;
}

.main-menu {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 2rem;
}

.main-menu a {
    color: #4b5563;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-menu a:hover,
.main-menu a.current {
    color: #2563eb;
}

.main-menu a.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

/* 特色区 */
.featured-area {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 3rem 0;
}

.featured-article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-content {
    padding: 1rem;
}

.featured-label {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 1.875rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1f2937;
}

.featured-content h2 a {
    color: inherit;
}

.featured-content h2 a:hover {
    color: #2563eb;
}

.featured-excerpt {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background-color: #f9fafb;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #9ca3af;
}

.breadcrumb-list a {
    color: #6b7280;
}

.breadcrumb-list a:hover {
    color: #2563eb;
}

/* 主要内容布局 */
.site-main {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* 新闻区块 */
.news-section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-body {
    padding: 1.5rem;
}

.news-category {
    margin-bottom: 0.75rem;
}

.category-tag {
    display: inline-block;
    background-color: #eff6ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.news-title a {
    color: #1f2937;
}

.news-title a:hover {
    color: #2563eb;
}

.news-excerpt {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 侧边栏 */
.sidebar-widget {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.widget-desc {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* 热门文章列表 */
.popular-list {
    list-style: none;
}

.popular-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.popular-rank {
    width: 24px;
    height: 24px;
    background-color: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.popular-item:nth-child(1) .popular-rank {
    background-color: #fee2e2;
    color: #dc2626;
}

.popular-item:nth-child(2) .popular-rank {
    background-color: #fef3c7;
    color: #d97706;
}

.popular-item:nth-child(3) .popular-rank {
    background-color: #dbeafe;
    color: #2563eb;
}

.popular-content h4 {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.popular-content h4 a {
    color: #1f2937;
}

.popular-content h4 a:hover {
    color: #2563eb;
}

.popular-meta {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* 分类链接 */
.category-links,
.subcategory-links {
    list-style: none;
}

.category-links li,
.subcategory-links li {
    margin-bottom: 0.5rem;
}

.category-links a,
.subcategory-links a {
    display: block;
    padding: 0.5rem 0.75rem;
    background-color: #f9fafb;
    color: #4b5563;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.category-links a:hover,
.subcategory-links a:hover {
    background-color: #eff6ff;
    color: #2563eb;
}

/* 订阅表单 */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscribe-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subscribe-form button {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.subscribe-form button:hover {
    background-color: #1d4ed8;
}

/* 列表页样式 */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-description {
    color: #6b7280;
    font-size: 1.125rem;
}

/* .news-list {
    margin-bottom: 3rem;
} */

.list-article {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.list-article:last-child {
    border-bottom: none;
}

.article-image {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-content {
    padding: 0.5rem 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.article-meta .category {
    background-color: #eff6ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #1f2937;
}

.article-title a {
    color: inherit;
}

.article-title a:hover {
    color: #2563eb;
}

.article-excerpt {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 0.875rem;
}



/* 文章详情页 */
.article-main {
    padding: 2rem 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-header .article-meta {
    justify-content: center;
    margin-bottom: 1rem;
}

.article-header .article-author {
    color: #6b7280;
    font-size: 0.875rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1f2937;
}

.article-excerpt {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.article-featured-image {
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.article-body > * {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body ul li::marker {
    color: #2563eb;
}

.article-body ol li::marker {
    color: #2563eb;
    font-weight: 600;
}



.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.performance-table th {
    background-color: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.performance-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.performance-table tr:last-child td {
    border-bottom: none;
}

.quote {
    background-color: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
}

.quote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    color: #6b7280;
    font-size: 0.875rem;
}

.article-tags {
    margin: 2rem 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.article-tags span {
    color: #6b7280;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.article-tags a {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-tags a:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.prev-article,
.next-article {
    max-width: 45%;
    color: #4b5563;
}

.prev-article:hover,
.next-article:hover {
    color: #2563eb;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 500;
    line-height: 1.4;
}

/* 推荐文章区域 */
.recommended-articles {
    margin: 4rem 0;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.recommended-column {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.recommended-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.recommended-list {
    list-style: none;
}

.recommended-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.recommended-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recommended-list a {
    display: block;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.recommended-list a:hover {
    color: #2563eb;
}

/* 页脚 */
.site-footer {
    background-color: #1f2937;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-desc {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    list-style: none;
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.copyright {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.seo-note {
    color: #6b7280;
    font-size: 0.75rem;
}
