:root {
  --primary: #2b5cff;
  --primary-light: #5b7fff;
  --primary-dark: #1e42d6;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --bg: #ffffff;
  --bg-alt: #f6f8ff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #fafbff;
  --text: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #888899;
  --border: #e8ebf5;
  --border-light: #f0f2f8;
  --shadow-sm: 0 2px 8px rgba(43, 92, 255, 0.06);
  --shadow-md: 0 8px 28px rgba(43, 92, 255, 0.10);
  --shadow-lg: 0 16px 48px rgba(43, 92, 255, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(18px) saturate(160%);
  --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #f8f5ff 40%, #ffffff 100%);
  --gradient-primary: linear-gradient(135deg, #2b5cff 0%, #7c3aed 100%);
  --gradient-text: linear-gradient(120deg, #2b5cff 0%, #7c3aed 100%);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6b8cff;
    --primary-light: #8fa8ff;
    --primary-dark: #4a6ee8;
    --accent: #a78bfa;
    --accent-light: #c4b5fd;
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --bg-card: rgba(30, 30, 52, 0.65);
    --bg-card-solid: #1a1a30;
    --text: #e8e8f0;
    --text-secondary: #b0b0c4;
    --text-muted: #8080a0;
    --border: #2a2a44;
    --border-light: #22223a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(26, 26, 46, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-hero: linear-gradient(135deg, #12122a 0%, #1a1638 40%, #0f0f1a 100%);
    --gradient-primary: linear-gradient(135deg, #4a6ee8 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(120deg, #6b8cff 0%, #a78bfa 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

header:hover {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform var(--transition-fast);
  user-select: none;
}

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

.nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav a:hover {
  color: var(--primary);
  background: rgba(43, 92, 255, 0.06);
  text-decoration: none;
}

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

.hero {
  padding: 90px 0 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(43, 92, 255, 0.35), transparent 70%);
  top: -120px;
  right: -80px;
}

.hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.30), transparent 70%);
  bottom: -140px;
  left: -60px;
  animation-delay: -7s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
}

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

.hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.35;
  margin-bottom: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  animation: fadeUp 0.8s ease both;
}

.hero p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  max-width: 840px;
  animation: fadeUp 0.8s ease 0.12s both;
}

.hero p strong {
  color: var(--primary);
  font-weight: 600;
}

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

section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

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

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 28px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.3px;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 3px;
  background: var(--gradient-primary);
}

h3 {
  font-size: clamp(17px, 2vw, 20px);
  margin: 30px 0 14px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.2px;
}

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

p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
}

p strong {
  color: var(--text);
  font-weight: 600;
}

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

.card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--bg-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  animation: fadeUp 0.6s ease both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(43, 92, 255, 0.25), rgba(124, 58, 237, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.card h3 {
  margin-top: 0;
  color: var(--primary);
}

.card p {
  margin-bottom: 0;
  font-size: 15px;
}

.card p:last-child {
  margin-bottom: 0;
}

.article-item {
  border-bottom: 1px dashed var(--border);
  padding: 22px 0;
  transition: padding-left var(--transition-base), background-color var(--transition-base);
  border-radius: var(--radius-sm);
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  padding-left: 16px;
  background: rgba(43, 92, 255, 0.03);
}

.article-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.article-item h3 a {
  color: var(--text);
  transition: color var(--transition-fast);
}

.article-item h3 a:hover {
  color: var(--primary);
  text-decoration: none;
}

.article-item .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.article-item p:last-child {
  margin-bottom: 0;
  font-size: 15px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  padding: 18px 22px;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-solid);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color var(--transition-fast);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition-base);
}

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

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item p {
  margin-top: 14px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  animation: fadeUp 0.4s ease both;
  font-size: 15px;
}

footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 56px 0 32px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 140, 255, 0.5), transparent);
}

footer a {
  color: #9db4ff;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: #c4d4ff;
}

footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}

footer p {
  color: #a0a0b8;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

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

.footer-grid li {
  margin-bottom: 8px;
  font-size: 14px;
}

.copyright {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #2e2e4a;
  font-size: 13px;
  color: #8080a0;
  line-height: 1.9;
}

.copyright p {
  color: #8080a0;
  font-size: 13px;
  margin-bottom: 8px;
}

.copyright p:last-child {
  margin-top: 12px;
  color: #666680;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

th,
td {
  border-bottom: 1px solid var(--border-light);
  padding: 14px 18px;
  text-align: left;
  font-size: 15px;
  color: var(--text-secondary);
}

th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr,
table tr {
  transition: background-color var(--transition-fast);
}

table tr:hover td {
  background: rgba(43, 92, 255, 0.04);
}

td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

ol,
ul {
  margin: 14px 0 14px 24px;
  color: var(--text-secondary);
}

li {
  margin-bottom: 10px;
  line-height: 1.8;
}

li strong {
  color: var(--text);
}

.tag {
  display: inline-block;
  background: rgba(43, 92, 255, 0.1);
  color: var(--primary);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  margin-right: 6px;
  font-weight: 500;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.tag:hover {
  background: rgba(43, 92, 255, 0.18);
  transform: translateY(-1px);
}

section > .container > .card {
  margin-bottom: 16px;
}

section > .container > .card:last-child {
  margin-bottom: 0;
}

section#cases .card {
  border-left: 4px solid var(--primary);
  font-style: normal;
}

section#cases .card p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.9;
}

#contact table {
  margin-top: 24px;
}

#contact a {
  word-break: break-all;
}

#sitemap ul {
  columns: 2;
  column-gap: 40px;
}

#sitemap ul li {
  break-inside: avoid;
}

#sitemap h3 {
  margin-top: 34px;
}

@supports (animation-timeline: view()) {
  section > .container {
    animation: revealSection linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

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

@supports not (animation-timeline: view()) {
  section > .container {
    animation: fadeUp 0.7s ease both;
  }
}

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

@media (max-width: 900px) {
  .nav ul {
    gap: 2px;
  }

  .nav a {
    padding: 7px 9px;
    font-size: 14px;
  }

  section {
    padding: 52px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }

  #sitemap ul {
    columns: 1;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding: 0 18px;
  }

  .nav {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    width: 100%;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .nav a::after {
    left: 10px;
    right: 10px;
    bottom: 2px;
  }

  html {
    scroll-padding-top: 130px;
  }

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

  .hero::before,
  .hero::after {
    filter: blur(60px);
    opacity: 0.4;
  }

  h2 {
    padding-left: 14px;
    margin-bottom: 22px;
  }

  h2::before {
    width: 4px;
  }

  section {
    padding: 44px 0;
  }

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

  .card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .card:hover {
    transform: translateY(-3px);
  }

  .article-item:hover {
    padding-left: 10px;
  }

  .faq-item {
    padding: 15px 17px;
  }

  .faq-item summary {
    font-size: 15px;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  th,
  td {
    padding: 11px 14px;
    font-size: 14px;
  }

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

  footer {
    padding: 42px 0 26px;
  }

  ol,
  ul {
    margin-left: 20px;
  }
}

@media (max-width: 380px) {
  .nav a {
    padding: 5px 8px;
    font-size: 12px;
  }

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

  .card {
    padding: 17px;
  }
}

@media print {
  header,
  footer,
  .hero::before,
  .hero::after {
    display: none;
  }

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

  section {
    padding: 20px 0;
    break-inside: avoid;
  }

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