*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #f0d687;
  --gold-light: #f5e29a;
  --gold-bright: #fff3c0;
  --gold-dark: #e8b84d;
  --bg-deep: #0a0c12;
  --bg-card: rgba(16, 20, 30, 0.75);
  --border-color: rgba(240, 214, 135, 0.15);
  --border-glow: rgba(240, 214, 135, 0.35);
  --text-white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --glow-gold: rgba(240, 214, 135, 0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 17px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-left { display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon { width: 40px; height: 40px; }
.logo-text {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.city-selector select {
  padding: 0.55rem 1.8rem 0.55rem 0.8rem;
  border: none;
  background: transparent;
  color: var(--text-white);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  transition: all 0.2s ease;
  border-radius: 8px;
}
.city-selector select:hover {
  color: var(--gold);
  background-color: rgba(240, 214, 135, 0.08);
}
.city-selector select:focus {
  outline: none;
  color: var(--gold);
}
.city-selector select option {
  background: #1a1c28;
  color: #ffffff;
}

.navbar-right { display: flex; align-items: center; gap: 1rem; }
.nav-btn {
  padding: 0.55rem 1.1rem; border: none; background: transparent;
  color: var(--text-white); font-size: 1rem; font-family: inherit;
  cursor: pointer; border-radius: 8px; transition: all 0.2s ease;
  display: flex; align-items: center; gap: 0.35rem;
}
.nav-btn:hover { color: var(--gold); background: rgba(240, 214, 135, 0.08); }
.dropdown-arrow { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-dropdown { position: relative; }

.dropdown-menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  background: rgba(16, 20, 30, 0.98); border: 1px solid var(--border-color);
  border-radius: 10px; padding: 0.45rem; min-width: 140px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.2s ease; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}
.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: block; padding: 0.6rem 0.85rem; color: var(--text-white);
  text-decoration: none; font-size: 0.95rem; border-radius: 6px; transition: all 0.15s ease;
}
.dropdown-item:hover { background: rgba(240, 214, 135, 0.1); color: var(--gold); }
.dropdown-item.active { background: rgba(240, 214, 135, 0.12); color: var(--gold-light); }

/* ===== HERO ===== */
.hero {
  position: relative; width: 100%; height: 560px; overflow: hidden;
  background: var(--bg-deep); display: flex; align-items: center; justify-content: center;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240, 214, 135, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 214, 135, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
}

.hero-scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3; animation: scanLine 5s ease-in-out infinite;
}
@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

.hero-scan-line:nth-child(2) { animation-delay: 2.5s; opacity: 0.2; height: 1px; }

.hero-glow-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  animation: orbFloat ease-in-out infinite;
}
.hero-glow-orb:nth-child(1) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240, 214, 135, 0.08), transparent 70%);
  top: -100px; left: -100px; animation-duration: 6s;
}
.hero-glow-orb:nth-child(2) {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.06), transparent 70%);
  top: 40%; right: -50px; animation-duration: 8s; animation-delay: 1.5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.1); }
}

