/* ============================================
   电子报刊系统 - 完整样式（v2 浅色版首页）
   ============================================ */

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== 顶部信息栏 ===== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

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

.top-bar-left {
    display: flex;
    gap: 16px;
}

.top-bar-right {
    display: flex;
    gap: 16px;
}

.top-bar a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: #b91c1c;
}

/* ===== 主导航（首页 v2） ===== */
.main-nav {
    background: #fff;
    border-bottom: 2px solid #b91c1c;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
}

.brand-sub {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 2px;
}

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

.nav-links a {
    display: block;
    padding: 8px 18px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #b91c1c;
    background: #fef2f2;
}

.nav-links a.active {
    font-weight: 700;
}

/* 旧页面导航菜单（search.php / article.php 等） */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a73e8;
    background: #e8f0fe;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 1px;
}

.nav-search-box {
    position: relative;
    width: 220px;
    flex-shrink: 0;
}

.nav-search-box form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.nav-search-box input {
    width: 100%;
    padding: 8px 36px 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    background: #f9f9f9;
}

.nav-search-box input:focus {
    border-color: #b91c1c;
    background: #fff;
}

.nav-search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    padding: 4px;
}

/* ===== 导航（旧页面兼容） ===== */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 20px;
}

.navbar-dark {
    background: #1a73e8;
    border-bottom: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-dark .nav-container {
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.navbar-dark .logo {
    color: #fff;
}

.logo-icon {
    font-size: 24px;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    letter-spacing: 2px;
}

.btn-back {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-back:hover {
    background: #e8f0fe;
}

.navbar-dark .btn-back {
    color: #fff;
}

.navbar-dark .btn-back:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== 首页主体容器 ===== */
.papers-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== 搜索横幅 ===== */
.search-banner {
    background: linear-gradient(135deg, #fef2f2, #fff7f7);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 36px 40px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.search-banner-text h3 {
    font-family: "Noto Serif SC", serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.search-banner-text p {
    font-size: 14px;
    color: #888;
}

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

.search-banner-form input {
    width: 260px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-banner-form input:focus {
    border-color: #b91c1c;
}

.search-banner-form button {
    padding: 10px 24px;
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.search-banner-form button:hover {
    background: #991b1b;
}

/* ===== 大封面 + 近期列表 ===== */
.featured-row {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.featured-cover {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-cover:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.featured-cover-img {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #d1d5db;
    position: relative;
    overflow: hidden;
}

.featured-cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-cover-img span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.featured-cover-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b91c1c;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.featured-cover-info {
    padding: 16px 20px;
}

.featured-cover-info h3 {
    font-family: "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.featured-cover-info .meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-list {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.featured-list-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 16px;
}

.featured-list-title h3 {
    font-family: "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    padding-left: 14px;
}

.featured-list-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #b91c1c;
    border-radius: 2px;
}

.featured-list-title a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.featured-list-title a:hover {
    color: #b91c1c;
}

.paper-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

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

.paper-item:hover {
    background: #fafafa;
}

.paper-item:hover .paper-item-name {
    color: #b91c1c;
}

.paper-item-thumb {
    width: 64px;
    height: 84px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ddd;
}

.paper-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.paper-item-info {
    flex: 1;
    min-width: 0;
}

.paper-item-name {
    font-family: "Noto Serif SC", serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paper-item-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.paper-item-arrow {
    color: #ddd;
    font-size: 18px;
    transition: all 0.2s;
}

.paper-item:hover .paper-item-arrow {
    color: #b91c1c;
    transform: translateX(3px);
}

/* ===== 区块标题 ===== */
.section-block {
    margin-bottom: 36px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-head h2 {
    font-family: "Noto Serif SC", serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    padding-left: 14px;
}

.section-head h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #b91c1c;
    border-radius: 2px;
}

.section-head .more {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.section-head .more:hover {
    color: #b91c1c;
}

/* ===== 通用按钮（保留给其他页面） ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(185,28,28,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(185,28,28,0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(185,28,28,0.08);
    color: #b91c1c;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(185,28,28,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(185,28,28,0.15);
}

/* ===== 报刊卡片网格（首页 + list.php 共用容器） ===== */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.paper-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.paper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

/* 首页 v2 卡片子元素 */
.paper-card-cover {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ddd;
}

.paper-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.paper-card:hover .paper-card-cover img {
    transform: scale(1.05);
}

.paper-card-cover span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.paper-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(185,28,28,0.9);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

.paper-card-body {
    padding: 12px 14px;
}

.paper-card-body h4 {
    font-family: "Noto Serif SC", serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paper-card-body .meta {
    font-size: 12px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

/* list.php 报刊卡片子元素（补充） */
.paper-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.paper-cover {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ddd;
}

.paper-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.paper-card:hover .paper-cover img {
    transform: scale(1.05);
}

.cover-placeholder-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    color: #ddd;
}

/* ===== 栏目导航 ===== */
.categories-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.cat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
    border: 1px solid transparent;
    display: block;
}

.cat-card:hover {
    border-color: #b91c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(185,28,28,0.08);
}

.cat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    transition: background 0.3s;
}

.cat-card:hover .cat-card-icon {
    background: #b91c1c;
}

.cat-card-icon span {
    transition: color 0.3s;
}

.cat-card:hover .cat-card-icon span {
    color: #fff;
}

.cat-card-name {
    font-family: "Noto Serif SC", serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.cat-card-count {
    font-size: 12px;
    color: #aaa;
}

/* ===== 页脚 ===== */
.footer {
    background: #fff;
    border-top: 3px solid #b91c1c;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.footer-brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    font-family: "Noto Serif SC", serif;
}

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

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 13px;
    color: #bbb;
}

.footer-icp {
    font-size: 12px;
    color: #ccc;
    margin-top: 4px;
}

.footer-icp a {
    color: #ccc;
    text-decoration: none;
}

.footer-icp a:hover {
    color: #b91c1c;
}

/* ============================================
   阅读页样式（read.php）
   ============================================ */
.read-page {
    background: #1a1a2e;
    color: #fff;
}

.read-nav-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.read-title {
    font-size: 16px;
    font-weight: 600;
}

.read-issue {
    font-size: 13px;
    opacity: 0.7;
}

/* 工具栏 */
.reader-toolbar {
    background: #16213e;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.2s;
}

.tool-btn:hover {
    background: rgba(255,255,255,0.15);
}

.page-indicator {
    color: #ccc;
    font-size: 14px;
    padding: 0 12px;
    min-width: 80px;
    text-align: center;
}

/* 阅读器 */
.reader-wrapper {
    display: flex;
    min-height: calc(100vh - 110px);
}

/* 目录侧边栏 */
.catalog-sidebar {
    width: 260px;
    background: #0f3460;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s;
    position: fixed;
    top: 110px;
    left: 0;
    bottom: 0;
    z-index: 50;
}

.catalog-sidebar.open {
    transform: translateX(0);
}

.catalog-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.catalog-header h3 {
    font-size: 15px;
    color: #fff;
}

.catalog-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.catalog-list {
    padding: 8px;
}

.catalog-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 2px;
    color: #fff;
}

.catalog-item:hover {
    background: rgba(255,255,255,0.1);
}

.catalog-page {
    font-weight: 700;
    color: #4a9eff;
    margin-right: 8px;
}

.catalog-title {
    font-size: 14px;
}

.catalog-category {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.reader-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flipbook {
    margin: 0 auto;
}

.flipbook .page-sheet {
    background: #fff;
    overflow: hidden;
}

.page-content {
    width: 100%;
    height: 100%;
}

.page-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 版面热区图层 */
.page-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.page-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hotspot-area {
    position: absolute;
    border: 2px solid rgba(26,115,232,0.6);
    background: rgba(26,115,232,0.08);
    border-radius: 3px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.hotspot-area:hover {
    background: rgba(26,115,232,0.22);
    border-color: #1a73e8;
}

.hotspot-label {
    font-size: 11px;
    color: #fff;
    background: rgba(26,115,232,0.8);
    padding: 1px 6px;
    border-radius: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

/* 占位符（read.php 用） */
.page-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
}

/* 移动端阅读导航 */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #16213e;
    padding: 12px;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.mobile-nav button {
    background: #1a73e8;
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.mobile-nav span {
    color: #ccc;
    font-size: 14px;
}

/* ============================================
   列表页（list.php、categories.php）
   ============================================ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: #666;
    font-size: 15px;
}

.back-link {
    display: inline-block;
    color: #1a73e8;
    font-size: 14px;
    margin-top: 8px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 32px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.page-link.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.page-ellipsis {
    color: #999;
    padding: 0 4px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-state a {
    color: #1a73e8;
}

/* ===== 按钮通用 ===== */
.btn, .btn-sm, .btn-red, .btn-gray, .btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
}

.btn-sm:hover {
    background: #e0e0e0;
}

.btn-red {
    background: #dc3545;
    color: #fff;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.btn-red:hover {
    background: #c82333;
}

.btn-gray {
    background: #f0f0f0;
    color: #333;
    padding: 8px 20px;
}

.btn-block {
    width: 100%;
}

/* ===== 页面缩略图（栏目页） ===== */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.page-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.page-thumb {
    height: 220px;
    overflow: hidden;
    background: #eee;
}

.page-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-thumb-placeholder {
    height: 220px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.page-card-info {
    padding: 12px;
}

.page-card-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-card-info p {
    font-size: 12px;
    color: #999;
}

/* ============================================
   版面详情页样式（page.php）
   ============================================ */
.page-detail-body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-detail-toolbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 40;
}

.toolbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #1a73e8;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1557b0;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #ccc;
    font-size: 12px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* 工具按钮 */
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.tool-action:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}

/* 主内容区 */
.page-detail-main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

.page-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* 左侧大图区 */
.page-detail-image-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.page-detail-image {
    position: relative;
    display: inline-block;
    line-height: 0;
    width: 100%;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.page-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 热区（详情页专用） */
.hotspot-detail {
    border: 2px solid rgba(26,115,232,0.5);
    background: rgba(26,115,232,0.06);
}

.hotspot-detail:hover {
    background: rgba(26,115,232,0.18);
    border-color: #1a73e8;
}

/* 上下版切换 */
.page-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    gap: 12px;
}

.page-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
}

.page-nav-btn:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

.page-nav-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.page-nav-btn.disabled:hover {
    background: #f5f5f5;
    color: #ccc;
}

/* 右侧边栏 */
.page-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-block {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

/* 报刊信息表格 */
.sidebar-paper-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paper-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.paper-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}

.info-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    text-align: right;
}

/* 文章列表 */
.sidebar-article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-article-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.sidebar-article-list li a:hover {
    background: #f5f5f5;
}

.article-title {
    font-size: 14px;
    color: #333;
    flex: 1;
    padding-right: 8px;
}

.article-meta {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* 版面列表 */
.sidebar-page-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-page-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.sidebar-page-item:hover {
    background: #f5f5f5;
}

.sidebar-page-item.active {
    background: #e8f0fe;
    color: #1a73e8;
}

.sp-num {
    font-size: 13px;
    font-weight: 700;
    color: #1a73e8;
    flex-shrink: 0;
    min-width: 36px;
}

.sp-title {
    font-size: 13px;
    color: #333;
}

.sidebar-page-item.active .sp-title {
    color: #1a73e8;
}

/* 版面详情页脚 */
.page-detail-footer {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

.page-detail-footer a {
    color: #666;
    text-decoration: none;
}

.page-detail-footer a:hover {
    color: #1a73e8;
}

/* 占位符（page.php 用） */
.page-detail-placeholder {
    width: 100%;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
}

.page-detail-placeholder p {
    font-size: 14px;
    margin-top: 12px;
}

/* 当前版面指示 */
.page-nav-current {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.nav-current-num {
    font-size: 20px;
    color: #1a73e8;
}

.nav-current-total {
    color: #999;
}

/* ============================================
   文章详情页样式（article.php）
   ============================================ */
.article-page {
    background: #fff;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.article-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 32px;
}

.article-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 16px;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #999;
}

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

.article-summary {
    background: #f8f9fa;
    border-left: 3px solid #1a73e8;
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.article-body {
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    font-size: 17px;
    line-height: 2;
    color: #1a1a2e;
    column-count: 2;
    column-gap: 40px;
    text-align: justify;
}

.article-body p {
    margin: 0 0 1em 0;
    text-indent: 2em;
}

.article-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

/* ============================================
   文章面板（热区同页查看）
   ============================================ */
.article-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.article-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.article-panel {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 999;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-panel.active {
    right: 0;
}

.article-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.article-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    flex: 1;
    padding-right: 12px;
}

.article-panel-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
    flex-shrink: 0;
}

.article-panel-close:hover {
    background: #ef4444;
    color: #fff;
}

.article-panel-meta {
    padding: 12px 20px;
    font-size: 13px;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.article-panel-actions {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: #1a73e8;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-action:hover {
    background: #1557b0;
}

.article-panel-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    font-size: 16px;
    line-height: 2;
    color: #1a1a2e;
    column-count: 2;
    column-gap: 32px;
    text-align: justify;
}

.article-panel-body p {
    margin: 0 0 16px 0;
    text-indent: 2em;
}

/* ============================================
   搜索页面样式（search.php）
   ============================================ */
.search-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 60px 24px;
    color: #fff;
    text-align: center;
}

.search-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrap {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    outline: none;
    background: #fff;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 14px 28px;
    background: #f59e0b;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #d97706;
}

.search-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.results-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8e8e8;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.results-count strong {
    color: #1a73e8;
}

.paper-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.article-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-result-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-result-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.result-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.result-title a {
    color: inherit;
    text-decoration: none;
}

.result-title a:hover {
    color: #1a73e8;
}

.result-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.result-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 搜索过滤 */
.search-filters {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.filter-item input[type="date"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-cancel {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-cancel:hover {
    background: rgba(255,255,255,0.25);
}

/* 搜索结果容器 */
.results-container {
    max-width: 1100px;
    margin: 0 auto;
}

.results-section {
    margin-bottom: 40px;
}

.results-section .section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* 报刊结果卡片 */
.paper-result-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.paper-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

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

.paper-result-cover {
    width: 120px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.paper-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.paper-result-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.paper-result-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.paper-result-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.paper-result-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
}

/* 文章结果链接 */
.article-result-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-result-link h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.article-result-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.article-result-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 空状态 */
.no-results,
.search-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-results-icon,
.search-placeholder-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.no-results h3,
.search-placeholder h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* 分页（search.php 专用） */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    background: #fff;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #1a73e8;
    text-decoration: none;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #1a73e8;
    color: #fff;
}

.page-info {
    font-size: 14px;
    color: #666;
    padding: 0 12px;
}

/* 页脚（旧页面兼容） */
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

/* ============================================
   后台管理样式（admin/*）
   ============================================ */
.admin-body {
    background: #f0f2f5;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: #1a1a2e;
    color: #fff;
    z-index: 100;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 18px;
    font-weight: 700;
    font-family: "Noto Serif SC", serif;
}

.admin-sidebar-nav {
    padding: 12px 0;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.admin-sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-sidebar-nav a.active {
    background: rgba(196,30,58,0.3);
    color: #fff;
    border-right: 3px solid #c41e3a;
}

.admin-main {
    margin-left: 240px;
    padding: 20px;
    min-height: 100vh;
}

.admin-header {
    background: #fff;
    padding: 16px 24px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.admin-content {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* 表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover td {
    background: #f8f9fa;
}

/* 表单 */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.admin-form-group input[type="text"],
.admin-form-group input[type="date"],
.admin-form-group input[type="number"],
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
    border-color: #1a73e8;
}

.admin-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
}

/* 按钮 */
.btn-primary {
    background: #1a73e8;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 缩略图 */
.admin-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* 登录页 */
.login-page {
    background: #1a1a2e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.login-box h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 24px;
    font-family: "Noto Serif SC", serif;
}

.login-box .form-group {
    margin-bottom: 16px;
}

.login-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.login-box input:focus {
    border-color: #1a73e8;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.login-box button:hover {
    background: #1557b0;
}

.login-error {
    background: #fef2f2;
    color: #dc3545;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

/* 热区管理 */
.hotspot-manager {
    position: relative;
    display: inline-block;
}

.hotspot-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hotspot-box {
    position: absolute;
    border: 2px dashed #1a73e8;
    background: rgba(26,115,232,0.1);
    cursor: move;
}

.hotspot-box.selected {
    border-color: #c41e3a;
    background: rgba(196,30,58,0.15);
}

.hotspot-resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1a73e8;
    border: 1px solid #fff;
    border-radius: 1px;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .featured-row {
        grid-template-columns: 1fr;
    }

    .featured-cover-img {
        height: 380px;
    }

    .papers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-links,
    .nav-menu {
        display: none;
    }

    .page-detail-layout {
        grid-template-columns: 1fr;
    }

    .page-detail-sidebar {
        order: -1;
    }

    .article-panel {
        width: 100%;
        right: -100%;
    }

    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .papers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .categories-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .search-banner-form input {
        width: 100%;
    }

    .featured-cover-img {
        height: 300px;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 12px;
        font-size: 12px;
    }

    .mobile-nav,
    .nav-toggle {
        display: flex;
    }

    .nav-search-box {
        display: none;
    }

    .article-body {
        column-count: 1;
    }

    .article-panel-body {
        column-count: 1;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .paper-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .papers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-cover-img {
        height: 240px;
    }

    .featured-cover-info h3 {
        font-size: 16px;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .reader-toolbar,
    .mobile-nav,
    .admin-sidebar,
    .admin-header,
    .article-panel,
    .article-panel-overlay {
        display: none !important;
    }

    .article-body,
    .article-panel-body {
        column-count: 1 !important;
    }
}
