/* ===== Toutiao Wide Design System v001 (extracted, shared) ===== */
/* ===== Toutiao Wide Design System v001 ===== */
:root {
  --tt-red: #FE2C55;
  --tt-red-dark: #E02048;
  --tt-red-light: #FFF0F3;
  --tt-orange: #FA6145;
  --tt-bg: #F5F6F7;
  --tt-white: #FFFFFF;
  --tt-title: #1A1A1A;
  --tt-body: #4A4A4A;
  --tt-meta: #999999;
  --tt-meta-dark: #6B6B6B;
  --tt-border: #ECECEC;
  --tt-border-light: #F5F5F5;
  --tt-blue: #406599;
  --tt-gold: #F5A623;
  --tt-green: #00B96B;
  --tt-purple: #7C3AED;
  --tt-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --tt-shadow-hover: 0 8px 28px rgba(0,0,0,0.12);
  --tt-radius: 12px;
  --tt-radius-sm: 8px;
  --tt-radius-lg: 16px;
  --tt-nav-w: 200px;
  --tt-aside-w: 340px;
  --tt-max-w: 1600px;
  --tt-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --tt-trans: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--tt-font);
  background: var(--tt-bg);
  color: var(--tt-title);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* Gradient placeholders */
.tg1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.tg2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.tg3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.tg4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.tg5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.tg6 { background: linear-gradient(135deg, #30cfd0, #330867); }
.tg7 { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.tg8 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.tg9 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.tg10 { background: linear-gradient(135deg, #2af598, #009efd); }
.tg11 { background: linear-gradient(135deg, #ee9ca7, #ffdde1); }
.tg12 { background: linear-gradient(135deg, #c471f5, #fa71cd); }

/* ===== Top Bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--tt-border);
}

.topbar-inner {
  max-width: var(--tt-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--tt-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(254,44,85,0.3);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--tt-title);
  letter-spacing: -0.5px;
}

.logo-text .red { color: var(--tt-red); }

/* Main nav */
.main-nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.main-nav a {
  padding: 8px 16px;
  font-size: 16px;
  color: var(--tt-body);
  border-radius: 8px;
  transition: var(--tt-trans);
  font-weight: 500;
}

.main-nav a:hover { background: var(--tt-bg); color: var(--tt-title); }
.main-nav a.active { color: var(--tt-red); font-weight: 700; }

/* Search */
.search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 40px;
  border: 2px solid var(--tt-border);
  border-radius: 20px;
  padding: 0 44px 0 20px;
  font-size: 14px;
  font-family: var(--tt-font);
  background: var(--tt-bg);
  outline: none;
  transition: var(--tt-trans);
}

.search-input:focus {
  border-color: var(--tt-red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(254,44,85,0.1);
}

.search-input::placeholder { color: var(--tt-meta); }

.search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--tt-red);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tt-trans);
}
.search-btn:hover { background: var(--tt-red-dark); }

/* User actions */
.user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-body);
  transition: var(--tt-trans);
  position: relative;
}
.icon-btn:hover { background: var(--tt-bg); }

.icon-btn .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--tt-red);
  border-radius: 50%;
  border: 2px solid #fff;
}

.publish-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--tt-red);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--tt-font);
  transition: var(--tt-trans);
  box-shadow: 0 2px 8px rgba(254,44,85,0.3);
}
.publish-btn:hover { background: var(--tt-red-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(254,44,85,0.4); }

/* 天气显示（替换原发布按钮位置，红底配白字） */
.weather {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
  color: var(--tt-title);
  font-size: 14px;
  white-space: nowrap;
  cursor: default;
  font-family: var(--tt-font);
}
.weather-ico { font-size: 16px; line-height: 1; }
.weather-city { opacity: 0.95; }
.weather-temp { font-weight: 600; }
@media (max-width: 640px) {
  .weather-city { display: none; }
}

/* 顶栏第一行：站点关键词（位于天气与用户图标之后） */
.site-slogan {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--tt-red);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* 网址导航页（左栏「网址」项跳转目标） */
.url-intro { color: var(--tt-meta); font-size: 14px; margin: -6px 0 18px; }
.cat-banner{margin:0 0 22px;height:200px;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.05);}
.cat-banner img{width:100%;height:100%;object-fit:cover;display:block;}
.url-groups { display: flex; flex-direction: column; gap: 26px; }
.url-group-title { font-size: 16px; font-weight: 700; color: var(--tt-title); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.url-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.url-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: var(--tt-trans);
}
.url-card:hover { border-color: var(--tt-red); box-shadow: 0 4px 16px rgba(254,44,85,0.12); transform: translateY(-2px); }
.url-ico { font-size: 20px; }
.url-name { font-weight: 600; font-size: 15px; color: var(--tt-title); }
.url-desc { font-size: 13px; color: var(--tt-meta); line-height: 1.5; }
/* 左栏网址项作为链接时去掉默认下划线 */
a.sidebar-item { text-decoration: none; color: inherit; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tt-red), var(--tt-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: var(--tt-shadow);
}

/* ===== Category Bar ===== */
.catbar {
  background: rgba(147,27,54,0.9);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: sticky;
  top: 64px;
  z-index: 150;
}

.catbar-inner {
  max-width: var(--tt-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 4px;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar-inner::-webkit-scrollbar { display: none; }

.cat-item {
  padding: 8px 18px;
  font-size: 16px;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
}
a.cat-item { text-decoration: none; display: inline-flex; align-items: center; transition: var(--tt-trans); font-weight: 500; position: relative; flex-shrink: 0; }

.cat-item:hover { color: #fff; background: rgba(255,255,255,.18); }

.cat-item.active {
  color: #ffd54a;
  font-weight: 700;
  font-size: 17px;
  background: rgba(255,213,74,.16);
}

.cat-item.active::after {
  display: none;
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #ffd54a;
  border-radius: 2px;
}

/* 分类前的小图标（emoji 彩色小图，可后续替换为生成的 PNG） */
.cat-emoji {
  font-size: 15px;
  line-height: 1;
  margin-right: 5px;
  flex-shrink: 0;
}

.cat-item .hot-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ffd54a;
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: top;
  margin-top: 3px;
}

/* ===== Main Layout ===== */
.layout {
  max-width: var(--tt-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--tt-nav-w) 1fr var(--tt-aside-w);
  gap: 24px;
  padding: 24px 32px 48px;
}
.layout-narrow { grid-template-columns: 1fr var(--tt-aside-w); }

/* ===== Left Sidebar ===== */
.sidebar {
  position: sticky;
  top: 128px;
  height: fit-content;
}

.sidebar-section {
  background: #fff;
  border-radius: var(--tt-radius);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: var(--tt-shadow);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--tt-radius-sm);
  cursor: pointer;
  transition: var(--tt-trans);
  color: var(--tt-body);
  font-size: 15px;
  font-weight: 500;
}

.sidebar-item:hover { background: var(--tt-bg); }
.sidebar-item.active { background: var(--tt-red-light); color: var(--tt-red); font-weight: 600; }

.sidebar-item .icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 13px;
  color: var(--tt-meta);
  padding: 12px 14px 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Feed ===== */
.feed { min-width: 0; }

/* Hero Banner */
.hero {
  background: #fff;
  border-radius: var(--tt-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--tt-shadow);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  height: 340px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-main .bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.hero-main:hover .bg { transform: scale(1.05); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  background: var(--tt-red);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  gap: 16px;
}

/* Hero side items */
.hero-side {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--tt-border-light);
}

.hero-side-item {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--tt-border-light);
  cursor: pointer;
  transition: var(--tt-trans);
  align-items: center;
}
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item:hover { background: var(--tt-bg); }