.hero-circuit { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-circuit-line {
  position: absolute; background: linear-gradient(90deg, transparent, rgba(240, 214, 135, 0.15), transparent);
  height: 1px; animation: circuitFlow 4s ease-in-out infinite;
}
.hero-circuit-line:nth-child(1) { top: 25%; left: 5%; width: 180px; animation-delay: 0s; }
.hero-circuit-line:nth-child(2) { top: 48%; right: 5%; left: auto; width: 200px; animation-delay: 1s; }
.hero-circuit-line:nth-child(3) { bottom: 30%; left: 8%; width: 160px; animation-delay: 2s; }
@keyframes circuitFlow {
  0%, 100% { opacity: 0.2; transform: scaleX(1); }
  50% { opacity: 0.7; transform: scaleX(1.2); }
}

.hero-circuit-dot {
  position: absolute; width: 5px; height: 5px; background: var(--gold);
  border-radius: 50%; box-shadow: 0 0 10px var(--glow-gold);
  animation: dotPulse 2.5s ease-in-out infinite;
}
.hero-circuit-dot:nth-child(4) { top: 23%; left: 185px; animation-delay: 0.2s; }
.hero-circuit-dot:nth-child(5) { top: 46%; right: 205px; left: auto; animation-delay: 1.2s; }
.hero-circuit-dot:nth-child(6) { bottom: 28%; left: 168px; animation-delay: 2.2s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-hex-grid {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  width: 200px; height: 200px; pointer-events: none;
  animation: hexGridRotate 25s linear infinite;
}
@keyframes hexGridRotate { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
.hero-hex {
  position: absolute; width: 60px; height: 60px; border: 1px solid rgba(240, 214, 135, 0.2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(240, 214, 135, 0.04); animation: hexPulse 3s ease-in-out infinite;
}
.hero-hex:nth-child(1) { top: 20px; left: 70px; animation-delay: 0s; }
.hero-hex:nth-child(2) { top: 70px; left: 20px; animation-delay: 0.5s; }
.hero-hex:nth-child(3) { top: 70px; left: 120px; animation-delay: 1s; }
.hero-hex:nth-child(4) { top: 120px; left: 70px; animation-delay: 1.5s; }
@keyframes hexPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; background: rgba(240, 214, 135, 0.06); } }

.hero-ring-group {
  position: absolute; right: 120px; top: 50%; transform: translateY(-50%);
  width: 260px; height: 260px; pointer-events: none;
}
.hero-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(240, 214, 135, 0.12);
  animation: ringRotate 18s linear infinite;
}
.hero-ring::after {
  content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 8px var(--glow-gold);
}
.hero-ring-2 {
  position: absolute; inset: 22px; border-radius: 50%;
  border: 1px dashed rgba(240, 214, 135, 0.08);
  animation: ringRotate 12s linear infinite reverse;
}
.hero-ring-2::after {
  content: ''; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; background: var(--gold-dark); border-radius: 50%;
  box-shadow: 0 0 6px rgba(212, 168, 67, 0.5);
}
.hero-ring-3 {
  position: absolute; inset: 44px; border-radius: 50%;
  border: 1px solid rgba(240, 214, 135, 0.06);
  animation: ringRotate 8s linear infinite;
}
@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-core {
  position: absolute; right: 185px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.hero-core-diamond {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  transform: rotate(45deg);
  box-shadow: 0 0 24px var(--glow-gold), 0 0 48px rgba(240, 214, 135, 0.15);
  animation: corePulse 2.5s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 24px var(--glow-gold), 0 0 48px rgba(240, 214, 135, 0.15); transform: rotate(45deg) scale(1); }
  50% { box-shadow: 0 0 32px var(--glow-gold), 0 0 64px rgba(240, 214, 135, 0.25); transform: rotate(45deg) scale(1.08); }
}

.hero-content { position: relative; text-align: center; padding: 0 32px; animation: fadeUp 0.8s ease both; z-index: 1; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(240, 214, 135, 0.08); border: 1px solid rgba(240, 214, 135, 0.2);
  border-radius: 24px; padding: 5px 18px; margin-bottom: 22px;
  font-size: 0.85rem; letter-spacing: 0.15em; color: var(--gold-light);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 8px var(--glow-gold); animation: dotPulse 2s ease-in-out infinite;
}

.hero-title-zh {
  font-size: clamp(3.2rem, 8vw, 5.5rem); font-weight: 700;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-light), var(--gold-dark), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 0.12em; margin-bottom: 14px;
  filter: drop-shadow(0 2px 24px rgba(240, 214, 135, 0.3));
}

.hero-title-en { font-size: 1.1rem; color: var(--text-secondary); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 26px; }

