/* 1:1 复刻专用重置 */
* { box-sizing: border-box; margin: 0; padding: 0; font-size: 12px; }
body { font-family: "lucida grande", "lucida sans unicode", "lucida", "Helvetica", "Segoe UI", "Arial", sans-serif; background-color: #ffffff; color: #333333; line-height: 1.8; }
a { color: #333; text-decoration: none; }
a:hover { color: #ff6a00; text-decoration: underline; }

/* 颜色常量定义 */
.cls-orange { color: #ff4400 !important; font-weight: bold; } /* 淘宝/天猫/阿里 */
.cls-blue { color: #0055aa !important; }   /* 腾讯系 */
.cls-green { color: #008800 !important; }  /* 游戏/绿色系 */

.container { width: 1190px; margin: 0 auto; padding: 0; }

/* 1. 顶部状态栏与搜索栏 */
.top-mini-nav { display: flex; justify-content: space-between; padding: 4px 0; color: #666; border-bottom: 1px solid #f2f2f2; margin-bottom: 10px; }
.top-mini-nav .left a { margin-right: 12px; color: #666; }
.top-mini-nav .right span { margin-left: 10px; }

.header-search-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.logo-box { display: flex; align-items: center; gap: 8px; }
.logo-box img { height: 32px; }
.logo-box .sub-txt { color: #666; font-size: 11px; margin-top: 4px; }

/* 搜索框 1:1 像素复刻 */
.search-container { display: flex; width: 560px; height: 34px; border: 1px solid #999999; border-radius: 4px; background: #fff; overflow: hidden; }
.engine-trigger { width: 65px; height: 32px; line-height: 32px; background: #ffffff; text-align: center; font-size: 14px; font-weight: bold; border-right: 1px solid #e5e5e5; cursor: pointer; position: relative; }
.engine-trigger::after { content: "▾"; font-size: 10px; margin-left: 4px; color: #999; }
.search-container input { border: none; outline: none; padding: 0 10px; flex: 1; height: 32px; font-size: 14px; }
.search-btn-submit { width: 70px; height: 32px; border: none; background: #f5f5f5; border-left: 1px solid #e5e5e5; font-size: 14px; cursor: pointer; font-weight: bold; }
.search-btn-submit:hover { background: #eee; }

/* 2. 高密度 Tag 选项卡面板 */
.tag-nav-section { border: 1px solid #e9e9e9; border-radius: 4px; margin-bottom: 15px; }
.tag-menu-bar { display: flex; background: #fafafa; border-bottom: 1px solid #e9e9e9; height: 32px; align-items: center; padding-x: 10px; }
.tag-menu-item { padding: 0 15px; height: 32px; line-height: 32px; cursor: pointer; font-weight: bold; color: #333; text-align: center; }
.tag-menu-item.active { background: #ffffff; border-left: 1px solid #e9e9e9; border-right: 1px solid #e9e9e9; margin-top: -1px; height: 33px; color: #ff6a00; }
.tag-menu-item:first-child.active { border-left: none; }

/* 1:1 高密度无边框网格 */
.tag-grid-panel { display: none; grid-template-columns: repeat(6, 1fr); padding: 12px 15px; gap: 8px 10px; }
.tag-grid-panel.active { display: grid; }
.grid-cell { display: flex; align-items: center; height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-cell img { width: 14px; height: 14px; margin-right: 6px; object-fit: contain; }

/* 3. 中部双栏排版 */
.layout-columns { display: flex; justify-content: space-between; gap: 20px; }
.column-main-left { width: 880px; }
.column-side-right { width: 290px; }

/* 分类子切换栏 1:1 */
.sub-category-strip { display: flex; background: #2d8cf0; height: 30px; align-items: center; border-radius: 2px 2px 0 0; padding-left: 5px; }
.sub-category-strip a { color: #ffffff; padding: 0 12px; font-weight: bold; height: 30px; line-height: 30px; display: inline-block; }
.sub-category-strip a.active, .sub-category-strip a:hover { background: #1b72ce; text-decoration: none; }

/* 资讯流两栏：左侧大图占 360px，右侧文字列表 */
.news-flow-box { display: flex; border: 1px solid #e9e9e9; border-top: none; padding: 12px; gap: 15px; background: #fff; margin-bottom: 15px; }
.news-banner-area { width: 360px; height: 210px; position: relative; overflow: hidden; }
.news-banner-area img { width: 100%; height: 100%; object-fit: cover; }
.news-banner-title-mask { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); padding: 8px; }
.news-banner-title-mask a { color: #fff; font-size: 13px; font-weight: bold; }

.news-text-links-list { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.news-row-item { display: flex; justify-content: space-between; align-items: center; height: 24px; border-bottom: 1px dashed #f5f5f5; }
.news-row-item .title-link { font-size: 13px; max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-row-item .meta-time { color: #999; font-size: 11px; }

/* 右侧边栏热搜 1:1 */
.right-card-widget { border: 1px solid #e9e9e9; border-radius: 4px; padding: 12px; margin-bottom: 15px; background: #fff; }
.widget-head-title { font-size: 13px; font-weight: bold; color: #ff4400; border-bottom: 1px solid #f2f2f2; padding-bottom: 6px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.widget-head-title span { font-size: 11px; color: #999; font-weight: normal; }
.hot-ranking-list li { display: flex; align-items: center; margin-bottom: 6px; height: 20px; }
.hot-ranking-list .rank-badge { width: 16px; height: 16px; line-height: 16px; text-align: center; background: #f0f0f0; color: #666; font-size: 11px; margin-right: 8px; font-weight: bold; border-radius: 2px; }
.hot-ranking-list li:nth-child(1) .rank-badge { background: #ff4400; color: #fff; }
.hot-ranking-list li:nth-child(2) .rank-badge { background: #ff7700; color: #fff; }
.hot-ranking-list li:nth-child(3) .rank-badge { background: #ffaa00; color: #fff; }
.hot-ranking-list .item-text-anchor { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 页脚样式 */
.footer-copyright-block { text-align: center; padding: 20px 0; color: #999; border-top: 1px solid #e9e9e9; margin-top: 30px; line-height: 2px; }
.footer-copyright-block a { color: #666; margin: 0 6px; }