  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
  }
  a { text-decoration: none; color: inherit; }

  /* ============================================
     1. TOP INFO BAR
     ============================================ */
  .top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    height: 32px;
    background: linear-gradient(180deg, #fef6f4 0%, #fdf0ed 100%);
    border-bottom: 1px solid #f2ddd8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 12px;
    color: #b08e85;
    user-select: none;
  }
  .top-bar a { color: inherit; cursor: pointer; transition: opacity .15s; }
  .top-bar a:hover { opacity: .7; }
  .top-left { display: flex; align-items: center; white-space: nowrap; }
  .top-left .date-block { display: flex; align-items: center; gap: 6px; margin-right: 14px; }
  .top-left .date-block .day { font-weight: 600; }
  .top-left .date-block .weekday,
  .top-left .date-block .lunar { }
  .top-left .date-block .date-simple { font-weight: 600; letter-spacing: .5px; }
  .top-left .date-block .date-full { font-weight: 600; letter-spacing: .5px; }
  .top-left .location-block { display: flex; align-items: center; margin-right: 12px; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.2); }
  .top-left .location-block .city { margin-right: 1px; }
  .top-left .location-block .switch-btn { opacity: .7; }
  .top-left .weather-block { display: flex; align-items: center; gap: 4px; }
  .weather-item { display: flex; align-items: center; gap: 3px; margin-right: 8px; }
  .weather-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
  .weather-icon svg { width: 16px; height: 16px; }
  .weather-temp { font-size: 12px; }
  .weather-tomorrow { display: flex; align-items: center; gap: 3px; margin-left: 4px; }
  .weather-tomorrow .label { font-weight: 500; opacity: .7; }
  .topbar-weather { margin-left: 4px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
  .tw-city { font-weight: 600; }
  .tw-switch-label { cursor: pointer; opacity: .75; transition: opacity .15s; font-size: 11px; }
  .tw-switch-label:hover { opacity: 1; }

  /* City picker popup — body level, absolute positioned by JS */
  .city-picker {
    display: none;
    position: absolute;
    width: 300px;
    background: #ffffff;
    border: 1px solid #ebeef5;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
    z-index: 99999;
    padding: 16px;
    color: #333;
    cursor: default;
    font-size: 12px;
    animation: cpFadeIn .18s ease;
  }
  .city-picker::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 14px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #ebeef5;
    border-top: 1px solid #ebeef5;
    transform: rotate(45deg);
  }
  @keyframes cpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .city-picker.show { display: block; }
  .cp-search { margin-bottom: 14px; position: relative; }
  .cp-search::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    border: 1.5px solid #c0c4cc;
    border-radius: 50%;
    pointer-events: none;
  }
  .cp-search::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 22px;
    width: 5px;
    height: 1.5px;
    background: #c0c4cc;
    transform: rotate(45deg);
    border-radius: 1px;
    pointer-events: none;
  }
  .cp-search input {
    width: 100%;
    height: 36px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    padding: 0 12px 0 32px;
    font-size: 13px;
    outline: none;
    color: #333;
    background: #fafbfc;
    transition: all .2s;
  }
  .cp-search input:focus { border-color: #1b5bd5; background: #fff; box-shadow: 0 0 0 3px rgba(27,91,213,.1); }
  .cp-search input::placeholder { color: #c0c4cc; }
  .cp-title { font-size: 12px; color: #909399; margin-bottom: 10px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
  .cp-title::before { content: ''; width: 3px; height: 12px; background: #1b5bd5; border-radius: 2px; }
  .cp-tags { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .cp-tag {
    padding: 7px 0;
    background: #f5f7fa;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    color: #606266;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
  }
  .cp-tag:hover { background: #eef3ff; color: #1b5bd5; border-color: #b3cfff; transform: translateY(-1px); }
  .cp-tag:active { transform: translateY(0); }
  .top-right { display: flex; align-items: center; white-space: nowrap; }
  .top-right .item { display: flex; align-items: center; padding: 0 10px; border-left: 1px solid #e8cfc9; height: 14px; line-height: 14px; cursor: pointer; }
  .top-right .item:first-child { border-left: none; }
  .top-right .item a { display: flex; align-items: center; gap: 3px; }
  .top-right .mail-label { margin-right: 4px; }
  .top-right .dropdown-arrow-sm { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #b08e85; margin-left: 4px; }

  /* ============================================
     2. HEADER BAR
     ============================================ */
  .header-bar {
    position: relative;
    z-index: 9998;
    margin-top: 32px;
    min-height: 100px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
  }
  .header-bar-inner {
    width: 1200px;
    max-width: 100%;
    min-height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 4px;
  }
  .header-logo {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-right: 24px;
    text-decoration: none; color: inherit;
  }
  .site-logo-img { max-height: 50px; display: block; }
  .site-logo { width: 32px; height: 32px; min-width: 32px; display: flex; align-items: center; justify-content: center; }
  .site-logo svg { width: 32px; height: 32px; }
  .logo-text { display: flex; flex-direction: column; gap: 0; }
  .logo-text .title { font-size: 16px; font-weight: 700; color: #333; letter-spacing: .5px; line-height: 1.3; white-space: nowrap; }
  .logo-text .url { font-size: 11px; color: #aaa; line-height: 1.4; }
  .header-search { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: stretch; min-width: 0; gap: 7px; }
  /* 热搜行 */
  .hot-search-row { display: flex; align-items: center; gap: 14px; padding: 0 2px; font-size: 12px; flex-wrap: wrap; max-height: 18px; overflow: hidden; line-height: 1.4; }
  .hot-search-label { display: inline-flex; align-items: center; gap: 3px; color: #f25d30; font-weight: 600; flex-shrink: 0; }
  .hot-search-ico { color: #f25d30; flex-shrink: 0; }
  .hot-search-word { color: #777; text-decoration: none; transition: color .15s; white-space: nowrap; }
  .hot-search-word:hover { color: #f25d30; }
  .search-box {
    display: flex; align-items: stretch; width: 100%; height: 38px;
    border: 2px solid #d4d4d4; border-radius: 6px; overflow: visible; background: #fff; position: relative;
  }
  .search-box:focus-within { border-color: #bdbdbd; box-shadow: 0 0 0 2px rgba(0,0,0,.04); }
  .search-engine-btn { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 10px; border: none; background: transparent; cursor: pointer; flex-shrink: 0; border-radius: 4px 0 0 4px; position: relative; }
  .search-engine-btn:hover { background: rgba(0,0,0,.03); }
  .search-engine-btn .s-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
  .search-engine-btn .s-icon svg { width: 20px; height: 20px; }
  .search-engine-btn .s-icon img { width: 18px; height: 18px; border-radius: 3px; }
  .search-engine-btn .arrow { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 4px solid #666; transition: transform .2s; }
  .search-engine-btn.open .arrow { transform: rotate(180deg); }
  /* 搜索引擎下拉面板 */
  .engine-panel {
    display: none; position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 160px; background: #fff; border: 1px solid #ebeef5; border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.14); z-index: 9999; padding: 6px 0;
    animation: epFade .16s ease;
  }
  .search-engine-btn.open .engine-panel { display: block; }
  @keyframes epFade { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
  .engine-panel::before { content:''; position:absolute; top:-6px; left:12px; width:10px; height:10px; background:#fff; border-left:1px solid #ebeef5; border-top:1px solid #ebeef5; transform:rotate(45deg); }
  .ep-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; transition: background .12s; position: relative; }
  .ep-item:hover { background: #f5f8ff; }
  .ep-item.active { color: #1b5bd5; }
  .ep-icon { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #333; flex-shrink: 0; overflow: hidden; }
  .ep-icon img { width: 100%; height: 100%; object-fit: contain; }
  .ep-name { font-size: 13px; color: #333; flex: 1; }
  .ep-item.active .ep-name { color: #1b5bd5; font-weight: 600; }
  .ep-check { display: none; flex-shrink: 0; color: #1b5bd5; }
  .ep-item.active .ep-check { display: block; }
  .search-input { flex: 1; border: none; outline: none; padding: 0 10px 0 6px; font-size: 14px; color: #333; background: transparent; min-width: 0; }
  .search-input::placeholder { color: #999; }
  .hot-search-tag { display: flex; align-items: center; gap: 2px; padding: 0 10px 0 6px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
  /* 历史记录标签 */
  .history-tag { position: relative; display: flex; align-items: center; gap: 3px; padding: 0 10px 0 8px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
  .history-tag:hover { background: rgba(0,0,0,.03); }
  .history-tag .hs-arrow { transition: transform .2s; }
  .history-tag.open .hs-arrow { transform: rotate(180deg); }
  .history-panel {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    width: 260px; background: #fff; border: 1px solid #ebeef5; border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.14); z-index: 9999; overflow: hidden;
    animation: hpFade .16s ease;
  }
  @keyframes hpFade { from { opacity:0; transform: translateY(-6px);} to { opacity:1; transform: translateY(0);} }
  .history-tag.open .history-panel { display: block; }
  .hp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #f2f3f5; }
  .hp-head span { font-size: 12px; color: #909399; font-weight: 600; }
  .hp-clear { border: none; background: none; color: #c0c4cc; font-size: 12px; cursor: pointer; transition: color .15s; padding: 0; }
  .hp-clear:hover { color: #f56c6c; }
  .hp-list { max-height: 280px; overflow-y: auto; padding: 4px 0; }
  .hp-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; cursor: pointer; transition: background .12s; }
  .hp-item:hover { background: #f5f8ff; }
  .hp-item .hi-text { font-size: 13px; color: #333; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
  .hp-item .hi-text svg { width: 13px; height: 13px; flex-shrink: 0; color: #c0c4cc; }
  .hp-item .hi-del { border: none; background: none; color: #c0c4cc; cursor: pointer; padding: 2px; opacity: 0; transition: all .12s; display: flex; flex-shrink: 0; }
  .hp-item:hover .hi-del { opacity: 1; }
  .hp-item .hi-del:hover { color: #f56c6c; }
  .hp-empty { padding: 24px 14px; text-align: center; color: #c0c4cc; font-size: 12px; }
  .hs-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; margin-right: 2px; }
  .hs-icon svg { width: 20px; height: 20px; }
  .hs-text { font-size: 14px; font-weight: 500; color: #555; }
  .hs-arrow { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #999; margin-left: 4px; margin-top: 1px; }
  .search-btn { width: 56px; border: none; border-left: 1px solid #d4d4d4; background: #555; color: #fff; font-size: 14px; font-weight: 400; cursor: pointer; letter-spacing: 2px; flex-shrink: 0; transition: background .15s; border-radius: 0 4px 4px 0; }
  .search-btn:hover { background: #444; }
  .header-info { flex-shrink: 0; display: flex; align-items: center; margin-left: 20px; }
  .info-columns { display: flex; align-items: stretch; padding: 4px 0; background: transparent; }
  .info-col { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 2px 16px; white-space: nowrap; }
  .info-col:not(:last-child) { border-right: 1px solid #ededed; }
  .info-col .r1 { font-size: 13px; color: #333; display: flex; align-items: center; gap: 4px; line-height: 1.4; font-weight: 500; }
  .info-col .r2 { font-size: 12px; color: #999; display: flex; align-items: center; gap: 3px; line-height: 1.4; }
  .info-col a { color: inherit; transition: color .15s; text-decoration: none; }
  .info-col a:hover { color: #4e6ef2; }
  .info-col .r2 a:hover { color: #4e6ef2; }
  /* 会员登录/注册 */
  .member-row { display: flex; align-items: center; gap: 6px; }
  .member-login { color: #333 !important; font-weight: 600; font-size: 13px; transition: color .15s; }
  .member-login:hover { color: #1b5bd5 !important; }
  .member-sep { color: #ddd; font-size: 12px; }
  .member-register { display: inline-block; padding: 1px 10px; background: #1b5bd5; color: #fff !important; border-radius: 3px; font-size: 12px; font-weight: 500; transition: all .15s; }
  .member-register:hover { background: #1550c0; color: #fff !important; }
  .member-social { display: flex; align-items: center; gap: 8px; }
  .social-link { color: #c0c4cc !important; font-size: 11px; transition: color .15s; }
  .social-link:hover { color: #1b5bd5 !important; }
  /* 信息卡下拉 */
  .hi-dd { position: relative; }
  .hi-dd-toggle { cursor: pointer; }
  .hi-dd-toggle:hover { color: #4e6ef2; }
  .hi-dd-toggle:hover .dropdown-arrow-sm { border-top-color: #4e6ef2; }
  .hi-dd-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    min-width: 100px; background: #fff; border: 1px solid #ebeef5; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 9999; padding: 5px 0;
    animation: hiddFade .15s ease;
  }
  @keyframes hiddFade { from { opacity:0; transform: translateX(-50%) translateY(-5px);} to { opacity:1; transform: translateX(-50%) translateY(0);} }
  .hi-dd.open .hi-dd-panel { display: block; }
  .hi-dd-item { display: block; padding: 7px 16px; font-size: 12px; color: #333; cursor: pointer; transition: background .12s; white-space: nowrap; text-align: center; text-decoration: none; }
  .hi-dd-item:hover { background: #f5f8ff; color: #4e6ef2; }
  .dropdown-arrow-sm { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #999; display: inline-block; transition: transform .2s; }
  .hi-dd.open .dropdown-arrow-sm { transform: rotate(180deg); }
  .dropdown-arrow { display: inline-block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #999; margin-left: 2px; vertical-align: middle; }

  /* ============================================
     3. CATEGORY NAV BAR (red box in image)
     ============================================ */
  .cat-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
  }
  .cat-nav-inner {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
  }
  .cat-group {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .cat-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .cat-dot svg { width: 10px; height: 10px; }
  .cat-group a {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    transition: color .15s;
  }
  .cat-group a:hover {
    color: #f25d30;
  }
  .cat-sep {
    width: 1px;
    height: 14px;
    background: #e5e5e5;
    flex-shrink: 0;
  }

  /* 胶囊式首页导航（左对齐 tab 风格） */
  .cat-nav-pill .cat-nav-inner { justify-content: flex-start; height: 50px; }
  .cn-pill-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .cn-pill {
    display: inline-flex; align-items: center;
    padding: 7px 22px; font-size: 15px; color: #333;
    border-radius: var(--cn-pill-radius, 20px); text-decoration: none;
    transition: all .18s; white-space: nowrap; line-height: 1.4; font-weight: 400;
  }
  .cn-pill:hover { background: #eef3ff; color: #1b5bd5; }
  .cn-pill.active { background: #1b5bd5; color: #fff; font-weight: 500; }
  .cn-pill.active:hover { background: #1550c0; color: #fff; }

  /* ============================================
     4. COOL SITES SECTION (tabs + grid)
     ============================================ */
  .cool-sites {
    width: 1200px;
    max-width: 100%;
    margin: 5px auto 3px;
    background: #fff;
    border: 1px solid #efefef;
    border-top: none;
    border-radius: var(--cs-radius, 6px);
  }
  /* Tabs */
  .cs-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding: 0 40px 0 14px;
  }
  .cs-tab {
    padding: 14px 36px 12px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s;
  }
  .cs-tab:hover { color: #0166ff; }
  .cs-tab.active {
    color: #0166ff;
    font-weight: 600;
  }
  .cs-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 2px;
    background: #0166ff;
    border-radius: 1px;
  }
  .cs-tab.active .tab-caret {
    display: block;
  }
  .tab-caret {
    display: none;
    position: absolute;
    bottom: -6px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #bfc8d6;
  }
  .cs-plus {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #ccc;
    font-size: 15px; line-height: 1;
    transition: border-color .15s, color .15s;
  }
  .cs-plus:hover { border-color: #999; color: #666; }

  /* Site grid — 列数由 --cs-cols 驱动；minmax(0,1fr) 确保始终一行、间距随列数自适应 */
  .cs-row {
    display: grid;
    grid-template-columns: repeat(var(--cs-cols, 8), minmax(0, 1fr));
    padding: 0 6px;
    border-bottom: 1px solid #f5f5f5;
  }
  .cs-row:last-child { border-bottom: none; }
  .cs-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    cursor: pointer;
    transition: background .12s;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    font-size: 15px;
    color: #333;
  }
  .cs-item:hover { background: #f9f9f9; }
  .cs-icon {
    width: 20px; height: 20px; min-width: 20px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700;
    color: #fff;
    overflow: hidden;
  }
  .cs-icon.round { border-radius: 50%; }
  .cs-icon svg { width: 20px; height: 20px; }
  .cs-name { overflow: hidden; text-overflow: ellipsis; }
  /* 分类推荐：各分类内容面板（默认仅显示当前选中分类）*/
  .cs-panel { display: none; }
  .cs-panel.active { display: block; }
  .cs-empty { padding: 30px 16px; text-align: center; color: #999; font-size: 14px; }
  .c-orange { color: #f25d30; }
  .c-red { color: #e1251b; }
  .c-green { color: #3da842; }

  /* ============================================
     5. MAIN CONTENT AREA (two-column layout)
     ============================================ */
  .main-area {
    width: 1200px;
    max-width: 100%;
    margin: 12px auto 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  /* -- Left Column -- */
  .left-col {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 4px;
  }
  /* Nav tabs */
  .nav-tabs {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
    height: 46px;
  }
  .nav-tab {
    display: flex; align-items: center; gap: 4px;
    padding: 0 16px; height: 100%;
    font-size: 14px; color: #666;
    cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s;
  }
  .nav-tab:hover { color: #f25d30; }
  .nav-tab.active { color: #333; font-weight: 600; border-bottom-color: #333; }
  .nav-tab .t-icon { font-size: 13px; }
  .nav-controls {
    margin-left: auto;
    display: flex; align-items: center; gap: 14px;
    font-size: 13px; color: #999;
  }
  .nav-controls span { display: flex; align-items: center; gap: 4px; cursor: pointer; }
  .nav-controls span:hover { color: #666; }
  .btn-add {
    background: #f25d30; color: #fff;
    border: none; border-radius: 4px;
    padding: 5px 14px; font-size: 12px;
    cursor: pointer; white-space: nowrap;
    display: flex; align-items: center; gap: 3px;
  }
  .btn-add:hover { background: #e04d22; }
  /* Category tags */
  .cat-tags {
    display: flex; flex-wrap: wrap; gap: 0;
    padding: 8px 16px 4px;
    border-bottom: 1px solid #f0f0f0;
  }
  .cat-tag {
    display: flex; align-items: center; gap: 3px;
    padding: 4px 12px; margin: 0 2px 4px 0;
    font-size: 12px; color: #666;
    cursor: pointer; white-space: nowrap;
    border-radius: 2px;
    transition: color .15s, background .15s;
  }
  .cat-tag:hover { color: #f25d30; background: #fff5f2; }
  .cat-tag .tag-icon { font-size: 11px; color: #bbb; }
  /* Notice */
  .notice-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    font-size: 12px; color: #f5a623;
    border-bottom: 1px solid #f0f0f0;
    background: #fffdf5;
  }
  .notice-bar .close { margin-left: auto; color: #ccc; cursor: pointer; font-size: 14px; }
  .notice-bar .close:hover { color: #999; }
  /* Site sections */
  .site-section {
    display: flex;
    border-bottom: 1px solid #f5f5f5;
  }
  .site-section:last-child { border-bottom: none; }
  .sec-label {
    width: 72px; min-width: 72px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px; padding: 16px 0;
    border-right: 1px solid #f5f5f5;
    color: #888; font-size: 12px;
    text-decoration: none; transition: color .15s;
  }
  .sec-label .sec-icon { font-size: 22px; color: #bbb; transition: color .15s; }
  a.sec-label:hover { color: #1b5bd5; }
  a.sec-label:hover .sec-icon { color: #1b5bd5; }
  .sec-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px 0;
  }
  .sg-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    font-size: 14px; color: #333;
    cursor: pointer; white-space: nowrap;
    transition: background .1s;
  }
  .sg-item:hover { background: #f9f9f9; }
  .sg-icon {
    width: 22px; height: 22px; min-width: 22px;
    border-radius: var(--cn-icon-radius, 6px);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff;
    overflow: hidden;
  }
  .sg-icon.r { border-radius: 50%; }

  /* -- Right Column -- */
  .right-col {
    width: 310px; min-width: 310px;
    display: flex; flex-direction: column; gap: 12px;
  }
  /* Calendar card */
  .cal-card {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 4px;
    --cal-accent: #f25d30;
  }
  .cal-tabs {
    display: flex; border-bottom: 1px solid #f0f0f0;
  }
  .cal-tab {
    flex: 1; text-align: center;
    padding: 10px 0; font-size: 13px;
    color: #666; cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s;
  }
  .cal-tab:hover { color: var(--cal-accent, #f25d30); }
  .cal-tab.active { color: var(--cal-accent, #f25d30); font-weight: 600; border-bottom-color: var(--cal-accent, #f25d30); }
  /* 面板切换：日历 / 便签 / 二维码 */
  .cal-panel { display: none; }
  .cal-panel.active { display: block; }
  .cal-header {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 16px 4px; gap: 8px;
    position: relative;
  }
  .cal-header .arrow { cursor: pointer; color: #ccc; font-size: 16px; padding: 4px; user-select: none; }
  .cal-header .arrow:hover { color: var(--cal-accent, #f25d30); }
  .cal-header .cal-title { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 300; color: #333; letter-spacing: 1px; }
  .cal-header .cal-title b { font-weight: 600; }
  .cal-sel { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; padding: 1px 5px; border-radius: 6px; transition: background .12s; }
  .cal-sel:hover { background: #f2f5fb; }
  .cal-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #aab0b6; margin-top: 4px; transition: border-top-color .12s; }
  .cal-sel:hover .cal-caret { border-top-color: var(--cal-accent, #f25d30); }
  .cal-daynum { font-weight: 600; }
  /* 年 / 月 选择弹层 */
  .cal-pick {
    position: absolute; top: calc(100% + 4px);
    background: #fff; border: 1px solid #e8eaed; border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0,0,0,.16);
    padding: 10px; z-index: 60; display: none;
  }
  .cal-pick.open { display: block; }
  .cal-pick-grid { display: grid; gap: 5px; }
  .cal-pick-cell {
    text-align: center; padding: 8px 0; font-size: 13px; color: #555;
    border-radius: 6px; cursor: pointer; transition: background .12s, color .12s;
  }
  .cal-pick-cell:hover { background: #f2f5fb; color: var(--cal-accent, #f25d30); }
  .cal-pick-cell.on { background: var(--cal-accent, #f25d30); color: #fff; font-weight: 600; }
  /* 月份：卡片同宽，4 列 */
  .cal-pick-month { left: 8px; right: 8px; }
  .cal-pick-month .cal-pick-grid { grid-template-columns: repeat(4, 1fr); }
  /* 年份：横向铺开，10 列，一次全部展开不滚动（类似图2）*/
  .cal-pick-year { left: 0; width: 720px; max-width: 90vw; }
  .cal-pick-year .cal-pick-grid { grid-template-columns: repeat(10, 1fr); }
  .cal-weekdays {
    display: grid; grid-template-columns: repeat(7,1fr);
    padding: 8px 10px 4px; font-size: 11px; color: #999; text-align: center;
  }
  .cal-days {
    display: grid; grid-template-columns: repeat(7,1fr);
    padding: 0 10px 6px; gap: 2px 0;
  }
  .cal-day {
    text-align: center; padding: 3px 0; cursor: pointer; border-radius: 4px;
    transition: background .1s; position: relative;
  }
  .cal-day:hover { background: #f5f5f5; }
  /* 所有日期格数字统一为固定尺寸的圆形容器：保证每格高度一致，选中/今天的圈不再改变行高 */
  .cal-day .d {
    font-size: 14px; color: #333;
    width: 26px; height: 26px; line-height: 26px;
    margin: 0 auto; border-radius: 50%; box-sizing: border-box;
  }
  .cal-day .l { font-size: 9px; color: #bbb; height: 12px; line-height: 12px; white-space: nowrap; overflow: hidden; }
  /* 选中日：实心圆（仅加底色，不改尺寸）*/
  .cal-day.sel .d { background: var(--cal-accent, #f25d30); color: #fff; }
  .cal-day.sel .l { color: var(--cal-accent, #f25d30); }
  /* 今天（未选中时）：细环标记（仅加描边，不改尺寸）*/
  .cal-day.today:not(.sel) .d { color: var(--cal-accent, #f25d30); border: 1px solid var(--cal-accent, #f25d30); line-height: 24px; }
  .cal-day.today:not(.sel) .l { color: var(--cal-accent, #f25d30); }
  .cal-day.dim .d { color: #ccc; }
  .cal-day.dim .l { color: #ddd; }
  .cal-day.weekend .d { color: var(--cal-accent, #f25d30); }
  .cal-day.festival .l { color: #4caf50; }
  /* 法定节假日：名称标红 + 右上角“休”角标 */
  .cal-day.holiday .l { color: #e1251b; }
  .cal-day .cal-rest {
    position: absolute; top: 0; right: 2px;
    width: 13px; height: 13px; line-height: 13px;
    font-size: 8px; font-style: normal; text-align: center;
    background: #3da842; color: #fff; border-radius: 50%;
  }
  .cal-day.dim .cal-rest { display: none; }
  /* 便签面板 */
  .cal-note {
    width: 100%; height: 220px; border: none; resize: none; outline: none;
    padding: 14px 16px; font-size: 13px; color: #333; line-height: 1.7;
    font-family: inherit; background: transparent;
  }
  .cal-note-tip { padding: 0 16px 12px; font-size: 11px; color: #c0c4cc; }
  /* 二维码面板 */
  .cal-qr-panel { padding: 18px 16px 16px; text-align: center; }
  .cal-qr-box { display: flex; align-items: center; justify-content: center; min-height: 180px; }
  .cal-qr-box img { width: 180px; height: 180px; }
  .cal-qr-tip { margin-top: 10px; font-size: 12px; color: #888; word-break: break-all; line-height: 1.5; }
  .cal-footer {
    padding: 8px 14px; font-size: 12px; color: #999;
    border-top: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 6px;
  }
  .cal-footer .cal-lunar { color: #9aa0a6; white-space: nowrap; }
  .cal-footer .cal-today-btn {
    margin-left: auto; cursor: pointer; white-space: nowrap;
    color: var(--cal-accent, #f25d30); font-size: 12px;
    transition: opacity .12s;
  }
  .cal-footer .cal-today-btn:hover { opacity: .65; }
  /* Hot search */
  .hot-card {
    background: #fff; border: 1px solid #efefef; border-radius: 4px;
  }
  .hot-header {
    display: flex; align-items: center;
    padding: 12px 16px 8px; gap: 10px;
  }
  .hot-title {
    font-size: 14px; font-weight: 600; color: #f25d30;
    background: #fff5f2; padding: 4px 14px; border-radius: 4px;
  }
  .hot-meta { font-size: 11px; color: #ccc; margin-left: 4px; }
  .hot-refresh { margin-left: auto; font-size: 12px; color: #999; cursor: pointer; display: flex; align-items: center; gap: 3px; }
  .hot-refresh:hover { color: #666; }
  .hot-list { padding: 0 16px 12px; }
  .hot-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
    font-size: 13px; color: #333;
    cursor: pointer;
    transition: color .15s;
    text-decoration: none;
  }
  .hot-item:hover { color: #f25d30; }
  .hot-item:last-child { border-bottom: none; }

  /* ── 专题（原热搜榜改造：左列图片专题位，尺寸由后台逐条设置）── */
  .topic-card { background: #fff; border: 1px solid #efefef; border-radius: 4px; }
  .topic-header { display: flex; align-items: center; padding: 12px 16px 8px; gap: 10px; }
  .topic-title {
    font-size: 14px; font-weight: 600; color: #f25d30;
    background: #fff5f2; padding: 4px 14px; border-radius: 4px;
  }
  .topic-more { margin-left: auto; font-size: 12px; color: #999; text-decoration: none; transition: color .15s; white-space: nowrap; }
  .topic-more:hover { color: #f25d30; }
  .topic-more-disabled { color: #ccc; cursor: default; }
  /* 横向排布、自动换行：每条宽度由行内 style 决定；未设宽度则占满一行 */
  .topic-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 0 16px 14px; }
  .topic-item {
    position: relative; flex: 0 0 auto; width: 100%; max-width: 100%;
    overflow: hidden; border-radius: 6px; line-height: 0;
    background: #f3f5f9; text-decoration: none; cursor: pointer;
  }
  .topic-item-static { cursor: default; }
  /* 未设高度：按图片比例自适应；设了高度则行内 style 注入 height + object-fit:cover 裁切填充 */
  .topic-img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
  .topic-item:hover .topic-img { transform: scale(1.05); }
  /* 无图占位：浅色块 + 居中名称（高度取行内 style，未设则 min-height 撑起） */
  .topic-ph {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box;
    width: 100%; min-height: 70px; padding: 6px 8px; text-align: center;
    font-size: 12px; line-height: 1.4; color: #5a6577; background: #eef2fb;
  }
  /* 鼠标悬停在图片上时，从底部浮出的专题名称 */
  .topic-tip {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 8px 6px; font-size: 12px; line-height: 1.3; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
  }
  .topic-item:hover .topic-tip { opacity: 1; transform: translateY(0); }

  /* 专题——幻灯片（轮播）模式：复用 .ad-carousel 机制；图片区(统一宽高裁切) + 下方专题名称 */
  .topic-slide-wrap { padding: 0 16px 14px; }
  .topic-carousel { border-radius: 6px; }
  .topic-carousel .tcar-slide { display: none; color: inherit; text-decoration: none; }
  .topic-carousel .tcar-slide.active { display: block; }
  .topic-carousel .tcar-pic { display: block; position: relative; width: 100%; overflow: hidden; line-height: 0; background: #f3f4f7; }
  .topic-carousel .tcar-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .topic-carousel .tcar-ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; padding: 6px 8px; box-sizing: border-box;
    font-size: 13px; line-height: 1.4; text-align: center; color: #5a6577; background: #eef2fb;
  }
  .topic-carousel .tcar-name {
    display: block; height: 30px; line-height: 30px; padding: 0 12px;
    font-size: 13px; color: #333; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fff;
  }
  /* 圆点位于图片底部（专题名称栏之上） */
  .topic-carousel .ad-car-dots { bottom: 36px; }
  /* 当前幻灯片的圆点为品牌蓝，其余不变 */
  .topic-carousel .ad-car-dot.active { background: #1b5bd5; }

  /* Ad block */
  .ad-block {
    border: 1px solid #efefef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }
  .ad-block img {
    width: 100%;
    height: auto;
    display: block;
  }
  .ad-block .ad-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,0.45);
    padding: 1px 6px;
    border-radius: 2px;
  }
  /* 广告位（广告系统） */
  .ad-slot {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .ad-slot-item {
    display: block;
    position: relative;
    border: 1px solid #efefef;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
  }
  .ad-slot-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  /* 广告位「圆角」设置（后台广告位管理）：作用于该广告位下所有广告项 */
  .ad-slot-rounded .ad-slot-item { border-radius: var(--ad-radius); overflow: hidden; }
  /* 图片广告右上角“广告”角标 + 关闭按钮（仅在后台为该图片广告开启时输出） */
  .ad-badge {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    display: inline-flex; align-items: stretch; line-height: 1; cursor: pointer;
    font-size: 11px; border-radius: 3px; overflow: hidden;
    background: rgba(0,0,0,.45); color: #fff;
  }
  .ad-badge-label { display: inline-flex; align-items: center; padding: 2px 6px; }
  /* 「广告」角标显示在左上角（用于切换圆点在右侧时，避免与圆点同侧） */
  .ad-badge-left { left: 6px; right: auto; }
  /* 关闭按钮默认收起，仅在鼠标悬停或点击“广告”标识后出现 */
  .ad-badge-x {
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: rgba(255,255,255,.18); color: #fff;
    font-size: 14px; line-height: 1; cursor: pointer; margin: 0;
    max-width: 0; padding: 0; opacity: 0; overflow: hidden;
    transition: max-width .18s ease, padding .18s ease, opacity .18s ease;
  }
  /* 「关闭本次广告展示」提示：默认完全收起（仅显示“广告”），悬停或点击“广告”后才展开 */
  .ad-badge-tip {
    display: inline-flex; align-items: center; white-space: nowrap;
    width: 0; min-width: 0; max-width: 0; padding: 0; opacity: 0; overflow: hidden; cursor: pointer;
    border-left: 1px solid rgba(255,255,255,.22);
    transition: max-width .22s ease, padding .22s ease, opacity .18s ease;
  }
  .ad-badge:hover .ad-badge-tip,
  .ad-badge.open .ad-badge-tip { width: auto; max-width: 150px; padding: 2px 5px 2px 7px; opacity: 1; }
  .ad-badge-tip:hover { background: rgba(255,255,255,.14); }
  .ad-badge:hover .ad-badge-x,
  .ad-badge.open .ad-badge-x { max-width: 32px; padding: 0 7px; opacity: 1; }
  .ad-badge-x:hover { background: rgba(255,255,255,.36); }
  /* 通栏广告（导航网格下方 / 期刊下方）：与内容区同宽居中 */
  .ad-pos-banner {
    width: 1200px;
    max-width: 100%;
    margin: 12px auto 0;
  }
  .ad-pos-banner .ad-slot { gap: 10px; }
  .ad-pos-banner .ad-slot-item { border-color: #ececec; }
  /* 期刊推荐上方通栏：与下方期刊区留少量间距 */
  .ad-pos-journal-above { margin-bottom: 4px; }
  /* 导航网格下方横幅：横向并排展示、去掉每条广告边框（仅作用于该位置，期刊下方横幅不受影响） */
  /* 收紧与上方导航网格、下方内容区的间距（上方原 12px、下方来自 .main-area 的 12px 顶距）。
     下方间距用相邻兄弟选择器，仅当该广告存在时生效；广告关闭时 .main-area 仍保留默认 12px。 */
  .ad-pos-nav { margin-top: 3px; }
  .ad-pos-nav + .main-area { margin-top: 3px; }
  .ad-pos-nav .ad-slot {
    flex-direction: row;       /* 由纵向堆叠改为横向并排 */
    flex-wrap: wrap;           /* 数量较多时自动换行，避免过窄 */
    gap: 10px;
  }
  .ad-pos-nav .ad-slot-item {
    flex: 1 1 160px;           /* 横向等分铺满整幅宽度（每条等宽） */
    min-width: 0;              /* 允许收缩，配合文字省略号 */
    border: none;              /* 去掉边框 */
  }
  .ad-pos-nav .ad-slot-item img { max-width: 100%; height: auto; }
  .ad-pos-nav .ad-text { padding: 4px 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 顶部信息栏广告：小幅内联，跟随日期天气 */
  .ad-pos-top { display: inline-flex; align-items: center; margin-left: 14px; vertical-align: middle; }
  .ad-pos-top .ad-slot { flex-direction: row; gap: 8px; }
  .ad-pos-top .ad-slot-item { border: none; border-radius: 3px; }
  .ad-pos-top .ad-slot-item img { height: 20px; width: auto; }
  /* 头部横幅广告：登录信息列下方 —— 横排文字广告，宽度与上方「头部右侧快捷项」(.info-columns) 对齐。
     做法：.header-info 改为纵向排列，容器宽度只由信息列决定；广告用 width:0 + min-width:100%
     占满该宽度却不再撑宽容器；三条广告以 space-between 在该宽度内均匀分布，间距随之收紧。 */
  .header-info { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
  .ad-pos-header { width: 0; min-width: 100%; box-sizing: border-box; margin-top: 2px; }
  .ad-pos-header .ad-slot {
    flex-direction: row;            /* 横排 */
    flex-wrap: nowrap;              /* 不换行 */
    justify-content: space-between; /* 三条均匀分布，正好撑满信息列宽度 */
    align-items: center;
    gap: 8px;                       /* 最小间距；空间富余时由 space-between 再拉开 */
  }
  .ad-pos-header .ad-slot-item {
    flex: 0 1 auto;                 /* 自然宽度，空间不足时可收缩 */
    min-width: 0;                   /* 收缩时配合文字省略号 */
    border: none;                   /* 去掉每条广告边框 */
  }
  .ad-pos-header .ad-slot-item img { max-width: 100%; height: auto; }
  /* 头部横排里的文字广告：紧凑居中、过长省略；文字颜色与背景颜色均交由后台「广告管理」控制
     （背景颜色留空=透明，文字颜色留空=默认蓝；后台填了颜色则以行内样式为准） */
  .ad-pos-header .ad-text {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 文字广告 */
  .ad-text {
    display: block;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: #1b5bd5;
    word-break: break-word;
  }
  .ad-text:hover { opacity: .85; }
  /* 代码广告容器 */
  .ad-code { line-height: normal; }
  .ad-code img { max-width: 100%; }
  /* 幻灯广告（轮播） */
  .ad-carousel { position: relative; overflow: hidden; }
  .ad-car-slide { display: none; line-height: 0; }
  .ad-car-slide.active { display: block; }
  .ad-car-slide img { width: 100%; height: auto; display: block; }
  .ad-car-dots {
    position: absolute; left: 0; right: 0; bottom: 6px;
    display: flex; justify-content: center; gap: 6px;
  }
  .ad-car-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.35);
    cursor: pointer;
  }
  .ad-car-dot.active { background: #1b5bd5; }
  /* 圆点显示在左侧 / 右侧：竖排、垂直居中 */
  .ad-car-dots-left, .ad-car-dots-right {
    left: auto; right: auto; bottom: auto; top: 50%;
    transform: translateY(-50%); flex-direction: column;
  }
  .ad-car-dots-left  { left: 8px; }
  .ad-car-dots-right { right: 8px; }
  /* 幻灯左右切换箭头（两侧，垂直居中） */
  .ad-car-prev, .ad-car-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border: none; cursor: pointer;
    color: #fff; background: rgba(0,0,0,.3); border-radius: 50%;
    transition: background .2s;
  }
  .ad-car-prev { left: 8px; }
  .ad-car-next { right: 8px; }
  .ad-car-prev:hover, .ad-car-next:hover { background: rgba(0,0,0,.55); }
  /* 设置了统一高度时：图片按比例裁切铺满，避免不同尺寸图错位 */
  .ad-carousel.ad-car-fixed .ad-car-slide.active { height: 100%; }
  .ad-carousel.ad-car-fixed .ad-car-slide img { height: 100%; object-fit: cover; }
  .hot-rank {
    width: 18px; height: 18px; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    flex-shrink: 0;
  }
  .hot-rank.r1 { background: #ff4d4f; }
  .hot-rank.r2 { background: #ff7a45; }
  .hot-rank.r3 { background: #ffa940; }
  .hot-rank.rn { background: #d9d9d9; color: #999; }
  .hot-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hot-count { font-size: 11px; color: #ccc; flex-shrink: 0; }


  .main-content { min-height: 40px; }

  /* ============================================
     6. JOURNAL SCROLL SECTION
     ============================================ */
  .journal-section {
    width: 1200px;
    max-width: 100%;
    margin: 12px auto 24px;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 4px;
    overflow: hidden;
  }
  .journal-header {
    display: flex;
    align-items: center;
    padding: 14px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
  }
  .journal-header .jh-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }
  .journal-header .jh-title::before {
    content: '';
    display: inline-block;
    width: 3px; height: 16px;
    background: #1b5bd5;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
  }
  .journal-header .jh-sub {
    font-size: 12px;
    color: #bbb;
    margin-left: 12px;
  }
  .journal-header .jh-more {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: color .15s;
  }
  .journal-header .jh-more:hover { color: #f25d30; }
  .journal-header .jh-cats {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    max-width: 72%;
  }
  .journal-header .jh-cat {
    font-size: 12px;
    color: #bbb;
    white-space: nowrap;
    transition: color .15s;
  }
  .journal-header .jh-cat + .jh-cat::before {
    content: '·';
    margin: 0 8px;
    color: #ccc;
  }
  .journal-header .jh-cat:hover { color: #999; }
  .journal-track-wrapper {
    position: relative;
    overflow: hidden;
    padding: 16px 0 20px;
  }
  .journal-track-wrapper::before,
  .journal-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
  }
  .journal-track-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, transparent 100%);
  }
  .journal-track-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, #fff 0%, transparent 100%);
  }
  .journal-track {
    display: flex;
    gap: 20px;
    animation: journalScroll 30s linear infinite;
    width: max-content;
    padding: 0 10px;
  }
  .journal-track:hover {
    animation-play-state: paused;
  }
  @keyframes journalScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .journal-item {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    transition: transform .2s;
  }
  .journal-item:hover {
    transform: translateY(-4px);
  }
  .journal-cover {
    width: 120px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }
  .journal-cover .jc-tag {
    position: absolute;
    top: 6px; left: 6px;
    font-size: 9px;
    font-weight: 400;
    background: rgba(255,255,255,0.85);
    color: #f25d30;
    padding: 1px 5px;
    border-radius: 2px;
    text-shadow: none;
  }
  .journal-cover .jc-issue {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    font-size: 10px;
    font-weight: 400;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
    padding: 14px 6px 5px;
    text-shadow: none;
    text-align: center;
  }
  .journal-name {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ============================================
     7. UNIVERSITY SEARCH SECTION
     ============================================ */
  .uni-section {
    width: 1200px; max-width: 100%;
    margin: 0 auto 24px;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 4px;
    overflow: hidden;
  }
  .uni-header {
    display: flex; align-items: center; flex-wrap: wrap;
    padding: 14px 20px 12px; gap: 12px;
    border-bottom: 1px solid #f0f0f0;
  }
  .uni-header .uh-title {
    font-size: 16px; font-weight: 600; color: #333;
  }
  .uni-header .uh-title::before {
    content: ''; display: inline-block;
    width: 3px; height: 16px;
    background: #1b5bd5; border-radius: 2px;
    margin-right: 8px; vertical-align: middle;
  }
  .uni-search {
    margin-left: auto; display: flex; align-items: center;
    border: 1px solid #ddd; border-radius: 20px;
    overflow: hidden; height: 32px;
  }
  .uni-search input {
    border: none; outline: none;
    padding: 0 14px; font-size: 12px;
    width: 200px; height: 100%;
    background: transparent;
  }
  .uni-search input::placeholder { color: #bbb; }
  .uni-search button {
    border: none; background: #1b5bd5;
    color: #fff; padding: 0 16px;
    height: 100%; font-size: 12px;
    cursor: pointer; white-space: nowrap;
    transition: background .15s;
  }
  .uni-search button:hover { background: #1749b0; }
  .uni-filters {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
  }
  .uni-filters .uf-label { font-size: 12px; color: #999; margin-right: 4px; }
  .uf-tag {
    font-size: 12px; color: #666;
    padding: 3px 12px; border-radius: 14px;
    border: 1px solid #e8e8e8;
    cursor: pointer; white-space: nowrap;
    transition: all .15s;
  }
  .uf-tag:hover { color: #1b5bd5; border-color: #1b5bd5; }
  .uf-tag.active { color: #fff; background: #1b5bd5; border-color: #1b5bd5; }
  .uni-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; padding: 0;
  }
  .uni-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    border-right: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer; transition: background .12s;
  }
  .uni-card:nth-child(4n) { border-right: none; }
  .uni-card:hover { background: #fdf8f6; }
  .uni-badge {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    position: relative;
  }
  .uni-badge .ub-rank {
    position: absolute; top: -4px; right: -4px;
    width: 16px; height: 16px;
    border-radius: 50%; font-size: 9px;
    display: flex; align-items: center; justify-content: center;
    background: #1b5bd5; color: #fff; font-weight: 600;
  }
  .uni-info { flex: 1; min-width: 0; }
  .uni-info .ui-name {
    font-size: 13px; font-weight: 600; color: #333;
    margin-bottom: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .uni-info .ui-meta {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; color: #aaa;
  }
  .uni-info .ui-tag {
    font-size: 9px; padding: 0 4px; border-radius: 2px;
    border: 1px solid; line-height: 1.6;
  }
  .ui-tag.t985 { color: #e53935; border-color: #e53935; }
  .ui-tag.t211 { color: #1565c0; border-color: #1565c0; }
  .ui-tag.tsyl { color: #2e7d32; border-color: #2e7d32; }

  /* ============================================
     8. FOOTER — simple light style
     ============================================ */
  .site-footer {
    margin-top: 32px;
    background: #fff;
    border-top: 1px solid #eee;
  }
  .footer-inner {
    width: 1200px; max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .ft-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 22px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .ft-stat {
    flex: 1;
    font-size: 13px;
    color: #888;
  }
  .ft-stat b {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 2px;
  }
  .ft-nav {
    padding: 20px 0 8px;
    font-size: 13px;
    color: #666;
  }
  .ft-nav a {
    color: #555;
    padding: 0 12px;
    transition: color .15s;
  }
  .ft-nav a:hover { color: #f25d30; }
  .ft-nav-sep { color: #ddd; }
  .ft-copy {
    padding: 6px 0 22px;
    font-size: 12px;
    color: #aaa;
  }

  /* ============================================
     ADDITIONAL DYNAMIC STYLES
     ============================================ */
  .ad-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
    border-radius: 4px;
  }
  .uni-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
  }
  .cat-tag { cursor: pointer; transition: all .15s; }
  .cat-tag:hover { background: #fff3ef; color: #f25d30; }
  .cn-item { cursor: pointer; }

/* 网址图标：图片图标铺满徽标外框（加载失败 onerror 移除，露出文字徽标兜底） */
.cs-icon, .sg-icon { position: relative; }
.site-favicon {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #fff;
  display: block;
}

/* ============================================
   分类推荐 模式2：卡片 / 模式3：分组卡片
   ============================================ */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(var(--cs-cols, 4), minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
}
.cs-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid #eef0f4; border-radius: 10px;
  background: #fafbfc; text-decoration: none; transition: all .15s; min-width: 0;
}
.cs-card:hover { background: #fff; border-color: #d6e0ff; box-shadow: 0 4px 14px rgba(27,91,213,.08); transform: translateY(-1px); }
.cs-card-ic {
  position: relative; width: 40px; height: 40px; min-width: 40px;
  border-radius: 9px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700;
}
.cs-card-ic.round { border-radius: 50%; }
.cs-card-tx { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.cs-card-tt { font-size: 14px; font-weight: 600; color: #1f2329; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-card-ds { font-size: 12px; color: #8a9099; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cs-groups {
  display: grid;
  grid-template-columns: repeat(var(--cs-cols, 3), minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px;
}
.cs-group {
  border: 1px solid #eef0f4; border-radius: 12px;
  background: linear-gradient(180deg, #f7f9ff 0%, #fafbfc 100%);
  padding: 14px 16px; min-width: 0;
}
.cs-group-hd {
  font-size: 14px; font-weight: 700; color: #1f2329; margin-bottom: 12px;
  padding-left: 10px; border-left: 3px solid #1b5bd5; line-height: 1.2;
}
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; font-size: 13px; color: #4a5160;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 8px;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.cs-chip:hover { color: #1b5bd5; border-color: #1b5bd5; background: #eef3ff; }

@media (max-width: 820px) {
  .cs-cards, .cs-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cs-cards, .cs-groups { grid-template-columns: 1fr; }
}

/* ── 全网热点条（位于分类标签栏左侧，独立 hb- 前缀避免与 .hot-item 等冲突）── */
.hb-bar {
  flex: 1 1 0; min-width: 0; height: 28px;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden; margin-right: 18px;
}
.hb-label {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: #e8541e; line-height: 28px;
  white-space: nowrap;
}
.hb-label::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #e8541e; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(232,84,30,.22);
}
.hb-viewport { flex: 1; min-width: 0; height: 28px; overflow: hidden; position: relative; }
.hb-track { position: absolute; top: 0; left: 0; will-change: transform; animation: none linear infinite; }
.hb-bar:hover .hb-track { animation-play-state: paused; }
.hb-seq { display: flex; align-items: center; }
.hb-item { display: inline-flex; align-items: center; color: #4a5160; text-decoration: none; font-size: 14px; line-height: 28px; white-space: nowrap; transition: color .15s; }
.hb-item:hover { color: #e8541e; }
.hb-item:hover .hb-rtext { text-decoration: underline; }
.hb-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; margin-right: 7px; flex-shrink: 0;
  font-size: 11px; font-weight: 700; font-style: normal; color: #fff;
  background: #c2c6cf; border-radius: 4px;
}
.hb-rank.r1 { background: #fe2d46; }
.hb-rank.r2 { background: #ff7a18; }
.hb-rank.r3 { background: #ffb22e; }
/* 横向跑马灯：track 横排，两份 seq 并排无缝；条目间距 */
.hb-marquee .hb-track { display: flex; flex-direction: row; }
.hb-marquee .hb-seq { flex-direction: row; }
.hb-marquee .hb-item { margin-right: 26px; }
/* 纵向滚动：track 纵排，视口高度=单行 */
.hb-vertical .hb-track { display: flex; flex-direction: column; }
.hb-vertical .hb-seq { flex-direction: column; align-items: flex-start; }
.hb-vertical .hb-item { height: 28px; overflow: hidden; }
@keyframes hb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hb-vscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ── 首页「分类网址」主内容区（.left-col）可配置项：列数 / 分类名位置 / 卡片密度 ──
   由后台「首页样式 → 分类网址」控制；类名挂在 .left-col 上，仅作用于该主内容区。── */
/* 每行列数（覆盖默认 4 列） */
.left-col.cn-cols-3 .sec-grid { grid-template-columns: repeat(3, 1fr); }
.left-col.cn-cols-4 .sec-grid { grid-template-columns: repeat(4, 1fr); }
.left-col.cn-cols-5 .sec-grid { grid-template-columns: repeat(5, 1fr); }
.left-col.cn-cols-6 .sec-grid { grid-template-columns: repeat(6, 1fr); }
/* 分类名位置：顶部（名称作为分组头部，网格占满整行） */
.left-col.cn-label-top .site-section { flex-direction: column; }
.left-col.cn-label-top .sec-label {
  width: auto; min-width: 0; flex-direction: row; justify-content: flex-start;
  gap: 8px; padding: 10px 16px 6px;
  border-right: none; border-bottom: 1px solid #f5f5f5;
}
.left-col.cn-label-top .sec-label .sec-icon { font-size: 18px; }
/* 分类名位置：不显示（隐藏左侧标签栏，网格占满整行） */
.left-col.cn-label-none .sec-label { display: none; }
/* 卡片密度 */
.left-col.cn-density-compact .sg-item { padding: 6px 12px; font-size: 12px; }
.left-col.cn-density-loose   .sg-item { padding: 14px 16px; }
/* 网址标签(Tab)切换：隐藏非当前标签的分组区块 / 分类标签 */
.left-col .cnt-hide { display: none !important; }
.left-col .cnt-nav .nav-tab { user-select: none; }
/* 网址标签(Tab) 文字颜色：普通 --cnt-color，选中 --cnt-active（留空则选中跟随普通色，再退默认） */
.left-col .cnt-nav .nav-tab { color: var(--cnt-color, #666); }
.left-col .cnt-nav .nav-tab.active { color: var(--cnt-active, var(--cnt-color, #333)); border-bottom-color: var(--cnt-active, var(--cnt-color, #333)); }
/* 网址标签(Tab) 横向拖拽重排：抓手光标 + 拖拽态反馈；touch-action:pan-y 保证触屏可纵向滚动、横向交给拖拽 */
.left-col .cnt-nav .cnt-tab { cursor: grab; touch-action: pan-y; }
.left-col .cnt-nav .cnt-tab.cnt-dragging {
  cursor: grabbing; opacity: .55;
  background: rgba(0, 0, 0, .04); border-radius: 6px;
}
/* 每个标签名称前的拖拽标识符：6 点抓手，提示该分类标签可左右拖动排序 */
.left-col .cnt-nav .cnt-tab-grip {
  fill: #c2c6ce; opacity: .85; flex-shrink: 0;
  transition: fill .15s, opacity .15s;
}
.left-col .cnt-nav .cnt-tab:hover .cnt-tab-grip { fill: #f25d30; opacity: 1; }
.left-col .cnt-nav .cnt-tab.active .cnt-tab-grip { fill: #8a8f99; opacity: 1; }
.left-col .cnt-nav .cnt-tab.cnt-dragging .cnt-tab-grip { fill: #f25d30; }
/* 排序下拉菜单（默认 / 按访问量 / 按添加顺序） */
.sort-menu { position: relative; }
.sort-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; color: #999;
  padding: 4px 2px; line-height: 1; white-space: nowrap;
}
.sort-trigger:hover { color: #666; }
.sort-trigger .sort-caret { font-size: 10px; transition: transform .15s; }
.sort-trigger[aria-expanded="true"] .sort-caret { transform: rotate(180deg); }
.sort-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 136px; padding: 5px;
  background: #fff; border: 1px solid #eef0f2; border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: none;
}
.sort-dropdown.open { display: block; }
.sort-option {
  position: relative; display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; color: #555;
  padding: 8px 26px 8px 11px; border-radius: 6px; white-space: nowrap;
}
.sort-option:hover { background: #f5f6f8; color: #333; }
.sort-option.is-active { color: #1b5bd5; font-weight: 600; }
.sort-option.is-active::after {
  content: "\2713"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-weight: 700; font-size: 12px;
}