.hero-side-item .thumb {
  width: 90px;
  height: 60px;
  border-radius: var(--tt-radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.hero-side-item .info { min-width: 0; }

.hero-side-item .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tt-title);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.hero-side-item .meta {
  font-size: 12px;
  color: var(--tt-meta);
}

/* Feed Section Title */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tt-title);
  margin: 4px 0 16px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--tt-red);
  border-radius: 2px;
}

/* Card */
.card {
  background: #fff;
  border-radius: var(--tt-radius);
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--tt-trans);
  box-shadow: var(--tt-shadow);
}
.card:hover { box-shadow: var(--tt-shadow-hover); transform: translateY(-2px); }

.card-inner {
  display: flex;
  gap: 20px;
}

.card-content { flex: 1; min-width: 0; }

.card-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--tt-title);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--tt-trans);
}
.card:hover .card-title { color: var(--tt-red); }

.card-desc {
  font-size: 14px;
  color: var(--tt-meta-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--tt-meta);
}

.card-meta .source { color: var(--tt-meta-dark); font-weight: 500; }

.tag-hot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--tt-red-light);
  color: var(--tt-red);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.tag-blue {
  display: inline-flex;
  align-items: center;
  background: #EBF2FF;
  color: var(--tt-blue);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.tag-ad {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tt-border);
  color: var(--tt-meta);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.card-thumb {
  width: 200px;
  height: 130px;
  border-radius: var(--tt-radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Three image card */
.card-three .card-content { margin-bottom: 14px; }

.card-three .img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.card-three .img-row .thumb {
  height: 140px;
  border-radius: var(--tt-radius-sm);
  overflow: hidden;
  position: relative;
}

.img-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Large image card */
.card-large .card-thumb {
  width: 100%;
  height: 320px;
  border-radius: var(--tt-radius);
  margin-bottom: 14px;
  position: relative;
}

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: var(--tt-trans);
}
.card-large:hover .play-icon { background: rgba(254,44,85,0.85); transform: translate(-50%,-50%) scale(1.1); }

/* Text only card */
.card-text .card-title { margin-bottom: 8px; }

/* ===== Right Aside ===== */
.aside {
  height: fit-content;
}

.aside-card {
  background: #fff;
  border-radius: var(--tt-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--tt-shadow);
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tt-title);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aside-title .more {
  font-size: 13px;
  color: var(--tt-meta);
  font-weight: 400;
  cursor: pointer;
}

/* Hot list */
.hot-list-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  transition: var(--tt-trans);
  border-bottom: 1px solid var(--tt-border-light);
}
.hot-list-item:last-child { border-bottom: none; }
.hot-list-item:hover .hot-title { color: var(--tt-red); }

.hot-rank {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--tt-meta);
}
.hot-rank.top1 { color: var(--tt-red); }
.hot-rank.top2 { color: var(--tt-orange); }
.hot-rank.top3 { color: var(--tt-gold); }

.hot-title {
  font-size: 14px;
  color: var(--tt-body);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--tt-trans);
}

.hot-meta {
  font-size: 12px;
  color: var(--tt-meta);
  margin-top: 2px;
}

/* Latest list */
.latest-list-item {
  padding: 9px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--tt-border-light);
  transition: var(--tt-trans);
}
.latest-list-item:last-child { border-bottom: none; }
.latest-list-item:hover .latest-title { color: var(--tt-red); }
.latest-title {
  display: block;
  font-size: 14px;
  color: var(--tt-body);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.latest-date {
  font-size: 12px;
  color: var(--tt-meta);
  margin-top: 3px;
}

/* Category cloud */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--tt-bg);
  border: 1px solid var(--tt-border-light);
  border-radius: 16px;
  font-size: 13px;
  color: var(--tt-body);
  text-decoration: none;
  cursor: pointer;
  transition: var(--tt-trans);
}
.cat-tag:hover { background: var(--tt-red-light); color: var(--tt-red); border-color: var(--tt-red-light); }
.cat-tag .num {
  font-size: 11px;
  color: var(--tt-meta);
  background: #fff;
  border-radius: 10px;
  padding: 0 6px;
}
.cat-tag:hover .num { color: var(--tt-red); }

/* Category list (one per line) */
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--tt-body);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.cat-row:hover { background: var(--tt-red-light); color: var(--tt-red); }
.cat-name { display: flex; align-items: center; justify-content: flex-start; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tt-title); }
.cat-row:hover .cat-name { color: var(--tt-red); }
.cat-num { margin-left: auto; font-size: 12px; color: var(--tt-meta); font-weight: 500; }
.cat-row:hover .cat-num { color: var(--tt-red); }
.cat-title {
  font-size: 12px;
  color: var(--tt-meta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-row:hover .cat-title { color: var(--tt-red); }
.cat-sub {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-meta);
  letter-spacing: .5px;
}
.cat-intro {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--tt-body);
  opacity: .85;
}

/* Archive */
.archive-list { display: flex; flex-direction: column; gap: 2px; }
.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--tt-body);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.archive-row:hover { background: var(--tt-red-light); color: var(--tt-red); }
.arc-num { font-size: 12px; color: var(--tt-meta); font-weight: 500; }
.archive-row:hover .arc-num { color: var(--tt-red); }

/* Intro */
.intro-text {
  font-size: 13px;
  color: var(--tt-body);
  line-height: 1.75;
}
.intro-poem {
  font-size: 13px;
  color: var(--tt-body);
  line-height: 1.95;
  letter-spacing: 1px;
  padding: 4px 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--tt-border-light);
}
.intro-qq {
  font-size: 13px;
  color: var(--tt-body);
  margin-bottom: 12px;
}
.intro-qq b, .intro-qq strong { color: var(--tt-red); }
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  color: var(--tt-meta);
}
.stat-row b {
  color: var(--tt-red);
  font-size: 15px;
  font-weight: 700;
}
.stat-row i { font-style: normal; font-size: 11px; }

.hot-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: top;
  margin-top: 2px;
}
.hot-badge.new { background: var(--tt-red); color: #fff; }
.hot-badge.boil { background: var(--tt-orange); color: #fff; }

/* Author card */
.author-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tt-border-light);
}
.author-item:last-child { border-bottom: none; }

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.author-info { flex: 1; min-width: 0; }
.author-name { font-size: 14px; font-weight: 600; color: var(--tt-title); margin-bottom: 2px; }
.author-desc { font-size: 12px; color: var(--tt-meta); }

.follow-btn {
  padding: 5px 14px;
  border: 1.5px solid var(--tt-red);
  background: transparent;
  color: var(--tt-red);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tt-trans);
  font-family: var(--tt-font);
}
.follow-btn:hover { background: var(--tt-red); color: #fff; }
.follow-btn.followed { border-color: var(--tt-border); color: var(--tt-meta); background: var(--tt-bg); }
.follow-btn.followed:hover { background: var(--tt-border); }

/* Topic card */
.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tag {
  padding: 6px 14px;
  background: var(--tt-bg);
  border-radius: 16px;
  font-size: 13px;
  color: var(--tt-body);
  cursor: pointer;
  transition: var(--tt-trans);
}
.topic-tag:hover { background: var(--tt-red-light); color: var(--tt-red); }
.topic-tag .num { color: var(--tt-meta); margin-left: 4px; font-size: 12px; }

/* App download */
.app-download {
  background: linear-gradient(135deg, var(--tt-red), var(--tt-orange));
  border-radius: var(--tt-radius);
  padding: 20px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: var(--tt-trans);
}
.app-download:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(254,44,85,0.3); }

