/* =========================================================
   苏州笙昶电子官网 · Go template frontend
   Design tokens and base
   ========================================================= */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-600: #059669;
  --green-700: #047857;

  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-600: #ea580c;
  --orange-700: #c2410c;

  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-600: #7c3aed;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --container: 1240px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.25);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-800);
  background: #fff;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 880px;
}

.muted {
  color: var(--slate-500);
}

.nowrap {
  white-space: nowrap;
}

/* =========================================================
   Buttons, badges, links
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  color: var(--slate-700);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.btn-white {
  background: #fff;
  color: var(--blue-600);
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.5);
}

.btn-white:hover {
  background: var(--blue-50);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
  color: var(--blue-700);
  gap: 0.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 7px;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-soft {
  background: var(--blue-50);
  color: var(--blue-600);
}

.badge-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate-700);
  backdrop-filter: blur(6px);
}

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--slate-100);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--slate-800);
  font-size: 1.02rem;
}

.brand img {
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.55rem 1rem;
  border-radius: 9px;
  color: var(--slate-600);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--slate-900);
  background: rgba(241, 245, 249, 0.85);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--slate-700);
}

.mobile-menu {
  display: none;
  padding: 0.75rem 1.5rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--slate-100);
  box-shadow: var(--shadow-md);
}

.mobile-menu a {
  padding: 0.8rem 0.5rem;
  color: var(--slate-700);
  font-weight: 500;
  border-bottom: 1px solid var(--slate-100);
}

.mobile-menu a.active {
  color: var(--blue-600);
}

.mobile-menu .btn {
  margin-top: 0.9rem;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7.5rem 0 4.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 48%, #eef2ff 100%);
}

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

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.blob-1 {
  width: 520px;
  height: 520px;
  top: -18%;
  right: -8%;
  background: rgba(96, 165, 250, 0.28);
  animation: breathe 7s ease-in-out infinite;
}

.blob-2 {
  width: 440px;
  height: 440px;
  bottom: -16%;
  left: -8%;
  background: rgba(129, 140, 248, 0.22);
  animation: breathe 9s ease-in-out infinite -2s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  top: 32%;
  left: 22%;
  background: rgba(56, 189, 248, 0.18);
  animation: floaty 8s ease-in-out infinite -1s;
}

.blob-4 {
  width: 240px;
  height: 240px;
  bottom: 12%;
  right: 22%;
  background: rgba(191, 219, 254, 0.35);
  animation: floaty 10s ease-in-out infinite -3s;
}

.hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, var(--blue-600) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.85);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--slate-800);
}

.hero-copy h1 span {
  color: var(--blue-600);
}

.hero-lead {
  max-width: 560px;
  margin-top: 1.35rem;
  color: var(--slate-500);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.point {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.point-blue {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-700);
}

.point-green {
  background: var(--green-50);
  border-color: var(--green-100);
  color: var(--green-700);
}

.point-orange {
  background: var(--orange-50);
  border-color: var(--orange-100);
  color: var(--orange-700);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--slate-200);
}

.hero-stats strong {
  display: block;
  color: var(--slate-800);
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 800;
}

.hero-stats strong span {
  color: var(--blue-600);
}

.hero-stats small {
  color: var(--slate-400);
  font-size: 0.76rem;
}

.hero-stats i {
  width: 1px;
  height: 38px;
  background: var(--slate-200);
}

.hero-visual {
  position: relative;
}

.hero-carousel {
  position: relative;
}

.hero-slides {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-100);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.62), transparent);
  pointer-events: none;
}

.hero-slide figcaption {
  position: absolute;
  z-index: 2;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.2rem;
  color: #fff;
}

.hero-slide figcaption h3 {
  margin-top: 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.quality-tag {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.55rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate-600);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.quality-tag svg {
  color: var(--blue-500);
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--slate-300);
  background: linear-gradient(145deg, var(--slate-100), var(--slate-50));
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.hero-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--slate-200);
  border-radius: 10px;
  background: #fff;
  opacity: 0.62;
  transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.hero-thumb:hover {
  opacity: 0.9;
}

.hero-thumb.active {
  opacity: 1;
  border-color: var(--blue-500);
  box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.7);
}

.thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--slate-100);
}

.hero-card-empty {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero-card-empty .img-placeholder {
  height: calc(100% - 2.5rem);
}

.hero-card-empty p {
  padding: 0.5rem;
  color: var(--slate-400);
  font-size: 0.9rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--slate-400);
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* =========================================================
   Sections and cards
   ========================================================= */
