/* style.css - 公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimSun', Arial, sans-serif;
    background: #f0f4f8;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   通用链接
   ============================================================ */
a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #e67e22;
    text-decoration: none;
}

/* ============================================================
   顶部
   ============================================================ */
.header {
    background: #fff;
    border-bottom: 3px solid #1a5276;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: #0d2137;
    color: #fff;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.top-bar .welcome {
    color: #8ab3d0;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 4px;
}
.search-form input {
    padding: 4px 12px;
    border: none;
    border-radius: 3px;
    width: 180px;
    font-size: 13px;
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.search-form input::placeholder {
    color: rgba(255,255,255,0.5);
}
.search-form input:focus {
    outline: 2px solid #e67e22;
    background: rgba(255,255,255,0.2);
}
.search-form button {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 4px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}
.search-form button:hover {
    background: #d35400;
}

/* ---------- Logo 区域 ---------- */
.logo-area {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a5276 40%, #1f6a8a 100%);
    padding: 18px 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}
.logo-area::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}
.logo-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e67e22, #f39c12, #f1c40f, #f39c12, #e67e22);
    background-size: 200% 100%;
    animation: shimmerLine 3s ease-in-out infinite;
}
@keyframes shimmerLine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.logo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}
.logo-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo-img {
    height: 90px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.logo-domain {
    font-size: 20px;
    color: #b8d4e8;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.logo-domain::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    margin-right: 16px;
    vertical-align: middle;
}
.logo-slogan {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-slogan .slogan-stars {
    color: #f1c40f;
    font-size: 14px;
    letter-spacing: 6px;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
    animation: twinkle 1.8s ease-in-out infinite;
}
.logo-slogan .slogan-stars:nth-child(1) { animation-delay: 0s; }
.logo-slogan .slogan-stars:nth-child(3) { animation-delay: 0.9s; }
@keyframes twinkle {
    0%, 100% { opacity: 0.5; text-shadow: 0 0 5px rgba(241,196,15,0.2); }
    50% { opacity: 1; text-shadow: 0 0 20px rgba(241,196,15,0.8), 0 0 40px rgba(241,196,15,0.3); }
}
.logo-slogan .slogan-text {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'SimHei', sans-serif;
    letter-spacing: 6px;
    color: #f5e6c8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 0 20px rgba(241,196,15,0.15), 0 0 40px rgba(241,196,15,0.05);
    padding: 8px 20px;
    border-left: 2px solid rgba(241,196,15,0.3);
    border-right: 2px solid rgba(241,196,15,0.3);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(255,255,255,0.03) 100%);
    position: relative;
}
.logo-slogan .slogan-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(241,196,15,0.08) 0%, transparent 70%);
    border-radius: 4px;
    pointer-events: none;
}

