/* ============================================
   币圈观察 Crypto Daily — 前台主样式 v2.0
   设计语言：专业金融媒体 · 简洁白天模式
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

:root {
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --gold-bg: #fffbeb;
  --gold-border: #fde68a;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-bg: #eff6ff;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --gray-1: #f8fafc;
  --gray-2: #f1f5f9;
  --gray-3: #e2e8f0;
  --gray-4: #cbd5e1;
  --gray-5: #94a3b8;
  --gray-6: #64748b;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);
  --shadow-gold: 0 4px 16px rgba(245,158,11,.25);
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ── */
.site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-3);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center;
  height: 62px; gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img {
  width: 38px; height: 38px; border-radius: 10px;
  object-fit: cover; box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-cn { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.logo-en { font-size: 9px; font-weight: 700; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--gray-6);
  transition: var(--transition); white-space: nowrap;
}
.nav-item:hover { background: var(--gray-2); color: var(--ink); }
.nav-item.active { background: var(--gold-bg); color: var(--gold-dark); font-weight: 600; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; }
.flash-dot { background: var(--red); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.header-search { flex: 1; max-width: 300px; }
.search-form {
  display: flex; align-items: center;
  background: var(--gray-2); border-radius: 10px;
  padding: 0 14px; border: 1.5px solid transparent;
  transition: var(--transition);
}
.search-form:focus-within {
  background: var(--white); border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.search-input {
  flex: 1; border: none; background: none;
  padding: 9px 0; font-size: 13px; color: var(--ink-3); outline: none;
}
.search-input::placeholder { color: var(--gray-5); }
.search-btn { color: var(--gray-5); padding: 4px; font-size: 14px; transition: var(--transition); }
.search-btn:hover { color: var(--gold); }

.header-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-menu { position: relative; }
.user-menu-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 40px;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  border: 1.5px solid var(--gray-3);
  background: var(--gray-2); transition: var(--transition);
  text-decoration: none; cursor: pointer;
}
.user-menu-link:hover {
  background: #fff;
  border-color: var(--gold);
  color: var(--gold-dark);
  box-shadow: 0 2px 8px rgba(245,158,11,.15);
}
.user-icon {
  font-size: 16px;
  color: var(--gold);
  transition: var(--transition);
}
.user-menu-link:hover .user-icon { color: var(--gold-dark); }
.user-profile-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-5);
  padding: 2px 6px;
  background: var(--gray-3);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.user-menu-link:hover .user-profile-hint {
  background: var(--gold);
  color: #fff;
}
.user-avatar-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg,var(--gold),var(--gold-dark));
  color: #fff; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-name-text { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chevron { font-size: 10px; color: var(--gray-5); transition: transform .2s; }
.user-menu.open .user-chevron { transform: rotate(180deg); }
.user-dropdown {
  display: none;
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--white); border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  min-width: 240px;
  border: 1px solid var(--gray-3);
  padding: 8px 0; z-index: 300;
}
.user-menu.open .user-dropdown { display: block; animation: dropIn .18s ease; }
@keyframes dropIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
/* 下拉菜单头部用户信息 */
.dropdown-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 12px;
}
.dropdown-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,var(--gold),var(--gold-dark));
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.dropdown-user-info { overflow: hidden; }
.dropdown-username { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-email { font-size: 12px; color: var(--gray-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 菜单项 */
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13.5px; color: var(--ink-3);
  transition: background .15s; text-decoration: none;
}
.dropdown-item:hover { background: var(--gray-1); }
.dropdown-item-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.dropdown-badge {
  margin-left: auto; background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 7px;
  border-radius: 10px; min-width: 20px; text-align: center;
}
.dropdown-item-danger:hover { background: #fef2f2; }
.dropdown-item-danger:hover span:last-child { color: #ef4444; }
.dropdown-divider { border-top: 1px solid var(--gray-3); margin: 4px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white); box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 6px 20px rgba(245,158,11,.35); transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold-bg); }
.btn-ghost {
  background: var(--gray-2); color: var(--gray-6);
  border: 1.5px solid var(--gray-3);
}
.btn-ghost:hover { background: var(--gray-3); color: var(--ink-3); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 7px; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--gray-6); border-radius: 2px; transition: .3s; }
.mobile-nav { display: none; background: var(--white); border-top: 1px solid var(--gray-3); padding: 10px 20px 16px; }
.mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 14px; color: var(--ink-3); border-bottom: 1px solid var(--gray-2); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a i { width: 20px; text-align: center; color: var(--gray-5); }
.mobile-user-card { display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; }
.mobile-user-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-dark)); color: #fff; font-size: 17px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-user-name { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.mobile-user-email { font-size: 12px; color: var(--gray-5); }
.mobile-nav-divider { border-top: 1px solid var(--gray-2); margin: 4px 0; }

