:root {
  --brand: #ff4d4f;
  --brand-dark: #c9184a;
  --brand-light: #fff0f0;
  --brand-glow: rgba(255, 77, 79, 0.35);
  --text: #1f2329;
  --text-sub: #5c6370;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --border: #e8eaed;
  --border-glass: rgba(255, 255, 255, 0.5);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 14px 40px rgba(255, 77, 79, 0.18);
  --gradient-banner: linear-gradient(135deg, #ff4d4f 0%, #c9184a 55%, #7b0d2e 100%);
  --gradient-soft: linear-gradient(160deg, #fff0f0 0%, #ffffff 60%, #f7f8fa 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark {
  --text: #e8eaed;
  --text-sub: #a0a6b0;
  --bg: #121417;
  --bg-soft: #1a1d22;
  --bg-glass: rgba(18, 20, 23, 0.72);
  --border: #2a2e35;
  --border-glass: rgba(255, 255, 255, 0.08);
  --brand-light: #2a1518;
  --brand-glow: rgba(255, 77, 79, 0.45);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 14px 44px rgba(255, 77, 79, 0.28);
  --gradient-banner: linear-gradient(135deg, #7b0d2e 0%, #c9184a 55%, #ff4d4f 100%);
  --gradient-soft: linear-gradient(160deg, #2a1518 0%, #121417 60%, #1a1d22 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 12% 8%, rgba(255, 77, 79, 0.08), transparent 70%),
    radial-gradient(700px 500px at 88% 18%, rgba(201, 24, 74, 0.07), transparent 70%);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--brand);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ============ Header ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

header.site-header.scrolled {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient-banner);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 6px 22px var(--brand-glow);
}

nav.main-nav ul {
  display: flex;
  gap: 22px;
}

nav.main-nav a {
  position: relative;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

nav.main-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

nav.main-nav a:hover::after {
  transform: scaleX(1);
}

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

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  background: var(--bg-soft);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  width: 150px;
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-sub);
  opacity: 0.8;
}

.search-box button {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.search-box button:hover {
  background: var(--brand-dark);
  transform: scale(1.04);
}

.icon-btn,
.mobile-toggle {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.icon-btn:hover,
.mobile-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--brand);
  background: var(--brand-light);
}

.mobile-toggle {
  display: none;
  border-radius: 11px;
  font-size: 18px;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--text-sub);
  opacity: 0.6;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--gradient-soft);
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 24, 74, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.28;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 26px;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--gradient-banner);
  color: #fff;
  box-shadow: 0 8px 24px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px var(--brand-glow);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.btn-ghost:hover {
  background: var(--brand-light);
  transform: translateY(-3px);
  text-decoration: none;
}

/* ============ Carousel ============ */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  border: 1px solid var(--border-glass);
}

.carousel-track {
  display: flex;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}

.slide {
  min-width: 100%;
  padding: 0;
}