/* ---------- 导航栏 ---------- */
.nav-bar {
    background: #1a5276;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.nav-list li {
    position: relative;
}
.nav-list li a {
    display: block;
    padding: 12px 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s;
}
.nav-list li:last-child a {
    border-right: none;
}
.nav-list li a:hover,
.nav-list li a.active {
    background: #e67e22;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   容器
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
    background: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.breadcrumb a {
    display: inline-block;
    color: #1a5276;
    padding: 1px 4px;
    border-radius: 3px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.breadcrumb a:hover {
    color: #fff;
    background-color: #e67e22;
    text-decoration: none;
}
.breadcrumb .sep {
    margin: 0 6px;
    color: #ccc;
}

/* ============================================================
   栏目页 / 列表页布局
   ============================================================ */
.page-wrapper {
    display: flex;
    gap: 20px;
}
.page-main {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.page-sidebar {
    width: 350px;
    flex-shrink: 0;
}
.page-sidebar .sidebar-box {
    background: #fff;
    border-radius: 4px;
    padding: 15px 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.page-sidebar .sidebar-box h3 {
    font-size: 16px;
    color: #1a5276;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8edf2;
    margin-bottom: 12px;
}
.page-sidebar .sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================================
   文章列表（通用）
   ============================================================ */
.article-list .item {
    padding: 10px 6px;
    border-bottom: 1px dashed #e8edf2;
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-radius: 4px;
}
.article-list .item:hover {
    background: #f0f4f8;
    padding-left: 12px;
}
.article-list .item:last-child {
    border-bottom: none;
}
.article-list .item .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.article-list .item .title::before {
    content: "●";
    color: #1a5276;
    font-size: 10px;
    flex-shrink: 0;
}
.article-list .item .title a {
    color: #1a5276;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.25s ease;
}
.article-list .item .title a:hover {
    color: #e67e22;
    background: transparent;
}
.article-list .item .meta {
    color: #999;
    font-size: 13px;
    margin-top: 4px;
}
.article-list .item .meta span {
    margin-right: 15px;
}

/* ============================================================
   子栏目区块（type.php）
   ============================================================ */
.sub-category-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #e8edf2;
    padding-bottom: 15px;
}
.sub-category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.sub-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 2px solid #1a5276;
    margin-bottom: 12px;
}
.sub-category-header h3 {
    font-size: 17px;
    color: #1a5276;
    font-weight: 700;
    position: relative;
    padding-left: 12px;
    margin: 0;
}
.sub-category-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #e67e22;
    border-radius: 2px;
}
.sub-category-header .more-btn {
    display: inline-block;
    font-size: 13px;
    color: #1a5276;
    padding: 3px 12px;
    border: 1px solid #1a5276;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.sub-category-header .more-btn:hover {
    background: #1a5276;
    color: #fff;
    text-decoration: none;
}
.sub-category-body .empty-tip {
    color: #999;
    padding: 10px 0;
    font-size: 14px;
}
.sub-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sub-article-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px dashed #f0f4f8;
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-radius: 4px;
}
.sub-article-list li:hover {
    background: #f0f4f8;
    padding-left: 12px;
}
.sub-article-list li:last-child {
    border-bottom: none;
}
.sub-article-list .article-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: #333;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 15px;
    transition: color 0.25s ease;
}
.sub-article-list .article-title::before {
    content: "●";
    color: #1a5276;
    font-size: 9px;
    flex-shrink: 0;
}
.sub-article-list .article-title:hover {
    color: #e67e22;
    background: transparent;
}
.sub-article-list .article-date {
    flex-shrink: 0;
    color: #999;
    font-size: 13px;
}

/* ============================================================
   侧边栏列表（通用）
   ============================================================ */
.page-sidebar .sidebar-box ul li {
    padding: 6px 4px;
    border-bottom: 1px dashed #f0f4f8;
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-radius: 4px;
}
.page-sidebar .sidebar-box ul li:hover {
    background: #f0f4f8;
    padding-left: 10px;
}
.page-sidebar .sidebar-box ul li:last-child {
    border-bottom: none;
}
.page-sidebar .sidebar-box ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.25s ease;
}
.page-sidebar .sidebar-box ul li a::before {
    content: "●";
    color: #1a5276;
    font-size: 8px;
    flex-shrink: 0;
}
.page-sidebar .sidebar-box ul li a:hover {
    color: #e67e22;
    background: transparent;
}
.page-sidebar .sidebar-box ul li a span {
    margin-left: auto;
}

/* ============================================================
   首页模块
   ============================================================ */
.section {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 3px solid #e67e22;
}
.section-header h2 {
    font-size: 18px;
    color: #1a5276;
}
.section-header .more {
    font-size: 13px;
    color: #999;
}
.section-header .more:hover {
    color: #e67e22;
}
.section-body {
    padding: 15px 20px;
}
.section-body .item {
    padding: 8px 6px;
    border-bottom: 1px dashed #f0f4f8;
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-radius: 4px;
}
.section-body .item:hover {
    background: #f0f4f8;
    padding-left: 12px;
}
.section-body .item:last-child {
    border-bottom: none;
}
.section-body .item .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.section-body .item .title::before {
    content: "●";
    color: #1a5276;
    font-size: 9px;
    flex-shrink: 0;
}
.section-body .item .title a {
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.25s ease;
}
.section-body .item .title a:hover {
    color: #e67e22;
    background: transparent;
}
.section-body .item .date {
    float: right;
    color: #999;
    font-size: 13px;
}

