﻿@charset "UTF-8";
/* ============================================
   HIHISF 传奇私服发布网 - 主样式表
   Div + HTML5 Semantic Layout
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:12px; }
body { font-family:"Microsoft YaHei","宋体",Arial,sans-serif; color:#333; background:#f5f5f5; line-height:1.6; }
ul,ol { list-style:none; }
a { color:#333; text-decoration:none; transition:color .2s; }
a:hover { color:#e63946; }
img { border:none; max-width:100%; vertical-align:middle; }
input,select,textarea,button { font-family:inherit; font-size:12px; outline:none; }

/* --- Container --- */
.container { width:1200px; margin:0 auto; }

/* --- Header --- */
.site-header { background:#fff; border-bottom:3px solid #e63946; box-shadow:0 2px 8px rgba(0,0,0,.08); }

/* 顶部细条 */
.header-top-bar { background:#2c2c2c; color:#999; padding:8px 0; font-size:12px; }
.header-top-bar .container { display:flex; justify-content:space-between; align-items:center; }
.welcome-text { color:#aaa; }
.top-links a { color:#ccc; margin-left:16px; }
.top-links a:hover { color:#e63946; }
.top-links .top-publish { background:#e63946; color:#fff; padding:3px 12px; border-radius:3px; }
.top-links .top-publish:hover { background:#c1121f; color:#fff; }

/* 中间主区域 */
.header-main { padding:20px 0; background:#fff; }
.header-main .container { display:flex; justify-content:space-between; align-items:center; gap:30px; }
.logo-area { flex-shrink:0; }
.logo { display:flex; flex-direction:column; text-decoration:none; }
.logo-icon { font-size:36px; font-weight:bold; color:#e63946; letter-spacing:2px; line-height:1; }
.logo-text { font-size:13px; color:#666; margin-top:4px; letter-spacing:1px; }

/* 搜索区域 */
.search-area { flex:1; max-width:560px; }
.search-form { display:flex; gap:0; }
.search-input { flex:1; height:40px; padding:0 14px; border:2px solid #e63946; border-right:none; border-radius:4px 0 0 4px; font-size:14px; outline:none; }
.search-input:focus { border-color:#c1121f; }
.search-select { height:40px; padding:0 10px; border:2px solid #e63946; border-right:none; background:#fff; font-size:13px; cursor:pointer; outline:none; }
.search-btn { height:40px; padding:0 24px; background:#e63946; color:#fff; border:none; border-radius:0 4px 4px 0; cursor:pointer; font-weight:bold; font-size:14px; }
.search-btn:hover { background:#c1121f; }
.hot-tags { margin-top:8px; font-size:12px; color:#999; }
.hot-tags a { color:#666; margin:0 6px; }
.hot-tags a:hover { color:#e63946; }

/* 导航菜单 */
.main-nav { background:#e63946; }
.main-nav .container { display:block; }
.main-nav ul { display:flex; gap:0; }
.main-nav li a { display:block; padding:14px 24px; font-size:15px; font-weight:bold; color:#fff; border-right:1px solid rgba(255,255,255,.15); transition:background .2s; }
.main-nav li a:hover, .main-nav li a.active { background:#c1121f; color:#fff; }
.main-nav li:first-child a { border-radius:0; }

/* --- Main Content --- */
.main-content { padding:20px 0; min-height:500px; }

/* --- Section Title --- */
.section-title { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:linear-gradient(135deg,#e63946,#c1121f); color:#fff; border-radius:6px 6px 0 0; }
.section-title h2 { font-size:16px; font-weight:bold; }
.section-title .more { color:#fff; font-size:12px; }
.section-title .more:hover { color:#ffd60a; }

/* --- SF List (Data Grid) --- */
.sf-list { background:#fff; border-radius:0 0 6px 6px; overflow:hidden; margin-bottom:20px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.data-grid { width:100%; display:table; }
.grid-row { display:table-row; }
.grid-row.header { background:#2c2c2c; color:#fff; font-weight:bold; }
.grid-row.header .grid-cell { padding:12px 8px; text-align:center; font-size:13px; }
.grid-cell { display:table-cell; padding:10px 8px; border-bottom:1px solid #eee; text-align:center; vertical-align:middle; font-size:12px; }
.grid-row:nth-child(even) .grid-cell { background:#fafafa; }
.grid-row:hover .grid-cell { background:#fff3f3; }
.grid-cell.name { text-align:left; font-weight:bold; color:#e63946; }
.grid-cell.name a { color:#e63946; }
.grid-cell.ip { font-family:Consolas,monospace; color:#555; }
.grid-cell.time { color:#2a9d8f; }
.grid-cell.line { color:#666; }
.grid-cell.qq { color:#457b9d; }
.grid-cell.version { text-align:left; color:#666; }
.grid-cell .btn-view { display:inline-block; padding:4px 12px; background:#e63946; color:#fff; border-radius:3px; font-size:11px; }
.grid-cell .btn-view:hover { background:#c1121f; color:#fff; }

/* --- Recommend Banner --- */
.recommend-bar { background:linear-gradient(90deg,#ffd60a,#ffc300); padding:10px 16px; text-align:center; font-weight:bold; color:#c1121f; margin:16px 0 0; border-radius:6px 6px 0 0; }

/* --- Article Section --- */
.article-section { display:flex; gap:20px; margin-bottom:20px; }
.article-col { flex:1; background:#fff; border-radius:6px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.article-col .col-title { padding:12px 16px; background:#2c2c2c; color:#fff; font-weight:bold; font-size:14px; }
.article-col .col-title a { color:#fff; }
.article-col .col-title a:hover { color:#ffd60a; }
.article-col ul { padding:8px 16px 8px 28px; list-style:disc; }
.article-col li { padding:8px 0; border-bottom:1px dotted #eee; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#e63946; }
.article-col li a { color:#333; }
.article-col li a:hover { color:#e63946; }

/* --- Family Rank --- */
.family-rank { background:#fff; border-radius:0 0 6px 6px; overflow:hidden; margin-bottom:20px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.rank-badge { display:inline-block; width:22px; height:22px; line-height:22px; text-align:center; border-radius:50%; background:#ddd; color:#fff; font-weight:bold; font-size:11px; }
.rank-badge.top1 { background:#ffd60a; }
.rank-badge.top2 { background:#c0c0c0; }
.rank-badge.top3 { background:#cd7f32; }

/* --- Links --- */
.links-section { background:#fff; padding:16px; border-radius:6px; margin-bottom:20px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.links-section h3 { font-size:14px; color:#e63946; margin-bottom:10px; padding-bottom:8px; border-bottom:2px solid #e63946; }
.links-section .text-links a { display:inline-block; margin:4px 10px; color:#555; }
.links-section .text-links a:hover { color:#e63946; }
.links-section .img-links img { width:88px; height:31px; margin:4px; border:1px solid #eee; border-radius:3px; }

/* --- Pagination --- */
.pagination { text-align:center; padding:20px 0; }
.pagination a, .pagination span { display:inline-block; min-width:32px; height:32px; line-height:32px; padding:0 10px; margin:0 3px; border:1px solid #ddd; border-radius:4px; background:#fff; color:#333; }
.pagination a:hover { border-color:#e63946; color:#e63946; }
.pagination .current { background:#e63946; color:#fff; border-color:#e63946; font-weight:bold; }

/* --- Form --- */
.form-group { margin-bottom:16px; }
.form-group label { display:block; margin-bottom:6px; font-weight:bold; color:#555; }
.form-group input[type=text], .form-group input[type=password], .form-group select, .form-group textarea { width:100%; padding:8px 12px; border:1px solid #ddd; border-radius:4px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:#e63946; }
.btn { display:inline-block; padding:8px 24px; border:none; border-radius:4px; cursor:pointer; font-size:13px; font-weight:bold; }
.btn-primary { background:#e63946; color:#fff; }
.btn-primary:hover { background:#c1121f; }
.btn-default { background:#f0f0f0; color:#333; }
.btn-default:hover { background:#ddd; }

/* --- Detail Page --- */
.detail-page { background:#fff; padding:24px; border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.detail-page h1 { font-size:22px; color:#2c2c2c; margin-bottom:12px; text-align:center; }
.detail-meta { text-align:center; color:#999; padding-bottom:16px; border-bottom:1px solid #eee; margin-bottom:20px; }
.detail-content { font-size:14px; line-height:2; color:#444; }
.detail-content p { margin-bottom:12px; }

/* --- Footer --- */
.site-footer { background:#2c2c2c; color:#999; padding:30px 0; margin-top:30px; }
.footer-nav { text-align:center; margin-bottom:16px; }
.footer-nav a { color:#ccc; margin:0 12px; font-size:13px; }
.footer-nav a:hover { color:#e63946; }
.footer-info { text-align:center; font-size:12px; line-height:2; }
.footer-info p { margin-bottom:4px; }

/* --- Sidebar Layout --- */
.two-col { display:flex; gap:20px; }
.two-col .sidebar { width:260px; flex-shrink:0; }
.two-col .main-col { flex:1; }
.sidebar-widget { background:#fff; border-radius:6px; margin-bottom:16px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.sidebar-widget .widget-title { padding:10px 16px; background:#2c2c2c; color:#fff; font-weight:bold; }
.sidebar-widget .widget-body { padding:12px 16px; }
.sidebar-widget li { padding:6px 0; border-bottom:1px dotted #eee; }

/* --- Responsive --- */
@media (max-width:1200px) {
    .container { width:96%; }
}
@media (max-width:768px) {
    .header-top .container { flex-direction:column; gap:8px; }
    .header-main { flex-direction:column; gap:12px; }
    .main-nav ul { flex-wrap:wrap; justify-content:center; }
    .article-section { flex-direction:column; }
    .two-col { flex-direction:column; }
    .two-col .sidebar { width:100%; }
    .data-grid { display:block; }
    .grid-row { display:block; border-bottom:1px solid #eee; padding:8px; }
    .grid-cell { display:block; text-align:left; border:none; padding:4px 0; }
    .grid-row.header { display:none; }
}

/* --- Utility --- */
.text-red { color:#e63946; }
.text-green { color:#2a9d8f; }
.text-gray { color:#999; }
.text-center { text-align:center; }
.mt-10 { margin-top:10px; }
.mb-10 { margin-bottom:10px; }
.hidden { display:none; }
/* ========== HOT 小图标样式 ========== */
.hot-tag{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;}
.hot-new{background:linear-gradient(135deg,#52c41a,#389e0d);color:#fff;}
.hot-hot{background:linear-gradient(135deg,#ff4d4f,#cf1322);color:#fff;}
.hot-rec{background:linear-gradient(135deg,#1890ff,#096dd9);color:#fff;}
.hot-fire{background:linear-gradient(135deg,#fa8c16,#d46b08);color:#fff;}
.hot-top{background:linear-gradient(135deg,#722ed1,#531dab);color:#fff;}
.hot-hot-text{background:linear-gradient(135deg,#ff7a45,#d4380d);color:#fff;animation:hotPulse 1.5s infinite;}
@keyframes hotPulse{0%,100%{opacity:1;}50%{opacity:.7;}}
.hot-badge{display:inline-block;min-width:14px;height:14px;padding:0 3px;font-size:9px;font-weight:bold;line-height:14px;text-align:center;border-radius:7px;background:#ff4d4f;color:#fff;margin-left:3px;vertical-align:middle;}
.hot-flame{position:relative;display:inline-block;margin-left:4px;vertical-align:middle;}
.hot-flame::before{content:"HOT";font-size:9px;font-weight:bold;color:#ff6b35;}
/* ========== 动画 HOT 小图标（多种效果供选择）========== */

/* 1. 闪烁效果 - 透明度忽明忽暗 */
.hot-blink{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#ff4d4f,#cf1322);color:#fff;animation:hotBlink 1s infinite;}
@keyframes hotBlink{0%,100%{opacity:1;}50%{opacity:.3;}}

/* 2. 缩放脉冲 - 大小呼吸 */
.hot-pulse{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#ff7a45,#d4380d);color:#fff;animation:hotPulse 1.2s infinite;}
@keyframes hotPulse{0%,100%{transform:scale(1);}50%{transform:scale(1.15);}}

/* 3. 左右抖动 */
.hot-shake{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#faad14,#d48806);color:#fff;animation:hotShake .5s infinite;}
@keyframes hotShake{0%,100%{transform:translateX(0);}25%{transform:translateX(-2px);}75%{transform:translateX(2px);}}

/* 4. 上下弹跳 */
.hot-bounce{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#52c41a,#389e0d);color:#fff;animation:hotBounce .8s infinite;}
@keyframes hotBounce{0%,100%{transform:translateY(0);}50%{transform:translateY(-3px);}}

/* 5. 旋转效果 */
.hot-rotate{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#722ed1,#531dab);color:#fff;animation:hotRotate 2s linear infinite;}
@keyframes hotRotate{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}

/* 6. 光晕脉冲 - 外圈发光 */
.hot-glow{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#ff4d4f,#cf1322);color:#fff;box-shadow:0 0 0 rgba(255,77,79,.7);animation:hotGlow 1.5s infinite;}
@keyframes hotGlow{0%{box-shadow:0 0 0 0 rgba(255,77,79,.7);}70%{box-shadow:0 0 0 6px rgba(255,77,79,0);}100%{box-shadow:0 0 0 0 rgba(255,77,79,0);}}

/* 7. 渐变流动 - 背景色流动 */
.hot-flow{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(90deg,#ff4d4f,#ff7a45,#faad14,#ff4d4f);background-size:300% 100%;color:#fff;animation:hotFlow 2s linear infinite;}
@keyframes hotFlow{0%{background-position:0% 50%;}100%{background-position:300% 50%;}}

/* 8. 翻转效果 - 3D上下翻转 */
.hot-flip{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#1890ff,#096dd9);color:#fff;animation:hotFlip 2s infinite;}
@keyframes hotFlip{0%,100%{transform:rotateX(0deg);}50%{transform:rotateX(180deg);}}

/* 9. 摇摆效果 - 像钟摆一样 */
.hot-swing{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#eb2f96,#c41d7f);color:#fff;transform-origin:top center;animation:hotSwing 1s ease-in-out infinite;}
@keyframes hotSwing{0%,100%{transform:rotate(-10deg);}50%{transform:rotate(10deg);}}

/* 10. 心跳效果 - 快速跳动 */
.hot-heartbeat{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#ff4d4f,#a8071a);color:#fff;animation:hotHeartbeat 1.2s ease-in-out infinite;}
@keyframes hotHeartbeat{0%,100%{transform:scale(1);}14%{transform:scale(1.3);}28%{transform:scale(1);}42%{transform:scale(1.3);}70%{transform:scale(1);}}

/* 11. 滑动进入 - 从左滑入循环 */
.hot-slide{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:linear-gradient(135deg,#13c2c2,#08979c);color:#fff;animation:hotSlide 2s ease-in-out infinite;}
@keyframes hotSlide{0%{transform:translateX(-10px);opacity:0;}20%,80%{transform:translateX(0);opacity:1;}100%{transform:translateX(10px);opacity:0;}}

/* 12. 霓虹闪烁 - 边框发光 */
.hot-neon{display:inline-block;padding:0px 4px;font-size:9px;font-weight:bold;border-radius:2px;margin-left:3px;vertical-align:middle;line-height:1.3;background:#000;color:#ff4d4f;border:1px solid #ff4d4f;animation:hotNeon 1s ease-in-out infinite alternate;}
@keyframes hotNeon{0%{box-shadow:0 0 5px #ff4d4f,0 0 10px #ff4d4f;}100%{box-shadow:0 0 10px #ff4d4f,0 0 20px #ff4d4f,0 0 30px #ff4d4f;}}
/* ========== 图文板块 ========== */
.image-section{display:flex;gap:20px;margin:20px 0;}
.image-col{flex:1;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.08);}
.image-col-title{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:linear-gradient(135deg,#e63946,#c1121f);color:#fff;font-size:16px;font-weight:bold;}
.image-col-title h2{margin:0;font-size:16px;font-weight:bold;display:inline;}
.image-col-title h2 a{color:#fff;text-decoration:none;}
.image-col-title .more{font-size:12px;font-weight:normal;opacity:.9;color:#fff;text-decoration:none;}
.image-col-title a{color:#fff;text-decoration:none;}
.image-col-title .more{font-size:12px;font-weight:normal;opacity:.9;}
.featured-article{display:flex;gap:12px;padding:16px;border-bottom:1px solid #eee;}
.featured-img{flex-shrink:0;width:140px;height:100px;overflow:hidden;border-radius:6px;}
.featured-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.featured-img:hover img{transform:scale(1.05);}
.featured-info{flex:1;min-width:0;}
.featured-info h3{font-size:15px;margin:0 0 8px 0;line-height:1.4;}
.featured-info h3 a{color:#333;text-decoration:none;}
.featured-info h3 a:hover{color:#e63946;}
.featured-info p{font-size:13px;color:#888;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.image-article-list{list-style:none;margin:0;padding:8px 16px 16px 16px;}
.image-article-list li{padding:8px 0;border-bottom:1px dashed #eee;font-size:14px;}
.image-article-list li:last-child{border-bottom:none;}
.image-article-list li a{color:#555;text-decoration:none;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.image-article-list li a:hover{color:#e63946;}
.image-article-list li a::before{content:"";display:inline-block;width:5px;height:5px;background:#e63946;border-radius:50%;margin-right:8px;vertical-align:middle;}
.no-article{padding:30px;text-align:center;color:#999;}
@media (max-width:768px){
    .image-section{flex-direction:column;}
    .featured-article{flex-direction:column;}
    .featured-img{width:100%;height:180px;}
}


/* ========== 热门图文图片墙 ========== */
.hot-image-wall {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
}
.wall-title {
    font-size: 18px;
    color: #c00;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #c00;
}
.wall-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.wall-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
}
.wall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.wall-item:hover img {
    transform: scale(1.08);
}
.wall-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.wall-item:hover .wall-caption {
    opacity: 1;
}
@media (max-width: 768px) {
    .wall-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
