/* ============================================================
   520FX — Xueqiu-inspired global skin (portal + overrides)
   Brand blue ≈ Xueqiu #3B7EEE / #1884F0
   ============================================================ */
:root{
  --xq-blue:#3B7EEE;
  --xq-blue-deep:#2F6FD6;
  --xq-blue-soft:#E8F2FF;
  --xq-bg:#F4F7FA;
  --xq-card:#FFFFFF;
  --xq-text:#222222;
  --xq-sub:#999999;
  --xq-line:#EEF1F5;
  --xq-danger:#E64545;
  --xq-radius:12px;
  --xq-shadow:0 2px 12px rgba(33,55,88,.06);
}

/* Lucide icons */
.fx-lucide,
i[data-lucide],
svg.fx-lucide{
  width:1.1em;height:1.1em;
  stroke:currentColor;fill:none;
  stroke-linecap:round;stroke-linejoin:round;
  vertical-align:-0.15em;
  display:inline-block;flex:none;
}
.xq-btn .fx-lucide,
.xq-btn svg.fx-lucide{margin-right:6px;width:16px;height:16px;}
.xq-panel-hd h2 .fx-lucide,
.xq-panel-hd h2 svg.fx-lucide{margin-right:6px;width:18px;height:18px;color:var(--xq-blue);}
.xq-quick a .fx-lucide,
.xq-quick a svg.fx-lucide{margin-right:8px;width:16px;height:16px;color:var(--xq-blue);}
.xq-tool-card{display:flex;gap:12px;align-items:flex-start;}
.xq-tool-card .fx-lucide,
.xq-tool-card svg.fx-lucide{width:22px;height:22px;color:var(--xq-blue);margin-top:2px;}
.fx-page-title{display:flex;align-items:center;gap:8px;font-size:22px;margin:0 0 8px;}
.fx-page-title .fx-lucide,
.fx-page-title svg.fx-lucide{width:24px;height:24px;color:var(--xq-blue);}