/* ── AD BANNER ── */
.ad-banner-top {
  background: var(--white); border-bottom: 1px solid var(--gray-3); padding: 8px 0;
}
.ad-banner-top .container { display: flex; align-items: center; gap: 10px; }
.ad-label {
  font-size: 10px; font-weight: 700; color: var(--gray-5);
  background: var(--gray-2); padding: 2px 8px; border-radius: 4px;
  flex-shrink: 0; letter-spacing: .5px; text-transform: uppercase;
}
.ad-footer { background: var(--white); border-top: 1px solid var(--gray-3); padding: 10px 0; }
.ad-footer .container { display: flex; align-items: center; gap: 10px; }

/* ── MAIN LAYOUT ── */
.site-main { padding: 24px 0 48px; }
.content-layout { display: flex; gap: 24px; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 80px; }

/* ── FLASH TICKER ── */
.flash-ticker {
  display: flex; align-items: center;
  background: var(--white); border-radius: var(--radius);
  padding: 11px 18px; margin-bottom: 18px;
  border: 1px solid var(--gray-3); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.flash-ticker-label {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700;
  color: var(--red); padding-right: 14px;
  border-right: 1px solid var(--gray-3); margin-right: 14px;
  display: flex; align-items: center; gap: 5px; letter-spacing: .5px;
}
.flash-ticker-label::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); animation: blink 1.5s infinite;
}
.flash-ticker-wrap { flex: 1; overflow: hidden; }
.flash-ticker-inner {
  display: flex; gap: 40px;
  animation: tickerScroll 35s linear infinite; white-space: nowrap;
}
.flash-ticker-inner:hover { animation-play-state: paused; }
.flash-ticker-item { font-size: 13px; color: var(--ink-3); flex-shrink: 0; }
.flash-ticker-item:hover { color: var(--gold); }
.ticker-time { color: var(--gray-5); margin-right: 8px; font-size: 11.5px; }
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── TOP BANNER ── */
.top-banner {
  display: grid; grid-template-columns: 1.8fr 1fr;
  gap: 14px; margin-bottom: 20px;
}
.top-banner-item {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--gray-3);
  box-shadow: var(--shadow);
}
.top-banner-item.main { grid-row: span 2; min-height: 300px; }
.top-banner-item.sub { min-height: 138px; }
.banner-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.top-banner-item:hover .banner-img { transform: scale(1.04); }
.banner-placeholder {
  width: 100%; height: 100%; min-height: inherit;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2a4a 50%, #1a1a3e 100%);
  color: rgba(255,255,255,.12); font-size: 52px;
}
.banner-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}
.banner-category {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  background: var(--gold); color: var(--white);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
  letter-spacing: .5px;
}
.banner-title {
  display: block; color: var(--white);
  font-size: 17px; font-weight: 700; line-height: 1.45;
  margin-bottom: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.top-banner-item.sub .banner-title { font-size: 13.5px; margin-bottom: 5px; }
.banner-meta { display: flex; gap: 12px; font-size: 11.5px; color: rgba(255,255,255,.6); }

/* ── CHANNEL TABS ── */
.channel-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--white); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px;
  border: 1px solid var(--gray-3); box-shadow: var(--shadow-sm);
}
.channel-tab {
  padding: 6px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--gray-6);
  transition: var(--transition); white-space: nowrap;
}
.channel-tab:hover { background: var(--gray-2); color: var(--ink); }
.channel-tab.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white); font-weight: 600;
  box-shadow: 0 2px 8px rgba(245,158,11,.3);
}

/* ── FEED LIST ── */
.feed-list {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-3); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.feed-item {
  display: flex; gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-2);
  transition: background .15s;
  position: relative;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #fafbfc; }
