﻿:root {
    --primary-color: #FF4500;
    --text-color: #333;
    --light-bg: #ECF0F1;
    --gray-bg: #e0e0e0;
    --texthover: #FF0000;
    --orange-second: #FF6B35;
    --orange-light: #FF9F1C;
    --orange-dark: #FF4000;
    --accent-blue: #4285f4;
    --accent-green: #228B22;
    --text-white: #FFFFFF;
    --text-light: #FFE5D9;
    --highlight-gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
        font-weight:bold;
    }

    a:not(:has(img)):hover {
        margin-left: 5px;
    }

        li {
            list-style-type: none;
            list-style-image: none;
        }

body {
    background: var(--light-bg);
    color: var(--text-color);
}

.container {
    width:1200px;
    min-width:1200px;
    max-width:1800px;
    margin: 0 auto;
}

header {
    background: var(--orange-second);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    width:300px;
    height:80px;
    background: url('/images/logo.png') no-repeat;
}

.mt15 {
    margin-top: 15px;
}

.mt-img {
    margin-top: 20px;
}

.search-box {
    width: 500px;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 10px 15px;
        border-radius: 30px;
        border: none;
        outline: none;
    }

    .search-box button {
        position: absolute;
        right: 5px;
        top: 5px;
        background: var(--orange-second);
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

nav {
    background-color: var(--primary-color);
}

    nav ul {
        display: flex;
        list-style: none;
    }

        nav ul li {
            position: relative;
        }

            nav ul li a {
                display: block;
                color: white;
                text-decoration: none;
                padding: 15px 20px;
                transition: all 0.3s;
            }

                nav ul li a:hover {
                    color:var(--highlight-gold);
                    font-weight:bold;
                    background-color: rgba(255,255,255,0.1);
                }

.three-grid-content {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 15px;
}

.index-grid-content {
    display: grid;
    grid-template-columns: 1fr 3.55fr;
    gap: 15px;
}

.two-grid-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.list-grid-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 15px;
}

.section-block {
    background: rgba(255,255,255,0.9);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gray-bg);
    display: flex;
    justify-content: space-between;
}

    .section-title a:link, .section-title a:visited {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 18px;
    }

    .section-title a:hover {
        font-size: 18px;
        text-decoration: none;
        color: var(--accent-green);
    }

    /* 图片自动网格 */

