* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    padding-bottom: 0;
}
a {
    text-decoration: none;
    color: #333;
}
a:hover {
    color: #ff6600;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    background-color: #fff;
}
.logo {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
}
.logo a {
    color: #ff6600;
}
.logo img {
    max-height: 60px;
}
.search-box {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}
.search-box input {
    width: 250px;
    padding: 10px;
    border: 2px solid #ff6600;
    outline: none;
}
.search-box button {
    padding: 10px 30px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
}

.nav {
    width: 100%;
    background-color: #fff;
    border-bottom: 2px solid #ff6600;
}
.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
}
.nav-list::-webkit-scrollbar {
    display: none;
}
.nav-list li a {
    display: block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
}
.nav-list li.active a, .nav-list li a:hover {
    background-color: #ff6600;
    color: #fff;
}

.banner {
    max-width: 1200px;
    width: 100%;
    margin: 10px auto 10px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.banner-slider {
    position: relative;
    width: 100%;
    height: 130px;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}
.banner-slide.active {
    opacity: 1;
    z-index: 2;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}
.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    border-radius: 50%;
    transition: background-color 0.3s;
}
.banner-arrow:hover {
    background-color: rgba(0,0,0,0.6);
}
.banner-arrow.prev {
    left: 10px;
}
.banner-arrow.next {
    right: 10px;
}
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}
.banner-dot.active {
    background-color: #ff6600;
}
.main-content {
    padding: 0 0 20px;
}
.section {
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 100%;
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.section-title h2 {
    font-size: 20px;
    color: #ff6600;
    border-left: 4px solid #ff6600;
    padding-left: 10px;
}
.section-title .more {
    font-size: 14px;
    color: #999;
}
.section-body {
    display: flex;
    gap: 20px;
}
.content-left {
    flex: 3;
    min-width: 0;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}
.card {
    border: 1px solid #eee;
    padding: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 180px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.card p {
    font-size: 14px;
    margin-top: 8px;
    overflow: hidden;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}
.text-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}
.text-grid li {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    height: 40px;
    overflow: hidden;
}
.text-grid li:last-child, .text-grid li:nth-last-child(2) {
    border-bottom: none;
}
.text-grid li a {
    overflow: hidden;
    padding-right: 10px;
    flex: 1;
    position: relative;
    padding-left: 12px;
    transition: all 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.text-grid li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #ccc;
    border-radius: 50%;
    transition: all 0.3s;
}
.text-grid li:hover a {
    color: #ff6600;
    padding-left: 16px;
}
.text-grid li:hover a::before {
    background-color: #ff6600;
}
.text-grid li span {
    color: #999;
    flex-shrink: 0;
    font-size: 13px;
}
.content-right {
    flex: 1;
    border-left: 1px solid #eee;
    padding-left: 20px;
    min-width: 0;
}
.side-list {
    counter-reset: rank;
}
.side-list li {
    font-size: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    padding-left: 26px;
    line-height: 20px;
    height: 20px;
}
.side-list li::before {
    counter-increment: rank;
    content: counter(rank);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 12px;
    background-color: #f0f0f0;
    color: #999;
    border-radius: 2px;
}
.side-list li:nth-child(-n+3)::before {
    background-color: #ff6600;
    color: #fff;
}
.side-list li a {
    transition: all 0.3s;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-list li:hover a {
    color: #ff6600;
    transform: translateX(5px);
}
.breadcrumb {
    max-width: 1200px;
    width: 100%;
    margin: 15px auto;
    padding: 10px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
}
.breadcrumb a {
    color: #666;
}
.main-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 20px;
    display: flex;
    gap: 20px;
}
.article-section {
    flex: 3;
    background-color: #fff;
    padding: 30px;
    min-width: 0;
    border-radius: 8px;
}
.article-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}
.article-meta {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    word-wrap: break-word;
}
.article-content p {
    margin-bottom: 1.2em;
}
.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    color: #222;
    font-weight: bold;
    margin: 1.5em 0 0.8em;
}
.article-content h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
}
.article-content h2 {
    font-size: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
}
.article-content h3 {
    font-size: 1.25em;
    border-left: 4px solid #ff6600;
    padding-left: 10px;
}
.article-content h4 {
    font-size: 1em;
}
.article-content ul, 
.article-content ol {
    padding-left: 2em;
    margin-bottom: 1.2em;
    list-style: initial;
}
.article-content ol {
    list-style-type: decimal;
}
.article-content li {
    margin-bottom: 0.5em;
}
.article-content blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    color: #6a737d;
    border-left: 4px solid #dfe2e5;
    background-color: #f6f8fa;
}
.article-content code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27,31,35,0.05);
    border-radius: 3px;
    font-family: Consolas, Monaco, monospace;
    color: #ff6600;
}
.article-content pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
    margin-bottom: 1.2em;
}
.article-content pre code {
    display: inline;
    padding: 0;
    margin: 0;
    overflow: visible;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0;
    color: #333;
}
.article-content img {
    max-width: 100%;
    display: block;
    margin: 1.5em auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.2em;
}
.article-content th, 
.article-content td {
    padding: 8px 12px;
    border: 1px solid #dfe2e5;
}
.article-content tr:nth-child(2n) {
    background-color: #f6f8fa;
}
.article-content a {
    color: #ff6600;
    text-decoration: none;
}
.article-content a:hover {
    text-decoration: underline;
}
.article-content hr {
    height: 1px;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
}