.app-download .title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.app-download .desc { font-size: 13px; opacity: 0.9; margin-bottom: 14px; }
.app-download .btn {
  display: inline-block;
  background: #fff;
  color: var(--tt-red);
  padding: 7px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

/* Load more */
.load-more {
  text-align: center;
  padding: 24px;
  color: var(--tt-meta);
  font-size: 14px;
}
.load-more span { cursor: pointer; transition: var(--tt-trans); }
.load-more span:hover { color: var(--tt-red); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B0B0B0; }

/* Responsive */
@media (max-width: 1280px) {
  .layout { grid-template-columns: 180px 1fr 300px; gap: 16px; padding: 16px; }
  .card-thumb { width: 160px; height: 105px; }
}

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 12px; }
  .sidebar, .aside { display: none; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-main { height: 240px; }
  .topbar-inner { padding: 0 16px; gap: 12px; }
  .main-nav { display: none; }
  .card-thumb { width: 120px; height: 80px; }
  .card-title { font-size: 16px; }
}

/* ===== Footer ===== */
.footer { background: #FFFFFF; border-top: 1px solid var(--tt-border); }
.footer-inner { max-width: var(--tt-max-w); margin: 0 auto; padding: 48px 32px 24px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--tt-border); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--tt-meta-dark); line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--tt-bg); display: flex; align-items: center; justify-content: center; color: var(--tt-body); transition: all 0.2s; cursor: pointer; }
.social-btn:hover { background: var(--tt-red); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: 15px; font-weight: 700; color: var(--tt-title); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; list-style: none; }
.footer-col ul li a { font-size: 13px; color: var(--tt-meta-dark); transition: color 0.2s; text-decoration: none; }
.footer-col ul li a:hover { color: var(--tt-red); }
/* 页脚「内容分类」分两列显示，列宽紧贴内容，避免撑满 footer-col 产生大段空白 */
.footer-top .footer-col:nth-child(3) ul { display: inline-grid; grid-template-columns: repeat(2, max-content); gap: 2.5px 20px; }
.footer-top .footer-col:nth-child(3) ul li { margin-bottom: 0; }
@media (max-width: 560px) { .footer-top .footer-col:nth-child(3) ul { grid-template-columns: 1fr; } }
.footer-qr { display: flex; gap: 16px; }
.qr-item { text-align: center; }
.qr-img { width: 80px; height: 80px; border-radius: 8px; background: var(--tt-bg); border: 1px solid var(--tt-border); display: flex; align-items: center; justify-content: center; color: var(--tt-meta); margin-bottom: 6px; }
.qr-item span { font-size: 11px; color: var(--tt-meta); }
.footer-bottom { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: var(--tt-meta); display: flex; flex-wrap: wrap; gap: 16px; }
.footer-icp { font-size: 12px; color: var(--tt-meta); display: flex; gap: 16px; }
.footer-icp a { color: var(--tt-meta); transition: color 0.2s; text-decoration: none; }
.footer-icp a:hover { color: var(--tt-red); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; } .footer-brand { grid-column: span 2; } }

/* ============================================================
   ===== Article Page (文章详情页) =====
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tt-meta); margin-bottom: 16px; }
.breadcrumb a { color: var(--tt-meta); transition: var(--tt-trans); }
.breadcrumb a:hover { color: var(--tt-red); }
.breadcrumb .sep { color: var(--tt-border); }

.article-head { background: #fff; border-radius: var(--tt-radius); padding: 28px 32px 24px; margin-bottom: 16px; box-shadow: var(--tt-shadow); }
.article-title { font-size: 30px; font-weight: 800; line-height: 1.4; color: var(--tt-title); margin: 14px 0 18px; letter-spacing: -0.3px; }
.article-meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-author { display: flex; align-items: center; gap: 10px; }
.article-author .a-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 16px; }
.article-author .a-name { font-size: 15px; font-weight: 600; color: var(--tt-title); }
.article-author .a-sub { font-size: 12px; color: var(--tt-meta); }
.article-meta-row .dot { color: var(--tt-border); }
.article-meta-row .muted { font-size: 13px; color: var(--tt-meta); }

.article-cover { width: 100%; height: 380px; border-radius: var(--tt-radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--tt-shadow); }

.article-body { background: #fff; border-radius: var(--tt-radius); padding: 32px; box-shadow: var(--tt-shadow); font-size: 17px; line-height: 1.9; color: var(--tt-body); }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: 22px; font-weight: 700; color: var(--tt-title); margin: 32px 0 16px; padding-left: 14px; border-left: 4px solid var(--tt-red); }
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--tt-title); margin: 26px 0 12px; }
.article-body a { color: var(--tt-blue); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--tt-title); font-weight: 700; }
.article-body blockquote { border-left: 4px solid var(--tt-border); padding: 8px 18px; margin: 0 0 22px; background: var(--tt-bg); border-radius: 0 var(--tt-radius-sm) var(--tt-radius-sm) 0; color: var(--tt-meta-dark); }
.article-body ul { margin: 0 0 22px; padding-left: 22px; }
.article-body ul li { list-style: disc; margin-bottom: 10px; }
.article-body .fig { width: 100%; height: 280px; border-radius: var(--tt-radius-sm); margin: 0 0 22px; }
.article-body .fig-cap { text-align: center; font-size: 13px; color: var(--tt-meta); margin: -14px 0 22px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.article-tags .at { padding: 6px 14px; background: var(--tt-bg); border-radius: 16px; font-size: 13px; color: var(--tt-blue); cursor: pointer; transition: var(--tt-trans); }
.article-tags .at:hover { background: var(--tt-red-light); color: var(--tt-red); }

.article-actions { display: flex; gap: 12px; justify-content: center; padding: 24px 0 4px; border-top: 1px solid var(--tt-border-light); margin-top: 24px; flex-wrap: wrap; }
.act-btn { display: flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid var(--tt-border); background: #fff; border-radius: 22px; font-size: 14px; color: var(--tt-body); cursor: pointer; transition: var(--tt-trans); font-family: var(--tt-font); }
.act-btn:hover { border-color: var(--tt-red); color: var(--tt-red); }
.act-btn.liked { background: var(--tt-red-light); border-color: var(--tt-red); color: var(--tt-red); font-weight: 600; }

.comments { background: #fff; border-radius: var(--tt-radius); padding: 28px 32px; margin-top: 16px; box-shadow: var(--tt-shadow); }
.comments-title { font-size: 18px; font-weight: 700; color: var(--tt-title); margin-bottom: 20px; }
.comments-title .num { color: var(--tt-meta); font-weight: 400; font-size: 15px; margin-left: 6px; }
.comment-box { display: flex; gap: 12px; margin-bottom: 24px; }
.comment-box textarea { flex: 1; height: 80px; border: 1.5px solid var(--tt-border); border-radius: var(--tt-radius-sm); padding: 12px 14px; font-family: var(--tt-font); font-size: 14px; resize: none; outline: none; transition: var(--tt-trans); background: var(--tt-bg); }
.comment-box textarea:focus { border-color: var(--tt-red); background: #fff; }
.comment-box .c-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--tt-red),var(--tt-orange)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex-shrink: 0; }
.comment-submit { align-self: flex-end; padding: 9px 24px; background: var(--tt-red); color: #fff; border: none; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--tt-font); transition: var(--tt-trans); }
.comment-submit:hover { background: var(--tt-red-dark); }

.comment-item { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--tt-border-light); }
.comment-item .c-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex-shrink: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-name { font-size: 14px; font-weight: 600; color: var(--tt-title); margin-bottom: 4px; }
.comment-text { font-size: 14px; color: var(--tt-body); line-height: 1.6; margin-bottom: 8px; }
.comment-foot { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--tt-meta); }
.comment-foot .clike { display: flex; align-items: center; gap: 4px; cursor: pointer; transition: var(--tt-trans); }
.comment-foot .clike:hover { color: var(--tt-red); }
.comment-foot .creply { cursor: pointer; transition: var(--tt-trans); }
.comment-foot .creply:hover { color: var(--tt-red); }

.mini-list .mini-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tt-border-light); cursor: pointer; }
.mini-list .mini-item:last-child { border-bottom: none; }
.mini-list .mini-thumb { width: 96px; height: 64px; border-radius: var(--tt-radius-sm); flex-shrink: 0; overflow: hidden; }
.mini-list .mini-info { min-width: 0; }
.mini-list .mini-title { font-size: 14px; font-weight: 600; color: var(--tt-title); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; transition: var(--tt-trans); }
.mini-list .mini-item:hover .mini-title { color: var(--tt-red); }
.mini-list .mini-meta { font-size: 12px; color: var(--tt-meta); }

/* ============================================================
   ===== Video Page (视频播放页) =====
   ============================================================ */
