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

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

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

:root {
  --brand: #E63946;
  --brand-dark: #c1121f;
  --brand-light: #ff6b6b;
  --accent: #1d3557;
  --accent2: #457b9d;
  --gold: #ffd166;
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #2b2b2b;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
  --grad-brand: linear-gradient(135deg, #E63946 0%, #ff6b6b 50%, #ffd166 100%);
  --grad-accent: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  --grad-hero: linear-gradient(135deg, #1d3557 0%, #3a1c4a 40%, #E63946 100%);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark {
  --bg: #0f0f13;
  --card: #1a1a22;
  --text: #e8e8ec;
  --text-light: #9ca3af;
  --border: #2a2a35;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(26, 26, 34, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

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

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

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-radius: 8px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

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

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

.header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0.7;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
}

.logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 6px rgba(230, 57, 70, 0.35));
  transition: transform 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

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

.nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  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 3px rgba(230, 57, 70, 0.15);
}

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

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box button {
  border: none;
  background: var(--grad-brand);
  color: #fff;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: opacity 0.25s var(--ease);
}

.search-box button:hover {
  opacity: 0.88;
}

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  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);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  border-color: var(--brand);
  background: rgba(230, 57, 70, 0.08);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.3s var(--ease);
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.breadcrumb {
  background: var(--card);
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--accent2);
  transition: color 0.25s var(--ease);
}

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

.breadcrumb span {
  margin: 0 6px;
}

.hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBlob 12s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBlob 15s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.08);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

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

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.35;
  margin-bottom: 18px;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: heroFadeUp 0.8s var(--ease) both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #ffd166, #ff9a3c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.9;
  animation: heroFadeUp 0.8s var(--ease) 0.15s both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s var(--ease) 0.3s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--ease), height 0.5s var(--ease);
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd166, #ffb347);
  color: #1d3557;
  box-shadow: 0 4px 16px rgba(255, 209, 102, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 209, 102, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  border-color: #fff;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: heroFadeUp 0.9s var(--ease) 0.2s both;
}

.hero-visual svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.25));
  animation: floatVisual 6s ease-in-out infinite;
}

@keyframes floatVisual {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.stat-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 209, 102, 0.5);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(255, 209, 102, 0.3);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 4px;
}

.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--grad-brand);
  border-radius: 4px;
  transition: width 0.4s var(--ease);
}

.section-title:hover h2::after {
  width: 100px;
}

.section-title p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(230, 57, 70, 0.25);
}

body.dark .card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

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

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.85;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

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

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

body.dark .article-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.article-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
  transition: opacity 0.4s var(--ease);
}

.article-card:hover .article-thumb::after {
  opacity: 0.6;
}

.article-thumb svg {
  transition: transform 0.5s var(--ease);
}

.article-card:hover .article-thumb svg {
  transform: scale(1.1);
}

.article-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.article-meta span:first-child {
  color: var(--brand);
  font-weight: 600;
}

.article-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.55;
  transition: color 0.3s var(--ease);
}

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

.article-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 14px;
  flex: 1;
}

.read-more {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.read-more:hover {
  gap: 8px;
  color: var(--brand-dark);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.faq-item:hover {
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.08);
}

.faq-item.open {
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.12);
}

.faq-q {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.3s var(--ease);
  user-select: none;
}

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

.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 20px 18px;
}

.faq-a p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.9;
}

.howto-steps {
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.step:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(230, 57, 70, 0.25);
}

body.dark .step:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
  transition: transform 0.4s var(--ease);
}

.step:hover .step-num {
  transform: scale(1.12) rotate(8deg);
}

.step-content h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.85;
}

.step-content strong {
  color: var(--brand);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.case-card::before {
  content: "❝";
  font-size: 3rem;
  color: var(--brand);
  opacity: 0.12;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.case-card:hover::before {
  opacity: 0.25;
  transform: scale(1.15);
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(230, 57, 70, 0.25);
}

body.dark .case-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-top: 24px;
  font-style: italic;
}

.case-author {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.3);
  transition: transform 0.4s var(--ease);
}

