/* ================================
   SUB PAGE STYLES - subpage.css
   ================================ */

/* Page Banner (below nav) */
.page-banner {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.page-banner-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.page-banner-inner {
    max-width: 1550px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-banner-title {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.3;
}

.page-banner-en {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 3px;
    margin-top: 4px;
    font-style: italic;
}

/* Subpage Layout: sidebar left + main right */
.subpage-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 36px 10px 50px;
    align-items: flex-start;
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
}

.subpage-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e0eaf5;
    border-top: 3px solid #1a4b9c;
    padding: 30px 36px 40px;
    box-shadow: 0 2px 12px rgba(26,75,156,0.07);
}

.subpage-sidebar {
    width: 230px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    order: -1;
}

/* Sidebar banner image */
.sidebar-banner {
    width: 100%;
    height: 60px;
    background: url('images/menu-bg.png') center/cover no-repeat, linear-gradient(160deg, #1a4b9c, #2d6cce);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.sidebar-banner-title {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.3;
}

.sidebar-banner-en {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1.5px;
    margin-top: 5px;
    font-style: italic;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 16px;
    color: #999;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: #666;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: #1a4b9c; }

.bc-sep {
    color: #bbb;
    font-size: 14px;
}

.bc-current {
    color: #1a4b9c;
    font-weight: 500;
}

/* Section title bar */
.subpage-section-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e8f0f8;
    padding-bottom: 14px;
}

.subpage-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #1a4b9c;
    border-radius: 2px;
    flex-shrink: 0;
}

.subpage-section-title h2 {
    font-size: 26px;
    color: #1a4b9c;
    font-weight: bold;
}

.title-en {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
    letter-spacing: 1px;
    margin-left: 4px;
}

/* ========================
   ARTICLE LIST
   ======================== */
.article-list {
    list-style: none;
}

.article-item {
    border-bottom: 1px solid #eef3fb;
}
.article-item:last-child { border-bottom: none; }

.article-item-link {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px 12px;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}
.article-item-link:hover {
    background: #f5f8fd;
}
.article-item-link:hover .article-item-title {
    color: #1a4b9c;
}

.article-item-date {
    flex-shrink: 0;
    width: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f5fc;
    border-radius: 4px;
    padding: 8px 4px;
    transition: background 0.2s;
}
.article-item-link:hover .article-item-date {
    background: #1a4b9c;
}
.article-item-link:hover .date-day,
.article-item-link:hover .date-ym {
    color: #fff;
}

.date-day {
    font-size: 32px;
    font-weight: bold;
    color: #1a4b9c;
    line-height: 1;
    transition: color 0.2s;
}

.date-ym {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    transition: color 0.2s;
}

.article-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.article-item-desc {
    font-size: 15px;
    color: #888;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    font-size: 22px;
    color: #ccc;
    transition: color 0.2s;
}
.article-item-link:hover .article-item-arrow { color: #1a4b9c; }

/* ========================
   PAGINATION
   ======================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef3fb;
}

.p_t {
    font-size: 13px;
    color: #999;
}

.p_pages {
    display: flex;
    gap: 6px;
}

.p_fun,
.p_fun_d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d6e4f5;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.p_fun > a,
.p_fun_d > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.p_fun:hover,
.p_fun_d:hover {
    background: #1a4b9c;
    color: #fff;
    border-color: #1a4b9c;
}

.p_fun:hover > a,
.p_fun_d:hover > a {
    color: #fff;
}

.p_no,
.p_no_d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d6e4f5;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.p_no > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.p_no {
    color: #555;
    background: #fff;
}

.p_no:hover {
    background: #1a4b9c;
    color: #fff;
    border-color: #1a4b9c;
}

.p_no:hover > a {
    color: #fff;
}

.p_no_d {
    color: #fff;
    background: #1a4b9c;
    border-color: #1a4b9c;
    font-weight: bold;
}

.p_first,
.p_prev,
.p_next_d,
.p_last_d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d6e4f5;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.p_first > a,
.p_prev > a,
.p_next_d > a,
.p_last_d > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.p_first,
.p_prev {
    color: #555;
    background: #fff;
}

.p_next_d,
.p_last_d {
    color: #555;
    background: #fff;
}

.p_first:hover,
.p_prev:hover,
.p_next_d:hover,
.p_last_d:hover {
    background: #1a4b9c;
    color: #fff;
    border-color: #1a4b9c;
}

.p_first:hover > a,
.p_prev:hover > a,
.p_next_d:hover > a,
.p_last_d:hover > a {
    color: #fff;
}

/* Keep old styles for backward compatibility */
.page-info {
    font-size: 13px;
    color: #999;
}

.page-btns {
    display: flex;
    gap: 6px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d6e4f5;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}
.page-btn:hover {
    background: #1a4b9c;
    color: #fff;
    border-color: #1a4b9c;
}
.page-btn.active {
    background: #1a4b9c;
    color: #fff;
    border-color: #1a4b9c;
    font-weight: bold;
}
.page-btn.disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* ========================
   ARTICLE DETAIL
   ======================== */
.article-title {
    font-size: 29px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.article-meta-item {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}
.article-meta-item svg {
    flex-shrink: 0;
}

.article-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d6e4f5, transparent);
    margin: 18px 0 28px;
}

