/* ============================================
   OMGiFacts Theme - 主样式表
   配色灵感来自 Voice 主题 + OMGiFacts.com
   ============================================ */

/* === CSS 变量 === */
:root {
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --nav-bg: #1a1a2e;
    --nav-bg-light: #16213e;
    --bg-color: #e8ecef;
    --card-bg: #f5f5f5;
    --card-bg-hover: #ffffff;
    --text-color: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --heading-color: #1a202c;
    --link-color: #2d3748;
    --link-hover: #e53e3e;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --header-height: 60px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset 基础重置 === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover);
}

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

ul, ol {
    list-style: none;
}

/* === Header 导航栏 === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 20px;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-title-link {
    text-decoration: none;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

.site-title-link:hover .site-title {
    color: var(--primary-color);
}

.custom-logo {
    height: 40px;
    width: auto;
}

/* 导航菜单 */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 18px 16px;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* 下拉菜单 */
.nav-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--nav-bg-light);
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    padding: 12px 20px;
    font-size: 0.85rem;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-menu .sub-menu li a:hover {
    background: rgba(255,255,255,0.08);
    padding-left: 24px;
}

/* Header 操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-toggle,
.mobile-menu-toggle {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* 汉堡菜单图标 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: var(--transition);
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* 搜索面板 */
.search-panel {
    max-height: 0;
    overflow: hidden;
    background: var(--nav-bg-light);
    transition: max-height 0.4s ease;
}

.search-panel.active {
    max-height: 80px;
}

.search-panel-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
}

