/* ============================================
   龙口市档案馆 - 内容区样式（政务网站规范）
   ============================================ */


/* ============================================
   Banner 横幅
   ============================================ */
.main-banner {
    width: 100%;
    overflow: hidden;
}
.main-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   标题样式（方案一 + 方案六）
   ============================================ */
:root {
    --primary-blue: #0D3B66;
    --accent-gold: #C9A050;
    --accent-gold-light: #D4B86A;
    --accent-gold-dark: #B8913A;
    --text-light-gray: #6B7B8D;
    --font-serif: "STSong", "Songti SC", "Noto Serif SC", "SimSun", "KaiTi", serif;
    --font-sans: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 方案一：大标题 - 增强版 */
.gold-center-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 0 24px;
}
.gold-center-1 .gold-line-top,
.gold-center-1 .gold-line-bottom {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 1px;
}
.gold-center-1 .title-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.gold-center-1 .title-inner .diamond {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    transform: rotate(45deg);
    border-radius: 1px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(201, 160, 80, 0.4);
}
.gold-center-1 .title-inner .text {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 6px;
    line-height: 1.3;
}

/* 方案六：小标题 - 增强版 */
.l3-gold-6 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 8px;
}
.l3-gold-6 .title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.l3-gold-6 .title-group .gold-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(201, 160, 80, 0.3);
}
.l3-gold-6 .title-text {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 1px;
}
.l3-gold-6 .more-link {
    text-decoration: none;
    font-size: 13px;
    color: var(--accent-gold-dark);
    letter-spacing: 0.5px;
    transition: color 0.25s;
    white-space: nowrap;
    font-weight: 500;
}
.l3-gold-6 .more-link:hover {
    color: var(--accent-gold);
}

/* 政策法规区域布局 - 增强版 */
.section-header {
    width: 100%;
}
.list-columns {
    display: flex;
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}
.list-col {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 2px solid var(--accent-gold);
    padding: 20px 24px;
    border-radius: 0 0 4px 4px;
}
/* --- 基础容器 --- */
.main-body {
    background: #f6f6f6;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.wp {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* --- 通用标题栏 --- */
.listTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 15px;
    position: relative;
    width: 100%;
}
.listTitle h2 {
    font-size: 26px;
    font-weight: 700;
    color: #004a99;
    line-height: 1.2;
}
.listTitle h2 span {
    color: #004a99;
}
.titleColumn {
    text-decoration: none;
    color: inherit;
}
.more1 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s;
}
.more1:hover {
    color: #004a99;
}
.more1 img {
    width: 20px;
    height: 20px;
}

/* ============================================
   工作动态 .main-news（灰色背景）
   ============================================ */
