/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #0089ff;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
}

.header-right {
    text-align: right;
}

.slogan {
    color: #0089ff;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.btn-login {
    background-color: #0089ff;
    color: #fff;
    padding: 8px 30px;
    border-radius: 3px;
    display: inline-block;
    font-size: 14px;
}

.btn-login:hover {
    background-color: #0077dd;
    color: #fff;
}

/* Navigation */
.main-nav {
    background: linear-gradient(to bottom, #0098ff, #0077dd);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: background-color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #fff;
}

/* Main Content */
.main-content {
    padding: 20px 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

/* Carousel Section */
.carousel-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.carousel-container {
    flex: 2.5;
}

.carousel-main {
    position: relative;
    background-color: #000;
    height: 380px;
    overflow: hidden;
}

.carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-recommend {
    flex: 1;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.box-header {
    background-color: #0089ff;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #0077dd;
}

.box-header h3 {
    margin: 0;
    font-size: 16px;
}

.recommend-list {
    list-style: none;
    padding: 0;
}

.recommend-list li {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}

.recommend-list li:last-child {
    border-bottom: none;
}

.recommend-list img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.recommend-list .text {
    flex: 1;
}

.recommend-list a {
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Main Section */
.main-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.content-left {
    flex: 2.5;
    background-color: #fff;
    padding: 20px;
}

.content-right {
    flex: 1;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #0089ff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0089ff;
}

/* Article Item */
.article-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.article-item img {
    width: 260px;
    height: 170px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
}

.tag {
    display: inline-block;
    background-color: #0089ff;
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content h3 a:hover {
    color: #0089ff;
}

.meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.meta span {
    margin-right: 15px;
}

.meta .fav {
    color: #0089ff;
    cursor: pointer;
}

.meta .fav img {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
}

.excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.section-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 25px 0;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.page-num,
.page-next {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.page-num:hover,
.page-next:hover {
    background-color: #0089ff;
    color: #fff;
    border-color: #0089ff;
}

.page-num.active {
    background-color: #0089ff;
    color: #fff;
    border-color: #0089ff;
}

/* Sidebar Boxes */
.sidebar-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.qr-code {
    padding: 30px 20px;
    text-align: center;
}

.qr-code img {
    margin: 0 auto 10px;
    max-width: 150px;
}

.qr-code p {
    color: #666;
    font-size: 14px;
}

.article-list {
    list-style: none;
    padding: 15px;
}

.article-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list a {
    font-size: 14px;
    line-height: 1.6;
}

.article-list a:hover {
    color: #0089ff;
}

/* Promo Section */
.promo-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.promo-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.promo-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 10px;
}

.promo-item p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

/* Page Header */
.page-header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #0089ff;
}

.page-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 14px;
    color: #666;
    line-height: 2;
    text-align: justify;
}

.page-header-center {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.page-header-center h2 {
    font-size: 28px;
    color: #333;
}

/* Article Item Full */
.content-wrapper {
    position: relative;
}

.article-item-full {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.article-item-full img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-detail {
    flex: 1;
}

.article-detail h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-detail .meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.article-detail .meta span {
    margin-right: 15px;
}

.article-detail p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.sidebar-notice {
    position: absolute;
    right: 0;
    top: 0;
    width: 250px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

/* Article Simple */
.article-simple {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article-simple h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-simple .meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.article-simple .meta span {
    margin-right: 15px;
}

.article-simple p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* About Content */
.about-content {
    background-color: #fff;
    padding: 40px;
    line-height: 2.2;
}

.about-content p {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.red-title {
    color: #e74c3c;
    font-size: 18px;
    margin: 30px 0 20px;
}

/* Placeholder Content */
.placeholder-content {
    background-color: #fff;
    padding: 60px;
    text-align: center;
    color: #999;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.site-footer p {
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-section {
        flex-direction: column;
    }
    
    .main-section {
        flex-direction: column;
    }
    
    .promo-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar-notice {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-item {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item img {
        width: 100%;
        height: 200px;
    }
    
    .promo-section {
        grid-template-columns: 1fr;
    }
    
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        margin-top: 15px;
        text-align: center;
    }
    
    .article-item-full {
        flex-direction: column;
    }
    
    .article-item-full img {
        width: 100%;
        height: auto;
    }
}