:root {
  --brand: #f5a623;
  --brand-2: #ff7a45;
  --brand-3: #ffd36e;
  --bg: #f7f5f1;
  --bg-soft: #efece6;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.55);
  --text: #1f1c18;
  --text-2: #4a443c;
  --text-3: #7a7267;
  --line: rgba(31, 28, 24, 0.1);
  --line-strong: rgba(31, 28, 24, 0.18);
  --shadow-sm: 0 2px 8px rgba(31, 28, 24, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 28, 24, 0.1);
  --shadow-lg: 0 24px 60px rgba(31, 28, 24, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 68px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ffb347;
    --brand-2: #ff8a5c;
    --brand-3: #ffd98a;
    --bg: #14131a;
    --bg-soft: #1b1a22;
    --surface: rgba(38, 36, 48, 0.66);
    --surface-solid: #232130;
    --surface-2: rgba(50, 47, 62, 0.5);
    --text: #f3efe8;
    --text-2: #c9c2b6;
    --text-3: #948c80;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(245, 166, 35, 0.18), transparent 60%),
    radial-gradient(1000px 520px at 92% 4%, rgba(255, 122, 69, 0.14), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand);
}

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

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

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

h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  color: var(--text);
}

h4 {
  font-size: 1.02rem;
  color: var(--text-2);
}

p {
  margin: 0 0 1em;
  color: var(--text-2);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  animation: headerIn 0.6s var(--ease) both;
}

@keyframes headerIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

header nav > a[aria-label] {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
}

header nav > a[aria-label]::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.45);
  flex: 0 0 auto;
}

header nav > a[aria-label]:hover {
  color: var(--brand-2);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 99px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a:hover {
  color: var(--text);
  background: var(--surface-2);
  transform: translateY(-1px);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 40px;
}

main > h1 {
  margin: 28px 0 36px;
  padding: 44px 36px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 260px at 88% -10%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #ffb347 0%, #ff7a45 46%, #e8590c 100%);
  color: #fff;
  text-shadow: 0 2px 18px rgba(120, 50, 0, 0.35);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: bannerIn 0.8s var(--ease) both;
}

main > h1::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px 220px at 78% 120%, rgba(255, 255, 255, 0.28), transparent 70%),
    radial-gradient(180px 180px at 20% -20%, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

@keyframes bannerIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

section {
  margin-bottom: 40px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
  animation: sectionIn 0.7s var(--ease) both;
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

@supports (animation-timeline: view()) {
  section {
    animation: sectionIn 0.7s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

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

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

section h3 {
  margin-top: 1.6em;
}

section h3:first-of-type {
  margin-top: 0;
}

section h4 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

section p {
  max-width: 78ch;
}

#intro,
#about {
  background:
    linear-gradient(160deg, rgba(245, 166, 35, 0.1), transparent 55%),
    var(--surface);
}

#products .h4,
#products h4 {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border-left: 3px solid var(--brand);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

#products h4:hover {
  background: var(--surface-solid);
  transform: translateX(4px);
}

#cases p:not(:first-of-type) {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  font-style: italic;
  color: var(--text-2);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

#cases p:not(:first-of-type):hover {
  border-color: var(--brand);
  background: var(--surface-solid);
}

#news ul,
#sitemap ul,
#links ul {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

#news ul li,
#sitemap ul li,
#links ul li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid transparent;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}

#news ul li::before,
#sitemap ul li::before,
#links ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.14);
}

#news ul li:hover,
#sitemap ul li:hover,
#links ul li:hover {
  transform: translateX(4px);
  background: var(--surface-solid);
  border-color: var(--line);
}

#news ul li,
#sitemap ul li {
  color: var(--text-2);
}

#links ul {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#links ul li a {
  font-weight: 600;
}

#articles article {
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease), background 0.32s var(--ease);
  position: relative;
  overflow: hidden;
}

#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

#articles article:hover::before {
  opacity: 1;
}

#articles article h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.08rem;
  transition: color 0.28s var(--ease);
}

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