.search-submit {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.search-submit:hover {
    background: var(--primary-hover);
}

/* 移动端导航面板 */
.mobile-nav-panel {
    display: none;
    background: var(--nav-bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-nav-panel.active {
    max-height: 500px;
}

.mobile-menu {
    padding: 10px 0;
}

.mobile-menu li a {
    display: block;
    padding: 12px 24px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu li a:hover {
    color: var(--primary-color);
    background: rgba(255,255,255,0.05);
}

/* === 主内容区域 === */
.site-main {
    min-height: calc(100vh - var(--header-height) - 200px);
}

.content-area {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px;
}

.content-container {
    display: flex;
    gap: 30px;
}

.content-area.full-width .content-container {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.posts-list {
    flex: 1;
    min-width: 0;
}

/* === 特色文章区域 === */
.featured-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}

.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.featured-main {
    grid-row: 1 / 3;
}

.featured-link {
    display: block;
    position: relative;
    height: 100%;
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 250px;
}

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

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

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.1) 100%
    );
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
}

.featured-content .post-categories {
    margin-bottom: 10px;
}

.featured-content .category-tag {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.featured-main .featured-title {
    font-size: 1.8rem;
}

.featured-meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* === 文章卡片 === */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}

.post-card:hover {
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.card-thumbnail {
    flex-shrink: 0;
    width: 280px;
    min-height: 180px;
    overflow: hidden;
}

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

.post-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-info {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.category-tag {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.category-tag:hover {
    color: var(--primary-hover);
}

.cat-sep {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin: 0 2px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.35;
    margin-bottom: 8px;
    transition: var(--transition);
}

.post-card:hover .card-title {
    color: var(--primary-color);
}

.card-meta {
    margin-bottom: 8px;
}

.post-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.card-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === 加载更多按钮 === */
.load-more-container {
    text-align: center;
    padding: 30px 0;
}

.load-more-btn {
    display: inline-block;
    padding: 14px 48px;
    background: var(--heading-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.load-more-btn.no-more {
    background: var(--text-muted);
    cursor: default;
}

/* === 单篇文章 === */
.single-post {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 40px;
    margin-bottom: 30px;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

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

.single-header {
    margin-bottom: 25px;
}

.single-header .post-categories {
    margin-bottom: 12px;
}

.single-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1.25;
    margin-bottom: 15px;
}

.single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-sep {
    color: var(--text-muted);
}

.post-author a {
    color: var(--text-color);
    font-weight: 500;
}

.post-author a:hover {
    color: var(--primary-color);
}

.reading-time {
    color: var(--text-light);
}

.single-featured-image {
    margin: 0 -40px 30px;
}

.single-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* 文章正文 */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 2em 0 0.8em;
    line-height: 1.3;
}

.entry-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 1.8em 0 0.6em;
}

.entry-content ul,
.entry-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 25px;
    margin: 1.5em 0;
    background: var(--card-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-light);
}

.entry-content a {
    color: var(--primary-color);
    border-bottom: 1px solid transparent;
}

.entry-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* 社交分享 */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 30px 0;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-pinterest { background: #e60023; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* 文章标签 */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tags-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.tag-link {
    padding: 4px 14px;
    background: var(--card-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 上/下篇导航 */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.nav-prev,
.nav-next {
    padding: 18px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: block;
}

.nav-next {
    text-align: right;
}

.nav-prev:hover,
.nav-next:hover {
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading-color);
    line-height: 1.4;
}

/* === 相关文章 === */
.related-posts {
    margin: 40px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--card-bg-hover);
}

.related-thumb-link {
    display: block;
    height: 160px;
    overflow: hidden;
}

.related-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-thumb-link img {
    transform: scale(1.08);
}

.related-info {
    padding: 15px;
}

.related-info .post-categories {
    margin-bottom: 6px;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.related-title a {
    color: var(--heading-color);
}

.related-title a:hover {
    color: var(--primary-color);
}

/* === 侧边栏 === */
.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-inner {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.widget {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

/* 热门文章 Widget */
.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.popular-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--heading-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
}

.popular-item:first-child .popular-rank {
    background: var(--primary-color);
}

.popular-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--heading-color);
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.popular-title:hover {
    color: var(--primary-color);
}

.popular-meta {
    font-size: 0.8rem;
}

/* 分类导航 Widget */
.category-list {
    list-style: none;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.category-item a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.cat-count {
    background: var(--card-bg);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* === 归档页头部 === */
.archive-header {
    background: var(--nav-bg);
    padding: 40px 0;
}

.archive-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.search-keyword {
    color: var(--primary-color);
}

.archive-description {
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    font-size: 1rem;
}

/* === 404 页面 === */
.error-404-page {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    margin-bottom: 20px;
}

.error-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    color: var(--heading-color);
    line-height: 1;
}

.error-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.error-desc {
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 50px;
}

.error-search-form .search-input {
    flex: 1;
    padding: 12px 18px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

.error-search-form .search-input:focus {
    border-color: var(--primary-color);
}

.search-submit-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit-btn:hover {
    background: var(--primary-hover);
}

.error-popular {
    margin-top: 50px;
}

.error-popular h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* === 页面内容 === */
.page-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

/* === 评论区 === */
.comments-section {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px 40px;
    margin: 30px 0;
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
}

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

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-list .comment-body {
    font-size: 0.95rem;
}

/* 评论表单 */
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
    outline: none;
    margin-bottom: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
}

.comment-form .submit {
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover {
    background: var(--primary-hover);
}

/* === Footer === */
.site-footer {
    background: var(--nav-bg);
    color: rgba(255,255,255,0.65);
    padding: 40px 0 25px;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-disclaimer {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-disclaimer a {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-menu li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-menu li a:hover {
    color: var(--primary-color);
}

/* === 返回顶部 === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* === 分页 === */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 0;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a {
    background: #fff;
    color: var(--text-color);
}

.nav-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.nav-links span.current {
    background: var(--primary-color);
    color: #fff;
}

/* === 无内容提示 === */
.no-content {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: var(--radius-lg);
}

.no-content-icon {
    margin-bottom: 20px;
}

.no-content-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.no-content-desc {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
}

/* === 占位图 SVG === */
.placeholder-thumb {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