.feed-flash { border-left: 3px solid var(--red); }
.feed-thumb {
  flex-shrink: 0; width: 148px; height: 100px;
  border-radius: var(--radius); overflow: hidden; background: var(--gray-2);
}
.feed-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.feed-item:hover .feed-thumb img { transform: scale(1.06); }
.feed-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.feed-meta-top {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 7px; flex-wrap: wrap;
}
.feed-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.5;
  margin-bottom: 7px; color: var(--ink);
}
.feed-title a { color: inherit; }
.feed-title a:hover { color: var(--gold-dark); }
.feed-summary {
  font-size: 13px; color: var(--gray-6); line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.feed-meta-bottom {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--gray-5); flex-wrap: wrap;
}
.feed-source { color: var(--blue); font-weight: 500; }
.feed-time, .feed-views { display: flex; align-items: center; gap: 4px; }

.article-type-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 5px; flex-shrink: 0; letter-spacing: .3px;
}
.type-flash { background: var(--red-bg); color: var(--red); }
.type-news { background: var(--blue-bg); color: var(--blue); }
.type-recommend { background: var(--gold-bg); color: var(--gold-dark); }
.feed-category {
  font-size: 11.5px; color: var(--gray-6);
  background: var(--gray-2); padding: 2px 8px; border-radius: 5px;
}
.badge-top {
  font-size: 10.5px; font-weight: 700;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: var(--white); padding: 2px 7px; border-radius: 5px;
}
.badge-recommend {
  font-size: 10.5px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white); padding: 2px 7px; border-radius: 5px;
}
.fav-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gray-4); font-size: 15px; padding: 3px 5px;
  transition: var(--transition); margin-left: auto;
}
.fav-btn:hover { color: var(--gold); transform: scale(1.15); }
.fav-btn.favorited { color: var(--gold); }
.fav-btn-sm {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--gray-5);
  background: none; border: 1px solid var(--gray-3);
  padding: 4px 12px; border-radius: 20px; cursor: pointer;
  transition: var(--transition);
}
.fav-btn-sm:hover, .fav-btn-sm.favorited {
  color: var(--gold-dark); border-color: var(--gold); background: var(--gold-bg);
}
.feed-ad-item {
  background: linear-gradient(90deg, #fffbeb, #fff);
  padding: 12px 20px; border-bottom: 1px solid var(--gray-2);
  display: flex; align-items: center; gap: 10px;
}

/* ── FLASH TIMELINE ── */
.flash-timeline {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px; border: 1px solid var(--gray-3); box-shadow: var(--shadow-sm);
}
.timeline-date {
  font-size: 12px; font-weight: 700; color: var(--gray-5);
  padding: 10px 0 8px 20px; border-bottom: 1px solid var(--gray-2);
  margin-bottom: 6px; letter-spacing: .5px; text-transform: uppercase;
}
.timeline-item {
  display: flex; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--gray-2); position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.timeline-time {
  font-size: 11.5px; color: var(--gray-5); flex-shrink: 0;
  width: 42px; padding-top: 2px; font-weight: 500;
}
.timeline-content { flex: 1; }
.timeline-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  line-height: 1.5; display: block; margin-bottom: 4px; transition: color .15s;
}
.timeline-title:hover { color: var(--gold-dark); }
.timeline-summary { font-size: 12.5px; color: var(--gray-6); margin-bottom: 6px; line-height: 1.6; }
.timeline-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--gray-5); }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 20px; }
.page-title {
  font-size: 24px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 10px; letter-spacing: -.3px;
}
.page-title-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 16px; box-shadow: var(--shadow-gold);
}
.page-desc { font-size: 13.5px; color: var(--gray-6); margin-top: 5px; }

.category-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-btn {
  padding: 7px 18px; border-radius: 20px; font-size: 13px;
  font-weight: 500; color: var(--gray-6);
  background: var(--white); border: 1.5px solid var(--gray-3);
  transition: var(--transition);
}
.cat-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.cat-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white); border-color: transparent;
  box-shadow: 0 2px 8px rgba(245,158,11,.3);
}