.main-news {
    padding: 30px 0;
    background: transparent;
}
.main-news .gp-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.main-news .lf {
    width: calc(39% - 10px);
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
.main-news .rt {
    width: calc(61% - 10px);
    flex-shrink: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* 左侧图片轮播 */
.item_info7 {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.item_info7 .swiper-slide {
    height: auto;
    aspect-ratio: 1463 / 1075;
    padding: 0;
    overflow: hidden;
}
.item_img7 {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
}
.item_img7 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.swiper-news {
    position: relative;
    margin: 0;
    padding: 0;
}
.swiper-news .swiper-pagination {
    position: absolute !important;
    bottom: 15px !important;
    right: 20px !important;
    width: auto !important;
    left: auto !important;
    z-index: 10;
}
.swiper-news .swiper-pagination-bullet {
    background-color: #fff !important;
    opacity: 1;
}
.swiper-news .swiper-pagination-bullet-active {
    background-color: #f39800 !important;
}

.item_txt7 {
    position: absolute;
    width: calc(100% - 10px);
    box-sizing: border-box;
    padding: 0 15px;
    bottom: 15px;
    left: 0;
    z-index: 10;
}
.item_txt7 a {
    font-size: 16px;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}
.item_info7::before { display: none !important; }
.item_info7::after {
    display: none !important;
}

/* 右侧新闻列表 */
.USTB_list1_wrap {
    position: relative;
}
.USTB_list1 {
    position: relative;
    padding: 0;
}
.USTB_list1 li {
    border-bottom: 1px solid #eee;
    position: relative;
    transition: background 0.2s;
}
.USTB_list1 li:last-of-type {
    border-bottom: none;
}
.USTB_list1 li > a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 10px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.USTB_list1 li > a:hover {
    color: #004a99;
}
.USTB_list1 li .date {
    font-size: 14px;
    color: #004a99;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Optima', 'Segoe UI', sans-serif;
}
.USTB_list1 li .title {
    font-size: 17px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    order: -1;
}
.default-img,
.hover-img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.hover-img {
    display: none;
}
.USTB_list1 li:hover .default-img {
    display: none;
}
.USTB_list1 li:hover .hover-img {
    display: block;
}
.USTB_list1 li:hover .date {
    color: #f39800;
}
.USTB_list1 li:hover .title {
    color: #004a99;
}
.USTB_list1 li::after {
    content: '';
    width: 0;
    height: 2px;
    background: #004a99;
    position: absolute;
    left: 0;
    bottom: -1px;
    transition: width 0.3s;
}
.USTB_list1 li:hover::after {
    width: 100%;
}

/* ============================================
   快捷入口 .main-swiper（白色背景）
   ============================================ */
.main-swiper {
    padding: 30px 0;
    background: #fff;
}
.main-swiper-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}
.specialFeature-row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}
.specialFeature-row .titlin_r {
    flex: 1;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.specialFeature-row .titlin_r a {
    display: block;
}
.specialFeature-row .titlin_r img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
}

/* ============================================
   政策法规 + 档案编研 .main-list（灰色背景）
   ============================================ */
.main-list {
    background: transparent;
    padding: 30px 0;
}
.main-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tBox {
    margin-top: 0;
}
.tBox .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 16px;
    line-height: 1.6;
    transition: background 0.2s;
}
.tBox .item:last-child {
    border-bottom: none;
}
.tBox .item a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    flex: 1;
    min-width: 0;
    color: #333;
    text-decoration: none;
    padding-right: 16px;
}
.tBox .item a:hover {
    color: #004a99;
}
.tBox .item .date {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0;
}

/* ============================================
   网上展厅 .main-show（白色背景）
   ============================================ */
.main-show {
    background: #fff;
    padding: 30px 0;
}
.main-show-swiper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}
.show-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.show-card {
    display: block;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}
.show-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.show-card img {
    width: 100%;
    height: auto;
    display: block;
}
.show-card span {
    font-size: 15px;
    line-height: 48px;
    color: #333;
    padding: 0 12px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

/* ============================================
   龙口人文 .main-lkrw（灰色背景）
   ============================================ */
.main-lkrw {
    padding: 30px 0;
    background: #f6f6f6;
}
.main-lkrw .listTitle {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 15px;
}
.main-lkrw .more-corner {
    max-width: 1200px;
    margin: 0 auto;
}
.rk-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.rk-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.rk-card img {
    width: 100%;
    height: auto;
    display: block;
}
.rk-card span {
    display: none;
}

/* 龙口人文响应式 */
@media screen and (max-width: 1024px) {
    .rk-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .rk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 480px) {
    .rk-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   友情链接 .main-link（白色背景）
   ============================================ */
.main-link {
    background: #fff;
    border-top: 1px solid #eee;
}
.main-link-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    box-sizing: border-box;
}
.link-title {
    font-size: 20px;
    font-weight: 700;
    color: #004a99;
    margin-bottom: 20px;
}
.link-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #f39800;
    margin-top: 10px;
}
.main-link-container ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.main-link-container ul li {
    line-height: 36px;
    border-bottom: 1px solid #eee;
    min-width: 13%;
    margin-right: 1%;
    font-size: 16px;
}
.main-link-container ul li a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.main-link-container ul li a:hover {
    color: #004a99;
}

/* ============================================
   页脚 .footer
   ============================================ */
.footer {
    background: #2b3a4a;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
    line-height: 2;
}
.footer a {
    color: #aaa;
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}

/* ============================================
   通用工具类
   ============================================ */
.gp-clearFix::after {
    content: '';
    display: block;
    clear: both;
}
.gp-f20 {
    font-size: 20px;
}
.gp-f30 {
    font-size: 30px;
}
.gp-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.gp-img-responsive img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.date {
    font-family: 'Optima', 'Segoe UI', sans-serif;
}