.article-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}
.article-nav p {
    margin-bottom: 10px;
    font-size: 14px;
}
.sidebar {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    min-width: 0;
    border-radius: 8px;
}
.sidebar-title {
    font-size: 18px;
    color: #ff6600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #ff6600;
    padding-left: 10px;
}
.pagination {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
}
.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #eee;
    color: #666;
}
.pagination a:hover, .pagination a.current {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}
.comment-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}
.comment-title {
    font-size: 18px;
    color: #ff6600;
    margin-bottom: 15px;
    border-left: 4px solid #ff6600;
    padding-left: 10px;
}
.comment-list {
    margin-bottom: 20px;
}
.comment-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.comment-header .comment-author {
    font-weight: bold;
    color: #ff6600;
}
.comment-header .comment-author a {
    color: #ff6600;
}
.comment-header .comment-time {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}
.comment-content {
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}
.comment-reply a {
    font-size: 12px;
    color: #999;
}
.comment-reply a:hover {
    color: #ff6600;
}
.comment-children {
    margin-left: 30px;
    padding-left: 15px;
    border-left: 2px solid #eee;
    margin-top: 10px;
}
.comment-child {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.comment-child:last-child {
    border-bottom: none;
}
#pagenavi {
    text-align: center;
    margin: 15px 0;
}
#pagenavi a {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    border: 1px solid #eee;
    color: #666;
    font-size: 14px;
}
#pagenavi a:hover {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}
.comment-form {
    margin-top: 20px;
}
.comment-form .form-group {
    margin-bottom: 10px;
}
.comment-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    outline: none;
}
.comment-form input[type="text"]:focus {
    border-color: #ff6600;
}
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    height: 120px;
    resize: vertical;
    outline: none;
}
.comment-form textarea:focus {
    border-color: #ff6600;
}
.comment-form input[type="submit"] {
    padding: 10px 30px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
.comment-form input[type="submit"]:hover {
    background-color: #e55b00;
}
.verify-code {
    display: flex;
    align-items: center;
    gap: 10px;
}
.verify-code input {
    width: 100px !important;
}
.captcha-img img {
    cursor: pointer;
}

.footer {
    width: 100%;
    background-color: #1f2937;
    color: #d1d5db;
    margin-top: 30px; 
    padding: 25px 0 0; 
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #374151;
}
.footer-col {
    flex: 1;
    min-width: 200px; 
}
.footer-col h3 {
    color: #fff;
    font-size: 16px; 
    margin-bottom: 15px; 
    position: relative;
    padding-bottom: 8px; 
}
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 25px; 
    height: 2px;
    background-color: #ff6600;
}
.footer-col p {
    font-size: 13px; 
    line-height: 1.6; 
    margin-bottom: 8px; 
}
.footer-col ul li {
    margin-bottom: 8px; 
}
.footer-col ul li a {
    color: #d1d5db;
    font-size: 13px; 
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: #ff6600;
    padding-left: 5px;
}
.footer-bottom {
    padding: 15px 0; 
    text-align: center;
    font-size: 13px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.footer-bottom p, .footer-bottom a {
    color: #9ca3af;
}
.footer-bottom a:hover {
    color: #ff6600;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        align-items: center;
    }
    .logo {
        font-size: 28px;
        text-align: center;
        width: 100%;
    }
    .logo img {
        max-height: 50px;
        display: block;
        margin: 0 auto;
    }
    .search-box {
        width: 100%;
        max-width: 350px;
        justify-content: center;
        display: flex;
        flex-wrap: nowrap;
    }
    .search-box input {
        flex: 1;
        min-width: 0;
        padding: 12px;
    }
    .search-box button {
        flex-shrink: 0;
        padding: 12px 15px;
        white-space: nowrap;
    }
    .nav-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-list li a {
        padding: 12px 15px;
        font-size: 15px;
    }
    .banner {
        margin: 10px auto;
    }
    .banner-slider {
        height: 130px;
    }
    .section {
        margin: 15px auto;
        padding: 15px;
        max-width: 95%;
    }
    .section-body {
        flex-direction: column;
    }
    .content-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 20px;
        margin-top: 20px;
    }
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .card p {
        font-size: 14px;
        padding: 10px;
    }
    .text-grid {
        grid-template-columns: 1fr;
    }
    .text-grid li {
        padding: 10px 0;
    }
    .text-grid li:nth-last-child(2) {
        border-bottom: 1px dashed #eee;
    }
    .main-wrapper {
        flex-direction: column;
        padding: 0 10px;
    }
    .article-section {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    .article-title {
        font-size: 20px;
    }
    .article-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    .sidebar {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    .footer-top {
        flex-direction: column;
        gap: 15px;
    }
}