/* ========== Reset & Base ========== */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:"Microsoft YaHei","Helvetica Neue",Arial,sans-serif;background:#f0f2f5;color:#333;font-size:14px;line-height:1.6}
a{text-decoration:none;color:#333;transition:color .2s}
a:hover{color:#3b82f6}
img{max-width:100%;height:auto}
ul,ol{list-style:none}

/* ========== Layout ========== */
.wrap{width:1600px;margin:0 auto;padding:0 20px}

/* ========== Top Bar ========== */
.top-bar{background:#1e293b;color:#94a3b8;height:36px;line-height:36px;font-size:12px}
.top-bar .wrap{display:flex;justify-content:space-between;align-items:center}
.top-bar a{color:#94a3b8}
.top-bar a:hover{color:#fff}
.top-bar .left span{margin-right:16px}
.top-bar .right a{margin-left:14px}

/* ========== Header ========== */
.header{background:#fff;padding:20px 0;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.header .wrap{display:flex;align-items:center;justify-content:space-between}
.logo{font-size:28px;font-weight:700;color:#1e293b;letter-spacing:1px}
.logo span{color:#3b82f6}
.search-box{display:flex;border:2px solid #3b82f6;border-radius:6px;overflow:hidden}
.search-box input{width:240px;height:38px;border:none;padding:0 12px;font-size:14px;outline:none}
.search-box button{background:#3b82f6;color:#fff;border:none;padding:0 20px;cursor:pointer;font-size:14px;transition:background .2s}
.search-box button:hover{background:#2563eb}

/* ========== Nav ========== */
.nav-bar{background:#fff;border-top:3px solid #3b82f6;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.nav-bar .wrap{display:flex;align-items:center;height:50px}
.nav-bar a{display:inline-block;padding:0 22px;line-height:50px;font-size:15px;color:#475569;font-weight:500;position:relative}
.nav-bar a:hover{color:#3b82f6}
.nav-bar a.active{color:#3b82f6}
.nav-bar a.active::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:30px;height:3px;background:#3b82f6;border-radius:2px}

/* ========== Main Layout ========== */
.main-body{padding:24px 0}
.main-body .wrap{display:flex;gap:24px}
.content-area{flex:1;min-width:0}
.sidebar-area{width:340px;flex-shrink:0}

/* ========== Carousel ========== */
.carousel{position:relative;height:340px;border-radius:10px;overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.08);margin-bottom:24px}
.carousel-track{display:flex;height:100%;transition:transform .5s ease}
.carousel-slide{flex:0 0 100%;height:100%;position:relative;background:linear-gradient(135deg,#667eea,#764ba2)}
.carousel-slide:nth-child(2){background:linear-gradient(135deg,#f093fb,#f5576c)}
.carousel-slide:nth-child(3){background:linear-gradient(135deg,#4facfe,#00f2fe)}
.carousel-slide:nth-child(4){background:linear-gradient(135deg,#43e97b,#38f9d7)}
.carousel-content{position:absolute;bottom:40px;left:40px;right:40px;color:#fff}
.carousel-content .tag{display:inline-block;background:rgba(255,255,255,.25);padding:3px 12px;border-radius:20px;font-size:12px;margin-bottom:10px;backdrop-filter:blur(4px)}
.carousel-content h2{font-size:26px;font-weight:700;margin-bottom:8px;text-shadow:0 2px 8px rgba(0,0,0,.2)}
.carousel-content p{font-size:14px;opacity:.9;max-width:600px}
.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;background:rgba(255,255,255,.2);border:none;color:#fff;font-size:20px;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .3s;backdrop-filter:blur(4px)}
.carousel-arrow:hover{background:rgba(255,255,255,.4)}
.carousel-arrow.prev{left:16px}
.carousel-arrow.next{right:16px}
.carousel-dots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
.carousel-dots span{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;transition:background .3s}
.carousel-dots span.active{background:#fff;width:26px;border-radius:5px}

/* ========== Section ========== */
.section{background:#fff;border-radius:10px;margin-bottom:24px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.section-head{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid #f0f0f0}
.section-head h3{font-size:17px;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:8px}
.section-head h3::before{content:'';width:4px;height:18px;background:#3b82f6;border-radius:2px}
.section-head .more{font-size:13px;color:#94a3b8}
.section-head .more:hover{color:#3b82f6}
.section-body{padding:20px 22px}

/* ========== News Grid ========== */
.news-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.news-item{display:flex;gap:14px;padding:14px 0;border-bottom:1px dashed #eee}
.news-item:last-child{border-bottom:none}
.news-item .thumb{width:120px;height:80px;border-radius:6px;overflow:hidden;flex-shrink:0;background:#f0f0f0}
.news-item .thumb img{width:100%;height:100%;object-fit:cover}
.news-item .info{flex:1;min-width:0}
.news-item .info h4{font-size:15px;font-weight:600;margin-bottom:6px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.news-item .info h4 a{color:#1e293b}
.news-item .info h4 a:hover{color:#3b82f6}
.news-item .info p{font-size:12px;color:#94a3b8;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-item .info .meta{font-size:12px;color:#94a3b8;margin-top:6px}

/* ========== Ranking ========== */
.rank-list{padding:0}
.rank-item{display:flex;align-items:center;gap:14px;padding:12px 22px;border-bottom:1px solid #f5f5f5;transition:background .2s}
.rank-item:last-child{border-bottom:none}
.rank-item:hover{background:#f8faff}
.rank-num{width:24px;height:24px;border-radius:4px;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#94a3b8;background:#f0f0f0}
.rank-item:nth-child(1) .rank-num{background:#ef4444;color:#fff}
.rank-item:nth-child(2) .rank-num{background:#f97316;color:#fff}
.rank-item:nth-child(3) .rank-num{background:#eab308;color:#fff}
.rank-title{flex:1;font-size:14px;font-weight:500;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.rank-title a{color:#334155}
.rank-title a:hover{color:#3b82f6}
.rank-hot{font-size:12px;color:#ef4444;font-weight:600}

/* ========== Recommend ========== */
.rec-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.rec-card{border:1px solid #eee;border-radius:8px;overflow:hidden;transition:box-shadow .2s,transform .2s}
.rec-card:hover{box-shadow:0 4px 14px rgba(59,130,246,.12);transform:translateY(-2px)}
.rec-card .pic{width:100%;height:140px;background:linear-gradient(135deg,#667eea,#764ba2);overflow:hidden}
.rec-card .pic img{width:100%;height:100%;object-fit:cover}
.rec-card .txt{padding:12px 14px}
.rec-card .txt h4{font-size:14px;font-weight:600;line-height:1.4;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rec-card .txt h4 a{color:#1e293b}
.rec-card .txt p{font-size:12px;color:#94a3b8;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ========== Category List ========== */
.cat-list{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.cat-item{background:#f8faff;border-radius:8px;padding:14px 18px;text-align:center;transition:all .2s;border:1px solid transparent}
.cat-item:hover{background:#3b82f6;color:#fff;border-color:#2563eb;transform:translateY(-1px)}
.cat-item a{font-size:14px;font-weight:500;color:#475569}
.cat-item:hover a{color:#fff}

/* ========== Friend Links ========== */
.flink-list{display:flex;flex-wrap:wrap;gap:8px}
.flink-item{padding:6px 14px;background:#f8faff;border-radius:4px;font-size:13px}
.flink-item a{color:#64748b}
.flink-item:hover{background:#eff6ff}
.flink-item a:hover{color:#3b82f6}

/* ========== Sidebar ========== */
.side-card{background:#fff;border-radius:10px;margin-bottom:24px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.side-head{padding:14px 18px;border-bottom:1px solid #f0f0f0;font-size:15px;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:8px}
.side-head::before{content:'';width:4px;height:16px;background:#3b82f6;border-radius:2px}
.side-body{padding:16px 18px}

/* ========== Hot List (Sidebar) ========== */
.hot-list li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f5f5f5}
.hot-list li:last-child{border-bottom:none}
.hot-list .num{width:22px;height:22px;border-radius:4px;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#94a3b8;background:#f0f0f0}
.hot-list li:nth-child(1) .num{background:#ef4444;color:#fff}
.hot-list li:nth-child(2) .num{background:#f97316;color:#fff}
.hot-list li:nth-child(3) .num{background:#eab308;color:#fff}
.hot-list .title{flex:1;font-size:13px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.hot-list .title a{color:#475569}
.hot-list .title a:hover{color:#3b82f6}

/* ========== Tags Cloud ========== */
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.tag-cloud a{padding:4px 12px;border:1px solid #e2e8f0;border-radius:20px;font-size:12px;color:#64748b;transition:all .2s}
.tag-cloud a:hover{background:#3b82f6;color:#fff;border-color:#2563eb}

/* ========== About Card ========== */
.about-box .qr{width:120px;height:120px;background:#f0f0f0;border-radius:8px;margin:0 auto 12px}
.about-box .qr img{width:100%;height:100%;border-radius:8px}
.about-box p{text-align:center;font-size:13px;color:#64748b;line-height:1.6}

/* ========== Breadcrumb ========== */
.breadcrumb{background:#fff;padding:12px 22px;border-radius:8px;margin-bottom:20px;font-size:13px;color:#64748b;box-shadow:0 1px 4px rgba(0,0,0,.03)}
.breadcrumb a{color:#3b82f6}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb .sep{margin:0 6px;color:#cbd5e1}

/* ========== List Page ========== */
.list-item{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid #f0f0f0}
.list-item:last-child{border-bottom:none}
.list-item .thumb{width:200px;height:130px;border-radius:8px;overflow:hidden;flex-shrink:0;background:#f0f0f0}
.list-item .thumb img{width:100%;height:100%;object-fit:cover}
.list-item .info{flex:1;min-width:0}
.list-item .info h3{font-size:17px;font-weight:600;margin-bottom:8px}
.list-item .info h3 a{color:#1e293b}
.list-item .info h3 a:hover{color:#3b82f6}
.list-item .info .desc{font-size:13px;color:#64748b;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:8px}
.list-item .info .meta{font-size:12px;color:#94a3b8}
.list-item .info .meta span{margin-right:16px}

/* ========== Pagination ========== */
.pagination{text-align:center;padding:20px 0}
.pagination a,.pagination span{display:inline-block;min-width:36px;height:36px;line-height:36px;padding:0 10px;margin:0 3px;border:1px solid #e2e8f0;border-radius:6px;font-size:14px;color:#475569;transition:all .2s}
.pagination a:hover{border-color:#3b82f6;color:#3b82f6}
.pagination .page-current{background:#3b82f6;color:#fff;border-color:#2563eb}
.pagination .page-dots{border:none}

/* ========== Article Page ========== */
.article-head{padding:24px 30px 0}
.article-head h1{font-size:26px;font-weight:700;color:#1e293b;line-height:1.4;margin-bottom:14px}
.article-meta{display:flex;align-items:center;gap:18px;font-size:13px;color:#94a3b8;padding-bottom:20px;border-bottom:1px solid #f0f0f0}
.article-meta span{display:flex;align-items:center;gap:4px}
.article-content{padding:24px 30px;font-size:16px;line-height:1.9;color:#334155}
.article-content p{margin-bottom:18px}
.article-content h2,.article-content h3{margin:24px 0 12px;color:#1e293b}
.article-content img{border-radius:8px;margin:16px 0}
.article-tags{padding:0 30px 20px}
.article-tags a{display:inline-block;padding:4px 14px;border:1px solid #e2e8f0;border-radius:20px;font-size:12px;color:#64748b;margin-right:8px;margin-bottom:8px;transition:all .2s}
.article-tags a:hover{background:#3b82f6;color:#fff;border-color:#2563eb}

/* ========== Related Articles ========== */
.related-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:0 30px 24px}
.related-item{padding:12px 16px;background:#f8faff;border-radius:8px}
.related-item a{font-size:13px;color:#475569;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.related-item:hover{background:#eff6ff}
.related-item a:hover{color:#3b82f6}

/* ========== Footer ========== */
.footer{background:#1e293b;color:#94a3b8;padding:36px 0 20px;margin-top:30px}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px;padding-bottom:28px;border-bottom:1px solid #334155}
.footer-about p{font-size:13px;line-height:1.8;margin-top:12px}
.footer-col h4{font-size:14px;color:#fff;font-weight:600;margin-bottom:14px}
.footer-col ul li{margin-bottom:8px}
.footer-col ul li a{font-size:13px;color:#94a3b8}
.footer-col ul li a:hover{color:#fff}
.footer-bottom{padding-top:18px;text-align:center;font-size:12px;color:#64748b}
.footer-bottom a{color:#64748b}
.footer-bottom a:hover{color:#94a3b8}

/* ========== Responsive ========== */
@media(max-width:1600px){.wrap{width:100%}}
@media(max-width:1200px){
    .main-body .wrap{flex-direction:column}
    .sidebar-area{width:100%}
    .news-grid{grid-template-columns:1fr}
    .rec-list{grid-template-columns:repeat(2,1fr)}
    .cat-list{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
    .nav-bar .wrap{overflow-x:auto;white-space:nowrap}
    .search-box input{width:140px}
    .news-grid,.rec-list,.cat-list{grid-template-columns:1fr}
    .list-item{flex-direction:column}
    .list-item .thumb{width:100%;height:180px}
    .related-list{grid-template-columns:1fr}
    .footer-top{grid-template-columns:1fr}
    .carousel{height:240px}
    .carousel-content h2{font-size:18px}
    .carousel-content p{display:none}
    .article-head h1{font-size:20px}
    .article-content{font-size:15px;padding:16px}
}
