/* ============================================
   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; transition: color 0.2s ease; }
  .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%);
    background-image: url('/static/index/img/hero-banner.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .tt-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(255,43,43,.08) 0%, transparent 70%);
    pointer-events: none;
  }
  /* 修复（首页 hero 文案不可见）：hero 背景既可能是浅色 banner（hero-banner.svg），
     也可能是轮播视频/图片（.hero-hc，画面明暗不可控）。这里统一加一层「压暗遮罩」，
     z-index:0 位于媒体层之上、文案层（z-index:1）之下，保证白色文案在任何背景上都可读；
     作用域仅限 .tt-hero，不影响深色背景下的其它元素。
     修复（收尾）：有轮播时（.tt-hero.has-carousel）本遮罩改为隐藏——此时背景层是
     .hero-hc（自带层叠上下文），若在此处压暗会连带压暗轮播的箭头/圆点/标题；
     该场景改由 .hero-hc::after 只压暗媒体本身（见 _nav.php 内联样式），
     轮播控件 z-index 提升到遮罩之上，做到「文案可见」且「不影响其它元素」。 */
  .tt-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(10,10,28,.5) 0%, rgba(10,10,28,.66) 100%);
  }
  .tt-hero.has-carousel::after { display: none; }
  /* 修复：原为深色 #222，在深色轮播画面下不可见；改为白色 + 深色描边阴影 */
  .tt-hero-logo { font-size: 48px; font-weight: 800; color: #fff; position: relative; z-index: 1; letter-spacing: 4px; margin-bottom: 24px; text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.85); }
  .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; transition: box-shadow 0.25s ease; }
  .tt-hero-search form:focus-within { box-shadow: 0 4px 24px rgba(255,43,43,.25); }
  .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; transition: all 0.2s ease; }
  .tt-hero-search button:hover { background: var(--tt-red-dark); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
  .tt-hero-words { margin-top: 16px; display: flex; gap: 14px; justify-content: center; position: relative; z-index: 1; }
  /* 修复：4 个入口链接改为白色 + 深色阴影 + 半透明深色底衬，白字对比度不依赖 hero 背景明暗（不影响其它元素） */
  .tt-hero-words a { color: #fff; font-size: 13px; text-decoration: none; transition: background .2s ease, color .2s ease; text-shadow: 0 1px 6px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.75); background: rgba(10,10,28,.45); padding: 4px 12px; border-radius: 999px; }
  .tt-hero-words a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; background: rgba(10,10,28,.68); }
  .tt-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

  /* ===== Navigation Bar ===== */
  .tt-navbar { background: rgba(255,255,255,0.96); border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 199; backdrop-filter: blur(12px); transition: box-shadow 0.3s ease; }
  .tt-navbar.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .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 .2s ease; white-space: nowrap; position: relative; }
  .tt-navbar-inner a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: 20px; height: 2px; background: var(--tt-red); border-radius: 1px; transition: transform 0.25s ease; }
  .tt-navbar-inner a:hover { color: var(--tt-red); }
  .tt-navbar-inner a:hover::after { transform: translateX(-50%) scaleX(0.5); }
  .tt-navbar-inner a.active { color: var(--tt-red); font-weight: 600; border-bottom-color: var(--tt-red); }
  .tt-navbar-inner a.active::after { transform: translateX(-50%) scaleX(1); }

  /* ===== 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; transition: box-shadow 0.25s ease; }
  .tt-date-module:hover { box-shadow: 0 2px 12px rgba(224,36,36,0.06); }
  .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; transition: color 0.2s ease, transform 0.2s ease, padding-left 0.2s ease; }
  .tt-date-module .date-item:last-child { border-bottom: none; }
  .tt-date-module .date-item:hover { color: var(--tt-red); padding-left: 4px; }

  /* ===== 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 .2s ease, box-shadow .2s ease, transform .2s ease; }
  .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 2px 12px rgba(0,0,0,.05); position: relative; z-index: 1; transform: translateX(2px); }
  .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; transition: color .2s ease; }
  .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; transition: transform .3s ease; }
  .tt-feed-item:hover .feed-img { transform: scale(1.03); }
  .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; transition: transform .3s ease; }
  .tt-feed-item:hover .feed-imgs img { transform: scale(1.05); }

  /* 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; transition: box-shadow 0.25s ease; }
  .tt-sb-login:hover { box-shadow: 0 2px 12px rgba(224,36,36,0.06); }
  .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; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(224,36,36,0.2); }
  .tt-sb-login .btn:hover { background: var(--tt-red-dark); box-shadow: 0 4px 12px rgba(224,36,36,0.3); transform: translateY(-1px); }

  /* ===== Sidebar: Hot Board ===== */
  .tt-sb-hot { background: #fff; border-radius: 4px; overflow: hidden; transition: box-shadow 0.25s ease; }
  .tt-sb-hot:hover { box-shadow: 0 2px 12px rgba(224,36,36,0.06); }
  .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; transition: color 0.2s ease, transform 0.3s ease; }
  .tt-sb-hot .hot-hd .refresh:hover { color: var(--tt-red); }
  .tt-sb-hot .hot-hd .refresh:active { transform: rotate(180deg); }
  .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; transition: background 0.2s ease, transform 0.2s ease; }
  .tt-sb-hot li:hover { background: #fff5f5; transform: translateX(2px); }
  .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; transition: transform 0.2s ease; }
  .tt-sb-hot li:hover .rank { transform: scale(1.15); }
  .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; transition: color 0.2s ease; }
  .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: #fafafa; display: flex; align-items: center; justify-content: center; font-size: 50px; border-radius: 4px; overflow: hidden; }
  .tt-sb-download .qr img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .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: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border: 1px solid #e0e0e0; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; color: #666; transition: all 0.25s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
  .tt-toolbar li:hover { background: #fff5f5; color: var(--tt-red); border-color: rgba(224,36,36,0.15); transform: translateY(-2px); box-shadow: 0 3px 12px rgba(224,36,36,0.1); }

  /* ===== Wenku Doc Cards & List ===== */

  /* Card Grid */
  .wk-doc-section { background: #fff; border-radius: 4px; }
  .wk-card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 16px 20px; }
  .wk-doc-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; transition: box-shadow .2s, transform .15s; background: #fff; border: 1px solid #f0f0f0; }
  .wk-doc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
  .wk-doc-card .wk-doc-thumb-wrap { position: relative; width: 100%; padding-top: 140%; background: #fafafa; overflow: hidden; }
  .wk-doc-card .wk-doc-thumb-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .wk-doc-thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; background: #f5f5f5; color: #ccc; }
  .wk-doc-price-tag { position: absolute; top: 6px; right: 6px; background: var(--tt-red); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
  .wk-doc-free-tag { position: absolute; top: 6px; right: 6px; background: #67c23a; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
  .wk-doc-card .wk-doc-title { font-size: 13px; color: #333; line-height: 1.5; padding: 8px 10px 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .wk-doc-card:hover .wk-doc-title { color: var(--tt-red); }
  .wk-doc-card-meta { font-size: 11px; color: #999; padding: 0 10px 8px; display: flex; gap: 8px; align-items: center; }

  /* List Style */
  .wk-list-wrap { display: flex; flex-direction: column; padding: 0; }
  .wk-doc-list-item { display: flex; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: inherit; background: #fff; gap: 16px; transition: background .15s; }
  .wk-doc-list-item:first-child { border-radius: 4px 4px 0 0; }
  .wk-doc-list-item:last-child { border-radius: 0 0 4px 4px; border-bottom: none; }
  .wk-doc-list-item:hover { background: #fafafa; }
  .wk-doc-list-item .wk-doc-thumb-wrap { width: 120px; height: 160px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #fafafa; position: relative; }
  .wk-doc-list-item .wk-doc-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .wk-doc-list-item .wk-doc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  .wk-doc-list-item .wk-doc-title { font-size: 17px; font-weight: 600; color: #1a1a1a; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .wk-doc-list-item:hover .wk-doc-title { color: var(--tt-red); }
  .wk-doc-list-item .wk-doc-desc { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .wk-doc-list-item .wk-doc-meta { font-size: 13px; color: #999; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .wk-doc-list-item .wk-doc-ext { color: #555; font-weight: 500; }
  .wk-stars { color: #ff9500; letter-spacing: 2px; }
  .wk-score-num { color: #ff9500; font-weight: 600; margin-left: 2px; }

  /* ===== 文库改版：搜索区 / 筛选条 / 分类 Tab ===== */
  .wk-panel { background:#fff; border-radius:8px; padding:16px 18px; margin-bottom:14px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
  .wk-search-panel { padding-bottom:12px; }
  .wk-search-form { display:flex; gap:8px; }
  .wk-search-input { flex:1; height:42px; border:1px solid #e3e3e3; border-radius:6px 0 0 6px; padding:0 14px; font-size:14px; outline:none; min-width:0; }
  .wk-search-input:focus { border-color:var(--tt-red,#e02424); }
  .wk-search-btn { height:42px; padding:0 26px; border:none; border-radius:0 6px 6px 0; background:var(--tt-red,#e02424); color:#fff; font-size:15px; font-weight:600; cursor:pointer; }
  .wk-search-btn:hover { background:#c71c1c; }
  .wk-search-tip { margin-top:8px; font-size:12px; color:#a0a0a0; }

  /* 快捷筛选标签 */
  .wk-filter-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; }
  .wk-filter-label { font-size:12px; color:#999; margin-right:2px; }
  .wk-chip { display:inline-flex; align-items:center; padding:5px 14px; border-radius:14px; background:#f5f6f7; color:#666; font-size:13px; text-decoration:none; transition:.15s; }
  .wk-chip:hover { background:#eceef0; color:#333; }
  .wk-chip.on { background:var(--tt-red,#e02424); color:#fff; font-weight:600; }
  .wk-filter-sep { width:1px; height:16px; background:#e8e8e8; margin:0 4px; }

  /* 一级分类 Tab */
  .wk-tabs { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
  .wk-tab { display:inline-flex; align-items:center; gap:4px; padding:7px 15px; border-radius:16px; font-size:14px; color:#555; text-decoration:none; background:#f7f8fa; transition:.15s; }
  .wk-tab:hover { background:#eef0f2; color:#222; }
  .wk-tab.on { background:var(--tt-red,#e02424); color:#fff; font-weight:600; }
  .wk-tab-more { display:inline-flex; align-items:center; gap:4px; padding:7px 15px; border-radius:16px; font-size:14px; color:#555; background:#f7f8fa; border:none; cursor:pointer; }
  .wk-tab-more:hover { background:#eef0f2; }
  .wk-tab-more.on { background:var(--tt-red,#e02424); color:#fff; }

  /* 全部分类弹窗（一级 + 二级） */
  .wk-cat-pop { display:none; margin-top:10px; border:1px solid #eee; border-radius:8px; background:#fff; overflow:hidden; }
  .wk-cat-pop.open { display:grid; grid-template-columns:190px 1fr; }
  .wk-cat-l1 { border-right:1px solid #f0f0f0; max-height:340px; overflow-y:auto; background:#fafbfc; }
  .wk-cat-l1 a { display:flex; align-items:center; gap:6px; padding:9px 14px; font-size:13px; color:#555; text-decoration:none; }
  .wk-cat-l1 a:hover { background:#f0f2f5; }
  .wk-cat-l1 a.on { background:#fff; color:var(--tt-red,#e02424); font-weight:600; }
  .wk-cat-l2 { padding:12px 14px; max-height:340px; overflow-y:auto; display:flex; flex-wrap:wrap; gap:8px; align-content:flex-start; }
  .wk-cat-l2 a { padding:5px 12px; border-radius:14px; background:#f5f6f7; color:#666; font-size:13px; text-decoration:none; }
  .wk-cat-l2 a:hover { background:var(--tt-red,#e02424); color:#fff; }
  .wk-cat-l2 .l2-title { width:100%; font-size:13px; color:#333; font-weight:600; margin-bottom:2px; }

  /* ===== 新版文档卡片 ===== */
  .wk-doc-grid { display:grid; gap:14px; }
  .wk-doc-grid.mode-compact { grid-template-columns:repeat(6,1fr); }
  .wk-doc-grid.mode-cozy { grid-template-columns:repeat(4,1fr); gap:18px; }
  .wk-card { background:#fff; border:1px solid #f0f0f0; border-radius:8px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s, transform .18s; }
  .wk-card:hover { box-shadow:0 8px 22px rgba(0,0,0,.1); transform:translateY(-3px); z-index:2; }
  .wk-card-thumb { position:relative; display:block; width:100%; padding-top:133%; background:#fafafa; overflow:hidden; }
  .wk-card-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; }
  .wk-thumb-fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:36px; color:#ccc; background:#f5f5f5; }
  .wk-ext-badge { position:absolute; left:6px; bottom:6px; background:rgba(0,0,0,.55); color:#fff; font-size:10px; padding:1px 6px; border-radius:3px; letter-spacing:.5px; }
  .wk-ext-badge.wk-ext-pdf { background:rgba(208,48,48,.85); }
  .wk-ext-badge.wk-ext-word { background:rgba(42,90,160,.85); }
  .wk-ext-badge.wk-ext-excel { background:rgba(30,130,80,.85); }
  .wk-ext-badge.wk-ext-ppt { background:rgba(200,100,20,.85); }
  .wk-card-badges { position:absolute; top:6px; right:6px; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
  .wk-badge { font-style:normal; font-size:10px; line-height:1.6; padding:1px 6px; border-radius:3px; color:#fff; font-weight:600; white-space:nowrap; }
  .wk-badge-free { background:#67c23a; }
  .wk-badge-vip { background:#ff8c1a; }
  .wk-badge-hd { background:#3a7afe; }
  .wk-badge-edit { background:#8a63d2; }
  .wk-card-hover-act { position:absolute; left:0; right:0; bottom:0; display:flex; gap:6px; padding:8px; justify-content:center;
      background:linear-gradient(transparent, rgba(0,0,0,.55)); opacity:0; transform:translateY(6px); transition:opacity .18s, transform .18s; }
  .wk-card:hover .wk-card-hover-act { opacity:1; transform:translateY(0); }
  .wk-act-btn { display:inline-flex; align-items:center; gap:3px; padding:4px 10px; border-radius:14px; font-size:12px;
      background:rgba(255,255,255,.94); color:#333; text-decoration:none; border:none; cursor:pointer; }
  .wk-act-btn:hover { background:#fff; color:var(--tt-red,#e02424); }
  .wk-act-btn.primary { background:var(--tt-red,#e02424); color:#fff; }
  .wk-act-btn.primary:hover { background:#c71c1c; color:#fff; }
  .wk-fav-btn.on { color:var(--tt-red,#e02424); }
  .wk-card-body { padding:8px 10px 10px; display:flex; flex-direction:column; gap:5px; flex:1; }
  .wk-card-title { font-size:13px; line-height:1.45; color:#333; text-decoration:none; height:2.9em; overflow:hidden;
      display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .wk-card:hover .wk-card-title { color:var(--tt-red,#e02424); }
  .wk-card-tags { display:flex; flex-wrap:wrap; gap:4px; }
  .wk-tag { font-size:10px; color:#8a8a8a; background:#f6f7f8; border-radius:3px; padding:1px 5px; white-space:nowrap; }
  .wk-tag-type { color:#e02424; background:#fdeeee; }
  .wk-tag-cat { color:#5b7fbd; background:#eef3fb; }
  .wk-card-stat { display:flex; align-items:center; gap:8px; font-size:11px; color:#a5a5a5; margin-top:auto; }
  .wk-card-dl { margin-left:auto; color:var(--tt-red,#e02424); text-decoration:none; font-size:11px; }
  .wk-card-dl:hover { text-decoration:underline; }
  .wk-doc-grid.mode-compact .wk-tag-cat, .wk-doc-grid.mode-compact .wk-tag-year { display:none; }
  .wk-doc-grid.mode-compact .wk-card-stat { font-size:10px; gap:6px; }
  .wk-doc-grid.mode-compact .wk-card-dl { display:none; }
  .wk-doc-grid.mode-compact .wk-card-title { font-size:12px; }
  /* 平板 / 窄屏桌面：紧凑模式下 6 列会挤到不可读，逐级降列 */
  @media (max-width: 1100px) {
    .wk-doc-grid.mode-compact { grid-template-columns:repeat(4,1fr); }
    .wk-doc-grid.mode-cozy { grid-template-columns:repeat(3,1fr); }
  }
  @media (max-width: 900px) {
    .wk-doc-grid.mode-compact { grid-template-columns:repeat(3,1fr); }
    .wk-doc-grid.mode-cozy { grid-template-columns:repeat(2,1fr); }
  }

  /* 列表版式 */
  .wk-row-list { display:flex; flex-direction:column; background:#fff; border-radius:8px; overflow:hidden; }
  .wk-row { display:flex; gap:14px; padding:14px 16px; border-bottom:1px solid #f2f2f2; align-items:flex-start; transition:background .15s; }
  .wk-row:hover { background:#fafbfc; }
  .wk-row:last-child { border-bottom:none; }
  .wk-row-thumb { position:relative; width:92px; flex-shrink:0; padding-top:122px; border-radius:6px; overflow:hidden; background:#fafafa; }
  .wk-row-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; }
  .wk-row-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
  .wk-row-title { font-size:16px; font-weight:600; color:#1a1a1a; text-decoration:none; line-height:1.5;
      display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .wk-row:hover .wk-row-title { color:var(--tt-red,#e02424); }
  .wk-row-desc { font-size:13px; color:#888; line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .wk-row-actions { display:flex; flex-direction:column; gap:6px; flex-shrink:0; }

  /* 板块 */
  .wk-section { background:#fff; border-radius:8px; margin-bottom:18px; box-shadow:0 1px 3px rgba(0,0,0,.04); overflow:hidden; }
  .wk-section + .wk-section { margin-top:0; }
  .wk-sec-head { display:flex; align-items:center; gap:8px; padding:14px 18px; border-bottom:1px solid #f4f4f4; }
  .wk-sec-icon { font-size:18px; }
  .wk-sec-title { font-size:16px; font-weight:700; color:#222; }
  .wk-sec-sub { font-size:12px; color:#aaa; font-weight:400; }
  .wk-sec-more { margin-left:auto; font-size:13px; color:#999; text-decoration:none; display:inline-flex; align-items:center; gap:2px; }
  .wk-sec-more:hover { color:var(--tt-red,#e02424); }
  .wk-sec-body { padding:14px 16px; }
  .wk-split { height:10px; background:transparent; }

  /* 骨架屏 */
  .wk-skeleton .wk-sk-box { background:#f2f3f5; }
  .wk-sk-line { height:12px; background:#f2f3f5; border-radius:4px; margin-bottom:6px; }
  .wk-sk-line.sm { height:10px; width:60%; }
  .wk-skeleton { animation:wkSk 1.2s ease-in-out infinite; }
  @keyframes wkSk { 0%,100% { opacity:1 } 50% { opacity:.55 } }

  /* 空状态 */
  .wk-empty { text-align:center; padding:48px 20px; color:#999; }
  .wk-empty .ico { font-size:46px; margin-bottom:10px; }
  .wk-empty .t { font-size:15px; color:#666; margin-bottom:6px; }
  .wk-empty .d { font-size:13px; color:#aaa; margin-bottom:16px; }
  .wk-pager { display:flex; justify-content:center; gap:8px; padding:16px 0 4px; }
  .wk-pager a { padding:6px 14px; border-radius:6px; background:#f5f6f7; color:#666; font-size:13px; text-decoration:none; }
  .wk-pager a:hover { background:var(--tt-red,#e02424); color:#fff; }
  .wk-load-more { display:block; width:100%; padding:11px; border:1px dashed #dcdcdc; border-radius:8px; background:#fff;
      color:#888; font-size:14px; cursor:pointer; margin-top:6px; }
  .wk-load-more:hover { border-color:var(--tt-red,#e02424); color:var(--tt-red,#e02424); }

  /* ===== 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; }
}