.hero-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.hero-divider-line { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-divider-line.right { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-divider-diamond {
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 10px var(--glow-gold), 0 0 20px rgba(240, 214, 135, 0.3);
  animation: diamondGlow 2.5s ease-in-out infinite;
}
@keyframes diamondGlow {
  0%, 100% { box-shadow: 0 0 8px var(--glow-gold); transform: rotate(45deg) scale(1); }
  50% { box-shadow: 0 0 18px var(--glow-gold), 0 0 30px rgba(240, 214, 135, 0.25); transform: rotate(45deg) scale(1.15); }
}

.hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); letter-spacing: 0.06em; max-width: 560px; margin: 0 auto; }

/* ===== FILTER BAR ===== */
.filter-bar {
  position: relative; background: rgba(16, 20, 30, 0.8);
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}
.filter-bar-container {
  max-width: 1100px; margin: 0 auto; padding: 0.6rem 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.breadcrumb { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.breadcrumb-item { font-size: 0.92rem; color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb-item.active { color: var(--gold); font-weight: 500; }
.breadcrumb-sep { color: rgba(240, 214, 135, 0.3); font-size: 0.85rem; transform: rotate(15deg); display: inline-block; }

.filter-controls { display: flex; align-items: center; gap: 1rem; }
.filter-select-wrapper select, .search-box input {
  padding: 0.5rem 0.8rem; border-radius: 8px; border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05); color: var(--text-white); font-size: 0.9rem;
  font-family: inherit; transition: all 0.2s;
}
.filter-select-wrapper select {
  padding-right: 2rem; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center;
}
.filter-select-wrapper select option { background: #1a1c28; color: #ffffff; }
.filter-select-wrapper select:focus, .search-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 214, 135, 0.15); }

.search-box { position: relative; display: flex; align-items: center; }
.search-box input { padding-right: 40px; width: 260px; }
.search-box button {
  position: absolute; right: 6px; background: transparent; border: none;
  color: var(--text-secondary); cursor: pointer; padding: 6px; border-radius: 6px;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.search-box button:hover { color: var(--gold); background: rgba(240, 214, 135, 0.1); }

.highlight {
  background: rgba(240, 214, 135, 0.25); color: var(--gold-bright);
  padding: 1px 4px; border-radius: 3px; box-shadow: 0 0 4px rgba(240, 214, 135, 0.2);
}

/* ===== CARDS SECTION ===== */
.cards-section {
  position: relative; max-width: 1100px; margin: 0 auto;
  padding: 3rem 2rem 6rem; z-index: 2;
}

.cards-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}

.cards-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(240, 214, 135, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 214, 135, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.bg-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 214, 135, 0.06), transparent);
  animation: bgLineMove 12s ease-in-out infinite;
}
.bg-line:nth-child(2) { top: 15%; animation-delay: 0s; }
.bg-line:nth-child(3) { top: 40%; animation-delay: 3s; }
.bg-line:nth-child(4) { top: 65%; animation-delay: 6s; }
.bg-line:nth-child(5) { top: 85%; animation-delay: 9s; }
@keyframes bgLineMove {
  0%, 100% { transform: translateX(-8%) scaleX(0.8); opacity: 0.3; }
  50% { transform: translateX(8%) scaleX(1.2); opacity: 0.7; }
}

.bg-shape {
  position: absolute; border: 1px solid rgba(240, 214, 135, 0.05);
  animation: shapeFloat 15s ease-in-out infinite;
}
.bg-shape-1 { width: 60px; height: 60px; top: 10%; left: 5%; transform: rotate(45deg); animation-delay: 0s; }
.bg-shape-2 { width: 80px; height: 80px; border-radius: 50%; bottom: 15%; right: 8%; animation-delay: 5s; }
.bg-shape-3 { width: 40px; height: 40px; top: 55%; left: 8%; transform: rotate(30deg); animation-delay: 10s; }
@keyframes shapeFloat {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.2; }
  50% { transform: translateY(-15px) rotate(60deg); opacity: 0.5; }
}

