:root {
    --primary-color: #2C3E50;
    --secondary-color: #34495E;
    --accent-color: #3498DB;
    --accent-hover: #2980B9;
    --bg-light: #F9FAFB;
    --text-main: #333333;
    --text-light: #666666;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

nav a:hover {
    color: var(--accent-color);
}

.btn-submit {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FDFBFB 0%, #EBEDEE 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

/* Sidebar Styles */
.sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.cover-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.journal-cover {
    width: 100%;
    max-width: 200px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-radius: 4px;
    transition: transform 0.3s;
}

.journal-cover:hover {
    transform: translateY(-5px);
}

.info-list {
    list-style: none;
    font-size: 0.95rem;
}

.info-list li {
    margin-bottom: 0.8rem;
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 700;
    color: var(--primary-color);
    width: 80px;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-light);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    color: var(--primary-color);
}

/* Articles */
.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-authors {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.article-abstract {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-actions {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ecf0f1;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Forms (Login/Register) */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--accent-color);
}

/* Tables (Editorial/Archives) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--primary-color);
}

/* Article Detail */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-full-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.article-full-text p {
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--secondary-color);
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

/* ============================================
   OJS 覆盖样式
   ============================================ */

/* 隐藏OJS默认结构 */
.pkp_structure_head,
.pkp_structure_page > .pkp_structure_content,
.pkp_structure_footer {
    display: none !important;
}

/* 重置OJS页面结构 */
.pkp_structure_page {
    all: unset;
}

/* 链接样式 */
a:hover {
    color: var(--accent-color);
}

/* 文章列表样式 - OJS兼容 */
.obj_article_summary {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.obj_article_summary:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.obj_article_summary .title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.obj_article_summary .title a:hover {
    color: var(--accent-color);
}

.obj_article_summary .authors {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.obj_article_summary .meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 期号列表 */
.obj_issue_summary {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.obj_issue_summary:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.obj_issue_summary .title {
    font-weight: bold;
    font-size: 1.1rem;
}

.obj_issue_summary .series {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 公告列表 */
.obj_announcements_list {
    margin-bottom: 2rem;
}

.obj_announcement_summary {
    margin-bottom: 0.5rem;
}

.obj_announcement_summary .title a {
    color: var(--primary-color);
    font-weight: 500;
}

.obj_announcement_summary .title a:hover {
    color: var(--accent-color);
}

.obj_announcement_summary .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 按钮样式 */
.pkp_button,
button,
input[type="submit"] {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pkp_button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

/* 表单样式 */
.pkp_form input[type="text"],
.pkp_form input[type="email"],
.pkp_form input[type="password"],
.pkp_form textarea,
.pkp_form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.pkp_form input:focus,
.pkp_form textarea:focus,
.pkp_form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.pkp_form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* 分页 */
.cmp_pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.cmp_pagination a,
.cmp_pagination .current {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.cmp_pagination .current {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.cmp_pagination a:hover {
    border-color: var(--accent-color);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    aside {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    aside {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .article-card {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.1rem;
    }
}
