/* ========== CSS VARIABLES ========== */
:root {
  --blue-deep: #54211d;
  --blue-bright: #b4534b;
  --blue-light: #f5ece6;
  --blue-mid: #78331e;
  --orange-rich: #b4534b;
  --orange-warm: #f47a55;
  --orange-light: #fdf5ef;
  --orange-pale: #f0e6d6;
  --primary-deep: #54211d;
  --primary-bright: #b4534b;
  --primary-warm: #f47a55;
  --primary-light: #fdf5ef;
  --white: #ffffff;
  --gray-50: #faf7f3;
  --gray-100: #f0ebe3;
  --gray-200: #e2dcd2;
  --gray-300: #c9c0b3;
  --gray-400: #a89d8e;
  --gray-500: #7d7264;
  --gray-600: #5c4f42;
  --gray-700: #3d3228;
  --gray-800: #2a2018;
  --nav-gradient: linear-gradient(135deg, #78331e 0%, #b4534b 35%, #f47a55 70%, #b4534b 100%);
  --nav-accent: #d5c59f;
  --nav-accent-glow: rgba(213, 197, 159, 0.15);
  --separator-gradient: linear-gradient(90deg, #d5c59f, #b4534b, #f47a55, #d5c59f);
  --card-shadow: 0 2px 8px rgba(84, 33, 29, 0.08);
  --card-shadow-hover: 0 8px 25px rgba(180, 83, 75, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --green-deep: #367459;
  --green-light: #e8f5ee;
  --gold: #d5c59f;
  --gold-light: #f5f0e4;
  --gold-dark: #b8a67e;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button,
input {
  font-family: inherit;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== GRADIENT SEPARATOR ========== */
.gradient-separator {
  height: 4px;
  background: var(--separator-gradient);
  border: none;
  margin: 0;
}

/* ========== MAIN NAV ========== */
.main-nav {
  background: var(--nav-gradient);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(180, 83, 75, 0.35);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '汇';
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.logo-text {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-text span {
  font-size: 11px;
  font-weight: 400;
  display: block;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: 16px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #f47a55;
  border-radius: 2px;
}

.nav-search {
  flex: 1;
  max-width: 320px;
  margin-left: auto;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 40px 0 16px;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.nav-search input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-search .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-search .search-icon:hover {
  color: #fff;
}

.nav-auth {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-ghost {
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.btn-solid {
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  background: #f47a55;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(244, 122, 85, 0.3);
}

.btn-solid:hover {
  background: #e06840;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(244, 122, 85, 0.4);
}

/* ========== LOTTERY PILLS BAR ========== */
#lotteryPillsNav {
  display: flex;
  gap: 10px;
}

.lottery-pills-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 72px;
  z-index: 999;
}

.pills-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  overflow-x: auto;
}

.pills-inner::-webkit-scrollbar {
  height: 0;
}

.pill-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
  margin-right: 4px;
}

.lottery-pill {
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  border: 2px solid transparent;
  background: var(--gray-100);
  color: var(--gray-600);
}

.lottery-pill:hover {
  background: var(--orange-light);
  color: var(--orange-warm);
  border-color: var(--orange-warm);
}

.lottery-pill.active {
  background: linear-gradient(135deg, var(--orange-warm), var(--orange-rich));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(244, 122, 85, 0.3);
}

.lottery-pill:nth-child(3).active {
  background: linear-gradient(135deg, #b4534b, #8a3a34);
  box-shadow: 0 3px 12px rgba(180, 83, 75, 0.3);
}

.lottery-pill:nth-child(4).active {
  background: linear-gradient(135deg, #f47a55, #d45e3a);
  box-shadow: 0 3px 12px rgba(244, 122, 85, 0.3);
}

.lottery-pill:nth-child(5).active {
  background: linear-gradient(135deg, #367459, #54211d);
  box-shadow: 0 3px 12px rgba(54, 116, 89, 0.3);
}

.lottery-pill:nth-child(6).active {
  background: linear-gradient(135deg, #78331e, #5c2616);
  box-shadow: 0 3px 12px rgba(120, 51, 30, 0.3);
}

.lottery-pill:nth-child(7).active {
  background: linear-gradient(135deg, #d5c59f, #b8a67e);
  box-shadow: 0 3px 12px rgba(213, 197, 159, 0.3);
}

.lottery-pill:nth-child(8).active {
  background: linear-gradient(135deg, #367459, #4a9a76);
  box-shadow: 0 3pt 12px rgba(54, 116, 89, 0.3);
}

.lottery-pill:nth-child(9).active {
  background: linear-gradient(135deg, #b4534b, #d5c59f);
  box-shadow: 0 3px 12px rgba(180, 83, 75, 0.3);
}

.lottery-pill:nth-child(10).active {
  background: linear-gradient(135deg, var(--primary-deep), #54211d);
  box-shadow: 0 3px 12px rgba(84, 33, 29, 0.3);
}

/* ========== 3-COLUMN LAYOUT ========== */
.page-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 24px;
  padding: 24px;
  min-height: 800px;
}

/* ========== LEFT SIDEBAR ========== */
.sidebar-left {
  position: sticky;
  top: 128px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.sidebar-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.sidebar-card-header {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-deep);
  border-bottom: 2px solid;
  border-image: var(--separator-gradient) 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-header .icon {
  font-size: 18px;
}

.sidebar-card-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.sidebar-card-more:hover {
  color: var(--orange-rich);
}

.sidebar-card-body {
  padding: 12px 16px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gray-200);
  font-size: 14px;
  color: var(--gray-600);
  transition: var(--transition);
  cursor: pointer;
}

.quick-link:last-child {
  border-bottom: none;
}

.quick-link:hover {
  color: var(--orange-rich);
  padding-left: 6px;
}

.quick-link .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-warm);
  flex-shrink: 0;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.tool-item:last-child {
  margin-bottom: 0;
}

.tool-item:hover {
  background: var(--orange-light);
  box-shadow: 0 2px 8px rgba(221, 107, 32, 0.1);
}

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tool-icon.blue {
  background: var(--primary-light);
}

.tool-icon.orange {
  background: var(--orange-pale);
}

.tool-item-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.tool-item-desc {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--gray-600);
}

.contact-item .ci-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ========== CENTER COLUMN ========== */
.center-col {
  min-width: 0;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-header .accent-bar {
  width: 5px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary-deep), var(--orange-rich));
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-deep);
  letter-spacing: 0.5px;
}

.section-header .more {
  margin-left: auto;
  font-size: 13px;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
}

.section-header .more:hover {
  color: var(--orange-rich);
}

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  max-width: 348px;
  width: 348px;
  height: 220px;
  flex-shrink: 0;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide:nth-child(1) {
  background: linear-gradient(135deg, #78331e 0%, #b4534b 50%, #f47a55 100%);
}

.carousel-slide:nth-child(2) {
  background: linear-gradient(135deg, #b4534b 0%, #f47a55 50%, #d5c59f 100%);
}

.carousel-slide:nth-child(3) {
  background: linear-gradient(135deg, #54211d 0%, #78331e 50%, #b4534b 100%);
}

.carousel-slide:nth-child(4) {
  background: linear-gradient(135deg, #f47a55 0%, #d5c59f 50%, #b8a67e 100%);
}

.slide-content {
  color: #fff;
}

.slide-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.slide-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slide-desc {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-visual {
  display: none;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}

.carousel-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ========== HERO ROW (carousel + side panel) ========== */
.hero-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
  height: 220px;
}

.hero-side-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.hero-side-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

.hero-side-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(180, 83, 75, 0.04));
  pointer-events: none;
}

.hero-side-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hero-side-icon.si1 {
  background: linear-gradient(135deg, #fdf5ef, #feebc8);
}

.hero-side-icon.si2 {
  background: linear-gradient(135deg, #f5f0e4, #d5c59f);
}

.hero-side-icon.si3 {
  background: linear-gradient(135deg, #fdf5ef, #f47a55);
  color: #fff;
}

.hero-side-text {
  flex: 1;
  min-width: 0;
}

.hero-side-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-side-desc {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-side-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.hero-side-badge.hot {
  background: #fff5f5;
  color: #e53e3e;
}

.hero-side-badge.new {
  background: #fdf5ef;
  color: #f47a55;
}

.hero-side-badge.top {
  background: #f5f0e4;
  color: #b8a67e;
}

/* ========== DRAW RESULTS CARDS ========== */
.draw-section {
  margin-bottom: 24px;
}

.draw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.draw-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 20px;
  transition: var(--transition);
  border-left: 4px solid var(--primary-bright);
  position: relative;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
}

.draw-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(49, 130, 206, 0.06), transparent 70%);
  pointer-events: none;
}

.draw-card:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
  border-left-color: var(--orange-rich);
}

.draw-card:nth-child(2) {
  border-left-color: #b4534b;
}

.draw-card:nth-child(3) {
  border-left-color: #f47a55;
}

.draw-card:nth-child(4) {
  border-left-color: #367459;
}

.draw-card:nth-child(5) {
  border-left-color: #78331e;
}

.draw-card:nth-child(6) {
  border-left-color: #d5c59f;
}

.draw-card:nth-child(7) {
  border-left-color: #4a9a76;
}

.draw-card:nth-child(8) {
  border-left-color: #b4534b;
}

.draw-card:nth-child(2):hover {
  border-left-color: #8a3a34;
}

.draw-card:nth-child(3):hover {
  border-left-color: #d45e3a;
}

.draw-card:nth-child(4):hover {
  border-left-color: #54211d;
}

.draw-card:nth-child(5):hover {
  border-left-color: #5c2616;
}

.draw-card:nth-child(6):hover {
  border-left-color: #b8a67e;
}

.draw-card:nth-child(7):hover {
  border-left-color: #367459;
}

.draw-card:nth-child(8):hover {
  border-left-color: #8a3a34;
}

.draw-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.draw-lottery-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-deep);
}

.draw-period {
  font-size: 12px;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.draw-balls {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.draw-balls.kl8-balls,
.draw-balls--compact {
  gap: 5px;
}

.ball {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.ball.kl8-ball {
  width: 24px;
  height: 24px;
  font-size: 11px;
  gap: 5px;
}

.ball.red,
.ball--red {
  background: linear-gradient(135deg, #b4534b, #8a3a34);
  box-shadow: 0 2px 6px rgba(180, 83, 75, 0.3);
}

.ball.blue,
.ball--blue {
  background: linear-gradient(135deg, #4a7cf7, #2b5fd9);
  box-shadow: 0 2px 6px rgba(74, 124, 247, 0.3);
}

.ball.orange,
.ball--orange {
  background: linear-gradient(135deg, var(--orange-warm), #d45e3a);
  box-shadow: 0 2px 6px rgba(244, 122, 85, 0.3);
}

.ball.green,
.ball--green {
  background: linear-gradient(135deg, #367459, #2a5c45);
  box-shadow: 0 2px 6px rgba(54, 116, 89, 0.3);
}

.ball--purple {
  background: linear-gradient(135deg, #8d62ff, #6b3fd4);
  box-shadow: 0 2px 6px rgba(141, 98, 255, 0.3);
}

.ball--gold {
  background: linear-gradient(135deg, #fdb933, #d49a1a);
  box-shadow: 0 2px 6px rgba(253, 185, 51, 0.3);
}

.ball--teal {
  background: linear-gradient(135deg, #29b6b0, #1e9490);
  box-shadow: 0 2px 6px rgba(41, 182, 176, 0.3);
}

.ball--violet {
  background: linear-gradient(135deg, #b06dff, #8a4cd4);
  box-shadow: 0 2px 6px rgba(176, 109, 255, 0.3);
}

.ball--empty {
  background: var(--gray-200);
  color: var(--gray-400);
  box-shadow: none;
}

.ball--compact {
  width: 29px;
  height: 29px;
  font-size: 11px;
}

.draw-card:hover .ball {
  transform: scale(1.08);
}

.draw-date {
  font-size: 12px;
  color: var(--gray-400);
}

/* ========== TREND CHART CARDS ========== */
.trend-section {
  margin-bottom: 24px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.trend-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 20px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.trend-card:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.trend-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.trend-icon-wrap.t1 {
  background: linear-gradient(135deg, rgba(49, 130, 206, 0.12), rgba(49, 130, 206, 0.04));
}

.trend-icon-wrap.t2 {
  background: linear-gradient(135deg, rgba(229, 62, 62, 0.12), rgba(229, 62, 62, 0.04));
}

.trend-icon-wrap.t3 {
  background: linear-gradient(135deg, rgba(221, 107, 32, 0.12), rgba(221, 107, 32, 0.04));
}

.trend-icon-wrap.t4 {
  background: linear-gradient(135deg, rgba(56, 161, 105, 0.12), rgba(56, 161, 105, 0.04));
}

.trend-icon-wrap.t5 {
  background: linear-gradient(135deg, rgba(128, 90, 213, 0.12), rgba(128, 90, 213, 0.04));
}

.trend-icon-wrap.t6 {
  background: linear-gradient(135deg, rgba(214, 158, 46, 0.12), rgba(214, 158, 46, 0.04));
}

.trend-icon-wrap.t7 {
  background: linear-gradient(135deg, rgba(49, 151, 149, 0.12), rgba(49, 151, 149, 0.04));
}

.trend-icon-wrap.t8 {
  background: linear-gradient(135deg, rgba(213, 63, 140, 0.12), rgba(213, 63, 140, 0.04));
}

.trend-info {
  flex: 1;
  min-width: 0;
}

.trend-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.trend-desc {
  font-size: 12px;
  color: var(--gray-400);
}

.trend-arrow {
  font-size: 18px;
  color: var(--gray-300);
  transition: var(--transition);
}

.trend-card:hover .trend-arrow {
  color: var(--orange-rich);
  transform: translateX(4px);
}

/* ========== AD BANNER ========== */
.ad-banner {
  background: linear-gradient(135deg, var(--orange-light), var(--primary-light));
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 60px;
  border: 1px solid rgba(221, 107, 32, 0.1);
}

.ad-slot {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-400);
  padding: 12px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px dashed var(--gray-300);
}

.ad-slot:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--orange-warm);
  color: var(--orange-rich);
}

/* ========== EXPERT ARTICLES ========== */
.expert-section {
  margin-bottom: 24px;
}

.expert-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.expert-tabs::-webkit-scrollbar {
  height: 0;
}

.expert-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.expert-tab:hover {
  color: var(--primary-deep);
}

.expert-tab.active {
  background: var(--white);
  color: var(--primary-deep);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.expert-content {
  display: none;
}

.expert-content.active {
  display: block;
}

.expert-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
}

.expert-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff8f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 51, 30, 0.12);
}

.expert-avatar img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}

.expert-info {
  flex: 1;
}

.expert-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-deep);
}

.expert-title {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

.expert-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.expert-stat {
  font-size: 12px;
  color: var(--gray-500);
}

.expert-stat strong {
  color: var(--orange-rich);
  font-size: 16px;
}

.expert-articles {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
}

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

.article-item:hover {
  background: var(--orange-light);
  padding-left: 26px;
}

.article-num {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.article-num.n1 {
  background: linear-gradient(135deg, #b4534b, #8a3a34);
}

.article-num.n2 {
  background: linear-gradient(135deg, var(--orange-warm), #d45e3a);
}

.article-num.n3 {
  background: linear-gradient(135deg, #d5c59f, #b8a67e);
}

.article-num.n4,
.article-num.n5 {
  background: var(--gray-300);
  color: var(--gray-600);
}

.article-title {
  flex: 1;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

.article-meta {
  font-size: 12px;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* ========== EDUCATION SECTION ========== */
.edu-section {
  margin-bottom: 24px;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.edu-card:hover {
  transform: scale(1.03);
  box-shadow: var(--card-shadow-hover);
}

.edu-thumb {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.edu-thumb:nth-child(1) {
  background: linear-gradient(135deg, #ebf4ff, #bee3f8);
}

.edu-card:nth-child(1) .edu-thumb {
  background: linear-gradient(135deg, #ebf4ff, #bee3f8);
}

.edu-card:nth-child(2) .edu-thumb {
  background: linear-gradient(135deg, #fffaf0, #feebc8);
}

.edu-card:nth-child(3) .edu-thumb {
  background: linear-gradient(135deg, #f0fff4, #c6f6d5);
}

.edu-card:nth-child(4) .edu-thumb {
  background: linear-gradient(135deg, #faf5ff, #e9d8fd);
}

.edu-card:nth-child(5) .edu-thumb {
  background: linear-gradient(135deg, #fffff0, #fefcbf);
}

.edu-body {
  padding: 14px;
}

.edu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.edu-desc {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ========== RECOMMENDATIONS ========== */
.rec-section {
  margin-bottom: 24px;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rec-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.rec-card:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.rec-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.rec-card:nth-child(1) .rec-icon {
  background: var(--primary-light);
}

.rec-card:nth-child(2) .rec-icon {
  background: var(--orange-pale);
}

.rec-card:nth-child(3) .rec-icon {
  background: #f0fff4;
}

.rec-card:nth-child(4) .rec-icon {
  background: #faf5ff;
}

.rec-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.rec-hint {
  font-size: 12px;
  color: var(--gray-400);
}

/* ========== FRIEND LINKS ========== */
.friend-links {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px;
  margin-bottom: 24px;
}

.friend-links-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-links-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--orange-rich);
  border-radius: 2px;
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.friend-link {
  padding: 5px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--gray-500);
  transition: var(--transition);
  cursor: pointer;
}

.friend-link:hover {
  background: var(--primary-light);
  color: var(--primary-bright);
}

/* ========== RIGHT SIDEBAR ========== */
.sidebar-right {
  position: sticky;
  top: 128px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qr-card {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-warm));
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.25);
}

.qr-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.qr-card p {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 16px;
}

.qr-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.qr-placeholder-inner {
  font-size: 14px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder-inner img,
.qr-placeholder-inner canvas {
  display: block !important;
  opacity: 1 !important;
}

.qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
}

.announce-list {
  padding: 0 12px;
}

.announce-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px dashed var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
}

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

.announce-item:hover {
  padding-left: 4px;
}

.announce-tag {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.announce-tag.hot {
  background: #fff5f5;
  color: #e53e3e;
}

.announce-tag.new {
  background: var(--primary-light);
  color: var(--primary-bright);
}

.announce-tag.tip {
  background: var(--orange-pale);
  color: var(--orange-rich);
}

.announce-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce-date {
  font-size: 11px;
  color: var(--gray-400);
  display: block;
  margin-top: 4px;
}

.ad-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.ad-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--orange-light), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray-400);
  border: 1px dashed var(--gray-300);
  margin: 12px;
  border-radius: var(--radius-sm);
}

.ad-card-label {
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--nav-gradient);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 0;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand .footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.7;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #f47a55;
  border-radius: 1px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  opacity: 0.7;
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  color: #f47a55;
}

.footer-qr {
  text-align: center;
}

.footer-qr-box {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(255, 255, 255, 0.25);
}

.footer-qr-box img,
.footer-qr-box canvas {
  display: block !important;
  opacity: 1 !important;
}

.footer-qr-text {
  font-size: 12px;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ========== LAYUI CAROUSEL STYLES ========== */
.hero-carousel-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  max-width: 348px;
  width: 348px;
  height: 220px;
  flex-shrink: 0;
}

.hero-carousel-wrap .layui-carousel {
  height: 100%;
}

.hero-carousel-wrap .layui-carousel>[carousel-item] {
  height: 100%;
}

.hero-carousel-wrap .layui-carousel>[carousel-item]>* {
  height: 100%;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #78331e 0%, #b4534b 50%, #f47a55 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-fallback__content {
  text-align: center;
  color: #fff;
  padding: 20px;
}

.banner-fallback__content span {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.banner-fallback__content strong {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========== RESPONSIVE (minimal) ========== */
@media (max-width: 1200px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-left,
  .sidebar-right {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-row {
    flex-direction: column;
    height: auto;
  }

  .hero-carousel-wrap {
    max-width: 100%;
    width: 100%;
    height: 200px;
  }

  .hero-side-panel {
    flex-direction: row;
  }

  .hero-side-card {
    min-width: 0;
  }

  .draw-grid {
    grid-template-columns: 1fr;
  }

  .trend-grid {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