.slide svg {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.carousel-dots button.active {
  width: 24px;
  border-radius: 999px;
  background: #fff;
}

/* ============ Stats ============ */
.stats-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stats-grid > div {
  padding: 10px 6px;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.stats-grid > div:hover {
  background: var(--bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-num {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  background: var(--gradient-banner);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stat-label {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 4px;
}

/* ============ Anchor Nav ============ */
.anchor-nav {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 68px;
  z-index: 900;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav::-webkit-scrollbar {
  display: none;
}

.anchor-nav ul {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-sub);
  font-size: 14px;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.anchor-nav a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============ Sections ============ */
section {
  position: relative;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

section:nth-of-type(even) {
  background: var(--bg-soft);
}

.section-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  position: relative;
  padding-left: 18px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 4px;
  background: var(--gradient-banner);
}

.section-head p {
  color: var(--text-sub);
  font-size: 16px;
}

/* ============ Prose ============ */
.prose {
  max-width: 900px;
  color: var(--text-sub);
  font-size: 16px;
}

.prose p {
  margin-bottom: 16px;
}

.prose h3 {
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  margin: 30px 0 12px;
}

.prose h4 {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 10px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 4px;
  list-style: none;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol li {
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.32em;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Grids ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

/* ============ Cards ============ */
.card {
  position: relative;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 77, 79, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.45;
}

.card p {
  color: var(--text-sub);
  font-size: 15px;
}

.card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--brand);
}

.card:hover .card-icon svg {
  stroke: #fff;
}

/* ============ Timeline ============ */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--brand-glow);
  transition: transform 0.35s var(--ease);
}

.timeline-item:hover::before {
  transform: scale(1.25);
}

.timeline-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.timeline-item .year {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  background: var(--brand-light);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-sub);
  font-size: 15px;
}

/* ============ Articles ============ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

.article-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-banner);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 77, 79, 0.3);
}

.article-card:hover::after {
  transform: scaleX(1);
}

.article-card .meta {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.article-card .meta span {
  background: var(--brand-light);
  color: var(--brand);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.article-card:hover h3 {
  color: var(--brand);
}

.article-card p {
  color: var(--text-sub);
  font-size: 14px;
  flex: 1;
  margin-bottom: 16px;
}

.article-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  align-self: flex-start;
  transition: transform 0.3s var(--ease);
}

.article-card:hover .read-more {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 920px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.faq-item:hover {
  border-color: rgba(255, 77, 79, 0.35);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 6px 24px var(--brand-glow);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.3s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
}

.faq-q .arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 700px;
  padding-bottom: 20px;
}

.faq-a p {
  color: var(--text-sub);
  font-size: 15px;
}

/* ============ HowTo ============ */
.howto-steps {
  counter-reset: step;
  max-width: 920px;
}

.howto-step {
  position: relative;
  padding: 22px 24px 22px 76px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.howto-step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 77, 79, 0.3);
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 16px var(--brand-glow);
  transition: transform 0.4s var(--ease);
}

.howto-step:hover::before {
  transform: scale(1.1) rotate(-6deg);
}

.howto-step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.howto-step p {
  color: var(--text-sub);
  font-size: 15px;
}

/* ============ Cases ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 77, 79, 0.3);
}

.case-card svg {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.case-card:hover svg {
  transform: scale(1.05);
}

.case-card .case-body {
  padding: 22px;
}

.case-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.case-card p {
  color: var(--text-sub);
  font-size: 14px;
}

.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-light);
  color: var(--brand);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ============ Testimonials ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial {
  position: relative;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 64px;
  line-height: 1;
  color: var(--brand);
  opacity: 0.12;
  font-family: Georgia, serif;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 77, 79, 0.3);
}

.testimonial blockquote {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 18px;
  font-style: normal;
  position: relative;
  z-index: 1;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--brand-light);
}

.testimonial .who strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.testimonial .who span {
  font-size: 13px;
  color: var(--text-sub);
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}

.contact-info-list li:hover {
  transform: translateX(4px);
}

.contact-info-list li:last-child {
  border-bottom: none;
}

.contact-info-list .ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s var(--ease);
}

.contact-info-list li:hover .ci-icon {
  background: var(--brand);
}

.contact-info-list li:hover .ci-icon svg {
  stroke: #fff;
}

.contact-info-list strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-info-list span {
  color: var(--text-sub);
  font-size: 14px;
  word-break: break-all;
}

.contact-form {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 18px;
  font-family: inherit;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-sub);
  opacity: 0.7;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* ============ Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 77, 79, 0.3);
}

.team-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--brand-glow);
  transition: transform 0.4s var(--ease);
}

.team-card:hover .avatar {
  transform: scale(1.06);
}

.team-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.team-card span {
  font-size: 13px;
  color: var(--text-sub);
}

/* ============ Sitemap ============ */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.sitemap-grid h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-light);
}

.sitemap-grid li {
  margin-bottom: 9px;
}

.sitemap-grid a {
  font-size: 14px;
  color: var(--text-sub);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.sitemap-grid a:hover {
  color: var(--brand);
  padding-left: 5px;
  text-decoration: none;
}

/* ============ Notice ============ */
.notice {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

/* ============ Footer ============ */
footer.site-footer {
  position: relative;
  background: var(--bg-soft);
  padding: 56px 0 26px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-banner);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-sub);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--brand);
  padding-left: 4px;
  text-decoration: none;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ============ Back Top ============ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-banner);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--brand-glow);
  z-index: 999;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.back-top.show {
  display: flex;
  animation: backTopIn 0.4s var(--ease);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px var(--brand-glow);
}

@keyframes backTopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

  nav.main-nav ul {
    gap: 16px;
  }

  nav.main-nav a {
    font-size: 14px;
  }

  .search-box input {
    width: 120px;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .grid-3,
  .case-grid,
  .testimonial-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .carousel {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    box-shadow: var(--shadow);
    animation: navDrop 0.3s var(--ease);
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  nav.main-nav a {
    display: block;
    padding: 11px 6px;
    border-radius: 8px;
    font-size: 15px;
  }

  nav.main-nav a::after {
    display: none;
  }

  nav.main-nav a:hover {
    background: var(--brand-light);
    padding-left: 12px;
  }

  .mobile-toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .article-list,
  .grid-2,
  .grid-3,
  .case-grid,
  .testimonial-grid,
  .team-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .anchor-nav {
    top: 68px;
  }

  section {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2 {
    padding-left: 15px;
  }

  .section-head h2::before {
    width: 4px;
  }

  .card,
  .article-card,
  .testimonial,
  .contact-form {
    padding: 20px;
  }

  .howto-step {
    padding: 20px 20px 20px 70px;
  }

  .howto-step:hover {
    transform: none;
  }

  .contact-info-list li:hover,
  .howto-step:hover {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: left;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-num {
    font-size: 24px;
  }

  .case-card .case-body,
  .team-card {
    padding: 18px;
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Print ============ */
@media print {
  header.site-header,
  .anchor-nav,
  .back-top,
  .carousel-dots,
  .hero-cta,
  .contact-form,
  footer.site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
  }

  .card,
  .article-card,
  .testimonial,
  .case-card,
  .team-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}