.case-card:hover .case-avatar {
  transform: scale(1.1);
}

.case-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.case-role {
  font-size: 0.78rem;
  color: var(--text-light);
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
  border-radius: var(--radius-sm);
}

.news-item:hover {
  transform: translateX(6px);
  background: rgba(230, 57, 70, 0.03);
}

body.dark .news-item:hover {
  background: rgba(230, 57, 70, 0.06);
}

.news-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 74px;
  border: 1px solid var(--border);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.news-item:hover .news-date {
  background: var(--grad-brand);
  border-color: transparent;
}

.news-date .d {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
  transition: color 0.35s var(--ease);
}

.news-item:hover .news-date .d {
  color: #fff;
}

.news-date .m {
  font-size: 0.75rem;
  color: var(--text-light);
  transition: color 0.35s var(--ease);
}

.news-item:hover .news-date .m {
  color: rgba(255, 255, 255, 0.85);
}

.news-content h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.news-item:hover .news-content h3 {
  color: var(--brand);
}

.news-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.contact-item:hover {
  background: rgba(230, 57, 70, 0.04);
  transform: translateX(4px);
}

body.dark .contact-item:hover {
  background: rgba(230, 57, 70, 0.08);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
  background: var(--grad-brand);
}

.contact-item h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.4s var(--ease);
}

.contact-form:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

body.dark .contact-form:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.contact-form h3 {
  font-size: 1.1rem;
  margin-bottom: 22px;
  color: var(--text);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  background: var(--card);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.footer {
  background: linear-gradient(160deg, #1d3557 0%, #0f1f33 100%);
  color: #c9d6e8;
  padding: 56px 0 24px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.footer p,
.footer a {
  font-size: 0.85rem;
  line-height: 2;
  color: #c9d6e8;
}

.footer a {
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: #8fa3c0;
  position: relative;
  z-index: 1;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(230, 57, 70, 0.6);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #c9d6e8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.tag:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  border-color: transparent;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

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

  .stat-num {
    font-size: 1.5rem;
  }

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

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

  .nav {
    display: none;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 24px 20px;
    box-shadow: var(--glass-shadow);
    gap: 18px;
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.35s var(--ease);
  }

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

  .nav.active a {
    font-size: 1rem;
    padding: 6px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-box {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }

  .article-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
  }

  .step {
    padding: 20px;
  }

  .step:hover {
    transform: translateX(4px);
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

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

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .hero-btns {
    gap: 10px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 30px;
  }

  .stat-item {
    padding: 14px 10px;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

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

  .section {
    padding: 36px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .section-title h2 {
    font-size: 1.35rem;
  }

  .section-title p {
    font-size: 0.85rem;
  }

  .card {
    padding: 22px;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  .article-body {
    padding: 18px;
  }

  .article-body h3 {
    font-size: 0.98rem;
  }

  .faq-q {
    padding: 15px 16px;
    font-size: 0.88rem;
  }

  .faq-item.open .faq-a {
    padding: 0 16px 16px;
  }

  .faq-a p {
    font-size: 0.84rem;
  }

  .step {
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-content h3 {
    font-size: 0.98rem;
  }

  .step-content p {
    font-size: 0.84rem;
  }

  .case-card {
    padding: 24px;
  }

  .case-card p {
    font-size: 0.85rem;
  }

  .news-item {
    gap: 12px;
    padding: 16px 0;
  }

  .news-date {
    min-width: 62px;
    padding: 8px 10px;
  }

  .news-date .d {
    font-size: 1.1rem;
  }

  .news-content h3 {
    font-size: 0.92rem;
  }

  .news-content p {
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 22px;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }

  .footer {
    padding: 40px 0 20px;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }
}

@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;
  }
}

@supports (backdrop-filter: blur(10px)) {
  .header {
    background: var(--glass-bg);
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .header {
    background: var(--card);
  }
}