:root{
  /* 主色调：红白（严格不使用绿色作为主视觉） */
  --red:#e60012;
  --red2:#ff2d2d;
  --red3:#ff5a5a;
  --bg:#f5f6fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e7e9f1;

  /* 辅助点缀色（不含绿色） */
  --acc-blue:#3b82f6;
  --acc-cyan:#06b6d4;
  --acc-amber:#f59e0b;
  --acc-purple:#a855f7;
  --acc-slate:#334155;

  --shadow: 0 12px 30px rgba(16,24,40,.08);
  --shadow2: 0 8px 18px rgba(16,24,40,.08);
  --radius:14px;
  --radius2:12px;
  --max:1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC","Hiragino Sans GB","Microsoft YaHei", Arial, "Noto Sans CJK SC", sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 14px;}

/* ===== 顶部黑条（参考图上方的顶栏气质） ===== */
.topbar{
  background:radial-gradient(120% 120% at 18% 10%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, #fff 0%, #fff5f5 35%, #ffe8e8 70%, #fff 100%);
  color:#333;
  font-size:14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  position:relative;
  z-index:1000000;
}
.topbar .row{
  height: 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.topbar .left, .topbar .right{display:flex; align-items:center; gap:30px; flex-wrap:wrap}
.topbar .pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
}
.topbar .dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--red3);
  box-shadow:0 0 0 3px rgba(255,90,90,.18);
}
.topbar a{opacity:.9;color:inherit;text-decoration:none}
.topbar a:hover{opacity:1;color:var(--red);text-decoration:none}

/* 顶栏按钮 */
.topbar button{
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  /* font-weight: 600; */
  cursor: pointer;
  transition: all 0.15s ease;
}
.topbar .btn-register{
  background: linear-gradient(135deg, var(--red), var(--red3));
  color: #fff;
  box-shadow: 0 8px 16px rgba(230,0,18,.15);
  margin-right: -22px;
}
.topbar .btn-register:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(230,0,18,.20);
}
.topbar .btn-login{
  background: rgba(255,255,255,.10);
  color: inherit;
  border: 1px solid rgba(0,0,0,.08);
}
.topbar .btn-login:hover{
  background: rgba(255,255,255,.20);
  color: var(--red);
  border-color: rgba(230,0,18,.15);
}

/* 登录后顶栏用户信息 */
.topbar .right.logged-in {
  align-items: center;
}

.topbar .user-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 10;
  padding: 4px 0;
}

.topbar .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  transition: all 0.2s ease;
}

.topbar .user-name {
  color: var(--red);
  font-size: 14px;
  /* font-weight: 600; */
  transition: all 0.2s ease;
}

.topbar .user-info:hover .user-name {
  color: var(--red2);
}

.topbar .user-info:hover .user-avatar {
  border-color: var(--red);
  transform: scale(1.05);
}

.topbar .user-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  z-index: 9999999;
  display: none;
  margin-top: 0;
  padding: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.topbar .user-info:hover .user-dropdown,
.topbar .user-dropdown:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 确保所有父元素都不会裁剪下拉菜单 */
.topbar, .topbar .row, .topbar .right, .topbar .right.logged-in, .topbar .user-info {
  overflow: visible !important;
  position: relative;
}

/* 下拉菜单头部 */
.topbar .dropdown-header {
  padding: 16px;
  background: linear-gradient(135deg, var(--red), var(--red3));
  color: #fff;
  text-align: center;
  border-radius: var(--radius2) var(--radius2) 0 0;
}

.topbar .dropdown-header .user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  margin-bottom: 8px;
}

