/* ============================================
   Huidong PC - Toutiao Style Complete
   Per spec: red theme, 1200px, dual-column
   ============================================ */

@media (min-width: 769px) {
  :root {
    --tt-red: #ff2b2b; --tt-red-dark: #e02424;
    --tt-text: #222; --tt-text-secondary: #666; --tt-text-light: #999;
    --tt-bg: #f4f5f6; --tt-white: #fff; --tt-border: #e8e8e8;
  }

  body {
    background: var(--tt-bg) !important;
    padding-top: 0 !important; padding-bottom: 60px !important;
    font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif !important;
    font-size: 15px; color: var(--tt-text);
  }

  /* ===== Top Header Bar ===== */
  .tt-topbar {
    background: #1a1a2e; color: rgba(255,255,255,.7);
    height: 36px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; font-size: 12px;
    position: relative; z-index: 201;
  }
  .tt-topbar a { color: rgba(255,255,255,.7); text-decoration: none; margin: 0 8px; }
  .tt-topbar a:hover { color: #fff; }

  /* ===== Hero Banner Area ===== */
  .tt-hero {
    height: 360px; position: relative; overflow: hidden;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 40%, #2d1b4e 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .tt-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,43,43,.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 40%, rgba(64,128,255,.1) 0%, transparent 50%);
  }
  .tt-hero-logo { font-size: 48px; font-weight: 800; color: #fff; position: relative; z-index: 1; letter-spacing: 4px; margin-bottom: 24px; }
  .tt-hero-search { width: 600px; position: relative; z-index: 1; }
  .tt-hero-search form { display: flex; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.3); height: 48px; }
  .tt-hero-search input { flex: 1; border: none; padding: 0 20px; font-size: 16px; outline: none; color: #333; }
  .tt-hero-search input::placeholder { color: #bbb; }
  .tt-hero-search button { border: none; padding: 0 28px; background: var(--tt-red); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
  .tt-hero-search button:hover { background: var(--tt-red-dark); }
  .tt-hero-words { margin-top: 16px; display: flex; gap: 14px; justify-content: center; position: relative; z-index: 1; }
  .tt-hero-words a { color: rgba(255,255,255,.75); font-size: 13px; text-decoration: none; }
  .tt-hero-words a:hover { color: #fff; }

  /* ===== Navigation Bar ===== */
  .tt-navbar { background: #fff; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 199; }
  .tt-navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 50px; padding: 0 16px; }
  .tt-navbar-inner a { padding: 14px 18px; font-size: 16px; color: #444; text-decoration: none; border-bottom: 2px solid transparent; transition: all .15s; white-space: nowrap; }
  .tt-navbar-inner a:hover { color: var(--tt-red); }
  .tt-navbar-inner a.active { color: var(--tt-red); font-weight: 600; border-bottom-color: var(--tt-red); }

  /* ===== Main Layout ===== */
  .tt-main { max-width: 1200px; margin: 20px auto 0; padding: 0 16px; display: flex; gap: 20px; align-items: flex-start; }
  .tt-left { flex: 1; max-width: 850px; min-width: 0; }
  .tt-right { flex: 0 0 330px; width: 330px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 70px; align-self: flex-start; }

  /* ===== Date Module ===== */
  .tt-date-module { background: #fff; border-radius: 4px; padding: 16px 20px; margin-bottom: 16px; }
  .tt-date-module .date-label { font-size: 18px; font-weight: 700; color: var(--tt-red); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
  .tt-date-module .date-label::after { content: ''; flex: 1; height: 1px; background: #f0f0f0; }
  .tt-date-module .date-item { display: block; padding: 6px 0; font-size: 15px; color: #333; text-decoration: none; border-bottom: 1px dotted #f0f0f0; }
  .tt-date-module .date-item:last-child { border-bottom: none; }
  .tt-date-module .date-item:hover { color: var(--tt-red); }

  /* ===== Feed Items ===== */
  .tt-feed-item { display: flex; padding: 18px 20px; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: inherit; background: #fff; gap: 20px; transition: background .15s, box-shadow .15s; }
  .tt-feed-item:first-of-type { border-radius: 4px 4px 0 0; }
  .tt-feed-item:last-of-type { border-radius: 0 0 4px 4px; border-bottom: none; }
  .tt-feed-item:hover { background: #fafafa; box-shadow: 0 1px 8px rgba(0,0,0,.04); position: relative; z-index: 1; }
  .tt-feed-item .feed-left { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  .tt-feed-item .feed-title { font-size: 18px; font-weight: 600; color: #1a1a1a; line-height: 1.55; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: .3px; }
  .tt-feed-item:hover .feed-title { color: var(--tt-red); }
  .tt-feed-item .feed-desc { font-size: 14px; color: #888; line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tt-feed-item .feed-meta { font-size: 13px; color: #999; display: flex; align-items: center; gap: 12px; }
  .tt-feed-item .feed-meta .source { color: #555; font-weight: 500; }
  .tt-feed-item .feed-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #ddd; }
  .tt-feed-item .feed-img { width: 200px; height: 128px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: #f5f5f5; }
  .tt-feed-item .feed-imgs { display: flex; gap: 4px; width: 200px; flex-shrink: 0; }
  .tt-feed-item .feed-imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }

  /* Section header */
  .tt-feed-header { padding: 14px 20px; font-size: 16px; font-weight: 700; color: #333; border-bottom: 1px solid #f5f5f5; background: #fff; border-radius: 4px 4px 0 0; }
  .tt-feed-header::before { content: '| '; color: var(--tt-red); font-weight: 700; }

  /* ===== Sidebar: Login ===== */
  .tt-sb-login { background: #fff; border-radius: 4px; padding: 20px; text-align: center; }
  .tt-sb-login .msg { font-size: 15px; color: #333; margin-bottom: 12px; }
  .tt-sb-login .btn { display: inline-block; padding: 8px 32px; background: var(--tt-red); color: #fff; border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
  .tt-sb-login .btn:hover { background: var(--tt-red-dark); }

  /* ===== Sidebar: Hot Board ===== */
  .tt-sb-hot { background: #fff; border-radius: 4px; overflow: hidden; }
  .tt-sb-hot .hot-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid #f0f0f0; }
  .tt-sb-hot .hot-hd .title { font-size: 16px; font-weight: 700; }
  .tt-sb-hot .hot-hd .refresh { font-size: 12px; color: #999; cursor: pointer; background: none; border: none; }
  .tt-sb-hot ol { list-style: none; margin: 0; padding: 0; }
  .tt-sb-hot li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #f8f8f8; }
  .tt-sb-hot .rank { width: 20px; height: 20px; border-radius: 3px; background: #e8e8e8; color: #999; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .tt-sb-hot li:nth-child(1) .rank,
  .tt-sb-hot li:nth-child(2) .rank,
  .tt-sb-hot li:nth-child(3) .rank { background: var(--tt-red); color: #fff; }
  .tt-sb-hot .link { font-size: 14px; line-height: 1.5; color: #333; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tt-sb-hot .link:hover { color: var(--tt-red); }

  /* ===== Article Detail ===== */
  .tt-article-wrap { max-width: 1200px; margin: 20px auto 0; padding: 0 16px; display: flex; gap: 20px; align-items: flex-start; }
  .tt-article-left { width: 48px; flex-shrink: 0; padding-top: 80px; }
  .tt-article-left a { display: flex; flex-direction: column; align-items: center; padding: 10px 0; color: #999; font-size: 12px; text-decoration: none; gap: 4px; }
  .tt-article-left a:hover { color: var(--tt-red); }
  .tt-article-main { flex: 1; max-width: 750px; min-width: 0; background: #fff; border-radius: 4px; padding: 32px; }
  .tt-article-main h1 { font-size: 28px; font-weight: 800; line-height: 1.45; margin-bottom: 16px; color: #1a1a1a; letter-spacing: .5px; }
  .tt-article-main .meta { font-size: 14px; color: #999; margin-bottom: 24px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid #f5f5f5; padding-bottom: 16px; }
  .tt-article-main .meta .follow-btn { margin-left: auto; padding: 6px 20px; background: var(--tt-red); color: #fff; border-radius: 4px; font-size: 13px; text-decoration: none; font-weight: 600; }
  .tt-article-main .meta .follow-btn:hover { background: #e02424; }
  .tt-article-main .body { font-size: 17px; line-height: 1.95; color: #333; word-break: break-word; }
  .tt-article-main .body p { margin-bottom: 20px; }
  .tt-article-main .body img { max-width: 100%; border-radius: 6px; margin: 20px 0; display: block; }
  .tt-article-main .body h2, .tt-article-main .body h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: #1a1a1a; }
  .tt-article-right { flex: 0 0 330px; width: 330px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 70px; align-self: flex-start; }

  /* ===== Author Card ===== */
  .tt-author-card { background: #fff; border-radius: 4px; padding: 16px; }
  .tt-author-card .author-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .tt-author-card .author-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--tt-red),#c0392b); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
  .tt-author-card .author-name { font-size: 15px; font-weight: 700; }
  .tt-author-card .hot-articles { border-top: 1px solid #f5f5f5; padding-top: 8px; }
  .tt-author-card .hot-articles a { display: block; padding: 4px 0; font-size: 13px; color: #333; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tt-author-card .hot-articles a:hover { color: var(--tt-red); }

  /* ===== Comments ===== */
  .tt-comments { background: #fff; border-radius: 4px; margin-top: 16px; padding: 20px; }
  .tt-comments .cmt-hd { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--tt-red); }
  .tt-comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
  .tt-comment-item:last-child { border-bottom: none; }
  .tt-comment-item .cmt-av { width: 40px; height: 40px; border-radius: 50%; background: #e8e8e8; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #666; flex-shrink: 0; }
  .tt-comment-item .cmt-body { flex: 1; min-width: 0; }
  .tt-comment-item .cmt-name { font-size: 13px; font-weight: 600; color: #2563eb; margin-bottom: 4px; }
  .tt-comment-item .cmt-text { font-size: 15px; color: #333; line-height: 1.6; }
  .tt-comment-item .cmt-meta { font-size: 12px; color: #999; margin-top: 6px; display: flex; gap: 12px; align-items: center; }

  /* ===== Sidebar: Download ===== */
  .tt-sb-download { background: #fff; border-radius: 4px; padding: 14px; text-align: center; }
  .tt-sb-download .qr { width: 100px; height: 100px; margin: 0 auto 8px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 50px; }
  .tt-sb-download .txt { font-size: 12px; color: #999; }

  /* ===== Footer ===== */
  .tt-footer { position: fixed !important; bottom: 0; left: 0; right: 0; height: 40px !important; background: #fff !important; border-top: 1px solid var(--tt-border) !important; z-index: 200 !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 12px; color: var(--tt-text-light); }
  .tt-footer a { color: var(--tt-text-secondary); text-decoration: none; margin: 0 6px; font-size: 12px; }
  .tt-footer a:hover { color: var(--tt-red); }

  /* ===== Toolbar ===== */
  .tt-toolbar { position: fixed !important; right: 24px !important; bottom: 60px !important; width: 44px !important; z-index: 200 !important; }
  .tt-toolbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .tt-toolbar li { width: 44px; height: 44px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; color: #666; }
  .tt-toolbar li:hover { background: #f5f5f5; color: var(--tt-red); }

  /* ===== Hide mobile ===== */
  .app-status-bar,.app-tab-bar,.app-mobile-only { display: none !important; }
  footer:not(.tt-footer) { display: none !important; }
  nav:not(.site-header):not(.tt-navbar) { display: none !important; }
}
