:root {
  --primary: #1264e8;
  --primary-dark: #064ab8;
  --ink: #13213c;
  --muted: #657089;
  --surface: #f5f8fd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.site-container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.glass-header { background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(15,23,42,.06); backdrop-filter: blur(16px); }
.site-brand { color: #101d35; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; filter: drop-shadow(0 7px 12px rgba(18,100,232,.2)); transition: transform .25s ease, filter .25s ease; }
.site-brand:hover .brand-mark { transform: translateY(-1px) rotate(-3deg); filter: drop-shadow(0 10px 16px rgba(18,100,232,.3)); }
.site-registration { transition: color .2s ease; }
.site-registration:hover { color: #fff; }
.nav-link { position: relative; color: #43506a; transition: color .25s ease; }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 0; height: 2px; background: var(--primary); transition: .25s ease; transform: translateX(-50%); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hero-slide { opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity .7s ease, transform 1.1s ease, visibility .7s; }
.hero-slide.active { opacity: 1; visibility: visible; transform: scale(1); }
.hero-overlay { background: linear-gradient(90deg, rgba(4,18,45,.86) 0%, rgba(4,18,45,.52) 50%, rgba(4,18,45,.12) 100%); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.55); transition: .25s ease; }
.dot.active { width: 26px; background: #fff; }

.section-kicker { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-title { margin: 5px 0 0; font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.soft-card { border: 1px solid #eaf0f8; background: #fff; box-shadow: 0 8px 28px rgba(30,72,126,.06); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.soft-card:hover { transform: translateY(-6px) scale(1.012); border-color: #cddffb; box-shadow: 0 18px 42px rgba(30,89,174,.15); }
.directory-card { background: linear-gradient(180deg, #fff 0%, #fbfdff 100%); border: 1px solid #d7e1ee; box-shadow: 0 2px 5px rgba(15,23,42,.04), 0 10px 28px rgba(30,72,126,.08); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.directory-card:hover { transform: translateY(-4px); border-color: #91b9ed; box-shadow: 0 5px 12px rgba(15,23,42,.07), 0 18px 38px rgba(30,89,174,.14); }
.directory-card:focus-visible { outline: 3px solid rgba(18,100,232,.25); outline-offset: 3px; }
.product-directory-card { border-color: #c9d6e5; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 12px 30px rgba(30,72,126,.09); }
.product-directory-card .zoom-media { border-bottom: 1px solid #d8e2ee; background: #eef3f8; }
.product-directory-card:hover { border-color: #79a8e4; box-shadow: 0 6px 14px rgba(15,23,42,.09), 0 20px 42px rgba(30,89,174,.16); }
.service-detail-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #07172f 0%, #0c3f87 58%, #087e94 100%); }
.service-detail-hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -80px; top: -180px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025); }
.service-detail-hero::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; left: -110px; bottom: -160px; border-radius: 50%; background: rgba(34,211,238,.12); filter: blur(1px); }
.image-zoom { overflow: hidden; }
.image-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.soft-card:hover .image-zoom img { transform: scale(1.07); }
.clamp-2 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pressable { transition: transform .12s ease, box-shadow .2s ease, background .2s ease; }
.pressable:active { transform: scale(.96); }
.blue-btn { color: #fff; background: linear-gradient(135deg, #1672f3, #0752c9); box-shadow: 0 8px 20px rgba(18,100,232,.25); }
.blue-btn:hover { box-shadow: 0 11px 25px rgba(18,100,232,.35); }
.tag { color: #1761c4; background: #edf5ff; border: 1px solid #d9eaff; transition: .2s ease; }
.tag:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.site-link { transition: color .2s ease; }
.site-link:hover { color: var(--primary); }
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.article-body p { margin: 0 0 1.45em; color: #34415b; font-size: clamp(17px, 1.6vw, 19px); line-height: 2; }
.search-shadow { box-shadow: 0 16px 50px rgba(11,68,147,.13); }
.channel-strip { scrollbar-width: none; }
.channel-strip::-webkit-scrollbar { display: none; }
.portal-panel { border: 1px solid #e7eef8; background: #fff; box-shadow: 0 5px 20px rgba(30,72,126,.05); }
.dense-news-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed #e5eaf2; font-size: 14px; }
.dense-news-item:hover .dense-title { color: var(--primary); transform: translateX(3px); }
.dense-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: .2s ease; }
.channel-tab.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.mini-rank { counter-reset: item; }
.mini-rank > a { counter-increment: item; }
.mini-rank > a::before { content: counter(item, decimal-leading-zero); color: #a6b1c2; font-size: 11px; font-weight: 800; }

@media (max-width: 767px) {
  .site-container { width: min(100% - 24px, 1180px); }
  .desktop-nav { display: none !important; }
  .mobile-menu { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .mobile-menu.open { max-height: 360px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(4,18,45,.9), rgba(4,18,45,.25)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