#articles article p:first-of-type {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-3);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

#articles article p:last-of-type {
  margin-bottom: 0;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.28);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s var(--ease);
}

#articles article a::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}

#articles article a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.4);
  filter: brightness(1.05);
}

#articles article a:hover::after {
  transform: translateX(3px);
}

#faq h3 {
  margin-top: 1.5em;
  margin-bottom: 0.3em;
  padding: 12px 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-2);
  border-left: 3px solid var(--brand);
  font-size: 1.02rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq h3:hover {
  background: var(--surface-solid);
  color: var(--brand-2);
}

#faq h3 + p {
  margin-top: 0;
  padding: 12px 16px 16px;
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-left: 3px solid transparent;
  color: var(--text-2);
}

#howto h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(255, 122, 69, 0.12));
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--text);
  font-size: 0.94rem;
}

#howto h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  flex: 0 0 auto;
}

#knowledge h3 {
  padding-left: 14px;
  border-left: 3px solid var(--brand-2);
}

#contact p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  border-color: var(--brand);
  background: var(--surface-solid);
}

#contact p:first-of-type {
  font-weight: 700;
  color: var(--text);
}

#contact p:nth-of-type(3),
#contact p:nth-of-type(4) {
  font-variant-numeric: tabular-nums;
}

#contact p:nth-of-type(3)::before {
  content: "☎";
  color: var(--brand-2);
  font-size: 1rem;
}

#contact p:nth-of-type(4)::before {
  content: "✉";
  color: var(--brand-2);
  font-size: 1rem;
}

#contact p:nth-of-type(2)::before {
  content: "⌖";
  color: var(--brand-2);
  font-size: 1rem;
}

footer {
  margin-top: 24px;
  padding: 48px 20px 40px;
  background:
    radial-gradient(800px 300px at 50% -20%, rgba(245, 166, 35, 0.14), transparent 70%),
    var(--surface);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--line);
}

footer > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

footer h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

footer h3 {
  font-size: 1rem;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  color: var(--text);
}

footer p {
  color: var(--text-3);
  font-size: 0.92rem;
  max-width: 78ch;
}

footer p:last-child {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-3);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

footer h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  vertical-align: middle;
  transform: translateY(-1px);
}

::selection {
  background: rgba(245, 166, 35, 0.35);
  color: var(--text);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.1);
}

@media (max-width: 960px) {
  main {
    padding: 18px 16px 32px;
  }

  main > h1 {
    padding: 34px 26px;
    margin: 20px 0 28px;
    border-radius: var(--radius-lg);
  }

  section {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
  }

  header nav {
    gap: 10px;
  }

  header nav ul {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  header nav ul::-webkit-scrollbar {
    height: 4px;
  }

  header nav ul li a {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 0.88rem;
  }

  header {
    position: relative;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  main > h1 {
    padding: 28px 20px;
    margin: 12px 0 22px;
    border-radius: var(--radius-md);
  }

  section {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  h2 {
    padding-left: 13px;
  }

  h2::before {
    width: 4px;
  }

  #articles article {
    padding: 18px 16px;
  }

  #articles article h3 {
    font-size: 1rem;
  }

  #news ul li,
  #sitemap ul li,
  #links ul li {
    padding: 10px 14px 10px 34px;
  }

  #news ul li::before,
  #sitemap ul li::before,
  #links ul li::before {
    left: 13px;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
  }

  #contact p {
    flex-wrap: wrap;
    gap: 4px;
  }

  footer {
    padding: 36px 16px 32px;
  }
}

@media (max-width: 380px) {
  header nav > a[aria-label] {
    font-size: 1.02rem;
  }

  header nav > a[aria-label]::before {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  main > h1 {
    font-size: 1.6rem;
  }
}

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

  section,
  header,
  main > h1 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  header,
  footer,
  #links,
  #sitemap {
    display: none;
  }

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

  section {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    break-inside: avoid;
  }

  main > h1 {
    background: none;
    color: #000;
    box-shadow: none;
    text-shadow: none;
  }
}