/* ── ARTICLE DETAIL ── */
.article-detail {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 36px; border: 1px solid var(--gray-3); box-shadow: var(--shadow-sm);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--gray-5); margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }
.article-header { margin-bottom: 24px; }
.article-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.article-title {
  font-size: 26px; font-weight: 800; line-height: 1.38;
  color: var(--ink); margin-bottom: 14px; letter-spacing: -.4px;
}
.article-lead {
  font-size: 15.5px; color: var(--gray-6); line-height: 1.75;
  margin-bottom: 18px; padding: 16px 20px;
  background: linear-gradient(135deg, var(--gold-bg), #fff);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
}
.article-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray-5);
}
.meta-item { display: flex; align-items: center; gap: 5px; }
.meta-item a { color: var(--blue); }
.article-cover { margin: 24px 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-content {
  font-size: 15.5px; line-height: 1.9; color: var(--ink-3); margin: 24px 0;
}
.article-content h2 { font-size: 21px; font-weight: 800; margin: 28px 0 14px; color: var(--ink); }
.article-content h3 { font-size: 17.5px; font-weight: 700; margin: 22px 0 10px; color: var(--ink); }
.article-content p { margin-bottom: 18px; }
.article-content img { border-radius: var(--radius); margin: 20px 0; box-shadow: var(--shadow); }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-content blockquote {
  border-left: 4px solid var(--gold); padding: 14px 20px;
  background: var(--gold-bg); margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--gray-6); font-style: italic;
}
.article-tags {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 24px 0; padding-top: 24px; border-top: 1px solid var(--gray-3);
}
.tag {
  padding: 5px 14px; background: var(--gray-2); color: var(--gray-6);
  border-radius: 20px; font-size: 12.5px; transition: var(--transition);
  border: 1px solid var(--gray-3);
}
.tag:hover { background: var(--gold-bg); color: var(--gold-dark); border-color: var(--gold-border); }
.article-actions {
  display: flex; gap: 12px; padding: 22px 0;
  border-top: 1px solid var(--gray-3); border-bottom: 1px solid var(--gray-3); margin: 24px 0;
}
.action-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  background: var(--gray-2); color: var(--gray-6);
  transition: var(--transition); cursor: pointer; border: 1.5px solid var(--gray-3);
}
.action-btn:hover { background: var(--gold-bg); color: var(--gold-dark); border-color: var(--gold-border); }
.action-btn.favorited { background: var(--gold-bg); color: var(--gold-dark); border-color: var(--gold-border); }
.article-nav { display: flex; gap: 14px; margin: 24px 0; }
.article-nav-item {
  flex: 1; padding: 16px 18px; background: var(--gray-1);
  border-radius: var(--radius); transition: var(--transition); border: 1px solid var(--gray-3);
}
.article-nav-item:hover { background: var(--gold-bg); border-color: var(--gold-border); }
.nav-label { font-size: 11.5px; color: var(--gray-5); display: block; margin-bottom: 5px; font-weight: 500; }
.nav-title { font-size: 13.5px; color: var(--ink-3); display: block; line-height: 1.45; font-weight: 500; }
.related-articles { margin-top: 28px; }
.section-title {
  font-size: 17px; font-weight: 800; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--gold);
  display: inline-block; color: var(--ink); letter-spacing: -.2px;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.related-item {
  display: flex; flex-direction: column; border-radius: var(--radius);
  overflow: hidden; background: var(--gray-1);
  border: 1px solid var(--gray-3); transition: var(--transition);
}
.related-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gray-4); }
.related-img { width: 100%; height: 120px; object-fit: cover; }
.related-img-placeholder {
  width: 100%; height: 120px;
  background: linear-gradient(135deg, var(--gray-3), var(--gray-2));
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-4); font-size: 28px;
}
.related-info { padding: 12px; }
.related-title {
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  line-height: 1.45; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-meta { display: flex; gap: 8px; font-size: 11px; color: var(--gray-5); }

/* ── SIDEBAR ── */
.sidebar-widget {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 18px;
  border: 1px solid var(--gray-3); box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 14.5px; font-weight: 800; color: var(--ink);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--gray-2); letter-spacing: -.1px;
}
.widget-title i { color: var(--gold); }
.hot-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--gray-2);
}
.hot-item:last-child { border-bottom: none; }
.hot-rank {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--gray-2); color: var(--gray-5);
  font-size: 11.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hot-rank.top-1 { background: linear-gradient(135deg, #ef4444, #dc2626); color: var(--white); }
.hot-rank.top-2 { background: linear-gradient(135deg, #f97316, #ea580c); color: var(--white); }
.hot-rank.top-3 { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--white); }
.hot-title { font-size: 13px; color: var(--ink-3); line-height: 1.45; font-weight: 500; }
.hot-title:hover { color: var(--gold-dark); }
.flash-item-mini { padding: 9px 0; border-bottom: 1px solid var(--gray-2); }
.flash-item-mini:last-child { border-bottom: none; }
.flash-time { font-size: 11px; color: var(--gray-5); display: block; margin-bottom: 3px; font-weight: 500; }
.flash-title-mini { font-size: 13px; color: var(--ink-3); line-height: 1.45; display: block; font-weight: 500; }
.flash-title-mini:hover { color: var(--gold-dark); }
.ad-widget { padding: 6px; }

/* ── PAGINATION ── */
.pagination-wrap { padding: 24px 0; }
.pagination ul { display: flex; gap: 6px; list-style: none; justify-content: center; flex-wrap: wrap; }
.pagination li a, .pagination li.active a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--gray-6);
  background: var(--white); border: 1.5px solid var(--gray-3);
  transition: var(--transition);
}
.pagination li a:hover { border-color: var(--gold); color: var(--gold-dark); }
.pagination li.active a {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white); border-color: transparent;
  box-shadow: 0 2px 8px rgba(245,158,11,.3);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink); color: #94a3b8;
  padding: 48px 0 24px; margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: 36px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 8px rgba(245,158,11,.3); }
