/* ==========================
   全局基础样式（PC 专用）
   ========================== */
html {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: SimSun, "NSimSun", serif;
    background: #f5f7fa;
    color: #333;
}

/* ==========================
   全屏轮播（PC 1920×920）
   ========================== */
.carousel {
    width: 100%;
    height: 920px;
    overflow: hidden;
    position: relative;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.carousel img.active {
    display: block;
}

/* 轮播左右按钮 */
.carousel .prev,
.carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 20px;
    z-index: 10;
}
.carousel .prev { left: 30px; }
.carousel .next { right: 30px; }

/* ==========================
   轮播文字（PC 专用）
   ========================== */
.carousel-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 5;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    display: none;
}
.carousel-text.active {
    display: block;
}
.carousel-text h2 {
    font-size: 52px;
    margin-bottom: 20px;
}
.carousel-text p {
    font-size: 24px;
}

/* ==========================
   页眉导航（PC）
   ========================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: rgba(25, 25, 25, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
}

.header .wrap {
    width: 100%;
    max-width: 100%;
    height: 85px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 100px;
    padding-right: 20px;
}

.header .logo {
    height: 65px;
    width: auto;
    display: block;
}

/* 导航链接 */
.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 55px;
}

.header a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.header a:hover {
    color: #ddd;
}

/* ==========================
   主体内容（PC）
   ========================== */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.box {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

p {
    line-height: 1.8;
    margin: 15px 0;
    color: #666;
}

/* ==========================
   首页双图（PC）
   ========================== */
.home-img-box {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0;
}
.home-img-box img {
    width: calc(50% - 15px);
    height: 518px;
    object-fit: cover;
}

/* ==========================
   普通图片区块
   ========================== */
.top-img-box {
    margin: 30px auto;
    width: 100%;
}
.top-img-box img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================
   背景图头部
   ========================== */
.header-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================
   about 页面轮播高度
   ========================== */
.about-page .carousel {
    height: 250px !important;
}

/* ==========================
   图片并排
   ========================== */
.img-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}
.img-row img {
    width: 48%;
    height: auto;
    object-fit: cover;
}

/* ==========================
   筛选区
   ========================== */
.filter-wrap {
    margin: 20px 0;
}
.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}
.filter-label {
    font-size: 22px;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
}
.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================
   标题 + 信息
   ========================== */
.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.title-container h3 {
    margin: 0;
}
.info {
    color: #999;
    font-size: 14px;
    width: 350px;
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
}

/* ==========================
   点赞 / 收藏
   ========================== */
.action-bar {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}
.action-btn:hover {
    border-color: #3498db;
    color: #3498db;
}
.action-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* ==========================
   文章列表
   ========================== */
.main-layout {
    display: block;
    margin-top: 20px;
}
.section-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.section-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.article-list a {
    display: block;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
}
.article-list a:hover {
    color: #3498db;
}

/* ==========================
   筛选链接
   ========================== */
.filter-options a {
    font-size: 18px !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 4px 12px !important;
}
.filter-options a:hover {
    color: #0066cc !important;
}

/* ==========================
   管理员表格
   ========================== */
.admin-table {
    width: 100%;
    table-layout: auto;
}
.admin-table th,
.admin-table td {
    white-space: nowrap;
    padding: 12px 10px;
}
.admin-table td:nth-child(2) {
    width: auto;
    max-width: none;
}
.admin-table td:nth-child(3) {
    min-width: 280px;
}
.admin-table td:last-child {
    min-width: 220px;
}

/* ==========================
   面包屑
   ========================== */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}
.breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================
   页脚
   ========================== */
.footer {
    background: url(../images/footer.jpg) center/cover no-repeat;
    color: #fff;
    padding: 40px 0 0;
    margin-top: auto;
}

/* ==========================
   页脚二维码（PC 端强制尺寸）
   ========================== */
.qrcode-col {
    display: flex;
    gap: 30px;
}

.qrcode-item img {
    width: 100px !important;
    height: 100px !important;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    object-fit: contain;
}


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}
.footer-col {
    min-width: 180px;
    max-width: 220px;
}
.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
}
.footer-col p {
    margin: 8px 0;
}
.footer-col a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    background: rgba(25,25,25,0.5);
    padding: 12px 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #aaa;
}


/* ==========================
   用户区域（PC）
   ========================== */
.user-area {
    display: flex;
    gap: 15px;
    align-items: center;
}

.welcome-text {
    color: #fff;
    font-weight: normal;
}

.welcome-text a {
    color: #fff;
    text-decoration: none;
}

/* 登录 / 退出按钮 */
.login-btn,
.logout-btn {
    color: #fff;
    background: #3498db;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.logout-btn {
    background: transparent;
    padding: 0;
}

.login-btn:hover,
.logout-btn:hover {
    opacity: 0.85;
}

/* ==========================
   页脚二维码（PC 端）
   ========================== */
.qrcode-col {
    display: flex;
    gap: 30px;
}

.qrcode-item img {
    width: 100px !important;
    height: 100px !important;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    object-fit: contain;
}

.qrcode-item p {
    margin-top: 8px;
    font-size: 14px;
    color: #fff;
}



/* ==========================
   手机端专属修复（不影响 PC）
   ========================== */
@media (max-width:768px) {
    .header {
        position: absolute !important;
        top:0 !important;
        left:0 !important;
        width:100% !important;
        height: auto !important;
        max-height:65px !important;
        padding: 3px 0 !important;
        z-index:99 !important;
    }
    .header .wrap {
        flex-direction: column !important;
        height: auto !important;
        padding: 0 15px !important;
        gap: 4px !important;
    }
    .header .logo {
        height: 36px !important;
    }
    .nav-links {
        position: static !important;
        transform: none !important;
        gap: 14px !important;
    }
    .carousel {
        height: auto !important;
        padding-top:70px !important;
    }
    .carousel-text{
        top:calc(70px + 50%) !important;
        transform:translate(-50%,-50%) !important;
    }
    .about-page .carousel{
        padding-top:70px !important;
    }
    .footer {
        height: auto !important;
        padding: 20px 15px !important;
    }
}