.bg-cross {
  position: absolute; width: 16px; height: 16px;
}
.bg-cross::before, .bg-cross::after {
  content: ''; position: absolute; background: rgba(240, 214, 135, 0.08);
}
.bg-cross::before { width: 100%; height: 1px; top: 50%; }
.bg-cross::after { width: 1px; height: 100%; left: 50%; }
.bg-cross:nth-of-type(6) { top: 25%; right: 12%; animation: crossFade 6s ease-in-out infinite; }
.bg-cross:nth-of-type(7) { bottom: 30%; left: 15%; animation: crossFade 6s ease-in-out infinite 3s; }
@keyframes crossFade { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.6; } }

.bg-diamond {
  position: absolute; width: 12px; height: 12px; border: 1px solid rgba(240, 214, 135, 0.06);
  transform: rotate(45deg); animation: diamondFloat 10s ease-in-out infinite;
}
.bg-diamond:nth-of-type(8) { top: 70%; right: 6%; animation-delay: 2s; }
.bg-diamond:nth-of-type(9) { top: 35%; left: 12%; animation-delay: 5s; animation-duration: 12s; }
@keyframes diamondFloat {
  0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.2; }
  50% { transform: rotate(60deg) scale(1.2); opacity: 0.5; }
}

.cards-container { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1.6rem; }

.card {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: 18px; padding: 2rem;
  overflow: hidden; cursor: pointer; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0; transform: translateY(30px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}
.card.visible { opacity: 1; transform: translateY(0); }
.card.fade-out { opacity: 0; transform: translateY(-20px); }

.card::before {
  content: ''; position: absolute; inset: 0; border-radius: 18px;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(240, 214, 135, 0.05), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.card::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(240, 214, 135, 0.03), transparent);
  transition: left 0.7s ease; pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(240, 214, 135, 0.08), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.card:hover::before { opacity: 1; }
.card:hover::after { left: 120%; }

.card-corner { position: absolute; width: 16px; height: 16px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.card:hover .card-corner { opacity: 0.5; }
.card-corner.tl { top: 0; left: 0; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); border-radius: 4px 0 0 0; }
.card-corner.tr { top: 0; right: 0; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); border-radius: 0 4px 0 0; }
.card-corner.bl { bottom: 0; left: 0; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); border-radius: 0 0 0 4px; }
.card-corner.br { bottom: 0; right: 0; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); border-radius: 0 0 4px 0; }

.card-border-glow {
  position: absolute; inset: -1px; border-radius: 18px; padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%, transparent 60%, var(--gold-dark));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.card:hover .card-border-glow { opacity: 0.6; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; gap: 1rem; }
.card-company { font-size: 1.25rem; font-weight: 600; color: var(--text-white); line-height: 1.4; }
.card-type {
  font-size: 0.78rem; font-weight: 500; padding: 0.25rem 0.7rem; border-radius: 18px;
  background: rgba(240, 214, 135, 0.1); border: 1px solid rgba(240, 214, 135, 0.2);
  color: var(--gold-light); white-space: nowrap;
}
.card-type.institution { background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.2); color: var(--text-secondary); }
.card-description {
  font-size: 0.98rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.3rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-date { font-size: 0.88rem; color: rgba(148, 163, 184, 0.7); display: flex; align-items: center; gap: 0.4rem; }
.card-link {
  font-size: 0.95rem; font-weight: 500; color: var(--gold); text-decoration: none;
  display: flex; align-items: center; gap: 0.3rem; transition: all 0.2s ease; position: relative; z-index: 2;
}
.card-link:hover { color: var(--gold-light); gap: 0.55rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.6rem; margin-top: 3.5rem; }
.page-btn {
  min-width: 44px; height: 44px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary); font-size: 0.95rem; font-family: inherit; border-radius: 10px; cursor: pointer;
  transition: all 0.2s ease; display: flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled) { border-color: var(--border-glow); color: var(--gold); background: rgba(240, 214, 135, 0.06); }
