/* ========================================
   头条 (toptiao) 模板样式 - 资讯风格
   参考: 今日热点资讯设计
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 14px; line-height: 1.6; color: #222; background: #f4f5f6;
}
a { color: #222; text-decoration: none; transition: color 0.2s; }
a:hover { color: #d43c33; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { font-family: inherit; font-size: 14px; outline: none; }

/* ========== 容器 & 布局 ========== */
.tt-container { width: 1200px; margin: 0 auto; padding: 0 20px; }
.tt-body { background: #f4f5f6; }
.tt-main-wrapper { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 20px 0; }
.tt-main-content { min-width: 0; }

/* ========== 头部（单级，干净） ========== */
.tt-header {
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 100;
}
.tt-header-main { padding: 12px 0; }
.tt-header-main .tt-container { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

/* Logo */
.tt-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tt-logo a { font-size: 24px; font-weight: 700; color: #d43c33; }
.tt-logo a:hover { color: #c2342c; }

/* 导航 */
.tt-nav { margin-left: 10px; }
.tt-nav-list { display: flex; gap: 2px; }
.tt-nav-link {
  display: block; padding: 8px 14px; color: #555; font-size: 14px; font-weight: 500;
  border-radius: 4px; white-space: nowrap; transition: color 0.2s, background 0.2s;
}
.tt-nav-link:hover { color: #d43c33; background: #fff5f5; }
.tt-nav-link.tt-active { color: #d43c33; font-weight: 600; background: #fff5f5; }

/* 搜索 */
.tt-search { flex-shrink: 0; }
.tt-search-form { display: flex; }
.tt-search-input {
  width: 200px; padding: 10px 14px; border: 2px solid #e8e8e8; border-right: none;
  border-radius: 4px 0 0 4px; font-size: 13px; transition: border-color 0.2s;
}
.tt-search-input:focus { border-color: #d43c33; }
.tt-search-btn {
  padding: 10px 20px; background: #d43c33; color: #fff; border: none;
  border-radius: 0 4px 4px 0; cursor: pointer; font-size: 13px; transition: background 0.2s;
}
.tt-search-btn:hover { background: #c2342c; }

/* 用户区 */
.tt-user-actions { display: flex; gap: 8px; flex-shrink: 0; }
.tt-btn-login, .tt-btn-reg {
  padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 13px; transition: all 0.2s;
  white-space: nowrap;
}
.tt-btn-login { background: transparent; border: 1px solid #d43c33; color: #d43c33; }
.tt-btn-login:hover { background: #fff1f0; color: #d43c33; }
.tt-btn-reg { background: #d43c33; border: 1px solid #d43c33; color: #fff; }
.tt-btn-reg:hover { background: #c2342c; color: #fff; }

/* 热搜提示栏 */
.tt-search-hint {
  border-top: 1px solid #f0f0f0; padding: 6px 0;
}
.tt-search-hint .tt-container {
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: #999; overflow: hidden;
}
.tt-hint-label {
  background: #fff1f0; color: #d43c33; padding: 2px 8px; border-radius: 3px;
  font-size: 12px; flex-shrink: 0;
}
.tt-hint-scroll { flex: 1; overflow: hidden; white-space: nowrap; height: 20px; position: relative; }
.tt-hint-text { display: inline-block; color: #666; font-size: 12px; animation: ttHintScroll 5s ease-in-out infinite; }
.tt-hint-arrow { font-size: 16px; color: #ccc; flex-shrink: 0; }
@keyframes ttHintScroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  15% { transform: translateY(-20px); opacity: 0; }
  30% { transform: translateY(20px); opacity: 0; }
  45% { transform: translateY(0); opacity: 1; }
}

/* ========== 分类导航标签栏 ========== */
.tt-catnav {
  background: #fff; border-bottom: 1px solid #e8e8e8;
}
.tt-catnav-list { display: flex; overflow-x: auto; scrollbar-width: none; }
.tt-catnav-list::-webkit-scrollbar { display: none; }
.tt-catnav-item { padding: 13px 16px; cursor: pointer; font-size: 15px; color: #666; white-space: nowrap; border-bottom: 3px solid transparent; transition: all 0.2s; }
.tt-catnav-item:hover { color: #d43c33; }
.tt-catnav-item.tt-catnav-active { color: #d43c33; font-weight: 600; border-bottom-color: #d43c33; }

/* ========== 文章列表（资讯流） ========== */
.tt-article {
  background: #fff; border-radius: 8px; padding: 20px 24px;
  display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px;
  transition: box-shadow 0.25s; cursor: pointer;
}
.tt-article:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }

/* 头条大图 */
.tt-article-featured { flex-direction: column; padding: 0; overflow: hidden; }
.tt-article-featured:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.tt-article-featured .tt-article-img { width: 100%; position: relative; display: block; }
.tt-article-featured .tt-article-img img {
  width: 100%; height: 0; padding-bottom: 50%; object-fit: cover; display: block;
}
.tt-article-featured .tt-article-body { padding: 14px 18px 18px; }
.tt-article-featured .tt-article-title { font-size: 20px; }
.tt-article-featured .tt-article-excerpt { font-size: 14px; color: #777; }

/* 缩略图 */
.tt-article-img-link { flex-shrink: 0; }
.tt-article-img { flex-shrink: 0; position: relative; }
.tt-mainpic {
  width: 220px; height: 153px;
  object-fit: cover; border-radius: 6px; display: block; background: #eee;
}
.tt-catpic-main {
  position: absolute; bottom: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.tt-article-img-link:hover img { opacity: 0.88; }

/* 正文 */
.tt-article-body { flex: 1; min-width: 0; }
.tt-article-title { font-size: 18px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.tt-article-title a { color: #222; }
.tt-article-title a:hover { color: #d43c33; }
.tt-article-excerpt {
  font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tt-article-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; color: #999;
}
.tt-article-meta time { color: #999; }
.tt-article-source a { color: #d43c33; font-weight: 500; }
.tt-article-source a:hover { color: #c2342c; }
.tt-article-tag {
  background: #fff0f0; color: #d43c33; padding: 2px 8px;
  border-radius: 3px; font-size: 11px;
}
.tt-article-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #999;
}
.tt-article-stats { display: flex; gap: 16px; }

/* 纯文（无图，元信息在上方） */
.tt-article-text {}
.tt-article-text .tt-article-title { font-size: 16px; }

/* ========== 公告 ========== */
.tt-notice {
  position: relative; background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px;
}
.tt-quote-badge {
  position: absolute; top: 10px; right: 14px;
  background: #d43c33; color: #fff;
  padding: 2px 9px; border-radius: 2px;
  font-size: 11px; letter-spacing: 1px;
}
.tt-notice-header h3 { font-size: 15px; color: #d43c33; margin-bottom: 6px; font-weight: 600; }
.tt-notice-body { color: #666; font-size: 13px; line-height: 1.8; }
.tt-notice-author { text-align: right; color: #999; font-size: 12px; margin-top: 8px; }

/* ========== Banner 轮播 ========== */
.tt-banner {
  position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 12px;
  background: #fff; padding: 10px;
}
.tt-banner-slide { display: none; position: relative; }
.tt-banner-slide.active { display: block; }
.tt-banner-slide img { width: 100%; height: 260px; object-fit: cover; display: block; }
.tt-banner-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff;
}
.tt-banner-text h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.tt-banner-text p { font-size: 13px; opacity: 0.88; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.tt-banner-dots {
  position: absolute; bottom: 12px; right: 18px;
  display: flex; gap: 6px; z-index: 3;
}
.tt-banner-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.tt-banner-dots span:hover { transform: scale(1.3); }
.tt-banner-dots span.active { background: #fff; }

/* ========== 文章详情 ========== */
.tt-detail { background: #fff; border-radius: 8px; padding: 30px; margin-bottom: 12px; }
.tt-detail-header { margin-bottom: 20px; }
.tt-detail-title { font-size: 26px; font-weight: 700; color: #222; margin-bottom: 12px; line-height: 1.4; }
.tt-detail-meta { font-size: 13px; color: #999; display: flex; gap: 18px; flex-wrap: wrap; }
.tt-detail-meta a { color: #999; }
.tt-detail-meta a:hover { color: #d43c33; }
.tt-detail-divider { height: 1px; background: #f0f0f0; margin-bottom: 20px; }
.tt-detail-content {
  font-size: 15px; line-height: 1.9; color: #333; margin-bottom: 20px;
  word-break: break-word;
}
.tt-detail-content p { margin-bottom: 15px; }
.tt-detail-content img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.tt-detail-content pre { background: #f5f5f5; padding: 15px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
.tt-detail-content blockquote {
  border-left: 4px solid #d43c33; padding: 10px 15px; margin: 15px 0;
  background: #fff5f5; border-radius: 0 6px 6px 0; color: #666;
}
.tt-detail-tags { padding: 15px 0; border-top: 1px solid #f0f0f0; margin-bottom: 10px; }

/* 标签 */
.tt-tag {
  display: inline-block; background: #f0f0f0; color: #666; padding: 4px 12px;
  border-radius: 4px; font-size: 12px; margin: 2px; transition: all 0.2s;
}
.tt-tag:hover { background: #d43c33; color: #fff; }
.tt-tags-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tt-tags-cloud { display: flex; flex-wrap: wrap; gap: 4px; }
.tt-tag-link {
  display: inline-block; background: #f0f0f0; color: #666; padding: 4px 12px;
  border-radius: 4px; font-size: 12px; transition: all 0.2s;
}
.tt-tag-link:hover { background: #d43c33; color: #fff; }

/* 上下篇导航 */
.tt-nav-links { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tt-nav-btn {
  display: block; background: #fff; padding: 14px 20px; border-radius: 8px;
  font-size: 13px; color: #333; flex: 1; transition: box-shadow 0.2s, color 0.2s;
}
.tt-nav-btn:hover { color: #d43c33; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tt-nav-disabled { color: #ccc; }
.tt-nav-disabled:hover { color: #ccc; box-shadow: none; }

/* 相关文章 */
.tt-related { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 12px; }
.tt-section-header { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #d43c33; }
.tt-section-header h3 { font-size: 16px; font-weight: 600; color: #222; }
.tt-related-list li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.tt-related-list li:last-child { border-bottom: none; }
.tt-related-list a { color: #333; font-size: 14px; }
.tt-related-list a:hover { color: #d43c33; }

/* ========== 评论区 ========== */
.tt-comments { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 12px; }
.tt-comment { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.tt-comment:last-child { border-bottom: none; }
.tt-comment-avatar { width: 44px; flex-shrink: 0; }
.tt-comment-avatar img { width: 44px; height: 44px; border-radius: 50%; }
.tt-comment-body { flex: 1; min-width: 0; }
.tt-comment-header { margin-bottom: 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-comment-floor { color: #d43c33; font-weight: 600; font-size: 12px; }
.tt-comment-author { color: #333; font-weight: 600; }
.tt-comment-time { color: #999; font-size: 12px; }
.tt-comment-reply { color: #d43c33; font-size: 12px; margin-left: auto; }
.tt-comment-text { font-size: 14px; color: #333; line-height: 1.7; margin-bottom: 8px; word-break: break-word; }
.tt-comment-actions { font-size: 12px; color: #999; }

/* 评论表单 */
.tt-comment-form { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 12px; }
.tt-cancel-reply { font-size: 12px; color: #d43c33; }

/* ========== 表单通用 ========== */
.tt-form-group { margin-bottom: 14px; }
.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 input[type="search"],
.tt-form-group textarea,
.tt-form-group select {
  width: 100%; padding: 9px 12px; border: 1px solid #e0e0e0; border-radius: 4px;
  font-size: 14px; transition: border-color 0.2s; background: #fff;
}
.tt-form-group input:focus,
.tt-form-group textarea:focus,
.tt-form-group select:focus { border-color: #d43c33; }
.tt-form-group textarea { height: 100px; resize: vertical; }
.tt-form-help { font-size: 12px; color: #999; margin-top: 3px; }
.tt-form-actions { margin-top: 15px; }
.tt-form-actions input[type="button"],
.tt-form-actions button {
  padding: 9px 28px; background: #d43c33; color: #fff; border: none;
  border-radius: 4px; cursor: pointer; font-size: 14px; transition: background 0.2s;
}
.tt-form-actions input[type="button"]:hover,
.tt-form-actions button:hover { background: #c2342c; }
.tt-form-links { margin-top: 10px; font-size: 13px; color: #666; }
.tt-form-links a { color: #d43c33; }

/* ========== 分页 ========== */
.tt-pagination { text-align: center; padding: 20px 0; }
.tt-pagination a, .tt-pagination span {
  display: inline-block; padding: 7px 14px; margin: 0 3px;
  border: 1px solid #e0e0e0; border-radius: 4px; font-size: 13px; color: #555; background: #fff;
  transition: all 0.2s;
}
.tt-pagination a:hover { border-color: #d43c33; color: #d43c33; }
.tt-pagination .current { background: #d43c33; color: #fff; border-color: #d43c33; }

/* ========== 加载更多 ========== */
.tt-load-more { text-align: center; padding: 20px; }
.tt-load-more button {
  padding: 10px 36px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px;
  cursor: pointer; font-size: 14px; color: #666; transition: all 0.2s;
}
.tt-load-more button:hover { border-color: #d43c33; color: #d43c33; }

/* ========== 侧边栏 ========== */
.tt-sidebar-area { width: 300px; flex-shrink: 0; }
.tt-sidebar { display: flex; flex-direction: column; gap: 14px; }
.tt-widget { background: #fff; border-radius: 8px; padding: 16px; }
.tt-widget-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; margin-bottom: 10px;
}
.tt-widget-header h3 { font-size: 16px; font-weight: 600; color: #222; }
.tt-widget-content { font-size: 13px; color: #666; line-height: 1.7; }
.tt-widget-list { }
.tt-widget-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid #f5f5f5;
}
.tt-widget-item:last-child { border-bottom: none; }
.tt-widget-link { color: #333; font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-widget-link:hover { color: #d43c33; }
.tt-widget-badge { background: #f0f0f0; color: #999; padding: 1px 8px; border-radius: 10px; font-size: 11px; flex-shrink: 0; }
.tt-widget-desc { display: block; font-size: 12px; color: #999; margin-top: 2px; }

/* 热搜榜 */
.tt-hot-item {
  display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.tt-hot-item:last-child { border-bottom: none; }
.tt-hot-item:hover { background: #fafafa; margin: 0 -16px; padding: 10px 16px; }
.tt-hot-rank {
  width: 20px; height: 20px; border-radius: 4px; background: #f0f0f0; color: #999;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  margin-right: 10px; font-weight: 600; flex-shrink: 0;
}
.tt-hot-rank.rank-1 { background: #d43c33; color: #fff; }
.tt-hot-rank.rank-2 { background: #ff6b00; color: #fff; }
.tt-hot-rank.rank-3 { background: #ffaa00; color: #fff; }
.tt-hot-title { flex: 1; font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-hot-heat { font-size: 11px; color: #d43c33; background: #fff1f0; padding: 2px 6px; border-radius: 3px; flex-shrink: 0; }

/* 推荐阅读 */
.tt-recom-item {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.tt-recom-item:last-child { border-bottom: none; }
.tt-recom-img { width: 80px; height: 55px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: #f0f0f0; }
.tt-recom-info { flex: 1; min-width: 0; }
.tt-recom-title {
  font-size: 13px; color: #333; line-height: 1.5; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tt-recom-item:hover .tt-recom-title { color: #d43c33; }
.tt-recom-meta { font-size: 11px; color: #999; }

/* ========== 分类/搜索头部 ========== */
.tt-category-header, .tt-search-header {
  background: #fff; border-radius: 8px; padding: 15px 20px; margin-bottom: 12px;
}
.tt-category-title h3, .tt-search-title h3 { font-size: 16px; font-weight: 600; color: #222; }
.tt-badge {
  display: inline-block; background: #f0f0f0; color: #999; padding: 2px 10px;
  border-radius: 10px; font-size: 12px; margin-left: 8px; vertical-align: middle;
}
.tt-category-ad, .tt-search-ad { margin-top: 8px; font-size: 13px; color: #999; }

/* ========== 页面 ========== */
.tt-page { background: #fff; border-radius: 8px; padding: 30px; margin-bottom: 12px; }
.tt-page-title { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 10px; }
.tt-page-meta { font-size: 13px; color: #999; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; 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-content img { max-width: 100%; border-radius: 8px; }
.tt-page-comments { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 12px; }

/* ========== 错误页 ========== */
.tt-error { background: #fff; border-radius: 8px; padding: 50px 30px; text-align: center; margin-bottom: 12px; }
.tt-error-icon {
  width: 72px; height: 72px; line-height: 72px; margin: 0 auto 20px;
  background: #fff5f5; color: #d43c33; font-size: 36px; font-weight: 700; border-radius: 50%;
}
.tt-error-title { font-size: 22px; font-weight: 600; color: #333; margin-bottom: 10px; }
.tt-error-text { font-size: 14px; color: #999; margin-bottom: 15px; }
.tt-error-divider { height: 1px; background: #f0f0f0; margin: 15px 0; }
.tt-btn {
  display: inline-block; padding: 10px 28px; background: #d43c33; color: #fff;
  border-radius: 4px; font-size: 14px; transition: background 0.2s;
}
.tt-btn:hover { background: #c2342c; color: #fff; }

/* ========== 友链 ========== */
.tt-links-list { margin-bottom: 10px; }
.tt-links-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.tt-links-info { flex: 1; min-width: 0; }
.tt-links-info a { color: #333; font-size: 15px; font-weight: 500; }
.tt-links-info a:hover { color: #d43c33; }
.tt-links-desc { display: block; font-size: 12px; color: #999; margin-top: 3px; }
.tt-links-badge { background: #d43c33; color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 11px; flex-shrink: 0; }
.tt-contact-info { font-size: 13px; color: #999; margin-top: 15px; }

/* ========== 购物车 ========== */
.tt-cart-table { width: 100%; }
.tt-cart-header { display: flex; background: #f8f8f8; padding: 10px 0; font-weight: 600; font-size: 13px; color: #333; border-bottom: 2px solid #f0f0f0; border-radius: 8px 8px 0 0; }
.tt-cart-row { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #f5f5f5; }
.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-ad-card {
  background: #fff; border-radius: 8px; padding: 12px 16px; position: relative;
  margin-bottom: 12px; border: 1px solid #f0f0f0;
}
.tt-ad-label {
  position: absolute; top: 8px; right: 8px; background: #f0f0f0; color: #999;
  padding: 2px 6px; border-radius: 3px; font-size: 11px;
}
.tt-ad-content { display: flex; gap: 12px; align-items: center; }
.tt-ad-content img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.tt-ad-title { font-size: 14px; font-weight: 500; color: #222; margin-bottom: 4px; }
.tt-ad-source { font-size: 12px; color: #999; }

/* ========== 微博 ========== */
.tt-weibo-item {
  background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.tt-weibo-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tt-weibo-header h3 { font-size: 13px; color: #999; margin-bottom: 10px; font-weight: 400; }
.tt-weibo-content { font-size: 15px; color: #333; line-height: 1.8; }
.tt-weibo-author { text-align: right; color: #999; font-size: 12px; margin-top: 10px; }

/* ========== 页脚 ========== */
.tt-footer {
  background: #fff; border-top: 1px solid #e8e8e8; padding: 30px 20px; margin-top: 40px;
  text-align: center;
}
.tt-footer-copyright p { font-size: 14px; color: #999; margin: 4px 0; }
.tt-footer-info p { font-size: 12px; color: #bbb; margin: 4px 0; }
.tt-footer-info a { color: #bbb; }
.tt-footer-info a:hover { color: #d43c33; }
.tt-back-top { margin-top: 12px; }
.tt-back-top a {
  display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center;
  background: #f5f5f5; color: #999; border-radius: 50%; font-size: 20px; transition: all 0.2s;
}
.tt-back-top a:hover { background: #d43c33; color: #fff; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .tt-main-wrapper { grid-template-columns: 1fr; }
  .tt-sidebar-area { width: 100%; }
}
@media (max-width: 768px) {
  .tt-container { width: 100%; padding: 0 12px; }
  .tt-header-main .tt-container { flex-wrap: wrap; gap: 10px; }
  .tt-logo { width: 100%; justify-content: center; }
  .tt-nav { width: 100%; margin-left: 0; }
  .tt-nav-list { justify-content: center; flex-wrap: wrap; }
  .tt-nav-link { padding: 6px 10px; font-size: 13px; }
  .tt-search { width: 100%; }
  .tt-search-input { width: 100%; }
  .tt-search-hint { display: none; }
  .tt-catnav { display: none; }
  .tt-main-wrapper { grid-template-columns: 1fr; gap: 14px; }
  .tt-sidebar-area { width: 100%; }
  .tt-mainpic { width: 160px; height: 114px; }
  .tt-detail { padding: 20px 16px; }
  .tt-detail-title { font-size: 20px; }
  .tt-nav-links { flex-direction: column; }
  .tt-user-actions { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .tt-nav-link { padding: 6px 8px; font-size: 12px; }
  .tt-article { flex-direction: column; }
  .tt-mainpic { width: 100%; height: auto; aspect-ratio: 16/9; }
  .tt-article-meta { gap: 8px; }
  .tt-detail-meta { gap: 8px; }
  .tt-recom-img { width: 70px; height: 48px; }
}