.article-body {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 18px;
    text-indent: 2em;
}

.article-figure {
    margin: 24px 0;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(26,75,156,0.1);
    display: block;
    margin: 0 auto;
}

.article-figure figcaption {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.article-quote {
    border-left: 4px solid #1a4b9c;
    background: #f0f6ff;
    padding: 14px 20px;
    margin: 20px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

/* Article prev/next nav */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.article-nav-prev,
.article-nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #f5f8fd;
    border: 1px solid #e0eaf5;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}
.article-nav-prev:hover,
.article-nav-next:hover {
    background: #1a4b9c;
    border-color: #1a4b9c;
}
.article-nav-next {
    text-align: right;
}

.article-nav-label {
    font-size: 12px;
    color: #999;
    transition: color 0.2s;
}
.article-nav-prev:hover .article-nav-label,
.article-nav-next:hover .article-nav-label { color: rgba(255,255,255,0.7); }

.article-nav-text {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.article-nav-prev:hover .article-nav-text,
.article-nav-next:hover .article-nav-text { color: #fff; }

/* Back button */
.article-back {
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 10px 36px;
    background: #1a4b9c;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
    letter-spacing: 1px;
}
.back-btn:hover {
    background: #0d3070;
}

/* ========================
   SIDEBAR
   ======================== */
.sidebar-nav-box {
    background: #fff;
    border: 1px solid #e0eaf5;
    border-top: none;
    box-shadow: 0 2px 10px rgba(26,75,156,0.07);
    overflow: hidden;
}

.sidebar-nav-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f5f8fd;
    border-bottom: 1px solid #e0eaf5;
    font-size: 15px;
    font-weight: bold;
    color: #1a4b9c;
}

.sidebar-title-bar {
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #1a4b9c;
    border-radius: 2px;
    flex-shrink: 0;
}

.sidebar-nav-list {
    list-style: none;
}

.sidebar-nav-list li {
    border-bottom: 1px solid #eef3fb;
}
.sidebar-nav-list li:last-child { border-bottom: none; }

.sidebar-nav-list li a {
    display: block;
    padding: 12px 20px 12px 24px;
    font-size: 17px;
    color: #555;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}
.sidebar-nav-list li a::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bbb;
    transition: background 0.2s;
}
.sidebar-nav-list li a:hover,
.sidebar-nav-list li.active a {
    color: #1a4b9c;
    background: #f0f5fc;
    font-weight: bold;
}
.sidebar-nav-list li a:hover::before,
.sidebar-nav-list li.active a::before {
    background: #1a4b9c;
}
.sidebar-nav-list li.active {
    border-left: 3px solid #1a4b9c;
}

/* Recent list */
.sidebar-recent-list {
    list-style: none;
    padding: 8px 0;
}

.sidebar-recent-list li {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-bottom: 1px dashed #eef3fb;
    gap: 4px;
}
.sidebar-recent-list li:last-child { border-bottom: none; }

.sidebar-recent-list li a {
    font-size: 13px;
    color: #444;
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.sidebar-recent-list li a:hover { color: #1a4b9c; }

.sidebar-date {
    font-size: 12px;
    color: #bbb;
}