.page-btn.active { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); border-color: var(--gold); color: var(--bg-deep); font-weight: 600; box-shadow: 0 4px 16px rgba(240, 214, 135, 0.3); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 12, 18, 0.8); backdrop-filter: blur(8px);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: #141820; border: 1px solid var(--border-color); border-radius: 20px;
  max-width: 780px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; padding: 2.5rem;
  transform: scale(0.95) translateY(20px); transition: all 0.3s ease;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem; background: transparent; border: none;
  color: var(--text-secondary); cursor: pointer; padding: 0.5rem; border-radius: 8px;
  transition: all 0.2s ease; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(240, 214, 135, 0.1); color: var(--gold); }
.modal h2 { font-size: 1.45rem; font-weight: 600; margin-bottom: 1.4rem; color: var(--text-white); }
.modal-company { font-size: 1.35rem; font-weight: 600; color: var(--text-white); margin-bottom: 0.5rem; }
.modal-type {
  display: inline-block; font-size: 0.8rem; font-weight: 500; padding: 0.3rem 0.75rem; border-radius: 18px;
  background: rgba(240, 214, 135, 0.1); border: 1px solid rgba(240, 214, 135, 0.2);
  color: var(--gold-light); margin-bottom: 1.4rem;
}
.modal-type.institution { background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.2); color: var(--text-secondary); }
.modal-description { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.4rem; }
.modal-date { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.4rem; }
.modal-link {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--bg-deep);
  text-decoration: none; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s ease;
}
.modal-link:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(240, 214, 135, 0.3); }
.about-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; }
.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.about-feature { text-align: center; padding: 1.6rem 1rem; background: rgba(240, 214, 135, 0.04); border: 1px solid var(--border-color); border-radius: 14px; }
.about-feature-icon { font-size: 2rem; margin-bottom: 0.7rem; }
.about-feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-white); }
.about-feature p { font-size: 0.88rem; color: var(--text-secondary); }

/* ===== CHAT ===== */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; box-shadow: 0 4px 20px rgba(240, 214, 135, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}
.chat-fab:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(240, 214, 135, 0.4); }
.chat-fab svg { width: 24px; height: 24px; flex-shrink: 0; }
.chat-fab span {
  font-size: 0.85rem; font-weight: 500; white-space: nowrap;
  max-width: 0; opacity: 0; transition: all 0.3s ease;
}
.chat-fab.expanded { width: auto; border-radius: 28px; padding: 0 16px; }
.chat-fab.expanded span { max-width: 100px; opacity: 1; }