/* Page canvas */
body.discuzx5,
body.nv_portal,
body.pg_index{
  background:var(--xq-bg) !important;
  color:var(--xq-text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif !important;
}

/* Hide classic Discuz chrome noise on portal home */
body.nv_portal.pg_index #toptb,
body.nv_portal.pg_index .bm_h .y,
body.nv_portal #scrolltop{display:none !important;}

/* ---- Top bar: solid Xueqiu blue ---- */
.dz_layer_top{
  background:var(--xq-blue) !important;
  border:0 !important;
  box-shadow:none !important;
  min-height:56px;
}
.dz_layer_top,
.dz_layer_top *{box-sizing:border-box;}
.dz_layer_top a,
.dz_btm_layer a,
.dz_layer_nav ul li a,
.dz_layer_nav ul li.a a,
.dz_menumore{
  color:#fff !important;
}
.header-notice .notice-icon .dzicon{display:none !important;}
.header-notice .notice-icon svg.fx-lucide,
.header-notice .notice-icon i[data-lucide]{
  color:#fff !important;width:20px;height:20px;
}
.header-searcher .search-icon{
  background:none !important;
  display:inline-flex !important;align-items:center;justify-content:center;
  color:#fff !important;
}
.header-searcher .search-icon svg.fx-lucide{width:16px;height:16px;color:#fff;}
.header-user-login .login_btn a{
  display:inline-flex;align-items:center;gap:6px;
}
.header-user-login .login_btn a svg.fx-lucide{width:14px;height:14px;}
.header-i18n .i18n-icon .dzicon,
.header-i18n .i18n-icon .dzicon.i18nicon{display:none !important;background:none !important;}
.header-i18n .i18n-icon svg.fx-lucide{width:20px;height:20px;color:#fff;display:inline-block;}
.notice-item a,.user-card-area a,.user-logout-btn{
  display:flex;align-items:center;gap:8px;
}
.notice-item svg.fx-lucide,.user-card-area svg.fx-lucide,.user-logout-btn svg.fx-lucide{
  width:15px;height:15px;flex:none;
}
/* hide leftover dzicon glyphs in top chrome */
.dz_layer_top .dzicon:before{content:none !important;}
.dz_layer_nav ul li a:before,
.dz_layer_nav ul li a::after{background:#fff !important;}
.dz_layer_nav ul li.a a,
.dz_layer_nav ul li a:hover{opacity:.95;}
.dz_menumore::after{color:#fff !important;}

/* right float nav → Lucide */
.dz_rnav a{
  font-family:inherit !important;font-size:0 !important;
  display:flex !important;align-items:center;justify-content:center;
}
.dz_rnav a::before{content:none !important;}
.dz_rnav a svg.fx-lucide{width:22px;height:22px;color:var(--xq-blue);}
.dz_rnav a .dz_tip_text{font-size:12px;}


/* Compact header row */
.dz_btm_layer{
  max-width:1180px !important;
  width:auto !important;
  margin:0 auto !important;
  padding:0 16px;
  height:56px;
  display:flex !important;
  align-items:center;
  background:transparent !important;
}
.dz_nav_logo{margin-right:18px;flex:none;}
.dz_layer_nav{flex:1;min-width:0;}
.dzlogo{
  width:160px !important;
  height:36px !important;
  background-size:auto 30px !important;
  background-position:0 50% !important;
  /* keep original red/black logo readable: put on white pill */
  background-color:#fff !important;
  border-radius:6px;
  padding:2px 8px;
  box-sizing:border-box;
}
.dzlogo img{display:none !important;}

/* Search / login on blue */
.header-searcher .search-input,
.header-searcher input{
  background:rgba(255,255,255,.18) !important;
  border:0 !important;
  color:#fff !important;
  border-radius:18px !important;
}
.header-searcher input::placeholder{color:rgba(255,255,255,.75);}
.header-user-login .login_btn a,
.header-user-login a{
  color:#fff !important;
  border:1px solid rgba(255,255,255,.55);
  border-radius:16px;
  padding:4px 14px;
  background:transparent;
}
.header-user-login .login_btn a:hover{background:rgba(255,255,255,.12);}

/* Hide secondary portal category strip clutter if present */
.p_pop, .dz_menumore{color:#fff;}

/* ---- Xueqiu home shell ---- */
.xq-shell{
  background:var(--xq-bg);
  min-height:70vh;
  padding-bottom:64px;
}
.xq-hero{
  background:linear-gradient(135deg,#D9ECFF 0%,#F3F8FF 48%,#FFFFFF 100%);
  border-bottom:1px solid #E6EEF8;
  padding:28px 0 22px;
  margin-bottom:18px;
  position:relative;
  overflow:hidden;
}
.xq-hero::before{
  content:"";
  position:absolute;left:-80px;bottom:-100px;
  width:280px;height:280px;border-radius:50%;
  background:rgba(59,126,238,.12);
}
.xq-hero::after{
  content:"";
  position:absolute;left:120px;bottom:-60px;
  width:160px;height:160px;border-radius:50%;
  background:rgba(59,126,238,.08);
}
.xq-hero .wp{position:relative;z-index:1;max-width:1180px;}
.xq-hero-grid{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr);
  gap:24px;align-items:center;padding:0 16px;
}
.xq-hero-kicker{
  display:inline-block;
  font-size:12px;color:var(--xq-blue);background:var(--xq-blue-soft);
  padding:3px 10px;border-radius:12px;margin-bottom:12px;font-weight:600;
}
.xq-hero h1{
  margin:0 0 8px;font-size:34px;line-height:1.25;font-weight:800;color:#1a1a1a;
  letter-spacing:.02em;
}
.xq-hero-sub{margin:0 0 18px;font-size:16px;color:#666;}
.xq-hero-actions{display:flex;gap:12px;flex-wrap:wrap;}
.xq-hero-art{display:flex;justify-content:center;}
.xq-hero-phone{
  width:220px;height:300px;border-radius:28px;background:#fff;
  box-shadow:0 18px 40px rgba(40,80,140,.18);padding:16px 14px;
  border:1px solid #E4ECF7;position:relative;
}
.xq-hero-phone-bar{
  height:10px;width:42%;margin:0 auto 16px;border-radius:8px;background:#E8EEF7;
}
.xq-hero-phone-card{
  height:72px;border-radius:12px;margin-bottom:10px;
  background:linear-gradient(135deg,#E8F2FF,#F7FAFF);
  border:1px solid #E6EEF8;
}
.xq-hero-phone-card-sm{height:48px;opacity:.9;}
.xq-btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 22px;border-radius:20px;
  background:var(--xq-blue);color:#fff !important;font-weight:700;
  text-decoration:none !important;border:0;font-size:14px;
}
.xq-btn:hover{background:var(--xq-blue-deep);color:#fff !important;}
.xq-btn-ghost{
  background:#fff;color:var(--xq-blue) !important;
  border:1px solid var(--xq-blue);
}
.xq-btn-ghost:hover{background:var(--xq-blue-soft);color:var(--xq-blue) !important;}
.xq-risk-chip{
  margin-top:14px;font-size:12px;color:#A67C00;
  background:#FFF8E6;border:1px solid #F0E0A8;
  display:inline-block;padding:4px 10px;border-radius:4px;
}

.xq-layout{
  max-width:1180px;margin:0 auto;padding:0 16px;
  display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start;
}

.xq-panel{
  background:var(--xq-card);
  border-radius:var(--xq-radius);
  box-shadow:var(--xq-shadow);
  border:1px solid var(--xq-line);
  padding:0;margin-bottom:16px;overflow:hidden;
}
.xq-panel-hd{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px 12px;border-bottom:1px solid var(--xq-line);
}
.xq-panel-hd h2{margin:0;font-size:17px;font-weight:700;color:#111;}
.xq-tabs{display:flex;gap:16px;font-size:14px;}
.xq-tabs a{color:#666;text-decoration:none;padding-bottom:8px;border-bottom:2px solid transparent;}
.xq-tabs a.a,.xq-tabs a:hover{color:var(--xq-blue);font-weight:700;border-bottom-color:var(--xq-blue);}

/* Feed cards — social timeline */
.xq-feed{list-style:none;margin:0;padding:0;}
.xq-feed > li{
  display:grid;grid-template-columns:44px minmax(0,1fr);
  gap:12px;padding:16px 18px;border-bottom:1px solid var(--xq-line);
}
.xq-feed > li:last-child{border-bottom:0;}
.xq-avatar{
  width:44px;height:44px;border-radius:50%;
  background:linear-gradient(135deg,#9ec5ff,#3B7EEE);
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:16px;text-decoration:none;overflow:hidden;
  position:relative;flex:none;
}
.xq-avatar-letter{position:relative;z-index:0;line-height:1;}
.xq-avatar img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1;
}
.xq-feed-body{min-width:0;}
.xq-feed-user{
  font-size:13px;color:var(--xq-sub);margin-bottom:6px;
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
}
.xq-feed-user a{color:#333;font-weight:600;text-decoration:none;}
.xq-feed-user a:hover{color:var(--xq-blue);}
.xq-feed-title{
  display:block;font-size:16px;font-weight:700;color:#1a1a1a;
  line-height:1.45;text-decoration:none;margin-bottom:8px;
}
.xq-feed-title:hover{color:var(--xq-blue);}
.xq-feed-meta{
  font-size:12px;color:var(--xq-sub);
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
}
.xq-chip{
  display:inline-block;padding:1px 8px;border-radius:10px;
  background:var(--xq-blue-soft);color:var(--xq-blue);font-size:12px;text-decoration:none;
}
.xq-chip:hover{filter:brightness(.97);}
.xq-stat{margin-left:auto;color:#b0b0b0;}
.xq-more{padding:12px 18px 16px;font-size:13px;}
.xq-more a{color:var(--xq-blue);text-decoration:none;font-weight:600;}

/* Sidebar */
.xq-side .xq-panel-hd{padding-bottom:10px;}
.xq-circles,.xq-quick{list-style:none;margin:0;padding:6px 0 10px;}
.xq-circles li,.xq-quick li{border-bottom:1px solid #f5f7fa;}
.xq-circles li:last-child,.xq-quick li:last-child{border-bottom:0;}
.xq-circles a{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 18px;text-decoration:none;color:#222;font-size:14px;
}
.xq-circles a:hover{background:#f8fbff;color:var(--xq-blue);}
.xq-circles em{font-style:normal;font-size:12px;color:#999;}
.xq-quick a{
  display:block;padding:11px 18px;color:#333;text-decoration:none;font-size:14px;
}
.xq-quick a:hover{color:var(--xq-blue);background:#f8fbff;}
.xq-disclaimer{padding:14px 18px;font-size:12px;color:#888;line-height:1.7;}
.xq-disclaimer p{margin:0;}

/* Hot rank style */
.xq-rank{list-style:none;margin:0;padding:8px 18px 14px;counter-reset:xqrank;}
.xq-rank li{counter-increment:xqrank;padding:8px 0;display:flex;gap:10px;align-items:flex-start;}
.xq-rank li::before{
  content:counter(xqrank);
  width:18px;height:18px;border-radius:4px;background:#E8E8E8;color:#666;
  font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none;
}
.xq-rank li:nth-child(1)::before{background:#FF6A00;color:#fff;}
.xq-rank li:nth-child(2)::before{background:#FF9F2E;color:#fff;}
.xq-rank li:nth-child(3)::before{background:#FFC15E;color:#fff;}
.xq-rank a{color:#333;text-decoration:none;font-size:13px;line-height:1.4;}
.xq-rank a:hover{color:var(--xq-blue);}

/* Footer risk bar */
.fx-risk-bar{
  background:#1f1f1f !important;color:#f0f0f0 !important;
  border:0 !important;font-size:12px !important;
}
.fx-risk-bar a{color:#8ec4ff !important;}
.fx-verify-badge{
  display:inline-block;margin-left:4px;padding:0 6px;border-radius:3px;
  background:#E8F7EF;color:#1b7a4a;font-size:12px;font-style:normal;
}

/* Footer soften */
#ft,.dz_footc{background:#fff !important;border-top:1px solid var(--xq-line);}

@media (max-width:960px){
  .xq-layout{grid-template-columns:1fr;}
  .xq-hero-grid{grid-template-columns:1fr;}
  .xq-hero-art{display:none;}
  .xq-hero h1{font-size:26px;}
  .xq-stat{margin-left:0;width:100%;}
}