.image-grid {
    --columns: 4; /* 默认值 */
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

    .image-grid ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: contents;
    }

    .image-grid li {
        position: relative;
        aspect-ratio: 16/9; /* 关键修改：强制16:9宽高比 */
    }

        .image-grid li a {
            display: block;
            position: relative;
            height: 100%;
            text-decoration: none;
        }

        .image-grid li img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 5px;
            display: block;
        }

        .image-grid li span {
            position: absolute;
            bottom: 0px;
            left: 0;
            right: 0;
            margin: 0;
            padding: 5px 8px;
            text-align: center;
            font-size: 14px;
            color: white;
            background-color: rgba(0, 0, 0, 0.3);
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .image-grid li a:hover span {
            color: var(--texthover);
            font-weight: bold;
            background-color: rgba(0, 0, 0, 0.1);
        }



.link-container {
    --columns: 2; /* 默认值 */
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    gap: 10px 30px;
}

        .link-container  ul {
        list-style: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

        .link-container  ul li {
        border-bottom: 1px dashed var(--gray-bg);
    }

            .link-container  ul li:last-child {
            border-bottom: none;
        }

        .link-container ul a {
        color: #555;
        text-decoration: none;
        transition: all 0.3s;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: block;
        padding: 5px 0;
        overflow: hidden;
    }

            .link-container  ul a:hover {
            color: var(--texthover);
            font-weight:bold;
            padding-left: 5px;
        }

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px;
}

.weather-widget {
    text-align: center;
}

.weather-icon {
    font-size: 50px;
    margin: 10px 0;
}

.ad-banner {
    height: 100px;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* 底部通栏 */
footer {
    background: var(--primary-color);
    padding: 40px 0 20px;
    border-top: 3px solid rgba(255,255,255,0.1);
}

.footer-columns {
    display: flex;
    padding:0 10px;
    justify-content: space-between;
}

.footer-column {
    display: block;
    text-align: center;
}

    .footer-column h4 {
        color: var(--highlight-gold);
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

    .footer-links a:hover {
        color: var(--highlight-gold);
        font-weight:bold;
        padding-left: 5px;
    }

.copyright {
    text-align: center;
    line-height: 200%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    color: var(--text-light);
}

    .copyright a:link, .copyright a:visited {
        color: var(--highlight-gold);
    }

    .copyright a:hover {
        font-weight: bold;
        color: var(--accent-green);
    }

/* 工具栏 */
.tool-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .tool-list li {
        list-style-type: none;
        list-style-image: none;
        padding: 5px 0;
        border-bottom: 1px dashed var(--gray-bg);
    }

        .tool-list li:last-child {
            border-bottom: none;
        }

    .tool-list a {
        color: var(--text-color);
        text-decoration: none;
        padding: 5px 0;
    }

        .tool-list a:hover {
            color: var(--texthover);
            font-weight:bold;
            padding-left: 5px;
        }

/* 首页幻灯 */

.slide_div {
    width: 100%;
    aspect-ratio: 16/9; /* 关键修改：强制16:9宽高比 */
    margin: 0 -2px;
}
/* 首页幻灯 */

.slideshow-container {
    position: relative;
    width: 100%;
    height:100%;
    overflow: hidden;
    touch-action: pan-y;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 80vh;
}

.slide-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.slide-title {
    color: white;
    text-align: right;
    padding-right: 10px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    flex: 1;
}

    .slide-title a {
        color: white;
        text-decoration: none;
        display: block;
    }

/* 导航容器 - 全局只有一个 */
.global-nav-container {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slide-nav-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .slide-nav-btn.active {
        background: #ff5722;
        color: #fff;
        transform: scale(1.2);
    }


/* 友情链接 */
.link ul {
    display: flex;
}

.link li {
    margin-right: 20px;
    line-height: 200%;
}

.link a:link, .link a:visited {
    color: var(--text-color);
}

.link a:hover {
    color: var(--texthover);
    font-weight: bold;
}


/* 路径 */
.breadcrumb {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    padding: 15px 0;
    display: flex;
    align-items: center;
}

    .breadcrumb a {
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.3s;
        display: flex;
        align-items: center;
    }

        .breadcrumb a:hover {
            color: var(--accent-green);
            font-weight: bold;
        }

    .breadcrumb span.separator {
        margin: 0 8px;
        color: var(--primary-color);
    }

    .breadcrumb span.current {
        color: var(--text-color);
        font-weight: bold;
    }

.home-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 g0 24 24" fill="%234285f4"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}


/* 栏目列表 */

.fenlei_right ul, .fenlei_left ul {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    width: 100%; /* 或指定具体宽度如500px */
    gap: 16px;
}

.fenlei_right a {
    padding: 5px 20px;
    white-space: nowrap;
    width: 105px;
    border: 1px solid var(--primary-color);
}

.fenlei_right li {
    width: 103px;
    line-height: 200%;
}

.fenlei_left a:link, .fenlei_left a:visited {
    padding: 5px 27px;
    white-space: nowrap;
    color: var(--text-color);
    border: 1px solid var(--gray-bg);
}

.fenlei_left li {
    line-height: 200%;
}


.fenlei_left a:hover, .fenlei_right a:hover {
    background: var(--orange-second);
    border: 1px solid var(--orange-second);
    margin-left:0;
    color: #ffffff;
}


/* 文章列表 */
.list_main {
    overflow: hidden;
    display: block;
    border-bottom: 1px solid var(--gray-bg);
    margin-bottom: 10px;
}

.list_title {
    font-size: 18px;
    margin-bottom: 15px;
}

.list_title a:link,.list_title a:visited
{
    color:var(--primary-color);
}

    .list_title a:hover {
        font-weight:bold;
        color: var(--accent-green);
    }

.list_summary {
    font-size: 15px;
    line-height: 200%;
    height: 90px;
    margin-bottom: 15px;
    overflow: hidden;
    display: block;
}

.list_time {
    font-size: 14px;
    margin-bottom:15px;
}


/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

    .pagination a {
        color: #333;
        text-decoration: none;
        display: inline-block;
        min-width: 40px;
        padding:8px;
        text-align: center;
        border: 1px solid #ddd;
        margin: 0 5px;
        border-radius: 4px;
        transition: all 0.3s;
    }


        .pagination a:hover {
            font-weight: bold;
            color: var(--text-white);
            background-color: var(--orange-second);
        }

    .pagination .active {
        background-color: var(--orange-second);
        font-weight:bold;
        color: white;
    }

    .pagination .disabled {
        color: #ccc;
        pointer-events: none;
    }


/* 文章 */

.article {
    line-height: 180%;
}


.article_title {
    text-align: center;
    line-height: 300%;
    font-size: 24px;
    font-weight: bold;
}

.article_summary {
    border: 1px solid var(--primary-color);
    line-height: 200%;
    padding: 10px;
}

.article_summary_flag {
    padding: 4px 8px;
    margin-right: 5px;
    background: var(--orange-dark);
    color: var(--text-white);
    border-radius: 2px;
}

.article_info {
    font-size: 12px;
    text-align: center;
    height: 40px;
}

.article_content {
    margin: 20px 0;
    padding: 10px;
    line-height:180%;
}

    .article_content p, .article_content div {
        margin-bottom: 10px;
    }

    .article_content img {
        clear: both;
        border: none !important;
        margin: 15px 0 !important;
        text-align: center;
        max-width: 800px !important;
    }

/* 头条 */
.headline_title, .headline_title a:link, .headline_title a:visited {
    color: var(--primary-color);
    font-size: 18px;
    line-height: 200%;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    .headline_title a:hover {
        color: var(--accent-green);
    }

.headline_content {
    padding: 10px 0;
    line-height: 180%;
    font-size: 14px;
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom:10px;
}

.article_links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
}

    .article_links a:link, .article_links a:visited {
        color: var(--primary-color);
    }

    .article_links a:hover {
        color: var(--accent-green);
    }

.article_previous {
    text-align: left;
    flex: 1;
}

.article_next {
    text-align: right;
    flex: 1;
}