/* ═══════════ 基础重置 ═══════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: #333;
  background: #f5f5f5;
  line-height: 1.6;
}

a { color: #333; text-decoration: none; }
a:hover { color: #c00; text-decoration: underline; }

/* ═══════════ 顶部工具栏 ═══════════ */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  font-size: 12px;
}
.top-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-left a, .top-right a { margin: 0 6px; color: #666; }
.top-right { display: flex; align-items: center; gap: 6px; }
#clockDisplay { color: #999; font-size: 12px; }

/* ═══════════ 头部 ═══════════ */
.site-header {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 15px 0;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* ═══════════ 搜酷114 Logo ═══════════ */
.logo-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex-shrink: 0;
}
.logo {
  font-family: "PingFang SC", "Microsoft YaHei", "Arial Black", sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: baseline;
  letter-spacing: -1px;
  cursor: default;
  user-select: none;
}
.logo span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .lg-1 { transform: translateY(-4px); }
.logo:hover .lg-2 { transform: translateY(-4px); transition-delay: 0.05s; }
.logo:hover .lg-3 { transform: translateY(-4px); transition-delay: 0.1s; }
.logo:hover .lg-4 { transform: translateY(-4px); transition-delay: 0.15s; }
.logo:hover .lg-5 { transform: translateY(-4px); transition-delay: 0.2s; }

.lg-1 { color: #4285F4; }   /* 搜 · Google 蓝 */
.lg-2 { color: #EA4335; }   /* 酷 · Google 红 */
.lg-3 { color: #FBBC05; }   /* 1 · Google 黄 */
.lg-4 { color: #34A853; }   /* 1 · Google 绿 */
.lg-5 { color: #EA4335; }   /* 4 · Google 红 */

.logo-sub {
  font-size: 11px;
  color: #999;
  letter-spacing: 4px;
  padding-left: 4px;
  font-weight: 400;
}

/* ═══════════ 搜索区 ═══════════ */
.search-area { flex: 1; min-width: 0; }
.search-tabs {
  display: flex;
  gap: 0;
}
.search-tab {
  padding: 5px 14px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-bottom: none;
  background: #f0f0f0;
  color: #666;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
  margin-right: -1px;
  font-family: inherit;
}
.search-tab.active {
  background: #fff;
  color: #c00;
  font-weight: 700;
  border-bottom: 1px solid #fff;
  position: relative;
  z-index: 1;
}
.search-box {
  display: flex;
  border: 2px solid #c00;
  border-radius: 0 3px 3px 3px;
  overflow: hidden;
}
.search-box input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.search-box button {
  padding: 8px 24px;
  background: #c00;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.search-box button:hover { background: #a00; }

/* ═══════════ 主内容 ═══════════ */
.main-content {
  max-width: 1000px;
  margin: 15px auto;
  padding: 0 10px;
}
.nav-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  margin-bottom: 12px;
  padding: 12px 15px;
}
.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #c00;
  border-left: 3px solid #c00;
  padding-left: 8px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* ═══════════ ① 娱乐热搜 ═══════════ */
.ent-tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ent-tab {
  padding: 4px 14px;
  font-size: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  background: #fafafa;
  color: #666;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}
.ent-tab:hover {
  background: #fff5f5;
  color: #c00;
  border-color: #f5b7b7;
}
.ent-tab.active {
  background: #c00;
  color: #fff;
  border-color: #c00;
  font-weight: 700;
}
.ent-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
}
.ent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed #f5f5f5;
  overflow: hidden;
}
.ent-item:last-child { border-bottom: none; }
.ent-num {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #ccc;
  font-style: italic;
}
.ent-item:nth-child(1) .ent-num { background: #ff3b30; }
.ent-item:nth-child(2) .ent-num { background: #ff9500; }
.ent-item:nth-child(3) .ent-num { background: #ffcc00; }
.ent-item:nth-child(1) .ent-text,
.ent-item:nth-child(2) .ent-text,
.ent-item:nth-child(3) .ent-text { color: #c00; font-weight: 700; }
.ent-text {
  flex: 1;
  min-width: 0;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ent-text:hover { color: #c00; text-decoration: none; }
.ent-hot {
  flex-shrink: 0;
  font-size: 11px;
  color: #999;
}
.ent-hot:before { content: "🔥 "; }

/* ═══════════ ② 热门聚焦 ═══════════ */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.focus-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s;
  position: relative;
  height: 120px;
}
.focus-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  text-decoration: none;
}
.focus-bg {
  position: absolute;
  inset: 0;
  background-size: 200% 200%;
  transition: background-position 0.5s;
}
.focus-card:hover .focus-bg { background-position: 100% 100%; }

.focus-bg-1 { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%); }
.focus-bg-2 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.focus-bg-3 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.focus-bg-4 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.focus-bg-5 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.focus-bg-6 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.focus-content {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.focus-tag {
  align-self: flex-start;
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.28);
  border-radius: 8px;
  color: #fff;
  backdrop-filter: blur(4px);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.focus-body { }
.focus-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.focus-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  display: flex;
  gap: 8px;
}

/* ═══════════ ③ 名站导航 ═══════════ */
.famous-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.famous-links a {
  padding: 2px 0;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
}
.famous-links a::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #ddd;
  margin: 0 10px;
  vertical-align: middle;
}

/* ═══════════ ④ 实用酷站 ═══════════ */
.cool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.cool-links a {
  padding: 2px 0;
  font-size: 13px;
  color: #333;
}
.cool-links a::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #ddd;
  margin: 0 10px;
  vertical-align: middle;
}

/* ═══════════ ⑤ 网址分类 ═══════════ */
.category-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
.category-group {
  margin-bottom: 12px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 8px;
}
.category-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 6px;
}
.category-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 0;
}
.category-group-links a {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}
.category-group-links a::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  background: #e0e0e0;
  margin: 0 8px;
  vertical-align: middle;
}
.category-group-links a:hover { color: #c00; }

/* ═══════════ ⑥ 实用工具 ═══════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tool-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #eee;
  border-radius: 3px;
  font-size: 12px;
  color: #555;
  transition: all 0.2s;
}
.tool-item:hover {
  background: #fff8f8;
  border-color: #c00;
  color: #c00;
  text-decoration: none;
}
.tool-icon { font-size: 16px; }

/* ═══════════ 页脚 ═══════════ */
.site-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 20px 0;
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #999;
}
.footer-links { margin: 8px 0; }
.footer-links a { color: #666; margin: 0 6px; }
.copyright { color: #bbb; }

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; align-items: stretch; }
  .logo-area { align-items: center; }
  .search-area { width: 100%; }
  .category-columns { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .famous-links a::after, .cool-links a::after { margin: 0 6px; }
  .ent-list { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .logo { font-size: 28px; }
  .search-tab { padding: 4px 8px; font-size: 11px; }
  .tools-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { height: 100px; }
}