.chat-panel {
  position: fixed; bottom: 90px; right: 24px; z-index: 150;
  width: 400px; max-height: 520px;
  background: rgba(20, 24, 32, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}
.chat-panel.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-panel.zoomed {
  top: 40px; left: 40px; right: 40px; bottom: 40px;
  width: auto; max-height: none;
  transform: none;
  border-radius: 18px;
  background: rgba(20, 24, 32, 0.88);
  display: flex;
  flex-direction: column;
}

.chat-panel.zoomed .chat-messages {
  max-height: none;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.chat-panel.zoomed .chat-input-area {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  background: rgba(20, 24, 32, 0.95);
}

.chat-panel.zoomed .chat-messages {
  max-height: none;
  min-height: 0;
  flex:1;
  overflow-y: auto;
}

.chat-panel.zoomed .chat-input-area {
  flex-shrink: 0;
  margin-top: auto;
}

.chat-panel.zoomed .chat-messages {
  max-height: none;
  flex: 1;
}

.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.2rem;
  background: rgba(240, 214, 135, 0.05);
  border-bottom: 1px solid var(--border-color);
}
.chat-header-left { display: flex; align-items: center; gap: 0.6rem; color: var(--gold-light); font-weight: 500; font-size: 0.95rem; }
.chat-header-right { display: flex; align-items: center; gap: 0.4rem; }
.chat-close, .chat-zoom {
  background: transparent; border: none; color: var(--text-secondary);
  cursor: pointer; padding: 4px; border-radius: 6px;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.chat-close:hover, .chat-zoom:hover { color: var(--gold); background: rgba(240, 214, 135, 0.1); }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 300px; max-height: 380px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(240, 214, 135, 0.2); border-radius: 2px; }

.message { display: flex; gap: 0.6rem; max-width: 90%; animation: msgFade 0.3s ease; }
@keyframes msgFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.message.user-message { align-self: flex-end; flex-direction: row-reverse; }
.message.bot-message { align-self: flex-start; }

.message-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.message.bot-message .message-avatar { background: rgba(240, 214, 135, 0.15); color: var(--gold); }
.message.user-message .message-avatar { background: rgba(240, 214, 135, 0.1); color: var(--text-secondary); }

.message-content {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.message.bot-message .message-content {
  background: rgba(240, 214, 135, 0.06);
  border: 1px solid rgba(240, 214, 135, 0.1);
  color: var(--text-primary);
}
.message.user-message .message-content {
  background: rgba(240, 214, 135, 0.12);
  color: var(--text-white);
}

.typing-indicator { display: flex; gap: 4px; padding: 0.4rem 0; }
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-area {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border-color);
}
.chat-input-area input {
  flex: 1; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}
.chat-input-area input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 214, 135, 0.1); }
.chat-input-area input::placeholder { color: var(--text-secondary); }
#chatSendBtn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-deep);
  border: none; border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
#chatSendBtn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(240, 214, 135, 0.3); }
#chatSendBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) { .hero-hex-grid, .hero-ring-group, .hero-core { display: none; } }
@media (max-width: 768px) {
  body { font-size: 16px; }
  .navbar { padding: 0.7rem 1rem; flex-wrap: nowrap; gap: 0.5rem; white-space: nowrap; }
  .navbar-left { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; }
  .navbar-right { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
  .logo-text { display: none; }
  .logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
  .nav-btn { padding: 0.35rem 0.5rem; font-size: 0.85rem; flex-shrink: 0; }
  .city-selector select { padding: 0.35rem 1.2rem 0.35rem 0.5rem; font-size: 0.85rem; flex-shrink: 0; }
  .dropdown-menu { min-width: 100px; }
  .nav-dropdown { flex-shrink: 0; }
  .hero { height: 440px; }
  .hero-title-zh { font-size: 2.8rem; letter-spacing: 0.08em; }
  .hero-title-en { font-size: 0.95rem; }
  .hero-subtitle { font-size: 0.92rem; }
  .filter-bar-container { padding: 0.7rem 1rem; flex-direction: column; align-items: stretch; }
  .filter-controls { width: 100%; flex-direction: column; gap: 0.8rem; }
  .search-box input { width: 100%; }
  .cards-section { padding: 2rem 1rem 4rem; max-width: 100%; }
  .card { padding: 1.5rem; }
  .card-company { font-size: 1.1rem; }
  .card-description { font-size: 0.92rem; }
  .card-footer { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .about-features { grid-template-columns: 1fr; gap: 1rem; }
  .modal { padding: 1.8rem; margin: 1rem; }
  .page-btn { min-width: 40px; height: 40px; font-size: 0.9rem; }
  .chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 80px; max-height: 70vh; }
  .chat-fab { bottom: 16px; right: 16px; }
}
@media (max-width: 480px) {
  .hero { height: 380px; }
  .hero-title-zh { font-size: 2.2rem; }
  .hero-badge { font-size: 0.78rem; padding: 4px 14px; }
  .card { padding: 1.2rem; border-radius: 14px; }
  .card-header { flex-direction: column; gap: 0.35rem; }
  .nav-btn { padding: 0.45rem 0.7rem; font-size: 0.9rem; }
  .city-selector select { padding: 0.45rem 2rem 0.45rem 0.6rem; font-size: 0.85rem; }
}
