:root {
  --primary: #f2c94c;
  --primary-dark: #d4a72c;
  --primary-light: #ffe08a;
  --accent: #ff6b6b;
  --accent-2: #6c5ce7;
  --accent-3: #00b894;
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-muted: #8888a0;
  --border: rgba(26, 26, 46, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 45%, #6c5ce7 100%);
  --gradient-accent: linear-gradient(135deg, #f2c94c 0%, #ff6b6b 100%);
  --gradient-soft: linear-gradient(135deg, rgba(242, 201, 76, 0.12) 0%, rgba(108, 92, 231, 0.12) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --bg-elevated: #1e1e38;
    --text: #f0f0f8;
    --text-secondary: #b8b8d0;
    --text-muted: #7878a0;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(30, 30, 56, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-hero: linear-gradient(135deg, #0f0f1a 0%, #1e1e38 45%, #4a3f9e 100%);
    --gradient-soft: linear-gradient(135deg, rgba(242, 201, 76, 0.08) 0%, rgba(108, 92, 231, 0.08) 100%);
  }
}

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

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

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

body > a[href="#main-content"] {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}

body > a[href="#main-content"]:focus {
  top: 16px;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

li { margin-bottom: 0.4em; }

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  min-height: var(--header-height);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

header[role="banner"] nav {
  flex: 1 1 auto;
  min-width: 0;
}

header[role="banner"] nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

header[role="banner"] nav ul li {
  margin: 0;
}

header[role="banner"] nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
}

header[role="banner"] nav ul li a:hover {
  color: var(--text);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

header[role="banner"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 320px;
  margin: 0;
}

header[role="banner"] form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header[role="banner"] form[role="search"] input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}

header[role="banner"] form[role="search"] input[type="search"]::placeholder {
  color: var(--text-muted);
}

header[role="banner"] form[role="search"] input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.2);
}

header[role="banner"] form[role="search"] button[type="submit"] {
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  background: var(--gradient-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(242, 201, 76, 0.35);
  transition: all var(--transition);
}

header[role="banner"] form[role="search"] button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 201, 76, 0.5);
}

header[role="banner"] form[role="search"] button[type="submit"]:active {
  transform: translateY(0);
}

main {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

main > section {
  margin: clamp(40px, 6vw, 72px) 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

main > section:nth-child(1) { animation-delay: 0.05s; }
main > section:nth-child(2) { animation-delay: 0.1s; }
main > section:nth-child(3) { animation-delay: 0.15s; }
main > section:nth-child(4) { animation-delay: 0.2s; }
main > section:nth-child(5) { animation-delay: 0.25s; }
main > section:nth-child(6) { animation-delay: 0.3s; }

main > section > h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  padding-bottom: 14px;
}

main > section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

main > section > article {
  padding: clamp(20px, 3vw, 36px);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

main > section > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

main > section > article h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

main > section > article h3:first-child {
  margin-top: 0;
}

main > section > article h4 {
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--accent-2);
}

main > section > article p {
  color: var(--text-secondary);
}

main > section > article ul,
main > section > article ol {
  color: var(--text-secondary);
}

#home {
  position: relative;
  margin-top: clamp(24px, 4vw, 40px);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 56px);
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  color: #f0f0f8;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#home::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.35) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
}

#home::after {
  content: "";
  position: absolute;
  bottom: -45%;
  left: -15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.4) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseGlow 10s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

#home > h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  background: linear-gradient(120deg, #ffffff 0%, #ffe08a 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#home > p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(240, 240, 248, 0.85);
  line-height: 1.8;
}

#home > figure {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

#home > figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#home > figure:hover svg {
  transform: scale(1.02) translateY(-4px);
}

#home > figure figcaption {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(240, 240, 248, 0.6);
}

main > nav[aria-label="面包屑导航"] {
  margin: 24px 0;
}

main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

main > nav[aria-label="面包屑导航"] ol li {
  margin: 0;
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] ol li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-muted);
}

main > nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-secondary);
}

main > nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--accent-2);
}

main > nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

#cases blockquote {
  position: relative;
  margin: 16px 0;
  padding: 20px 24px 20px 56px;
  background: var(--gradient-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  font-style: normal;
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 8px;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary);
  font-family: Georgia, serif;
}

