/* ==========================================
   AMWA Child Theme — 主样式表
   OJS 3.5+ | 仿 AMWA Journal 风格
   ========================================== */

/* --- 配色变量 --- */
:root {
    --primary: #1e5b8a;
    --primary-light: #3a7bb5;
    --primary-dark: #14426a;
    --accent: #c4463a;
    --bg-light: #f8f9fa;
    --border: #dee2e6;
    --text: #333333;
    --text-light: #666666;
    --logo-max-width: 1200px;
}

/* ==========================================
   刊名字号
   ========================================== */
.pkp_site_name_wrapper {
    background: var(--primary) !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem;
}



.pkp_site_name_wrapper .pkp_site_name {
    order: 1;
    margin-left: -0.5rem !important;
}


/* ==========================================
   全局文字颜色修正 — 确保正文可读
   ========================================== */
body {
    color: #333333 !important;
}

.pkp_structure_main,
.page_about,
.page_index_journal,
.pkp_page_about .pkp_structure_main p,
.pkp_page_about .pkp_structure_main div {
    color: #333333 !important;
}

.page_about p,
.page_about li,
.page_about div,
.about_section p,
.about_section div {
    color: #333333 !important;
}

/* ==========================================
   布局：左侧栏
   OJS 默认侧边栏在右侧，AMWA 在左侧
   ========================================== */
.pkp_structure_content.has_sidebar .pkp_structure_main {
    float: right;
    width: 68%;
}

.pkp_structure_content.has_sidebar .pkp_structure_sidebar {
    float: left;
    width: 28%;
    margin-right: 2%;
}

.pkp_structure_content:after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================
   Logo + 刊名
   ========================================== */



.pkp_site_name a.is_img img {
    max-width: var(--logo-max-width);
    width: auto;
    height: auto;
    max-height: 80px;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

/* 文字刊名（没有上传 logo 图片时） */
.pkp_site_name .is_text {
    font-size: 3.6rem !important;
}

/* ==========================================
   首页大图
   ========================================== */
.homepage_image {
    margin-bottom: 2rem;
}

.homepage_image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   首页 About 区域
   ========================================== */
.homepage_about {
    padding: 1.5rem;
    background: #fff;
    border-radius: 6px;
    line-height: 1.8;
}

.homepage_about h2 {
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

/* ==========================================
   文章摘要列表
   ========================================== */
.obj_article_summary {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.obj_article_summary .title a {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.obj_article_summary .title a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.obj_article_summary .authors {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

/* ==========================================
   文章详情页
   ========================================== */
.obj_article_details .page_title {
    color: var(--primary);
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.obj_article_details .authors {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.obj_article_details .authors .name {
    font-weight: 600;
}

.obj_article_details .authors .affiliation {
    font-size: 0.85rem;
    color: var(--text-light);
}

.doi_display {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.5rem 0;
}

.doi_display a {
    color: var(--primary-light);
    text-decoration: none;
}

/* ==========================================
   侧边栏区块
   ========================================== */
.pkp_block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pkp_block .title {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

/* 投稿按钮 */
.block_make_submission {
    text-align: center;
    background: var(--primary);
    color: #fff;
    border: none;
}

.block_make_submission .title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.block_make_submission_link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #fff;
    color: var(--primary) !important;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

/* 自定义广告图块 */
.block_custom .content img {
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
}

/* ==========================================
   主导航
   ========================================== */
.pkp_site_nav_menu {
    background: var(--primary);
}

#navigationPrimary li a {
    color: #fff;
    font-weight: 500;
}

#navigationPrimary li a:hover {
    background: var(--primary-dark);
}

/* 下拉菜单文字颜色修正 */
#navigationPrimary li ul li a {
    color: var(--text) !important;
    background: #fff;
}

#navigationPrimary li ul li a:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}

/* ==========================================
   底部
   ========================================== */
.pkp_structure_footer_wrapper {
    background: var(--bg-light);
    border-top: 3px solid var(--primary);
    padding: 2rem 0;
}

.pkp_footer_content {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ==========================================
   响应式适配
   ========================================== */
@media (max-width: 768px) {
    .pkp_structure_content.has_sidebar .pkp_structure_main,
    .pkp_structure_content.has_sidebar .pkp_structure_sidebar {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .pkp_site_name a.is_img img {
        max-width: 280px;
    }
}
