@charset "utf-8";

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        .banner {
   
    color: #f222222;
    height: 500px;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-image: url('/static/starry/images/banner/banner_news.jpg');
    background-size: cover;
    background-position: center;

    /* 让文字垂直居中 */
    display: flex;
    flex-direction: column;   /* 垂直排列 h1 和 p */
    justify-content: center;  /* 垂直居中 */
    align-items: center;      /* 水平居中 */
    text-align: center;
}

.banner h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 17px;
    opacity: 0.9;
}
        .breadcrumb {
            background-color: #fff;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        .breadcrumb ul {
            display: flex;
            list-style: none;
        }
        .breadcrumb li {
            margin-right: 10px;
            display: flex;
            align-items: center;
        }
        .breadcrumb li:after {
            content: ">";
            margin-left: 10px;
            color: #888;
        }
        .breadcrumb li:last-child:after {
            content: "";
        }
        .breadcrumb a {
            color: #6a11cb;
            text-decoration: none;
        }
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        .main-content {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
        }
        .left-sidebar {
            flex: 0 0 250px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 20px;
        }
        .left-sidebar h3 {
            color: #6a11cb;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        .left-sidebar ul {
            list-style: none;
        }
        .left-sidebar li {
            margin-bottom: 10px;
        }
        .left-sidebar a {
            color: #444;
            text-decoration: none;
            display: block;
            padding: 8px 10px;
            border-radius: 4px;
            transition: all 0.3s;
        }
        .left-sidebar a:hover, .left-sidebar a.cur {
            background-color:#6a11cb;
            color: white;
        }
        .content {
            flex: 1;
        }
        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .content-header h2 {
            color: #333;
        }
        .nine-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        .grid-item {
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .grid-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        .grid-img {
            height: 180px;
            overflow: hidden;
            position: relative;
        }
        .grid-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        .grid-item:hover .grid-img img {
            transform: scale(1.05);
        }
        .grid-date {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: #0058c6;
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        .grid-content {
            padding: 15px;
        }
        .grid-content h3 {
            margin-bottom: 10px;
            font-size: 16px;
            height: 60px;
             overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .grid-content p {
            color: #666;
            font-size:13px;
           
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }
        .grid-more {
            display: inline-block;
            margin-top: 15px;
            color: #0058c6;
            font-weight: bold;
            text-decoration: none;
            font-size: 15px;
        }
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 30px;
        }
        .pagination ul {
            display: flex;
            list-style: none;
            gap: 10px;
        }
        .pagination li a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #fff;
            color: #333;
            text-decoration: none;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: all 0.3s;
        }
        .pagination li a:hover, .pagination li a.active {
            background-color: #6a11cb;
            color: white;
        }
        .footer {
            background-color: #2c3e50;
            color: #ecf0f1;
            padding: 40px 0;
            text-align: center;
            margin-top: 50px;
        }
        .footer p {
            margin-top: 20px;
            opacity: 0.8;
        }
        @media (max-width: 992px) {
            .nine-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            .left-sidebar {
                flex: 1;
                margin-bottom: 20px;
            }
            .nine-grid {
                grid-template-columns: 1fr;
            }
        }