/* ============================================
   响应式 - 平板 (<=1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .wp, .main-news, .main-swiper-container, .main-list-container,
    .main-show-swiper, .main-lkrw, .main-link-container {
        padding-left: 30px;
        padding-right: 30px;
    }
    .specialFeature-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .specialFeature-row .titlin_r {
        flex: 0 0 calc(33.33% - 8px);
    }
    .lkrw-swiper-slide {
        flex: 0 0 calc(33.33% - 11px);
    }
    .main-list-container {
        gap: 24px;
    }
}

/* ============================================
   响应式 - 手机 (<=768px)
   ============================================ */
@media screen and (max-width: 768px) {
    .wp, .main-news, .main-swiper-container, .main-list-container,
    .main-show-swiper, .main-lkrw, .main-link-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    /* 工作动态：左右改上下 */
    .main-news .gp-container {
        flex-direction: column;
        gap: 20px;
    }
    .main-news .lf {
        width: 100%;
    }
    .main-news .rt {
        width: 100%;
    }
    .item_info7 .swiper-slide {
        height: auto;
        aspect-ratio: 585 / 430;
    }

    /* 快捷入口 */
    .specialFeature-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .specialFeature-row .titlin_r {
        flex: 0 0 calc(33.33% - 7px);
    }
    .specialFeature-row .titlin_r img {
        height: 80px;
    }

    /* 政策法规+档案编研 */
    .main-list-container {
        flex-direction: column;
        gap: 24px;
    }

    /* 网上展厅 */
    .show-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .show-card img {
        height: auto;
    }

    /* 龙口人文 */
    .lkrw-swiper-slide {
        flex: 0 0 calc(33.33% - 11px);
        height: 160px;
    }


    /* 标题 */
    .listTitle h2 {
        font-size: 22px;
    }
}

/* ============================================
   响应式 - 小手机 (<=480px)
   ============================================ */
@media screen and (max-width: 480px) {
    .wp, .main-news, .main-swiper-container, .main-list-container,
    .main-show-swiper, .main-lkrw, .main-link-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .specialFeature-row .titlin_r {
        flex: 0 0 calc(50% - 5px);
    }
    .specialFeature-row .titlin_r img {
        height: 70px;
    }

    .item_info7 .swiper-slide {
        height: auto;
        aspect-ratio: 585 / 430;
    }
    .item_txt7 a {
        font-size: 16px;
    }

    .tBox .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .tBox .item .date {
        padding: 0;
    }

    .show-grid {
        grid-template-columns: 1fr;
    }
    .show-card img {
        height: auto;
    }

    .lkrw-swiper-slide {
        flex: 0 0 100%;
        height: 180px;
    }

    .main-link-container ul li {
        min-width: 100%;
    }
}

/* 方案五：带序号的列表 */
.list-numbered {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: list-counter;
}
.list-numbered li {
    counter-increment: list-counter;
    border-bottom: 1px solid #F0F3F7;
}
.list-numbered li:last-child {
    border-bottom: none;
}
.list-numbered li a {
    display: flex;
    align-items: center;
    padding: 4px 4px;
    text-decoration: none;
    color: #1B2A3A;
    gap: 12px;
    transition: color 0.25s;
}
.list-numbered li a:hover {
    color: #2B7BD6;
}
.list-numbered .num {
    font-family: "STSong", "Songti SC", serif;
    font-size: 15px;
    font-weight: 700;
    color: #0D3B66;
    width: 28px;
    flex-shrink: 0;
    opacity: 0.7;
}
.list-numbered li:nth-child(1) .num,
.list-numbered li:nth-child(2) .num,
.list-numbered li:nth-child(3) .num {
    color: #C9A050;
    opacity: 1;
}
.list-numbered .n-title {
    flex: 1;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.list-numbered .n-date {
    font-size: 13px;
    color: #9AA8B8;
    white-space: nowrap;
}

/* 更多按钮 - 右下角 */
.more-corner {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 0;
}
.more-style-7 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "STSong", "Songti SC", serif;
    font-size: 14px;
    font-weight: 600;
    color: #4A5568;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}
.more-style-7 .diamond-left {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #D4B86A, #C9A050);
    transform: rotate(45deg);
    border-radius: 1px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.more-style-7 .arrow-right {
    font-size: 15px;
    font-weight: 400;
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), color 0.3s;
    margin-left: -2px;
}
.more-style-7:hover,
.more-style-7:hover .text {
    color: #B8913A;
}
.more-style-7:hover .diamond-left {
    transform: rotate(225deg);
}
.more-style-7:hover .arrow-right {
    transform: translateX(3px);
    color: #C9A050;
}