.video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--tt-radius); overflow: hidden; margin-bottom: 16px; box-shadow: var(--tt-shadow); cursor: pointer; background: #000; }
.video-player .vp-bg { position: absolute; inset: 0; transition: transform 0.5s ease; }
.video-player:hover .vp-bg { transform: scale(1.04); }
.video-player .vp-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.25); }
.video-player .vp-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; background: rgba(254,44,85,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4); transition: var(--tt-trans); }
.video-player:hover .vp-play { transform: translate(-50%,-50%) scale(1.08); background: var(--tt-red); }
.video-player .vp-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 12px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.video-player .vp-progress { height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.video-player .vp-progress .fill { width: 38%; height: 100%; background: var(--tt-red); border-radius: 2px; }
.video-player .vp-bar { display: flex; align-items: center; gap: 16px; color: #fff; font-size: 13px; }
.video-player .vp-bar .spacer { flex: 1; }
.video-player .vp-time { opacity: 0.85; }

.video-info { background: #fff; border-radius: var(--tt-radius); padding: 24px 28px; margin-bottom: 16px; box-shadow: var(--tt-shadow); }
.video-info .v-title { font-size: 22px; font-weight: 700; color: var(--tt-title); line-height: 1.4; margin-bottom: 14px; }
.video-info .v-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.video-info .v-stats { font-size: 13px; color: var(--tt-meta); display: flex; gap: 16px; }
.video-info .v-act { display: flex; gap: 10px; }
.video-info .v-act button { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--tt-border); background: #fff; border-radius: 20px; font-size: 13px; color: var(--tt-body); cursor: pointer; font-family: var(--tt-font); transition: var(--tt-trans); }
.video-info .v-act button:hover { border-color: var(--tt-red); color: var(--tt-red); }
.video-info .v-act button.on { background: var(--tt-red-light); border-color: var(--tt-red); color: var(--tt-red); font-weight: 600; }

.video-author-row { display: flex; align-items: center; gap: 12px; padding: 18px 28px; background: #fff; border-radius: var(--tt-radius); margin-bottom: 16px; box-shadow: var(--tt-shadow); }
.video-author-row .va-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 18px; }
.video-author-row .va-info { flex: 1; min-width: 0; }
.video-author-row .va-name { font-size: 16px; font-weight: 700; color: var(--tt-title); display: flex; align-items: center; gap: 6px; }
.video-author-row .va-sub { font-size: 12px; color: var(--tt-meta); }
.verified { width: 16px; height: 16px; background: var(--tt-blue); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.verified svg { width: 10px; height: 10px; }

.upnext { background: #fff; border-radius: var(--tt-radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--tt-shadow); }
.upnext .u-item { display: flex; gap: 12px; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--tt-border-light); }
.upnext .u-item:last-child { border-bottom: none; }
.upnext .u-thumb { width: 140px; height: 80px; border-radius: var(--tt-radius-sm); flex-shrink: 0; position: relative; overflow: hidden; }
.upnext .u-thumb .dur { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 3px; }
.upnext .u-info { min-width: 0; }
.upnext .u-title { font-size: 14px; font-weight: 600; color: var(--tt-title); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; transition: var(--tt-trans); }
.upnext .u-item:hover .u-title { color: var(--tt-red); }
.upnext .u-meta { font-size: 12px; color: var(--tt-meta); }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.vg-card { background: #fff; border-radius: var(--tt-radius); overflow: hidden; box-shadow: var(--tt-shadow); cursor: pointer; transition: var(--tt-trans); }
.vg-card:hover { box-shadow: var(--tt-shadow-hover); transform: translateY(-2px); }
.vg-card .vg-thumb { height: 180px; position: relative; }
.vg-card .vg-thumb .dur { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.vg-card .vg-body { padding: 12px 14px 16px; }
.vg-card .vg-title { font-size: 15px; font-weight: 600; color: var(--tt-title); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.vg-card .vg-meta { font-size: 12px; color: var(--tt-meta); display: flex; gap: 10px; }

/* ============================================================
   ===== Author Page (作者主页) =====
   ============================================================ */
.author-hero { max-width: var(--tt-max-w); margin: 0 auto; padding: 0 32px; }
.author-cover { height: 220px; border-radius: 0 0 var(--tt-radius-lg) var(--tt-radius-lg); overflow: hidden; position: relative; }
.author-cover .ac-bg { position: absolute; inset: 0; }
.author-cover .ac-edit { position: absolute; right: 20px; top: 20px; padding: 7px 16px; background: rgba(255,255,255,0.9); border: none; border-radius: 18px; font-size: 13px; color: var(--tt-title); cursor: pointer; font-family: var(--tt-font); font-weight: 600; transition: var(--tt-trans); }
.author-cover .ac-edit:hover { background: #fff; }
.author-card { background: #fff; border-radius: var(--tt-radius); margin-top: -56px; position: relative; padding: 0 32px 24px; box-shadow: var(--tt-shadow); display: flex; align-items: flex-end; gap: 20px; }
.author-card .ac-avatar { width: 104px; height: 104px; border-radius: 50%; border: 4px solid #fff; margin-top: -52px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 38px; flex-shrink: 0; box-shadow: var(--tt-shadow); }
.author-card .ac-main { flex: 1; min-width: 0; padding-bottom: 4px; }
.author-card .ac-name { font-size: 24px; font-weight: 800; color: var(--tt-title); display: flex; align-items: center; gap: 8px; }
.author-card .ac-bio { font-size: 14px; color: var(--tt-meta-dark); margin-top: 8px; line-height: 1.6; max-width: 560px; }
.author-card .ac-stats { display: flex; gap: 32px; margin-top: 14px; }
.author-card .ac-stats .s-num { font-size: 18px; font-weight: 700; color: var(--tt-title); }
.author-card .ac-stats .s-label { font-size: 12px; color: var(--tt-meta); }
.author-card .ac-actions { display: flex; gap: 12px; padding-bottom: 6px; }
.btn-follow { padding: 10px 32px; background: var(--tt-red); color: #fff; border: none; border-radius: 22px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--tt-font); transition: var(--tt-trans); box-shadow: 0 2px 8px rgba(254,44,85,0.3); }
.btn-follow:hover { background: var(--tt-red-dark); }
.btn-follow.following { background: var(--tt-bg); color: var(--tt-meta-dark); box-shadow: none; }
.btn-msg { padding: 10px 24px; border: 1.5px solid var(--tt-border); background: #fff; color: var(--tt-body); border-radius: 22px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--tt-font); transition: var(--tt-trans); }
.btn-msg:hover { border-color: var(--tt-red); color: var(--tt-red); }

.author-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--tt-border); margin: 20px 0 8px; }
.author-tabs .at-tab { padding: 14px 20px; font-size: 16px; color: var(--tt-body); cursor: pointer; position: relative; font-weight: 500; transition: var(--tt-trans); }
.author-tabs .at-tab:hover { color: var(--tt-title); }
.author-tabs .at-tab.active { color: var(--tt-red); font-weight: 700; font-size: 17px; }
.author-tabs .at-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; background: var(--tt-red); border-radius: 2px; }

.author-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.author-about { background: #fff; border-radius: var(--tt-radius); padding: 20px; box-shadow: var(--tt-shadow); }
.author-about h4 { font-size: 15px; font-weight: 700; color: var(--tt-title); margin-bottom: 12px; }
.author-about p { font-size: 13px; color: var(--tt-meta-dark); line-height: 1.7; margin-bottom: 12px; }

/* ============================================================
   ===== Search Page (搜索结果页) =====
   ============================================================ */
.search-result-head { background: #fff; border-radius: var(--tt-radius); padding: 20px 24px; margin-bottom: 16px; box-shadow: var(--tt-shadow); }
.search-result-head .sr-count { font-size: 14px; color: var(--tt-meta); }
.search-result-head .sr-count b { color: var(--tt-title); font-weight: 700; }
.search-result-head .sr-kw { color: var(--tt-red); font-weight: 700; }
.search-filters { display: flex; gap: 6px; background: #fff; border-radius: var(--tt-radius); padding: 8px 12px; margin-bottom: 16px; box-shadow: var(--tt-shadow); }
.search-filters .sf { padding: 8px 18px; font-size: 15px; color: var(--tt-body); border-radius: 8px; cursor: pointer; transition: var(--tt-trans); font-weight: 500; }
.search-filters .sf:hover { background: var(--tt-bg); }
.search-filters .sf.active { background: var(--tt-red-light); color: var(--tt-red); font-weight: 700; }

.related-search { background: #fff; border-radius: var(--tt-radius); padding: 20px; box-shadow: var(--tt-shadow); }
.related-search h4 { font-size: 15px; font-weight: 700; color: var(--tt-title); margin-bottom: 14px; }
.related-search .rs-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.related-search .rs-tag { padding: 7px 14px; background: var(--tt-bg); border-radius: 16px; font-size: 13px; color: var(--tt-body); cursor: pointer; transition: var(--tt-trans); }
.related-search .rs-tag:hover { background: var(--tt-red-light); color: var(--tt-red); }
.hot-search-list .hs-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tt-border-light); cursor: pointer; }
.hot-search-list .hs-item:last-child { border-bottom: none; }
.hot-search-list .hs-rank { width: 20px; font-weight: 700; color: var(--tt-meta); font-size: 14px; }
.hot-search-list .hs-rank.top { color: var(--tt-red); }
.hot-search-list .hs-word { font-size: 14px; color: var(--tt-body); }

/* ============================================================
   ===== Login / Register Page (登录注册页) =====
   ============================================================ */
.auth-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, #fff5f7 0%, #f5f6f7 60%, #eef2ff 100%); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--tt-radius-lg); box-shadow: 0 12px 48px rgba(0,0,0,0.1); padding: 36px 36px 32px; }
.auth-card .auth-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.auth-card .auth-title { text-align: center; font-size: 22px; font-weight: 800; color: var(--tt-title); margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; }
.auth-tabs .at { font-size: 17px; color: var(--tt-meta); cursor: pointer; padding-bottom: 8px; position: relative; transition: var(--tt-trans); }
.auth-tabs .at.active { color: var(--tt-red); font-weight: 700; }
.auth-tabs .at.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background: var(--tt-red); border-radius: 2px; }
.auth-field { margin-bottom: 16px; }
.auth-field input { width: 100%; height: 48px; border: 1.5px solid var(--tt-border); border-radius: var(--tt-radius-sm); padding: 0 16px; font-size: 15px; font-family: var(--tt-font); background: var(--tt-bg); outline: none; transition: var(--tt-trans); }
.auth-field input:focus { border-color: var(--tt-red); background: #fff; box-shadow: 0 0 0 4px rgba(254,44,85,0.08); }
.auth-submit { width: 100%; height: 48px; background: var(--tt-red); color: #fff; border: none; border-radius: var(--tt-radius-sm); font-size: 16px; font-weight: 700; cursor: pointer; font-family: var(--tt-font); transition: var(--tt-trans); margin-top: 4px; }
.auth-submit:hover { background: var(--tt-red-dark); }
.auth-agree { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tt-meta); margin: 16px 0 20px; }
.auth-agree a { color: var(--tt-blue); }
.auth-divider { text-align: center; font-size: 12px; color: var(--tt-meta); margin: 18px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 36%; height: 1px; background: var(--tt-border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-third { display: flex; justify-content: center; gap: 16px; }
.auth-third .t-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--tt-bg); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--tt-trans); color: var(--tt-body); }
.auth-third .t-btn:hover { background: var(--tt-red-light); color: var(--tt-red); transform: translateY(-2px); }
.auth-back { text-align: center; margin-top: 20px; font-size: 13px; color: var(--tt-meta); }
.auth-back a { color: var(--tt-red); font-weight: 600; }

/* Theme: minimal top bar for auth page */
.topbar.auth { position: relative; }

@media (max-width: 960px) {
  .article-body { padding: 20px; font-size: 16px; line-height: 1.8; overflow-x: hidden; overflow-wrap: break-word; }
  .article-head { padding: 20px; }
  .article-cover { height: 220px; }
  .video-grid, .author-grid { grid-template-columns: 1fr; }
  .author-card { flex-wrap: wrap; }
  .author-card .ac-actions { width: 100%; }
  /* 文章详情页：窄屏单栏，侧栏堆叠到正文下方 */
  .layout-narrow { grid-template-columns: 1fr; }
  .layout-narrow .aside { margin-top: 16px; }
  /* 压制复制富文本里写死的超大宽度容器（如 width:2031px），防止横向溢出 */
  .article-body * { max-width: 100% !important; }
  .article-body img, .article-body video, .article-body iframe, .article-body table { max-width: 100% !important; height: auto !important; }
  .article-title { font-size: 24px; }
}

/* ===== vA01: real images fill ===== */
.card-thumb img,.hero-main .bg img,.img-row .thumb img,.mini-thumb img,.ac-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.article-cover img{width:100%;height:100%;object-fit:cover;display:block;border-radius:8px;}
.music-badge{position:absolute;left:10px;bottom:10px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:3px 9px;border-radius:20px;display:flex;align-items:center;gap:4px;}
.gallery-badge{position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:3px 8px;border-radius:6px;}

/* ===== 通用精选块（各页标题下：封面 + 内容 + 右侧评价），与音乐页排版一致 ===== */
.feat-sample{display:grid;grid-template-columns:220px 1fr 240px;gap:18px;--cover-h:320px;background:#fff;border:1px solid #f0f0f0;border-radius:14px;padding:18px;box-shadow:0 4px 18px rgba(0,0,0,.05);margin-bottom:22px;}
.feat-cover{position:relative;width:220px;height:var(--cover-h);border-radius:12px;overflow:hidden;background:#f5f5f5;}
.feat-cover img{width:100%;height:100%;object-fit:cover;}
.feat-cover .play-ic{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;background:rgba(254,44,85,.92);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;}
.feat-cover .play-ic:hover{background:var(--tt-red);}
.feat-mid{display:flex;flex-direction:column;min-width:0;height:var(--cover-h);}
.feat-title{font-size:18px;font-weight:700;color:var(--tt-title);}
.feat-artist{font-size:13px;color:var(--tt-meta);margin:2px 0 10px;flex:0 0 auto;}
.feat-body{flex:1;min-height:0;font-size:13px;color:#555;line-height:1.85;white-space:pre-line;overflow:auto;background:#fafafa;border-radius:10px;padding:10px 12px;border-left:3px solid var(--tt-red);}
.feat-reviews{border-left:1px solid #f0f0f0;padding-left:16px;}
.feat-reviews-title{font-size:13px;font-weight:600;color:var(--tt-title);margin-bottom:10px;}
.review + .review{margin-top:12px;padding-top:12px;border-top:1px solid #f0f0f0;}
.review-head{display:flex;align-items:center;gap:8px;}
.review-ava{width:26px;height:26px;border-radius:50%;background:#fbe9ec;color:var(--tt-red);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex:0 0 26px;}
.review-name{font-size:13px;font-weight:600;color:var(--tt-title);}
.review-star{margin-left:auto;color:#ffb400;font-size:12px;letter-spacing:1px;}
.review-text{font-size:12px;color:#666;line-height:1.6;margin-top:5px;white-space:pre-line;}
.feat-sample.track{margin-bottom:0;cursor:default;}
.feat-sample.track .play-ic{cursor:pointer;}
.feat-sample.track.active{border-color:var(--tt-red);background:#fff6f7;box-shadow:0 4px 14px rgba(254,44,85,.12);}
/* 响应式：窄屏时评价整行跑下、介绍拉宽（必须写在基础 .feat-sample 之后才生效） */
@media(max-width:1100px){
  .feat-sample{grid-template-columns:220px 1fr;}
  .feat-mid{height:auto;}
  .feat-body{overflow:visible;max-height:none;}
  .feat-reviews{grid-column:1 / -1;border-left:none;padding-left:0;border-top:1px solid #f0f0f0;padding-top:14px;margin-top:6px;}
}
/* 文章详情页：相关文章列表 */
.related{margin-top:26px;background:#fff;border:1px solid #f0f0f0;border-radius:14px;padding:18px 18px 8px;box-shadow:0 4px 18px rgba(0,0,0,.05);}
.related .section-title{margin-bottom:14px;}
.rel-list{display:flex;flex-direction:column;}
.rel-item{display:flex;align-items:center;gap:14px;padding:12px 6px;text-decoration:none;color:inherit;border-top:1px solid #f3f3f3;transition:.2s;}
.rel-item:first-child{border-top:none;}
.rel-item:hover{background:#fafafa;}
.rel-item:hover .rel-title{color:var(--tt-red);}
.rel-cover{flex:0 0 64px;width:64px;height:64px;border-radius:10px;overflow:hidden;background:#f5f5f5;}
.rel-cover img{width:100%;height:100%;object-fit:cover;}
.rel-body{flex:1;min-width:0;}
.rel-title{font-size:15px;font-weight:600;color:var(--tt-title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rel-meta{font-size:12px;color:var(--tt-meta);margin-top:4px;}
.rel-go{flex:0 0 auto;font-size:22px;color:#ccc;margin-left:6px;}
.rel-item:hover .rel-go{color:var(--tt-red);}
@media(max-width:640px){.related{padding:14px 12px 4px;}.rel-cover{flex:0 0 52px;width:52px;height:52px;}
  .article-title{font-size:20px;}
  .article-head{padding:16px 14px;}
  .article-body{padding:16px 14px;font-size:15px;}
  .article-cover{height:170px;}
  .article-meta-row{font-size:12px;gap:8px;}
  .article-actions{padding:18px 0 2px;}
  .feat-sample{grid-template-columns:1fr;gap:14px;padding:14px;--cover-h:198px;}
  .feat-cover{width:150px;height:var(--cover-h);margin:0 auto;}
  .feat-reviews{border-top:1px solid #f0f0f0;padding-top:12px;}
  .feat-body{max-height:none;}
}

/* ===== 文章分类页 category.html ===== */
.cat-cloud{margin:6px 0 6px;}
.cat-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;background:#fff;border:1px solid var(--tt-border);border-radius:18px;font-size:14px;color:var(--tt-body);text-decoration:none;transition:var(--tt-trans);}
.cat-pill:hover{border-color:var(--tt-red);color:var(--tt-red);background:#fff6f7;}
.cat-pill .count{font-size:12px;color:var(--tt-meta);background:var(--tt-bg);border-radius:10px;padding:1px 7px;font-weight:600;}
.cat-pill:hover .count{color:var(--tt-red);}
.cat-block{padding-top:22px;margin-top:22px;border-top:1px solid var(--tt-border-light);scroll-margin-top:84px;}
.cat-block:first-of-type{border-top:none;padding-top:2px;margin-top:2px;}
.cat-block-title{display:flex;align-items:baseline;gap:8px;font-size:20px;font-weight:700;color:var(--tt-title);margin:0 0 14px;}
.cat-block-title .count{font-size:13px;font-weight:500;color:var(--tt-meta);}



/* ===== topnomi: toptiao 兼容样式（辅助页 es_search/tags/weibo/error/login 的 tt-* 类） ===== */
/* --- 容器 --- */
.tt-container {
  width: 1200px; margin: 0 auto; padding: 0 15px;
}

.tt-body {
  background: #f4f5f7;
}

/* --- 头部导航 --- */
.tt-header {
  background: #fff; border-bottom: 3px solid #c00;
}

.tt-header-top {
  background: #f8f8f8; border-bottom: 1px solid #e8e8e8; padding: 6px 0; font-size: 12px; color: #666;
}

.tt-header-top .tt-container {
  display: flex; justify-content: space-between; align-items: center;
}

.tt-header-top-left .tt-date {
  color: #999;
}

.tt-header-top-right {
  display: flex; gap: 10px;
}

.tt-top-link {
  color: #666;
}

.tt-top-link:hover {
  color: #c00;
}

.tt-header-main {
  padding: 15px 0;
}

.tt-header-main .tt-container {
  display: flex; align-items: center; justify-content: space-between;
}

.tt-logo {
  font-size: 28px; font-weight: bold;
}

.tt-logo a {
  color: #c00;
}

.tt-logo a:hover {
  color: #8b0000;
}

/* --- 导航 --- */
.tt-nav {
  flex: 1; margin-left: 30px;
}

.tt-nav-list {
  display: flex; gap: 0;
}

.tt-nav-item {
  position: relative;
}

.tt-nav-link {
  display: block; padding: 8px 15px; color: #333; font-size: 15px; font-weight: 500; border-radius: 3px;
}

.tt-nav-link:hover, .tt-nav-link.tt-active {
  color: #c00; background: #fff5f5;
}

/* --- 搜索 --- */
.tt-search {
  
}

.tt-search-form {
  display: flex;
}

.tt-search-input {
  width: 200px; padding: 7px 12px; border: 2px solid #e0e0e0; border-right: none; border-radius: 3px 0 0 3px; font-size: 13px; transition: border-color 0.2s;
}

.tt-search-input:focus {
  border-color: #c00;
}

.tt-search-btn {
  padding: 7px 15px; background: #c00; color: #fff; border: 2px solid #c00; border-radius: 0 3px 3px 0; cursor: pointer; font-size: 13px;
}

.tt-search-btn:hover {
  background: #a00;
}

/* --- 主体布局 --- */
.tt-main-wrapper {
  display: flex; gap: 25px; padding: 25px 0;
}

.tt-main-content {
  flex: 1; min-width: 0;
}

.tt-sidebar-area {
  width: 330px; flex-shrink: 0;
}

/* --- 公告 --- */
.tt-notice {
  background: #fff8e1; border: 1px solid #ffe082; border-radius: 4px; padding: 15px 20px; margin-bottom: 20px;
}

.tt-notice-header h3 {
  font-size: 14px; color: #f57f17; margin-bottom: 8px;
}

.tt-notice p {
  color: #666; font-size: 13px; line-height: 1.8;
}

.tt-notice-author {
  text-align: right; color: #999; font-size: 12px; margin-top: 8px;
}

/* --- 文章列表 --- */
.tt-article {
  background: #fff; border-radius: 4px; margin-bottom: 15px; padding: 20px; display: flex; gap: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: box-shadow 0.2s;
}

.tt-article:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.tt-article-top {
  border-left: 4px solid #c00;
}

.tt-article-body {
  flex: 1;
}

.tt-article-full {
  width: 100%;
}

.tt-article-img {
  width: 200px; flex-shrink: 0;
}

.tt-article-img img {
  width: 200px; height: 130px; object-fit: cover; border-radius: 3px;
}

.tt-article-badge {
  display: inline-block; background: #c00; color: #fff; padding: 2px 8px; font-size: 12px; border-radius: 2px; margin-bottom: 8px;
}

.tt-article-title {
  font-size: 18px; margin-bottom: 10px;
}

.tt-article-title a {
  color: #222;
}

.tt-article-title a:hover {
  color: #c00;
}

.tt-article-excerpt {
  color: #666; font-size: 13px; line-height: 1.7; margin-bottom: 12px;
}

.tt-article-meta {
  font-size: 12px; color: #999; display: flex; gap: 15px; flex-wrap: wrap;
}

.tt-article-meta a {
  color: #999;
}

.tt-article-meta a:hover {
  color: #c00;
}

.tt-article-meta img {
  vertical-align: middle;
}

/* --- 文章详情 --- */
.tt-detail {
  background: #fff; border-radius: 4px; padding: 30px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-detail-header {
  margin-bottom: 20px;
}

.tt-detail-title {
  font-size: 26px; color: #222; margin-bottom: 12px;
}

.tt-detail-meta {
  font-size: 13px; color: #999; display: flex; gap: 20px;
}

.tt-detail-meta a {
  color: #999;
}

.tt-detail-meta a:hover {
  color: #c00;
}

.tt-detail-divider {
  height: 1px; background: #e0e0e0; margin-bottom: 20px;
}

.tt-detail-content {
  font-size: 15px; line-height: 1.9; color: #333; margin-bottom: 20px;
}

.tt-detail-content p {
  margin-bottom: 15px;
}

.tt-detail-content img {
  max-width: 100%; border-radius: 4px; margin: 10px 0;
}

.tt-detail-tags {
  padding: 15px 0; border-top: 1px solid #e0e0e0; margin-bottom: 15px;
}

.tt-detail-tags h4 {
  font-size: 14px; color: #666; margin-bottom: 8px;
}

.tt-detail-share {
  
}

/* --- 标签 --- */
.tt-tag {
  display: inline-block; background: #f0f0f0; color: #666; padding: 3px 10px; border-radius: 3px; font-size: 12px; margin: 2px;
}

.tt-tag:hover {
  background: #c00; color: #fff;
}

.tt-tags-list {
  display: flex; flex-wrap: wrap; gap: 5px;
}

/* --- 上下篇导航 --- */
.tt-nav-links {
  display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px;
}

.tt-nav-btn {
  display: block; background: #fff; padding: 12px 20px; border-radius: 4px; font-size: 13px; color: #333; box-shadow: 0 1px 3px rgba(0,0,0,0.08); flex: 1;
}

.tt-nav-btn:hover {
  color: #c00; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.tt-nav-disabled {
  color: #ccc; cursor: default;
}

.tt-nav-disabled:hover {
  color: #ccc;
}

/* --- 相关文章 --- */
.tt-related {
  background: #fff; border-radius: 4px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-section-header {
  margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #c00;
}

.tt-section-header h3 {
  font-size: 16px; color: #222;
}

.tt-related-list li {
  padding: 8px 0; border-bottom: 1px dashed #e0e0e0;
}

.tt-related-list li:last-child {
  border-bottom: none;
}

.tt-related-list a {
  color: #333; font-size: 14px;
}

.tt-related-list a:hover {
  color: #c00;
}

/* --- 评论 --- */
.tt-comments {
  background: #fff; border-radius: 4px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-comment {
  display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f0f0f0;
}

.tt-comment:last-child {
  border-bottom: none;
}

.tt-comment-avatar {
  width: 50px; flex-shrink: 0;
}

.tt-comment-avatar img {
  width: 50px; height: 50px; border-radius: 50%;
}

.tt-comment-body {
  flex: 1;
}

.tt-comment-header {
  margin-bottom: 8px; font-size: 13px;
}

.tt-comment-floor {
  color: #c00; font-weight: bold;
}

.tt-comment-author {
  color: #333; font-weight: bold;
}

.tt-comment-time {
  color: #999; margin-left: 10px;
}

.tt-comment-reply {
  color: #c00; float: right; font-size: 12px;
}

.tt-comment-text {
  font-size: 14px; color: #333; line-height: 1.7; margin-bottom: 8px;
}

.tt-comment-actions {
  font-size: 12px; color: #999;
}

.tt-comment-actions a {
  color: #999;
}

.tt-comment-actions a:hover {
  color: #c00;
}

/* --- 评论表单 --- */
.tt-comment-form {
  background: #fff; border-radius: 4px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-cancel-reply {
  font-size: 12px; color: #c00;
}

/* --- 表单 --- */
.tt-form {
  
}

.tt-form-group {
  margin-bottom: 15px;
}

.tt-form-group label {
  display: block; font-size: 13px; color: #333; margin-bottom: 5px; font-weight: 500;
}

.tt-form-group input[type="text"],
.tt-form-group input[type="password"],
.tt-form-group input[type="email"],
.tt-form-group input[type="url"],
.tt-form-group textarea,
.tt-form-group select {
  width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; transition: border-color 0.2s;
}

.tt-form-group input:focus,
.tt-form-group textarea:focus,
.tt-form-group select:focus {
  border-color: #c00;
}

.tt-form-group textarea {
  height: 100px; resize: vertical;
}

.tt-form-help {
  font-size: 12px; color: #999; margin-top: 3px;
}

.tt-form-checkbox {
  margin-bottom: 15px;
}

.tt-form-checkbox input {
  margin-right: 5px; vertical-align: middle;
}

.tt-form-checkbox label {
  font-size: 13px; color: #666; vertical-align: middle;
}

.tt-form-actions {
  margin-top: 15px;
}

.tt-form-actions input[type="button"],
.tt-form-actions button {
  padding: 8px 25px; background: #c00; color: #fff; border: none; border-radius: 3px; cursor: pointer; font-size: 14px; transition: background 0.2s;
}

.tt-form-actions input[type="button"]:hover,
.tt-form-actions button:hover {
  background: #a00;
}

.tt-form-links {
  margin-top: 10px; font-size: 13px; color: #666;
}

.tt-form-links a {
  color: #c00;
}

/* --- 分页 --- */
.tt-pagination {
  text-align: center; padding: 20px 0;
}

.tt-pagination a, .tt-pagination span {
  display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; color: #333; background: #fff;
}

.tt-pagination a:hover {
  border-color: #c00; color: #c00;
}

.tt-pagination .current {
  background: #c00; color: #fff; border-color: #c00;
}

/* --- page-box 分页（es_music 等页面使用） --- */
.page-box {
  text-align: center;
  padding: 18px 0;
  margin-top: 10px;
}

.page-box .page {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 4px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  background: #fff;
  text-decoration: none;
  transition: all .2s;
}

.page-box a:hover .page,
.page-box a .page:hover {
  border-color: var(--tt-red);
  color: var(--tt-red);
}

.page-box .now-page {
  background: var(--tt-red);
  color: #fff;
  border-color: var(--tt-red);
  font-weight: 600;
}

/* --- 侧边栏小部件 --- */
.tt-sidebar {
  
}

.tt-widget {
  background: #fff; border-radius: 4px; margin-bottom: 15px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-widget-header {
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #c00;
}

.tt-widget-header h3 {
  font-size: 15px; color: #222; font-weight: 600;
}

.tt-widget-content {
  font-size: 13px; color: #666; line-height: 1.7;
}

.tt-widget-list {
  
}

.tt-widget-item {
  padding: 8px 0; border-bottom: 1px solid #f5f5f5; display: flex; justify-content: space-between; align-items: center;
}

.tt-widget-item:last-child {
  border-bottom: none;
}

.tt-widget-link {
  color: #333; font-size: 13px; flex: 1;
}

.tt-widget-link:hover {
  color: #c00;
}

.tt-widget-badge {
  background: #f0f0f0; color: #999; padding: 1px 8px; border-radius: 10px; font-size: 11px;
}

.tt-widget-desc {
  display: block; font-size: 12px; color: #999; margin-top: 2px;
}

/* --- 标签云 --- */
.tt-tags-cloud {
  display: flex; flex-wrap: wrap; gap: 5px;
}

.tt-tags-cloud .tt-tag {
  margin: 2px;
}

/* --- 统计 --- */
.tt-stats {
  font-size: 13px; color: #666;
}

.tt-stats-title {
  font-weight: bold; color: #333; margin-bottom: 8px;
}

.tt-stats-item {
  padding: 4px 0; display: flex; gap: 5px;
}

.tt-stats-label {
  color: #999;
}

.tt-stats-value {
  color: #c00; font-weight: bold;
}

.tt-stats-unit {
  color: #999;
}

/* --- 页面 --- */
.tt-page {
  background: #fff; border-radius: 4px; padding: 30px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-page-title {
  font-size: 24px; color: #222; margin-bottom: 10px;
}

.tt-page-meta {
  font-size: 13px; color: #999; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e0e0e0; display: flex; gap: 15px;
}

.tt-page-content {
  font-size: 15px; line-height: 1.9; color: #333;
}

.tt-page-content p {
  margin-bottom: 15px;
}

.tt-page-comments {
  background: #fff; border-radius: 4px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* --- 卡片 --- */
.tt-card {
  background: #fff; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-card-header {
  padding: 15px 20px; border-bottom: 1px solid #f0f0f0;
}

.tt-card-header h2, .tt-card-header h3 {
  font-size: 16px; color: #222;
}

.tt-card-body {
  padding: 20px;
}

/* --- 错误页 --- */
.tt-error {
  background: #fff; border-radius: 4px; padding: 50px 30px; text-align: center; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-error-icon {
  width: 80px; height: 80px; line-height: 80px; margin: 0 auto 20px; background: #fff5f5; color: #c00; font-size: 40px; font-weight: bold; border-radius: 50%;
}

.tt-error-title {
  font-size: 22px; color: #333; margin-bottom: 10px;
}

.tt-error-text {
  font-size: 14px; color: #999; margin-bottom: 15px;
}

.tt-error-divider {
  height: 1px; background: #e0e0e0; margin: 15px 0;
}

.tt-btn {
  display: inline-block; padding: 10px 25px; background: #c00; color: #fff; border-radius: 3px; font-size: 14px;
}

.tt-btn:hover {
  background: #a00; color: #fff;
}

/* --- 分类/搜索头部 --- */
.tt-category-header, .tt-search-header {
  background: #fff; border-radius: 4px; padding: 15px 20px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-category-title h3, .tt-search-title h3 {
  font-size: 16px; color: #222;
}

.tt-badge {
  background: #c00; color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 12px;
}

.tt-category-ad, .tt-search-ad {
  margin-top: 10px;
}

.tt-ad-section {
  margin: 15px 0;
}

/* --- 友链 --- */
.tt-links-list {
  margin-bottom: 20px;
}

.tt-links-item {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}

.tt-links-info {
  flex: 1;
}

.tt-links-info a {
  color: #333; font-size: 15px; font-weight: 500;
}

.tt-links-info a:hover {
  color: #c00;
}

.tt-links-desc {
  display: block; font-size: 12px; color: #999; margin-top: 3px;
}

.tt-links-badge {
  background: #c00; color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 11px;
}

.tt-contact-info {
  font-size: 13px; color: #666; margin-top: 15px;
}

/* --- 购物车 --- */
.tt-cart-table {
  width: 100%;
}

.tt-cart-header {
  display: flex; background: #f8f8f8; padding: 10px 0; font-weight: bold; font-size: 13px; color: #333; border-bottom: 2px solid #e0e0e0;
}

.tt-cart-row {
  display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f0f0;
}

.tt-cart-cell {
  padding: 0 10px;
}

.tt-cart-cell-img {
  width: 120px;
}

.tt-cart-cell-name {
  flex: 1;
}

.tt-cart-cell-price {
  width: 100px; text-align: center;
}

.tt-cart-cell-qty {
  width: 150px; text-align: center;
}

.tt-cart-cell-total {
  width: 120px; text-align: center;
}

.tt-cart-cell-action {
  width: 160px; text-align: center;
}

.tt-cart-footer {
  padding: 15px 0; text-align: right;
}

.tt-cart-footer-row {
  margin-bottom: 10px;
}

.tt-cart-quantity-input {
  width: 50px; text-align: center;
}

/* --- 页脚 --- */
.tt-footer {
  background: #222; color: #999; padding: 25px 0; margin-top: 20px;
}

.tt-footer .tt-container {
  display: flex; justify-content: space-between; align-items: center;
}

.tt-footer-content {
  flex: 1;
}

.tt-footer-copyright {
  font-size: 13px; margin-bottom: 5px;
}

.tt-footer-info {
  font-size: 12px;
}

.tt-footer-info a {
  color: #999;
}

.tt-footer-info a:hover {
  color: #fff;
}

.tt-back-top {
  width: 40px;
}

.tt-back-top a {
  display: block; width: 40px; height: 40px; line-height: 40px; text-align: center; background: #444; color: #fff; border-radius: 3px; font-size: 20px;
}

.tt-back-top a:hover {
  background: #c00;
}

/* --- 微博 --- */
.tt-weibo-item {
  background: #fff; border-radius: 4px; padding: 20px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tt-weibo-header h3 {
  font-size: 14px; color: #c00; margin-bottom: 10px;
}

.tt-weibo-content {
  font-size: 14px; color: #333; line-height: 1.8;
}

.tt-weibo-author {
  text-align: right; color: #999; font-size: 12px; margin-top: 10px;
}

/* --- 分类/搜索头部 --- */
.tt-meta-info {
  font-size: 12px; color: #999; margin-top: 10px;
}

/* --- 广告 --- */
.tt-ad {
  padding: 10px 0; text-align: center;
}

@media (max-width: 960px) {
.tt-header-main .tt-container {
  flex-wrap: wrap;
}

.tt-logo {
  width: 100%; text-align: center; margin-bottom: 10px;
}

.tt-nav {
  width: 100%; margin-left: 0;
}

.tt-nav-list {
  justify-content: center; flex-wrap: wrap;
}

.tt-search {
  width: 100%; margin-top: 10px;
}

.tt-search-input {
  width: 100%;
}

.tt-main-wrapper {
  flex-direction: column;
}

.tt-sidebar-area {
  width: 100%;
}

.tt-article {
  flex-direction: column;
}

.tt-article-img {
  width: 100%;
}

.tt-article-img img {
  width: 100%; height: auto;
}

.tt-detail-title {
  font-size: 20px;
}

.tt-nav-links {
  flex-direction: column;
}

.tt-cart-header, .tt-cart-row {
  font-size: 12px;
}

.tt-cart-cell {
  padding: 0 5px;
}

.tt-cart-cell-img {
  width: 80px;
}

.tt-footer .tt-container {
  flex-direction: column; text-align: center;
}

.tt-header-top .tt-container {
  flex-wrap: wrap; gap: 5px;
}
}