/* 首页双栏布局 */
.home-grid {
    display: flex;
    gap: 20px;
}
.home-grid .col-left {
    flex: 2;
}
.home-grid .col-right {
    flex: 1;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
    text-align: center;
    padding: 20px 0 10px;
}
.pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 4px;
}
.pagination ul li a,
.pagination ul li span {
    display: block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    background: #fff;
    font-size: 13px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.pagination ul li a:hover {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
    text-decoration: none;
}
.pagination ul li.active span {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
}

/* ============================================================
   内容页 (show.php)
   ============================================================ */
.article-detail {
    background: #fff;
    border-radius: 4px;
    padding: 30px 30px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.article-detail h1 {
    font-size: 24px;
    color: #1a5276;
    text-align: center;
    margin-bottom: 15px;
}
.article-detail .info {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf2;
    margin-bottom: 25px;
}
.article-detail .info span {
    margin: 0 10px;
}
.article-detail .content {
    font-size: 15px;
    line-height: 2;
}
.article-detail .content img {
    max-width: 100%;
    height: auto;
}
.article-detail .content table {
    max-width: 100%;
}
.article-detail .content a {
    color: #1a5276;
    transition: color 0.25s ease;
}
.article-detail .content a:hover {
    color: #e67e22;
    text-decoration: underline;
}
.article-detail .content li {
    padding: 3px 0;
    transition: color 0.25s ease;
}
.article-detail .content li:hover {
    color: #e67e22;
}
.article-detail .attachment {
    margin-top: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #e67e22;
}
.article-detail .attachment a {
    color: #1a5276;
    font-weight: bold;
}
.article-detail .attachment a:hover {
    color: #e67e22;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
    background: #0d2137;
    color: #8ab3d0;
    padding: 30px 0 20px;
    margin-top: 30px;
    border-top: 4px solid #e67e22;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.footer-inner p {
    margin: 6px 0;
    font-size: 13px;
}
.footer-inner a {
    color: #8ab3d0;
}
.footer-inner a:hover {
    color: #e67e22;
    text-decoration: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
        padding: 8px 15px;
    }
    .search-form input {
        width: 120px;
    }
    .nav-list {
        flex-wrap: wrap;
    }
    .nav-list li a {
        padding: 10px 14px;
        font-size: 14px;
    }
    .page-wrapper {
        flex-direction: column;
    }
    .page-sidebar {
        width: 100%;
    }
    .home-grid {
        flex-direction: column;
    }
    .container {
        padding: 0 10px;
    }
    .article-detail {
        padding: 15px;
    }
    .logo-inner {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .logo-left {
        gap: 10px;
    }
    .logo-img {
        height: 45px;
    }
    .logo-domain {
        font-size: 16px;
    }
    .logo-domain::before {
        display: none;
    }
    .logo-slogan {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-slogan .slogan-stars {
        font-size: 11px;
        letter-spacing: 4px;
    }
    .logo-slogan .slogan-text {
        font-size: 15px;
        letter-spacing: 4px;
        padding: 5px 14px;
        border-left: 1px solid rgba(241,196,15,0.2);
        border-right: 1px solid rgba(241,196,15,0.2);
    }
    .sub-article-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    .sub-article-list .article-title {
        margin-right: 0;
    }
    .sub-article-list .article-date {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 36px;
    }
    .logo-domain {
        font-size: 13px;
    }
    .logo-slogan .slogan-stars {
        font-size: 9px;
        letter-spacing: 2px;
    }
    .logo-slogan .slogan-text {
        font-size: 12px;
        letter-spacing: 2px;
        padding: 4px 10px;
    }
    .article-list .item .title {
        font-size: 14px;
    }
    .page-main {
        padding: 12px;
    }
}


/* ============================================================
   精简分页
   ============================================================ */
.pagination-simple {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
    flex-wrap: wrap;
}
.pagination-simple a, 
.pagination-simple span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    min-width: 32px;
    text-align: center;
    transition: all 0.2s;
}
.pagination-simple a:hover {
    background: #e8edf2;
    border-color: #bbb;
}
.pagination-simple a.active {
    background: #1a5276;
    border-color: #1a5276;
    color: #fff;
}
.pagination-simple a.disabled,
.pagination-simple span.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #eee;
}
.pagination-simple .page-info {
    color: #999;
    font-size: 13px;
    padding: 0 8px;
    border: none;
    background: transparent;
}