.topbar .dropdown-header .user-name-large {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.topbar .dropdown-header .user-id {
  font-size: 12px;
  opacity: 0.8;
}

/* 会员福利提示 */
.topbar .member-promo {
  padding: 12px;
  background: #fff3f3;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.topbar .member-promo a {
  color: var(--red);
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
}

.topbar .member-promo a:hover {
  text-decoration: underline;
}

/* 下拉菜单项 */
.topbar .dropdown-menu {
  padding: 8px 0;
}

.topbar .dropdown-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.topbar .dropdown-menu-item:hover {
  background: rgba(230,0,18,.08);
  color: var(--red);
}

.topbar .dropdown-menu-item i {
  margin-right: 12px;
  width: 16px;
  height: 16px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.topbar .dropdown-menu-item .arrow {
  position: absolute;
  right: 16px;
  font-size: 12px;
  color: var(--muted);
}

.topbar .dropdown-menu-item:hover .arrow {
  color: var(--red);
}

/* 分割线 */
.topbar .dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

/* 退出登录项 */
.topbar .dropdown-logout {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  text-align: center;
  border-top: 1px solid var(--line);
}

.topbar .dropdown-logout:hover {
  background: rgba(230,0,18,.08);
  color: var(--red);
}

/* 图标样式 */
.topbar .icon-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.topbar .icon-id {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.topbar .icon-publish {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.topbar .icon-member {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E");
}

.topbar .icon-gift {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E");
}

.topbar .icon-tools {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.topbar .icon-app {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
}

.topbar .icon-settings {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

.topbar .icon-logout {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* 登录后右侧栏用户信息 */
.profile.logged-in .user-actions {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile.logged-in .user-actions .btn {
  justify-content: center;
  box-shadow: none;
}

.profile.logged-in .user-stats {
  margin-top: 16px;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile.logged-in .stat-item {
  text-align: center;
}

.profile.logged-in .stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}

.profile.logged-in .stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== 顶部导航区（logo + 菜单 + 搜索 + 按钮） ===== */
header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:30;
  box-shadow:0 2px 10px rgba(16,24,40,.04);
}
.header-inner{
      display:flex;
      align-items:flex-end;
      justify-content:space-between;
      gap:16px;
      padding:26px 0px 22px 0px;
    }

    .search-container{
      flex: 1;
      position: relative;
      max-width: 800px;
    }

    .search-tabs{
      display: flex;
      gap: 8px;
      position: absolute;
      top: -24px;
      left: 20px;
      z-index: 10;
    }

    .search-tab{
      width: 90px;
      height: 24px;
      padding: 0 6px;
      border: none;
      border-radius: 8px 8px 0 0;
      background: var(--red);
      color: #fff;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-align: center;
    }

    .search-tab:not(.active){
      color: #333;
      background: #ffe8e8;
    }

    .search-tab:hover{
      background: var(--red3);
    }

    .search-tab.active{
      background: var(--red2);
      box-shadow: 0 2px 8px rgba(230,0,18,.20);
    }

    .search-wrapper{
      position: relative;
      display: flex;
      align-items: center;
      border: 2px solid var(--red);
      border-radius: 999px;
      overflow: hidden;
      height: 48px;
    }

    .search-wrapper input{
      flex: 1;
      height: 100%;
      padding: 0 120px 0 20px;
      border: none;
      outline: none;
      font-size: 14px;
      background: #fff;
      border-radius: 999px;
    }

    .btn.btn-primary.search-btn{
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width: 100px;
      padding: 0 20px;
      border: none;
      border-radius: 0 999px 999px 0;
      background: var(--red);
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      cursor: default;
      transition: none;
      box-shadow: none;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .search-icon{
      color: #fff;
      flex-shrink: 0;
    }

    #btnPostTop svg{
      animation: rotate 3s ease-in-out infinite;
    }

    @keyframes rotate{
      0%, 70%{ transform: rotate(0deg); }
      100%{ transform: rotate(180deg); }
    }

    .btn.btn-primary.search-btn:hover,
    .btn.btn-primary.search-btn:active,
    .btn.btn-primary.search-btn:focus{
      background: var(--red) !important;
      transform: none !important;
      box-shadow: none !important;
      outline: none !important;
    }

    #btnPostTop{
      width: 280px;
      background: transparent;
      color: var(--red);
      border: 2px solid var(--red);
      box-shadow: none;
      font-weight: 800;
      font-size: 16px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    #btnPostTop:hover{
      background: rgba(230,0,18,.05);
      transform: none;
      box-shadow: none;
    }

    #btnPostTop:active{
      background: rgba(230,0,18,.10);
      transform: none;
    }
.brand{
  display:flex; align-items:center; gap:10px;
  min-width:260px;
}
.toplogo{
  width: 160px; height: auto;
}
.logo{
  width:44px;height:44px;border-radius:12px;
  background:
    radial-gradient(120% 120% at 18% 10%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.0) 42%),
    linear-gradient(135deg, var(--red) 0%, var(--red2) 58%, var(--red3) 100%);
  box-shadow:0 14px 26px rgba(230,0,18,.18);
  position:relative;
  overflow:hidden;
}
.logo:before{
  content:"";
  position:absolute; inset:-24px;
  background:conic-gradient(from 120deg, rgba(255,255,255,0), rgba(255,255,255,.38), rgba(255,255,255,0));
  animation:shine 3.2s linear infinite;
}
@keyframes shine{to{transform:rotate(360deg)}}

.brand h1{margin:0; font-size:18px; line-height:1.1; letter-spacing:.2px}
.brand small{display:block; margin-top:2px; color:var(--muted); font-size:12px}

.nav{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.nav a{
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
  color:#374151;
}
.nav a:hover{background:#f3f4f6}
.nav a.active{
  background:rgba(230,0,18,.08);
  border:1px solid rgba(230,0,18,.16);
  color:var(--red);
  font-weight:800;
}

.search{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.searchbox{
  flex:1;
  max-width:520px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  box-shadow:0 10px 18px rgba(16,24,40,.06);
}
.searchbox svg{width:18px;height:18px;color:#9ca3af}
.searchbox input{border:0; outline:none; width:100%; font-size:14px}

.btn{
  border:1px solid transparent;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
  transition:.15s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn svg{width:20px;height:20px}
.btn-primary{
  color:#fff;
  background:linear-gradient(135deg, var(--red) 0%, var(--red2) 55%, var(--red3) 100%);
  box-shadow:0 14px 26px rgba(230,0,18,.18);
}
.btn-primary:hover{transform:translateY(-1px)}
.btn-ghost{
  background:#fff;
  border-color:#e5e7eb;
  color:#111827;
  box-shadow:0 10px 18px rgba(16,24,40,.08);
}
.btn-ghost:hover{background:#f9fafb}

/* ===== 页面三栏布局：左分类 / 中内容 / 右侧工具栏 ===== */
.page{padding:16px 0 40px}
.pageb{padding:0px 0 40px}
.grid{
  display:grid;
  grid-template-columns: 240px 1fr 320px;
  gap:16px;
  align-items:start;
}

.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.panel .hd{
  padding:12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfbff);
}
.panel .hd b{font-size:14px}
.panel .hd .tag{
  font-size:12px;
  color:#fff;
  padding:4px 8px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--red), var(--red3));
  box-shadow:0 12px 18px rgba(230,0,18,.14);
}

/* ===== 左侧分类列表（贴近参考图：块状栏目+计数） ===== */
.cats{padding:16px 10px; display:flex; flex-direction:column; gap:13px}
.cat{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid #eef0f6;
  background:linear-gradient(180deg,#fff,#fcfcff);
  cursor:pointer;
  transition:.15s ease;
}
.cat:hover{transform:translateY(-1px); box-shadow:0 16px 26px rgba(16,24,40,.10)}
.cat .left{display:flex; align-items:center; gap:10px; padding-left: 2px 0px 1px 10px;}
.ico{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  color:#fff;
  box-shadow:0 12px 18px rgba(16,24,40,.10);
}
.ico svg{width:18px;height:18px}
.cat .name{font-weight:900; font-size:14px}
.cat small{display:block; margin-top:2px; color:var(--muted); font-size:12px}
.count{
  font-size:12px;
  color:#6b7280;
  padding:6px 10px;
  border-radius:999px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
}

.quick{padding:10px; display:grid; grid-template-columns: 1fr 1fr; gap:8px}
.chip{
  padding:10px;
  border-radius:14px;
  border:1px dashed #e5e7eb;
  background:#fff;
  font-size:12px;
  color:#374151;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}
.chip:hover{
  border-style:solid;
  border-color:rgba(230,0,18,.22);
  background:rgba(230,0,18,.04);
}
.chip .mini{
  width:18px;height:18px;border-radius:7px;
  background:linear-gradient(135deg, var(--red), var(--red3));
  box-shadow:0 10px 18px rgba(230,0,18,.16);
}

/* ===== 中间：顶部大横幅 + 右侧登录/信息框（参考图结构） ===== */
.main-top{
  display:flex;
  flex-direction:column;
  gap:0;
}

.hero{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.carousel{
  height:300px;
  position:relative;
  overflow:hidden;
}
.slide{
  position:absolute; inset:0;
  opacity:0;
  transform:translateX(14px);
  transition:opacity .35s ease, transform .35s ease;
}
.slide.active{opacity:1; transform:none}

.badge-row{margin-top:12px; display:flex; gap:8px; flex-wrap:wrap}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  box-shadow:0 10px 16px rgba(16,24,40,.06);
  color:#374151;
  font-weight:700;
}
.badge.red{border-color:rgba(230,0,18,.22); background:rgba(230,0,18,.06); color:var(--red); font-weight:900}
.badge.blue{border-color:rgba(59,130,246,.22); background:rgba(59,130,246,.06); color:#2563eb; font-weight:900}
.badge.orange{border-color:rgba(245,158,11,.25); background:rgba(245,158,11,.08); color:#b45309; font-weight:900}
.badge.purple{border-color:rgba(168,85,247,.22); background:rgba(168,85,247,.06); color:#7c3aed; font-weight:900}

.hero-art{
  justify-self:end;
  width:250px;height:170px;
  border-radius:20px;
  background:
    radial-gradient(120% 120% at 15% 20%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, rgba(230,0,18,.95) 0%, rgba(255,45,45,.85) 55%, rgba(245,158,11,.55) 100%);
  box-shadow:0 26px 52px rgba(230,0,18,.18);
  position:relative;
  overflow:hidden;
}
.hero-art:before{
  content:"";
  position:absolute; inset:-42px;
  background:conic-gradient(from 210deg, rgba(255,255,255,0), rgba(255,255,255,.34), rgba(255,255,255,0));
  animation:shine 4.6s linear infinite;
}
.hero-art:after{
  content:"";
  position:absolute; right:16px; bottom:16px;
  width:84px;height:84px;border-radius:22px;
  background:rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20);
  transform:rotate(12deg);
}



.hero .dots{
  position:absolute; left:14px; bottom:12px;
  display:flex; gap:8px; z-index:2;
}
.dotbtn{
  width:10px;height:10px;border-radius:999px;
  border:1px solid rgba(17,24,39,.18);
  background:rgba(255,255,255,.80);
  cursor:pointer;
  transition:.15s ease;
}
.dotbtn.active{
  width:26px;
  background:linear-gradient(135deg,var(--red),var(--red3));
  border-color:transparent;
  box-shadow:0 12px 18px rgba(230,0,18,.20);
}

.hero-bottom{
  border-top:1px solid var(--line);
  padding:12px 12px;
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  background:linear-gradient(180deg,#fff,#fcfcff);
}
.hotkey{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-size:12px;
  color:#374151;
  cursor:pointer;
}
.hotkey:hover{border-color:rgba(230,0,18,.22); background:rgba(230,0,18,.04)}
.hotkey i{
  width:18px;height:18px;border-radius:7px;
  background:linear-gradient(135deg,var(--red),var(--red3));
  display:inline-block;
}

/* ===== 标题列表 ===== */
.title-list{
  margin-top:16px;
  padding:10px 20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.list-row{
  display:flex;
  gap:40px;
}

.list-col{
  flex:1;
  display:flex;
  flex-direction:column;
}

.title-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid #f0f0f0;
  transition:all 0.3s ease;
}

.title-item:hover{
  transform: translateY(-2px);
}

.title-item:hover a{
  color:var(--red);
}

.title-item a{
  flex:1;
  color:var(--text);
  text-decoration:none;
  font-size:14px;
  line-height:1.4;
  transition:all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-item:last-child{
  border-bottom:none;
}

/* ===== 右侧：登录卡 + 统计 + 二维码（参考图右栏上半部） ===== */
.side-cta{
  background:linear-gradient(180deg,#ffffff 0%, #fff6f6 35%, #ffffff 100%);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.side-cta .body{padding:14px}
.kpi{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.kpi .box{
  border-radius:14px;
  padding:12px;
  border:1px solid #eef0f6;
  background:#fff;
  box-shadow:0 12px 20px rgba(16,24,40,.06);
}
.kpi b{font-size:18px}
.kpi span{display:block; margin-top:4px; color:var(--muted); font-size:12px}
.qr{
  margin-top:12px;
  display:flex; gap:12px; align-items:center;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(230,0,18,.14);
  background:rgba(230,0,18,.05);
}
.qr .code{
  width:84px;height:84px;border-radius:14px;
  background:
    linear-gradient(0deg, rgba(255,255,255,.86), rgba(255,255,255,.86)),
    repeating-linear-gradient(90deg, #111827 0 6px, transparent 6px 10px),
    repeating-linear-gradient(0deg, #111827 0 6px, transparent 6px 10px);
  border:1px solid #e5e7eb;
  box-shadow:0 14px 26px rgba(16,24,40,.10);
}
.qr .txt b{display:block}
.qr .txt p{margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.4}

.cta-actions{margin-top:12px; display:flex; gap:10px}
.cta-actions .btn{flex:1; justify-content:center; box-shadow:none}

/* ===== 中间：信息流列表（参考图：一条条帖子卡片） ===== */
.feed{
  margin-top:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.feed .tabs{
  padding:12px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfbff);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.tabset{display:flex; gap:8px; flex-wrap:wrap}
.tab{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-size:13px;
  cursor:pointer;
  font-weight:900;
  color:#374151;
}
.tab.active{
  color:var(--red);
  border-color:rgba(230,0,18,.22);
  background:rgba(230,0,18,.06);
  box-shadow:0 12px 18px rgba(230,0,18,.10);
}
.sort{display:flex; gap:8px; align-items:center; font-size:12px; color:var(--muted)}
.sort select{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  outline:none;
  cursor:pointer;
}

.list{padding:10px 12px 12px; display:flex; flex-direction:column; gap:12px}
.item{
  border:1px solid #eef0f6;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fcfcff);
  box-shadow:0 12px 20px rgba(16,24,40,.06);
  padding:19px;
  display:grid;
  grid-template-columns: 80px 1fr;
  gap:12px;
  cursor:pointer;
  transition:.15s ease;
}
.item:hover{transform:translateY(-1px); box-shadow:0 18px 30px rgba(16,24,40,.10)}
.thumb{
  width:80px;height:80px;border-radius:16px;
  border:1px solid #e5e7eb;
  background:
    radial-gradient(120% 120% at 18% 10%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(230,0,18,.18), rgba(245,158,11,.18), rgba(168,85,247,.18));
  position:relative;
  overflow:hidden;
}
.thumb:after{
  content:"";
  position:absolute; left:-10px; top:-10px;
  width:46px;height:46px;border-radius:16px;
  /* background:rgba(255,255,255,.55); */
  transform:rotate(18deg);
}

.meta h3{margin:0; font-size:16px; line-height:1.35; letter-spacing:.2px}
.sub{
  margin-top:6px;
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  color:var(--muted);
  font-size:12px;
}

.pill2{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#374151;
}
.pill2 .v{
  width:8px;height:8px;border-radius:99px;
  background:var(--acc-blue);
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.pill2.red .v{background:var(--red); box-shadow:0 0 0 3px rgba(230,0,18,.12)}
.pill2.orange .v{background:var(--acc-amber); box-shadow:0 0 0 3px rgba(245,158,11,.14)}
.pill2.purple .v{background:var(--acc-purple); box-shadow:0 0 0 3px rgba(168,85,247,.12)}
.pill2.cyan .v{background:var(--acc-cyan); box-shadow:0 0 0 3px rgba(6,182,212,.12)}

.ops{display:flex; gap:16px; flex-wrap:wrap; color:#6b7280; font-size:12px}
.op{
  display:inline-flex; align-items:center; gap:6px;
}
.op svg{width:14px;height:14px;color:#9ca3af}

.pager{
  width: 100%;
  padding: 16px;
  border-top:1px solid var(--line);
  background:#fff;
  display:flex;
  justify-content:center;
  gap:8px;
}
.pagebtn{
  width:34px;height:34px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
  /* font-weight:900; */
  color:#374151;
}
.pagebtn.active{
  border-color:rgba(230,0,18,.22);
  background:rgba(230,0,18,.06);
  color:var(--red);
  box-shadow:0 12px 18px rgba(230,0,18,.10);
}
.pagebtn:hover{background:#f9fafb}

/* ===== 右侧栏：用户信息 + 热榜 + 广告位（参考图右侧） ===== */
.rightcol{display:flex; flex-direction:column; gap:16px}
.profile{
  padding:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.profile .row{display:flex; align-items:center; justify-content:space-between; gap:10px}
.userbox{display:flex; align-items:center; gap:10px}
.userpic{
  width:46px;height:46px;border-radius:16px;
  border:1px solid #e5e7eb;
  background:
    radial-gradient(120% 120% at 18% 10%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(135deg, rgba(230,0,18,.22), rgba(59,130,246,.18), rgba(168,85,247,.18));
  box-shadow:0 14px 26px rgba(16,24,40,.10);
}
.profile b{display:block}
.profile p{margin:4px 0 0; color:var(--muted); font-size:12px}
.profile .login{
  margin-top:25px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.profile .login .btn{justify-content:center; box-shadow:none}
.notice{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid #eef0f6;
  background:linear-gradient(180deg,#fff,#fcfcff);
  color:#6b7280;
  font-size:12px;
  line-height:1.5;
}

.rank{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.rank .hd{
  padding:12px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,#fbfbff);
  display:flex; align-items:center; justify-content:space-between;
}
.rank .hd b{font-size:14px}
.rank .hd a{font-size:12px; color:var(--muted)}
.ranklist{padding:10px 12px 12px; display:flex; flex-direction:column; gap:10px}
.r{
  display:grid;
  grid-template-columns: 26px 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid #eef0f6;
  background:#fff;
}
.r .n{
  width:26px;height:26px;border-radius:10px;
  display:grid;place-items:center;
  color:#fff;
  font-weight:900;
  font-size:12px;
  background:linear-gradient(135deg,var(--acc-blue),var(--acc-cyan));
  box-shadow:0 12px 18px rgba(59,130,246,.18);
}
.r:nth-child(1) .n{background:linear-gradient(135deg,var(--red),var(--red3))}
.r:nth-child(2) .n{background:linear-gradient(135deg,var(--acc-amber),#ff6b00)}
.r:nth-child(3) .n{background:linear-gradient(135deg,var(--acc-purple),var(--acc-blue))}
.r .t{font-weight:500; font-size:14px; line-height: 1.4;}
.r:hover .t a{color: var(--red) !important;}
.news-item:hover .news-title a{color: var(--red) !important;}
.item:hover .meta h3 a{color: var(--red) !important;}
.r small{display:block; margin-top:2px; color:var(--muted); font-size:11px}
.r .hot{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  box-shadow:0 10px 16px rgba(16,24,40,.06);
  color:#374151;
}
.r .hot.red{border-color:rgba(230,0,18,.22); background:rgba(230,0,18,.06); color:var(--red);}
.r .hot.orange{border-color:rgba(245,158,11,.25); background:rgba(245,158,11,.08); color:#b45309;}
.r .hot.purple{border-color:rgba(168,85,247,.22); background:rgba(168,85,247,.06); color:#7c3aed;}
.r .hot.blue{border-color:rgba(59,130,246,.22); background:rgba(59,130,246,.06); color:#2563eb;}

/* ===== 今日推荐资讯列表 ===== */
.newslist{
  padding: 12px;
}
.newslist .news-item{
  padding: 12px 6px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}
.newslist .news-item:last-child{
  border-bottom: none;
}
.newslist .news-item:hover{
  transform: translateX(4px);
}
.newslist .news-title{
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.newslist .news-meta{
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}
.newslist .news-category{
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.newslist .news-time{
  color: var(--muted);
}

.ad{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.ad .banner{
  height:160px;
  background:
    radial-gradient(120% 120% at 18% 10%, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, rgba(230,0,18,.92), rgba(59,130,246,.72), rgba(168,85,247,.62), rgba(245,158,11,.58));
  position:relative;
}
.ad .banner:after{
    content: "推广";
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .32);
    backdrop-filter: blur(6px);
}
.ad .banner .txt{
  position:absolute; left:14px; bottom:14px;
  color:#fff;
  text-shadow:0 10px 30px rgba(0,0,0,.25);
}
.ad .banner .txt b{font-size:18px}
.ad .banner .txt p{margin:6px 0 0; font-size:12px; opacity:.95}
.ad .foot{
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.ad .foot .miniinfo{font-size:12px; color:var(--muted); line-height:1.6}
.ad .foot .btn{box-shadow:none}

/* ===== 底部（参考图下方深色footer） ===== */
.footer {
  margin-top: 18px;
  padding: 40px 0 20px;
  color: #9ca3af;
  font-size: 12px;
  background: #0b1220;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer .footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer .footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer .footer-logo {
  margin-bottom: 16px;
  margin-top: 20px;
}

.footer .footer-logo img {
  height: 40px;
}

/* ====== 详情页样式 ====== */
.breadcrumb {
  font-size: 12px;
  color: #666;
  margin: 20px 0;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #e60012;
}

.detail-page {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
  padding: 50px;
}

.detail-pageb {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
  padding:30px 50px 50px 50px;
}

.detail-header {
  margin-bottom: 20px;
}

.detail-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  margin-top: -10px;
  line-height: 1.4;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-avatar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.user-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.user-name {
  font-weight: bold;
  color: #333;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.btn-yellow {
  background-color: #ffc107;
  color: #333;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-orange {
  background-color: #f97316;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.content-stats {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #666;
}

.stat svg {
  width: 16px;
  height: 16px;
}

.favorite-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-btn:hover svg {
  color: #ff4d4f;
}

.favorite-btn.active svg {
  color: #ff4d4f;
  fill: #ff4d4f;
}

.favorite-btn svg {
  transition: all 0.3s ease;
}

.detail-info {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 30px;
  margin-top: 40px;
}

.info-row {
  display: flex;
  gap: 0;
  margin: 10px;
}

.info-item {
  font-size: 14px;
  color: #666;
  width: 260px;
}

.detail-contact {
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.contact-box {
  background-color: #fef0f0;
  border: 1px solid #fde2e2;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.contact-info p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

.contact-btn {
  background-color: #e60012;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.safety-tip {
  font-size: 12px;
  color: #e60012;
  text-align: right;
}

.detail-section {
  margin: 30px 0px;
  color: #333;
  line-height: 1.7;
}

.detail-sectionb {
  margin: 0px 0px;
  color: #333;
  line-height: 1.7;
}

.resource-tags {
  display: flex;
  gap: 10px;
}

.tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  /* font-weight: bold; */
}

.tag-red {
  background-color: #fef0f0;
  color: #e60012;
  border: 1px solid #fde2e2;
}

.detail-content {
  background-color: #ffffff;
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

.detail-content h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.detail-content p {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ===== 导航栏样式 ===== */
.nav-bar {
  background:#e20000;
  margin-bottom: 0px;
  box-shadow: 0 2px 12px rgba(255, 77, 79, 0.3);
  border-bottom: 1px solid #ff7875;
}
.nav-bar .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 6px 0;
  gap: 40px;
}
.nav-bar .containerb {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 0;
  gap: 40px;
}

.nav-item {
  font-size: 15px;
  /* font-weight: 600; */
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  padding: 8px 20px;
  transition: all 0.3s ease;
  border-radius: 6px;
  position: relative;
}
.nav-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}
.nav-item.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}
.nav-item.active::after {
  display: none;
}

/* ===== 通用资讯类头部样式 ===== */
.news-header {
  padding: 16px 0;
  margin-bottom: 24px;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

/* ===== 资讯列表样式 ===== */
.news-list-page {
  padding: 0px 0;
}

.news-list {
  margin-bottom: 40px;
}

.news-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

.news-list-page .news-card:hover .news-title {
  color: #ff4d4f;
}

.news-image {
  flex: 0 0 240px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-list-page .news-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0px;
  font-size: 14px;
  color: #999999;
}

.news-list-page .news-date {
  display: flex;
  align-items: center;
}

.news-list-page .news-read {
  display: flex;
  align-items: center;
}

.news-list-page .news-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin: 15px 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-page .news-excerpt {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-page .news-link {
  font-size: 14px;
  color: #ff4d4f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-list-page .news-link:hover {
  color: #ff7875;
  transform: translateX(4px);
}

/* ===== 分页样式 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #333333;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  color: #ff4d4f;
  border-color: #ff4d4f;
}

.pagination-btn.active {
  color: #ffffff;
  background: #ff4d4f;
  border-color: #ff4d4f;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #999999;
  font-size: 14px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
  }
  
  .news-image {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .news-image img {
    height: 200px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
}

.news-source {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-source img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.source-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.source-name {
  font-weight: 700;
  font-size: 16px;
  color: #333;
}

.source-desc {
  font-size: 14px;
  color: #666;
}

.news-stats {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.news-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

.news-stat svg {
  width: 16px;
  height: 16px;
  color: #999;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.news-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(230,0,18,.08);
  color: #e60012;
  font-size: 12px;
  font-weight: 500;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.gallery-item {
  margin: 20px 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== 互动交流区域样式 ===== */
.interaction-section {
  margin-top: 30px;
}

/* 点赞按钮样式 */
.vote-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 50px;
  justify-content: center;
  align-items: center;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.vote-btn svg {
  width: 16px;
  height: 16px;
}

.vote-btn.red {
  color: #e60012;
  border-color: #fde2e2;
  background-color: #fef0f0;
}

.vote-btn.orange {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.22);
  background-color: rgba(249, 115, 22, 0.06);
}

.vote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 评论区域样式 */
.comment-section {
  margin-bottom: 30px;
}

.comment-section h3 {
  margin-bottom: 15px;
  color: #333;
}

.comment-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  min-height: 120px;
  font-size: 14px;
  margin-bottom: 15px;
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0px;
  flex-wrap: wrap;
  gap: 15px;
}

.quick-reply {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  justify-content: flex-start;
}

.quick-tag {
  background-color: #f0f0f0;
  color: #666;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-tag:hover {
  background-color: #e60012;
  color: #fff;
}

.submit-btn {
  background-color: #10b981;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #059669;
}

.contact-btn {
  background-color: #10b981;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #059669;
}

/* 评论列表样式 */
.comment-list {
  margin-top: 30px;
}

.comment-list h3 {
  margin-bottom: 15px;
  color: #333;
}

.comment-item {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  margin-bottom: 10px;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-user .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.comment-user .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.user-nameb {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.comment-time {
  font-size: 12px;
  color: #999;
}

.comment-content {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    padding-left: 52px;
}

/* ===== 底部（参考图下方深色footer） ===== */
.footer {
  margin-top: 18px;
  padding: 40px 0 20px;
  color: #9ca3af;
  font-size: 12px;
  background: #0b1220;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer .footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer .footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer .footer-logo {
  margin-bottom: 16px;
  margin-top: 20px;
}

.footer .footer-logo img {
  height: 40px;
}

.footer .footer-description {
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.footer .social-links {
  display: flex;
  gap: 12px;
}

.footer .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #e5e7eb;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, .08);
}

.footer .social-link:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--red);
}

.footer .footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  flex: 2;
  min-width: 400px;
}

.footer .footer-column {
  min-width: 120px;
}

.footer .footer-title {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 16px;
  display: block;
}

.footer .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-list li {
  margin-bottom: 12px;
}

.footer .footer-list a {
  color: #9ca3af;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .footer-list a:hover {
  color: var(--red);
}

.footer .footer-bottom {
  margin-top: 40px;
}

.footer .footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, .06);
  margin-bottom: 24px;
}

.footer .footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .footer-copyright p {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.footer .footer-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer .footer-contact span {
  font-size: 12px;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .footer .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer .footer-links {
    flex-direction: column;
    gap: 24px;
    min-width: 100%;
  }
  
  .footer .footer-column {
    min-width: 100%;
  }
  
  .footer .footer-copyright {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== 浮动工具（右下角） ===== */
.floatbar{
  position:fixed;
  right:18px;
  bottom:60px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:60;
}
.fab{
  width:46px;height:46px;
  border-radius:53px;
  border:1px solid #e5e7eb;
  background:#fff;
  box-shadow:0 16px 30px rgba(16,24,40,.14);
  cursor:pointer;
  display:grid; place-items:center;
  transition:.15s ease;
}
.fab:hover{transform:translateY(-2px)}
.fab.primary{
  border-color:rgba(230,0,18,.22);
  background:linear-gradient(135deg,var(--red),var(--red3));
  color:#fff;
}
.fab svg{width:18px;height:18px}

/* ===== 个人中心页面样式 ===== */
.user-center {
  display: flex;
  gap: 20px;
  margin: 20px 0px 0px 0px;
}

/* 左侧导航栏 */
.user-sidebar {
  width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.sidebar-title {
  background: linear-gradient(135deg, var(--red), var(--red3));
  color: #fff;
  padding: 16px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 14px;
}

.menu-item > span {
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  padding: 12px 16px;
  font-weight: 600;
}

.menu-item > span:hover {
  color: var(--red);
  background: rgba(230,0,18,.08);
}

.menu-item.active > span {
  color: var(--red);
  font-weight: 700;
  background: rgba(230,0,18,.08);
}

.menu-item > span.no-interaction {
  cursor: default;
}

.menu-item > span.no-interaction:hover {
  color: inherit;
  background: none;
}

.menu-item.active {
  border-left: 4px solid var(--red);
}

.sub-menu {
  list-style: none;
  padding: 0;
  margin:0px 0px 10px 30px;
  display: block;
  font-size: 14px;
  color: #666;
}

.sub-menu li {
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: -16px;
}

.sub-menu li:hover {
  color: var(--red);
  background: rgba(230,0,18,.08);
  padding-left: 16px;
}

/* 右侧内容区 */
.user-content {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 30px 50px;
}

.content-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.content-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* 提示框 */
.user-tip {
  background: #fff3f3;
  border: 1px solid #ffe8e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.user-tip p {
  margin: 8px 0;
  font-size: 14px;
  color: #e93b00;
}

/* 表单样式 */
.user-form {
  margin-top: 20px;
}

.form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.form-label {
  width: 80px;
  font-size: 14px;
  color: var(--text);
  padding-top: 8px;
  font-weight: 500;
  text-align: right;
}

.form-labelb {
  width: 52px;
  font-size: 14px;
  color: var(--text);
  padding-top: 8px;
  font-weight: 500;
}

.form-label:before,
.contact-label:before {
  content: '*';
  color: var(--red);
  margin-right: 4px;
}

.form-label.no-asterisk:before,
.contact-label.no-asterisk:before {
  content: '';
  margin-right: 0;
}

.form-input {
  flex: 1;
}

.form-input.full-width {
  width: 100%;
}

.form-control {
  width: 70%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,0,18,.1);
}

.form-control:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* 头像上传 */
.avatar-upload {
  display: inline-block;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
  background: rgba(230,0,18,.8);
}

/* 二维码上传 */
.wechat-qr {
  margin: 16px 0;
}

.qr-upload {
  display: inline-block;
  width: 120px;
  height: 120px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin: 20px 0;
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-upload-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

.qr-upload-btn:hover {
  background: rgba(230,0,18,.8);
}

/* 联系方式 */
.contact-info {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-label {
  width: 80px;
  font-size: 14px;
  color: var(--text);
}

.contact-status {
  font-size: 14px;
  color: #10b981;
  font-weight: 500;
  margin-top: 2px;
}

.verify-link {
  color: var(--red);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.verify-link:hover {
  text-decoration: underline;
}

/* 按钮样式 */
.form-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-save {
  background: linear-gradient(135deg, var(--red), var(--red3));
  color: #fff;
  border: none;
  padding: 12px 60px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 12px 18px rgba(230,0,18,.14);
  margin-bottom: 30px;
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(230,0,18,.20);
}

.btn-sync {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-sync:hover {
  background: rgba(230,0,18,.05);
  transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-center {
    flex-direction: column;
  }
  
  .user-sidebar {
    width: 100%;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-label {
    width: 100%;
    padding-top: 0;
    margin-bottom: 8px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-save,
  .btn-sync {
    width: 100%;
    text-align: center;
  }
}

/* ===== 合作类型标签样式 ===== */
.filter-row-cooperation .filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #e60012;
  border-radius: 1.5px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}
.filter-row-cooperation .filter-btn:hover,
.filter-row-cooperation .filter-btn.active {
  color: #e60012 !important;
}
.filter-row-cooperation .filter-btn:hover::after,
.filter-row-cooperation .filter-btn.active::after {
  width: 72%;
}

/* ===== 筛选器样式 ===== */
.filter-container {
  background-color: white;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid #e7e9f1;
  box-shadow: 0 12px 30px rgba(16,24,40,.08);
}

.filter-row {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
}

.filter-row-cooperation {
  padding-bottom: 16px;
  border-bottom: 1px solid #e7e9f1;
  font-size: 16px;
}

.filter-row-cooperation .filter-label {
  font-size: 16px;
  width: 67px;
  min-width: 67px;
  padding-top: 8px;
}

.filter-row-cooperation .filter-btn {
  font-size: 16px;
  padding: 8px 16px;
}

.filter-label {
  font-weight: bold;
  margin-right: 16px;
  white-space: nowrap;
  min-width: 80px;
  padding-top: 4px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: #e60012;
  color: white;
}

.filter-row-cooperation .filter-btn {
  border: none;
  position: relative;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-row-cooperation .filter-btn.active {
  background-color: white !important;
  color: #e60012 !important;
  border: none !important;
  position: relative !important;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.filter-row select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-row .btn-confirm {
  padding: 6px 12px;
  border: 1px solid #e60012;
  border-radius: 4px;
  background-color: white;
  color: #e60012;
  cursor: pointer;
}

/* ===== 内容区域样式 ===== */
.content-grid {
  margin-top: 16px;
  display: flex;
  gap: 16px;
}

.content-main {
  flex: 2.6;
}

.content-sidebar {
  flex: 1;
  min-width: 260px;
}

.banner-180 {
  height: 180px;
  overflow: hidden;
  width: 100%;
}

.banner-320 {
  height: 320px;
  overflow: hidden;
  width: 100%;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-img-180 {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.banner-img-320 {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.ad .banner {
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.ad .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad .banner-180 {
  height: 180px;
}

.ad .banner-320 {
  height: 320px;
}

.ad .banner-180 img {
  height: 180px;
}

.ad .banner-320 img {
  height: 320px;
}

.rank-no-margin {
  margin-top: 16px;
}

/* ===== index.html 特定样式 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 999999;
  background-color: white;
}

.carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .35s ease, transform .35s ease;
  background-size: cover;
  background-position: center;
  display: none;
}

.carousel .slide.active {
  opacity: 1;
  transform: none;
  display: flex;
}

.title-item a.bold {
  font-weight: bold;
}

.ad .banner:not(.banner-180):not(.banner-320) img:first-child {
  width: 100%;
  height: 170px;
  border-radius: 8px 8px 0 0;
}
.notice b {
  color: #111827;
}

.foot .miniinfo b {
  color: #111827;
  font-size: 14px;
}

#btnCoop {
  padding: 10px 12px;
}

.grid.index-grid {
  margin-top: 16px;
  display: flex;
  gap: 16px;
}

.grid.index-grid > section:first-child {
  flex: 2.6;
}

.grid.index-grid .rightcol {
  flex: 1;
  min-width: 260px;
}

.grid.index-grid .rank-no-margin {
  margin-top: 0px;
}

.grid.index-grid .banner-180 {
  height: 180px;
  overflow: hidden;
}

.grid.index-grid .banner-320 {
  height: 320px;
  overflow: hidden;
}

.grid.index-grid .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid.index-grid .banner-img-180 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid.index-grid .banner-img-320 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-link img {
  width: 24px;
  height: 24px;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px){
  .grid{grid-template-columns: 220px 1fr 300px}
  .main-top{grid-template-columns: 1fr}
  .content-grid{flex-direction: column}
  .content-sidebar{order: 2}
  .grid.index-grid > section:first-child {
    flex: 1;
  }
  .grid.index-grid .rightcol {
    flex: 1;
    min-width: auto;
  }
}
@media (max-width: 940px){
  header{position:static}
  .grid{grid-template-columns: 1fr}
  .brand{min-width:auto}
  .search{justify-content:stretch}
  .searchbox{max-width:none}
  .rightcol{order:3}
}
@media (max-width: 520px){
  .header-inner{flex-wrap:wrap}
  .brand{width:100%}
  .nav{width:100%}
  .slide{grid-template-columns: 1fr; gap:10px}
  .hero-art{width:100%; height:120px; justify-self:stretch}
  .item{grid-template-columns: 56px 1fr}
  .thumb{width:56px;height:56px}
  .filter-options{flex-direction: column}
  .filter-btn{width: 100%; text-align: left}
  .grid.index-grid {
    flex-direction: column;
  }
}