.category-strip {
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: #fff;
}

.category-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

.category-strip h2 {
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.category-strip p {
  margin-top: 0.3rem;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3rem 0 5rem;
}

.section-soft {
  background: rgba(248, 250, 252, 0.72);
}

.section-head {
  margin-bottom: 2.8rem;
}

.section-head.center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  color: var(--slate-800);
}

.section-sub {
  margin-top: 0.55rem;
  color: var(--slate-500);
  font-size: 0.96rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  background: #fff;
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.chip.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.8);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: 0 24px 45px -28px rgba(37, 99, 235, 0.45);
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-50);
}

.product-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.product-card:hover .product-media > img {
  transform: scale(1.05);
}

.product-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--slate-600);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.product-body h3 {
  margin-bottom: 0.4rem;
  color: var(--slate-800);
  font-size: 1.03rem;
  font-weight: 650;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.product-card:hover .product-body h3 {
  color: var(--blue-600);
}

.product-body p {
  color: var(--slate-400);
  font-size: 0.85rem;
  line-height: 1.75;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 2rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-blue {
  background: linear-gradient(150deg, var(--blue-50), #fff 70%);
  border-color: var(--blue-100);
}

.feature-green {
  background: linear-gradient(150deg, var(--green-50), #fff 70%);
  border-color: var(--green-100);
}

.feature-orange {
  background: linear-gradient(150deg, var(--orange-50), #fff 70%);
  border-color: var(--orange-100);
}

.feature-violet {
  background: linear-gradient(150deg, var(--violet-50), #fff 70%);
  border-color: var(--violet-100);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}

.feature-blue .feature-icon {
  background: var(--blue-100);
  color: var(--blue-600);
}

.feature-green .feature-icon {
  background: var(--green-100);
  color: var(--green-600);
}

.feature-orange .feature-icon {
  background: var(--orange-100);
  color: var(--orange-600);
}

.feature-violet .feature-icon {
  background: var(--violet-100);
  color: var(--violet-600);
}

.feature-card:hover .feature-icon {
  background: var(--slate-800);
  color: #fff;
}

.feature-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.06rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.8;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.news-card {
  display: block;
  padding: 1.6rem 1.7rem 1.5rem;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-100);
  box-shadow: 0 20px 40px -30px rgba(37, 99, 235, 0.45);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.news-meta time {
  color: var(--slate-400);
  font-size: 0.78rem;
}

.news-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.06rem;
  line-height: 1.55;
  font-weight: 650;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.news-card:hover h3 {
  color: var(--blue-600);
}

.news-card p {
  color: var(--slate-500);
  font-size: 0.86rem;
  line-height: 1.8;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-card:hover .news-more {
  opacity: 1;
  transform: translateX(0);
}

.empty {
  padding: 4.5rem 1rem;
  text-align: center;
  color: var(--slate-400);
  font-size: 0.9rem;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.9rem;
  border-radius: 18px;
  background: var(--slate-100);
  color: var(--slate-300);
}

.empty .text-link {
  margin-top: 0.75rem;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: linear-gradient(120deg, var(--blue-600), var(--blue-500) 55%, #4f46e5);
  color: #fff;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-bg span:first-child {
  position: absolute;
  top: -40%;
  right: -12%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(70px);
}

.cta-bg span:nth-child(2) {
  position: absolute;
  bottom: -50%;
  left: -12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.35);
  filter: blur(70px);
}

.cta-bg .hero-dots {
  opacity: 0.06;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 32px 32px;
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.cta-copy h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.cta-copy > p {
  max-width: 460px;
  margin-top: 1.2rem;
  color: rgba(219, 234, 254, 0.95);
  font-size: 1.02rem;
  line-height: 1.85;
}

.cta-info {
  display: grid;
  gap: 0.8rem;
}

.cta-info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease;
}

.cta-info-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cta-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cta-info-card small {
  display: block;
  margin-bottom: 0.15rem;
  color: rgba(191, 219, 254, 0.9);
  font-size: 0.72rem;
}

.cta-info-card p {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.35fr;
  gap: 2.5rem;
  padding: 3.8rem 0 3rem;
}

.brand-light {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-desc {
  max-width: 320px;
  font-size: 0.86rem;
  line-height: 1.85;
}

.footer-icp {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.footer-icp a:hover {
  color: var(--slate-300);
}

.footer-col h4 {
  margin-bottom: 1.05rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
}

.footer-col li {
  margin-bottom: 0.7rem;
}

.footer-col a,
.footer-muted {
  color: var(--slate-400);
  font-size: 0.84rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--slate-400);
  font-size: 0.84rem;
  line-height: 1.6;
}

.footer-contact svg {
  flex: 0 0 auto;
  margin-top: 0.23rem;
  color: var(--slate-500);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.7);
  color: var(--slate-500);
  font-size: 0.75rem;
}

.footer-bottom a {
  color: var(--slate-500);
}

.footer-bottom a:hover {
  color: var(--slate-300);
}

/* =========================================================
   Contact modal
   ========================================================= */
.contact-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 20px 36px -12px rgba(37, 99, 235, 0.75);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.6rem;
  background: linear-gradient(120deg, var(--blue-600), var(--blue-500));
  color: #fff;
}

.modal-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-head p {
  margin-top: 0.15rem;
  color: rgba(219, 234, 254, 0.95);
  font-size: 0.76rem;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.modal-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 1.25rem 1.6rem;
  border-bottom: 1px solid var(--slate-100);
}

.modal-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--slate-50);
}

.modal-contact-item.wide {
  grid-column: 1 / -1;
}

.modal-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.modal-contact-icon.blue {
  background: var(--blue-100);
  color: var(--blue-600);
}

.modal-contact-icon.green {
  background: var(--green-100);
  color: var(--green-600);
}

.modal-contact-icon.orange {
  background: var(--orange-100);
  color: var(--orange-600);
}

.modal-contact-item small {
  display: block;
  color: var(--slate-400);
  font-size: 0.66rem;
}

.modal-contact-item strong {
  display: block;
  overflow: hidden;
  color: var(--slate-700);
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-form {
  padding: 1.35rem 1.6rem 1.6rem;
}

.modal-form .field {
  margin-bottom: 0.9rem;
}

.modal-form .form-grid {
  margin-bottom: 0.9rem;
}

/* =========================================================
   Forms
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.05rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  color: var(--slate-600);
  font-size: 0.8rem;
  font-weight: 600;
}

.field label em {
  color: var(--red-500);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  background: var(--slate-50);
  color: var(--slate-800);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field .code-input {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.65;
}

.form-status {
  min-height: 1.25rem;
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.82rem;
}

.form-status.success {
  color: var(--green-600);
}

.form-status.error {
  color: var(--red-600);
}

/* =========================================================
   Inner page heroes and detail pages
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 8.2rem 0 3.2rem;
  background: linear-gradient(135deg, #eff6ff, #fff 52%, #eef2ff);
}

.page-hero-sm {
  padding-bottom: 2.6rem;
}

.page-hero-bg span:first-child {
  position: absolute;
  top: -60%;
  right: -8%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.16);
  filter: blur(80px);
}

.page-hero-bg span:nth-child(2) {
  position: absolute;
  bottom: -70%;
  left: -6%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.14);
  filter: blur(70px);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--slate-500);
  font-size: 0.78rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--slate-300);
}

.breadcrumbs a {
  color: var(--blue-600);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumbs [aria-current="page"] {
  max-width: 46ch;
  overflow: hidden;
  color: var(--slate-500);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error-inner .breadcrumbs ol {
  justify-content: center;
}

.page-hero h1 {
  max-width: 900px;
  margin-top: 0.8rem;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.3;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.page-hero > .container > p,
.page-hero-inner > p:not(.page-hero-meta) {
  margin-top: 0.65rem;
  color: var(--slate-500);
  font-size: 0.95rem;
}

.page-hero-meta {
  margin-top: 0.85rem;
  color: var(--slate-400);
  font-size: 0.82rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
  color: var(--blue-600);
  font-size: 0.83rem;
  font-weight: 600;
  transition: color 0.2s ease, gap 0.2s ease;
}

.back-link:hover {
  color: var(--blue-700);
  gap: 0.45rem;
}

.detail-cover {
  margin: 0 0 2.2rem;
  overflow: hidden;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  background: var(--slate-50);
}

.detail-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.detail-intro h2,
.detail-content h2 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.detail-intro p {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.95;
  white-space: pre-line;
}

.detail-content {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-100);
}

.detail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.6rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  background: linear-gradient(110deg, var(--blue-50), #eef2ff);
}

.detail-cta h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.detail-cta p {
  margin-top: 0.25rem;
  color: var(--slate-500);
  font-size: 0.85rem;
}

.article-lead {
  margin-bottom: 1.8rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--blue-500);
  border-radius: 0 10px 10px 0;
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.9;
}

.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--slate-100);
}

/* Rich text content */
.prose {
  color: var(--slate-700);
  font-size: 0.95rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--slate-800);
  line-height: 1.4;
  font-weight: 700;
  margin-top: 1.8rem;
}

.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.15rem; }

.prose a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  list-style: revert;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.2rem auto;
  border-radius: 10px;
}

.prose iframe,
.prose video {
  max-width: 100%;
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1.1rem;
  border-left: 3px solid var(--blue-300, #93c5fd);
  background: var(--slate-50);
  color: var(--slate-600);
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.prose th,
.prose td {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--slate-200);
  text-align: left;
}

.prose th {
  background: var(--slate-50);
  font-weight: 650;
}

.prose code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--slate-100);
  font-size: 0.86em;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 10px;
  background: var(--slate-900);
  color: var(--slate-100);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--slate-200);
  margin: 1.8rem 0;
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 3rem;
}