.footer-site-name { font-size: 17px; font-weight: 800; color: var(--white); }
.footer-site-en { font-size: 10px; color: var(--gold); letter-spacing: 1.2px; font-weight: 700; text-transform: uppercase; }
.footer-desc { font-size: 13px; line-height: 1.75; color: #64748b; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 13.5px; font-weight: 700; color: #cbd5e1; margin-bottom: 14px; letter-spacing: .2px; }
.footer-col a { display: block; font-size: 13px; color: #64748b; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 22px; text-align: center;
}
.footer-bottom p { font-size: 12.5px; color: #475569; margin-bottom: 4px; }
.footer-disclaimer { font-size: 11.5px; color: #334155; }

/* ── AUTH PAGES ── */
.auth-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f0f9ff 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-container { width: 100%; max-width: 460px; }
.auth-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 44px 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-3);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-logo-img { width: 60px; height: 60px; border-radius: 16px; box-shadow: var(--shadow-gold); }
.auth-site-name { font-size: 19px; font-weight: 800; color: var(--ink); }
.auth-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 6px; color: var(--ink); letter-spacing: -.4px; }
.auth-subtitle { font-size: 13.5px; color: var(--gray-5); text-align: center; margin-bottom: 28px; }
.auth-form { margin-bottom: 22px; }
.auth-footer { text-align: center; font-size: 13.5px; color: var(--gray-6); }

.form-group { margin-bottom: 18px; }
.form-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 7px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 13px; color: var(--gray-4); font-size: 14px; }
.form-input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--gray-3); border-radius: var(--radius);
  font-size: 14px; color: var(--ink-3); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.form-input::placeholder { color: var(--gray-4); }
.toggle-pwd { position: absolute; right: 12px; color: var(--gray-4); font-size: 14px; padding: 4px; cursor: pointer; }
.toggle-pwd:hover { color: var(--gray-6); }
.checkbox-label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--gray-6); cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--gold); }
.link { color: var(--gold-dark); font-weight: 600; }
.link:hover { text-decoration: underline; }
.float-right { margin-left: auto; }

.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13.5px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 9px; font-weight: 500;
}
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; }
.alert-success { background: var(--green-bg); color: #16a34a; border: 1px solid #bbf7d0; }

.empty-state { text-align: center; padding: 64px 20px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-3); }
.empty-state i { font-size: 52px; color: var(--gray-3); margin-bottom: 18px; display: block; }
.empty-state p { color: var(--gray-5); margin-bottom: 20px; font-size: 14px; }

.search-bar-large { margin-bottom: 22px; }
.search-input-wrap {
  display: flex; background: var(--white);
  border-radius: var(--radius-lg); border: 2px solid var(--gold);
  overflow: hidden; box-shadow: var(--shadow-gold);
}
.search-input-lg { flex: 1; padding: 15px 18px; border: none; font-size: 15px; outline: none; color: var(--ink); }
.search-btn-lg {
  padding: 15px 26px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white); border: none; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 7px; transition: var(--transition);
}
.search-btn-lg:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .sidebar { display: none; }
  .content-layout { flex-direction: column; }
  .top-banner { grid-template-columns: 1fr; }
  .top-banner-item.main { grid-row: auto; min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav.open { display: block; }
  .feed-thumb { width: 108px; height: 76px; }
  .article-title { font-size: 21px; }
  .article-detail { padding: 20px 18px; }
  .article-nav { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 30px 22px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