#cases blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#cases blockquote p {
  margin: 0;
}

#news article > h3 {
  padding-left: 16px;
  border-left: 4px solid var(--accent-2);
}

#articles > article {
  position: relative;
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#articles > article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 201, 76, 0.4);
}

#articles > article > h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
  transition: color var(--transition);
}

#articles > article:hover > h3 {
  color: var(--accent-2);
}

#articles > article > p:nth-of-type(1) {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

#articles > article > p > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-2);
}

#articles > article > p > a::after {
  content: "\2192";
  transition: transform var(--transition);
}

#articles > article > p > a:hover::after {
  transform: translateX(4px);
}

#faq details {
  margin-bottom: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details[open] {
  border-color: rgba(242, 201, 76, 0.5);
  box-shadow: var(--shadow-sm);
}

#faq details:hover {
  border-color: rgba(108, 92, 231, 0.35);
}

#faq summary {
  position: relative;
  padding: 18px 56px 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition), color var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent-2);
  transition: transform var(--transition), color var(--transition);
}

#faq details[open] summary::after {
  content: "\2212";
  color: var(--primary);
}

#faq summary:hover {
  background: var(--gradient-soft);
  color: var(--accent-2);
}

#faq details > p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  animation: fadeIn 0.4s ease both;
}

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

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  position: relative;
  padding: 16px 20px 16px 64px;
  margin-bottom: 12px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  counter-increment: step;
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(242, 201, 76, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#contact address {
  font-style: normal;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

#contact address p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-secondary);
}

#contact address p:last-child {
  border-bottom: none;
}

#contact address a {
  color: var(--accent-2);
  font-weight: 600;
  word-break: break-all;
}

#contact address a:hover {
  color: var(--accent);
  text-decoration: underline;
}

#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#sitemap ul li,
#links ul li {
  margin: 0;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 12px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #1a1a2e;
  background: var(--gradient-accent);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 201, 76, 0.35);
}

footer[role="contentinfo"] {
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 48px) 32px;
  background: var(--gradient-hero);
  color: rgba(240, 240, 248, 0.8);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

footer[role="contentinfo"] > section {
  max-width: 1200px;
  margin: 0 auto 32px;
}

footer[role="contentinfo"] > section h2 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #ffffff;
}

footer[role="contentinfo"] > section p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(240, 240, 248, 0.7);
}

footer[role="contentinfo"] > nav[aria-label="页脚导航"] {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer[role="contentinfo"] > nav[aria-label="页脚导航"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

footer[role="contentinfo"] > nav[aria-label="页脚导航"] ul li {
  margin: 0;
}

footer[role="contentinfo"] > nav[aria-label="页脚导航"] ul li a {
  color: rgba(240, 240, 248, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

footer[role="contentinfo"] > nav[aria-label="页脚导航"] ul li a:hover {
  color: var(--primary);
}

footer[role="contentinfo"] > p {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

footer[role="contentinfo"] > p a {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  background: var(--gradient-accent);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(242, 201, 76, 0.35);
  transition: all var(--transition);
}

footer[role="contentinfo"] > p a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(242, 201, 76, 0.5);
  color: #1a1a2e;
}

@media (max-width: 1024px) {
  header[role="banner"] nav ul li a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  header[role="banner"] form[role="search"] {
    flex-basis: 260px;
  }
}

@media (max-width: 860px) {
  header[role="banner"] {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  header[role="banner"] nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header[role="banner"] nav ul::-webkit-scrollbar {
    display: none;
  }

  header[role="banner"] form[role="search"] {
    flex-basis: auto;
    width: 100%;
  }

  main > section > article {
    padding: 20px;
  }
}

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

  #home {
    padding: 36px 20px;
    border-radius: var(--radius-lg);
  }

  #home > p {
    margin-bottom: 24px;
  }

  main > section > h2 {
    margin-bottom: 20px;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  #faq summary {
    padding: 16px 48px 16px 18px;
    font-size: 0.95rem;
  }

  #howto ol li {
    padding: 14px 16px 14px 56px;
  }

  footer[role="contentinfo"] {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

@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 print {
  header[role="banner"],
  footer[role="contentinfo"],
  #home::before,
  #home::after {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

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