:root {
    --primary-color: #00BEBD; /* BOSS直聘青 */
    --accent-color: #ff4d4f; /* 提醒红 */
    --bg-body: #f8f9fa;
    --text-main: #222;
    --text-sub: #666;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, system-ui, "Microsoft YaHei", sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Header & Navigation --- */
.header { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-top { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; }
.logo { font-size: 20px; font-weight: bold; color: var(--primary-color); display: flex; align-items: center; }
.logo strong { font-size: 12px; background: var(--primary-color); color: #fff; padding: 1px 4px; border-radius: 3px; margin-left: 5px; font-weight: normal; }

.nav-scroll { border-top: 1px solid #f0f0f0; background: var(--white); overflow-x: auto; white-space: nowrap; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-content { max-width: 1200px; margin: 0 auto; display: flex; padding: 0 10px; }
.nav-item { padding: 12px 15px; font-size: 15px; color: var(--text-sub); position: relative; }
.nav-item:hover { color: var(--primary-color); font-weight: bold; }
.nav-item.active { color: var(--primary-color); font-weight: bold; }
.nav-item.active::after { content: ""; position: absolute; bottom: 0; left: 15px; right: 15px; height: 3px; background: var(--primary-color); border-radius: 3px 3px 0 0; }
/* --- Breadcrumb 面包屑 --- */
.breadcrumb { max-width: 1200px; margin: 15px auto 0; padding: 0 15px; font-size: 13px; color: #999; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span { margin: 0 5px; color: #ccc; }

/* --- Main Layout --- */
.container { max-width: 1200px; margin: 15px auto; padding: 0 12px; display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 80px; }
@media (min-width: 1024px) { .container { grid-template-columns: 1fr 320px; } }

/* --- Article List --- */
.news-card { 
    background: var(--white); 
    border-radius: 12px; 
    padding: 16px; 
    margin-bottom: 15px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
    transition: transform 0.2s; 
    display: flex;
    gap: 15px;
}
.news-card:hover { transform: translateY(-2px); }

.news-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-title { font-size: 17px; font-weight: bold; color: #333; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-desc { font-size: 13px; color: #777; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-meta { font-size: 12px; color: #bbb; display: flex; align-items: center; gap: 12px; }

/* 基础通用样式 */
.news-tag {display: inline-block;padding: 2px 6px;border-radius: 3px;font-size: 11px;color: #fff;margin-right: 5px;}
/* 固定地域标签：深蓝色 */
.loc-tag { background-color: #2c3e50; }
/* --- 自动循环颜色逻辑 (每5个一组循环) --- */
/* 第 1, 6, 11... 条：橙色 (避坑类感官) */
.news-card:nth-child(5n+1) .attr-tag { background-color: #e67e22; }
/* 第 2, 7, 12... 条：绿色 (实地测评感官) */
.news-card:nth-child(5n+2) .attr-tag { background-color: #27ae60; }
/* 第 3, 8, 13... 条：蓝色 (行业资讯感官) */
.news-card:nth-child(5n+3) .attr-tag { background-color: #3498db; }
/* 第 4, 9, 14... 条：紫色 (高端场子感官) */
.news-card:nth-child(5n+4) .attr-tag { background-color: #9b59b6; }
/* 第 5, 10, 15... 条：红色 (热点资讯感官) */
.news-card:nth-child(5n+5) .attr-tag { background-color: #e74c3c; }
.attr-tag {font-weight: 500;text-shadow: 0 1px 1px rgba(0,0,0,0.1);letter-spacing: 0.5px; /* 增加字间距，方便 OCR 识别 */}
.news-thumb { width: 100px; height: 75px; border-radius: 6px; object-fit: cover; background: #f0f0f0; flex-shrink: 0; }
@media (max-width: 480px) {
    .news-thumb { width: 80px; height: 60px; }
}

/* --- Sidebar --- */
.sidebar-box { background: var(--white); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.sidebar-title { font-size: 16px; font-weight: bold; margin-bottom: 15px; display: flex; align-items: center; }
.sidebar-title::before { content: ""; width: 4px; height: 16px; background: var(--primary-color); margin-right: 8px; border-radius: 2px; }

.hot-news-item { padding: 10px 0; border-bottom: 1px dashed #eee; display: flex; gap: 10px; align-items: center; }
.hot-news-item:last-child { border: none; }
.rank-num { font-size: 14px; font-weight: bold; color: #ccc; width: 20px; }
.rank-num.top { color: var(--accent-color); }
.hot-title { font-size: 13px; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: normal; flex: 1; }

/* --- Bottom Contact Bar (WAP) --- */
.bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); padding: 10px 15px; box-shadow: 0 -2px 15px rgba(0,0,0,0.1); display: flex; gap: 10px; z-index: 2000; }
.btn-contact { flex: 1; height: 45px; border-radius: 25px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 15px; color: #fff; }
.btn-wechat { background: #07c160; }
.btn-phone { background: var(--primary-color); }

/* 状态圆点基础样式 */
.online-status {position: relative;display: inline-block;width: 10px;height: 10px;}
.online-status .dot {position: absolute;top: 0;left: 0;width: 10px;height: 10px;background-color: #2ecc71;border-radius: 50%;z-index: 2;}

/* 呼吸光圈动画 */
.online-status .pulse {position: absolute;top: 0;left: 0;width: 10px;height: 10px;background-color: #2ecc71;border-radius: 50%;z-index: 1;animation: statusPulse 2s infinite ease-in-out;}

@keyframes statusPulse {
    0% {transform: scale(1);opacity: 1;}
    100% {transform: scale(3);opacity: 0;}
}

/* 侧边栏标题微调，增强视觉对比 */
.sidebar-title {color: #333;font-size: 16px;border-bottom: 2px solid #f1f1f1;padding-bottom: 10px;margin-bottom: 15px;}

@media (min-width: 1024px) { .bottom-bar { display: none; } }

/* --- Footer --- */
.footer { text-align: center; padding: 40px 0; color: #999; font-size: 13px; background: #fff; border-top: 1px solid #eee; }
.footer p {margin-bottom:20px;}