.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  background: #fff;
  color: var(--slate-600);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-btn:hover,
.page-num:hover {
  background: var(--slate-50);
}

.page-num.active {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.75);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================
   Error page
   ========================================================= */
.error-page {
  display: flex;
  align-items: center;
  min-height: 72vh;
  padding: 9rem 0 5rem;
  background: linear-gradient(140deg, var(--slate-50), #fff 60%, var(--blue-50));
}

.error-inner {
  max-width: 620px;
  text-align: center;
}

.error-code {
  display: inline-block;
  color: var(--blue-600);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-inner h1 {
  margin-top: 1rem;
  font-size: 1.8rem;
  font-weight: 750;
}

.error-inner p {
  margin-top: 0.6rem;
  color: var(--slate-500);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

/* =========================================================
   Admin
   ========================================================= */
.admin-body {
  background: var(--slate-100);
  color: var(--slate-700);
}

.admin-shell {
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 232px;
  padding: 1.15rem 0.9rem;
  background: #1b1d2b;
  color: #cbd5e1;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-brand img {
  border-radius: 8px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  flex: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav a.active {
  background: rgba(59, 130, 246, 0.18);
  color: #fff;
}

.admin-sidebar-foot {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  padding: 0 0.35rem;
}

.admin-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.admin-user-meta strong {
  overflow: hidden;
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user small {
  color: #64748b;
  font-size: 0.68rem;
}

.admin-logout {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: left;
  transition: all 0.2s ease;
}

.admin-logout:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.admin-main {
  min-height: 100vh;
  margin-left: 232px;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.9rem 1.6rem;
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.admin-topbar h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-800);
}

.admin-topbar p {
  margin-top: 0.1rem;
  color: var(--slate-400);
  font-size: 0.76rem;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-content {
  flex: 1;
  padding: 1.6rem;
  max-width: 1400px;
  width: 100%;
}

.alert {
  margin-bottom: 1.1rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.84rem;
}

.alert.success {
  border-color: #a7f3d0;
  background: var(--green-50);
  color: var(--green-700);
}

.alert.error {
  border-color: #fecaca;
  background: var(--red-50);
  color: var(--red-600);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.stat-blue {
  background: var(--blue-50);
  color: var(--blue-600);
}

.stat-green {
  background: var(--green-50);
  color: var(--green-600);
}

.stat-violet {
  background: var(--violet-50);
  color: var(--violet-600);
}

.stat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stat-body strong {
  color: var(--slate-800);
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 750;
}

.stat-body small {
  color: var(--slate-400);
  font-size: 0.75rem;
}

.stat-arrow {
  color: var(--slate-300);
  font-size: 1.1rem;
}

.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel {
  margin-bottom: 1.4rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--slate-100);
}

.panel-head h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-800);
}

.page-size {
  color: var(--slate-500);
  font-size: 0.76rem;
}

.page-size select {
  margin: 0 0.2rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  background: #fff;
  font-size: 0.76rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.table th,
.table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--slate-100);
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.table tbody tr:hover {
  background: var(--slate-50);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table a {
  color: var(--slate-700);
  font-weight: 500;
}

.table a:hover {
  color: var(--blue-600);
}

.table-thumb {
  width: 54px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--slate-100);
}

.table-thumb.empty {
  display: block;
  background: var(--slate-100);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-actions form {
  margin: 0;
}

.link-primary,
.link-danger {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
}

.link-primary {
  color: var(--blue-600);
}

.link-primary:hover {
  color: var(--blue-700);
}

.link-danger {
  color: var(--red-500);
}

.link-danger:hover {
  color: var(--red-600);
}

.table-empty {
  padding: 2.5rem 1rem !important;
  color: var(--slate-400);
  text-align: center;
}

.w-70 { width: 70px; }
.w-80 { width: 80px; }
.w-100 { width: 100px; }
.w-120 { width: 120px; }
.w-140 { width: 140px; }

.admin-form {
  max-width: 900px;
  padding: 1.25rem 1.4rem 1.5rem;
}

.admin-form .panel-head {
  margin: -1.25rem -1.4rem 1.25rem;
}

.admin-form .form-grid {
  gap: 1rem;
}

.image-field {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.image-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  min-height: 120px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px dashed var(--slate-300);
  border-radius: 10px;
  background: var(--slate-50);
}

.image-preview-box img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.image-preview-empty {
  color: var(--slate-400);
  font-size: 0.76rem;
}

.image-field-controls {
  flex: 1;
  min-width: 0;
}

.image-field-controls input[type="text"] {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 0.82rem;
}

.file-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hint {
  margin-top: 0.4rem;
  color: var(--slate-400);
  font-size: 0.74rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--slate-100);
}

.form-actions .text-link {
  margin-left: auto;
}

/* Admin login */
.admin-login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #1b1d2b, #111827 55%, #172554);
}

.admin-login {
  width: 100%;
  max-width: 400px;
  padding: 1.25rem;
}

.login-card {
  padding: 1.6rem 1.5rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.login-brand img {
  border-radius: 9px;
}

.login-brand h1 {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--slate-800);
}

.login-brand p {
  margin-top: 0.1rem;
  color: var(--slate-400);
  font-size: 0.76rem;
}

.login-card .field {
  margin-bottom: 0.9rem;
}

.login-back {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
}

.login-back a {
  color: var(--blue-600);
}

.login-copy {
  margin-top: 0.35rem;
  color: var(--slate-400);
  font-size: 0.68rem;
  text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 2.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-menu.open {
    display: flex;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .scroll-hint {
    display: none;
  }

  .product-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cta-info {
    max-width: 560px;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .admin-brand {
    padding: 0 0.5rem 0 0;
    border-bottom: 0;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    flex: 1;
  }

  .admin-nav a {
    padding: 0.5rem 0.7rem;
  }

  .admin-sidebar-foot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0;
    border-top: 0;
  }

  .admin-user {
    margin-bottom: 0;
  }

  .admin-logout {
    width: auto;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-topbar {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 1.1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stats strong {
    font-size: 1.4rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .section-tight {
    padding: 2.2rem 0 3.6rem;
  }

  .section-head.row,
  .category-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid,
  .news-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    padding: 2.8rem 0 2.2rem;
  }

  .footer-company {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .modal-contact {
    grid-template-columns: 1fr;
  }

  .modal-contact-item.wide {
    grid-column: auto;
  }

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

  .detail-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-topbar {
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
  }

  .stat-grid,
  .admin-columns {
    grid-template-columns: 1fr;
  }

  .image-field {
    flex-direction: column;
  }

  .image-preview-box {
    width: 100%;
  }

  .admin-form {
    padding: 1rem;
  }

  .admin-form .panel-head {
    margin: -1rem -1rem 1rem;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-actions .text-link {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .nav-actions .btn {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats i {
    display: none;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 0.5rem;
  }

  .contact-fab {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
  }

  .page-hero {
    padding-top: 7.2rem;
  }
}

/* =========================================================
   Motion
   ========================================================= */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.42; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.06); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
