:root {
  --lemon: #f5a623;
  --lemon-deep: #e88f0c;
  --lemon-soft: #ffe8bf;
  --accent: #2ec4b6;
  --accent-deep: #17a398;
  --ink: #1b1f2a;
  --ink-soft: #4a5163;
  --ink-mute: #7b8296;
  --bg: #fffaf2;
  --bg-alt: #fff3e0;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.62);
  --border: rgba(245, 166, 35, 0.22);
  --border-soft: rgba(27, 31, 42, 0.08);
  --shadow-sm: 0 2px 10px rgba(232, 143, 12, 0.08);
  --shadow-md: 0 12px 32px rgba(232, 143, 12, 0.14);
  --shadow-lg: 0 24px 60px rgba(232, 143, 12, 0.2);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --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", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lemon: #ffb84d;
    --lemon-deep: #f5a623;
    --lemon-soft: #4a3413;
    --accent: #4fd8cb;
    --accent-deep: #2ec4b6;
    --ink: #f2f4fa;
    --ink-soft: #c3c9d8;
    --ink-mute: #8c93a8;
    --bg: #10131c;
    --bg-alt: #161a26;
    --card: #1a1f2e;
    --card-glass: rgba(26, 31, 46, 0.6);
    --border: rgba(255, 184, 77, 0.24);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(245, 166, 35, 0.14), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(46, 196, 182, 0.1), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.9rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 1.1rem;
  position: relative;
  padding-left: 1.1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--lemon), var(--accent));
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 1.6rem 0 0.6rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.45rem;
}

li::marker {
  color: var(--lemon-deep);
}

time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
  font-size: 0.88em;
}

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--lemon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink-soft);
  font-style: italic;
  box-shadow: var(--shadow-sm);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Header ===== */
header#top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 6px 24px rgba(232, 143, 12, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.brand:hover svg {
  transform: rotate(-12deg) scale(1.08);
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.55);
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, var(--lemon-deep), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

header nav {
  flex: 1 1 auto;
  min-width: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 0.42rem 0.72rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--ink);
  background: linear-gradient(120deg, rgba(245, 166, 35, 0.18), rgba(46, 196, 182, 0.16));
  transform: translateY(-2px);
}

/* ===== Layout ===== */
main {
  display: block;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 4vw, 2rem) 3rem;
}

section {
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  padding: clamp(1.25rem, 3vw, 2.2rem);
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

/* ===== Hero ===== */
#hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.2rem) clamp(1.25rem, 4vw, 3rem);
  border: none;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.32), transparent 45%),
    linear-gradient(125deg, #f5a623 0%, #f7b955 32%, #2ec4b6 100%);
  box-shadow: var(--shadow-lg);
  color: #fff;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 68%);
  filter: blur(6px);
  z-index: -1;
  animation: floatGlow 9s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  filter: blur(4px);
  z-index: -1;
  animation: floatGlow 11s ease-in-out infinite alternate-reverse;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(120, 70, 0, 0.25);
  max-width: 22ch;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  text-shadow: 0 1px 10px rgba(120, 70, 0, 0.2);
}

#hero nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

#hero nav li {
  margin: 0;
}

#hero nav a {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#hero nav a:hover,
#hero nav a:focus-visible {
  color: #7a4a00;
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(120, 70, 0, 0.24);
}

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 26px, 0) scale(1.12); }
}

/* ===== Products / lists ===== */
#products ul {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

#products ul li {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul li::before {
  content: "✓";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--lemon), var(--accent));
  border-radius: 50%;
}

#products ul li:hover {
  transform: translateX(4px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* ===== Cases ===== */
#cases blockquote {
  position: relative;
  font-size: 0.98rem;
}

#cases blockquote::before {
  content: "“";
  position: absolute;
  top: -0.35rem;
  left: 0.7rem;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--lemon);
  opacity: 0.45;
  font-family: Georgia, serif;
}

/* ===== News ===== */
#news ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#news li {
  margin: 0;
  padding: 0.9rem 1.1rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--lemon);
  border-radius: var(--radius-sm) var(--radius-md) var(--radius-md) var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#news li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

#news time {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lemon-deep);
  background: rgba(245, 166, 35, 0.14);
  border-radius: var(--radius-pill);
}

/* ===== Articles ===== */
#articles {
  display: grid;
  gap: 1rem;
}

#articles > h2 {
  grid-column: 1 / -1;
}

#articles article {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

#articles article:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

#articles article h3 {
  margin-top: 0;
  font-size: 1.04rem;
}

#articles article h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--lemon), var(--accent));
  transition: width 0.35s var(--ease);
}

#articles article:hover h3::after {
  width: 76px;
}

#articles article p {
  font-size: 0.93rem;
  margin-bottom: 0.75rem;
}

#articles article a {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lemon-deep);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

#articles article a:hover,
#articles article a:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, var(--lemon), var(--accent));
  transform: translateX(3px);
}

/* ===== HowTo ===== */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  margin-bottom: 0.7rem;
  padding: 0.8rem 1rem 0.8rem 3.1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--lemon));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(46, 196, 182, 0.3);
}

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

/* ===== FAQ ===== */
#faq dl {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

#faq dt {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(120deg, rgba(245, 166, 35, 0.14), rgba(46, 196, 182, 0.08));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: default;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--lemon), var(--lemon-deep));
  border-radius: 6px;
}

#faq dt:hover {
  background: linear-gradient(120deg, rgba(245, 166, 35, 0.24), rgba(46, 196, 182, 0.14));
}

#faq dd {
  margin: -0.7rem 0 0;
  padding: 0.9rem 1rem 0.9rem 2.6rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq dd:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* ===== Contact ===== */
#contact p {
  padding: 0.55rem 0 0.55rem 1.1rem;
  margin: 0 0 0.4rem;
  border-left: 3px solid var(--border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

#contact p:hover {
  border-color: var(--lemon);
  transform: translateX(4px);
}

#contact h3 {
  margin-top: 1.4rem;
}

/* ===== Sitemap & Links ===== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.42rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover,
#sitemap a:focus-visible,
#links a:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, var(--lemon), var(--accent));
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ===== Footer ===== */
footer {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 2.5rem;
}

footer section {
  margin: 0;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

footer h2 {
  font-size: 1.02rem;
  padding-left: 0.85rem;
  margin-bottom: 0.6rem;
}

footer h2::before {
  width: 4px;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--ink-mute);
}

#copyright {
  text-align: center;
  background: linear-gradient(120deg, rgba(245, 166, 35, 0.12), rgba(46, 196, 182, 0.1));
  border-color: var(--border);
}

#copyright p:first-child {
  font-weight: 700;
  color: var(--ink-soft);
}

/* ===== Scroll reveal ===== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    section,
    footer section {
      animation: revealUp both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }

  @supports not (animation-timeline: view()) {
    main > section {
      animation: revealUp 0.7s var(--ease) both;
    }

    main > section:nth-of-type(2) { animation-delay: 0.05s; }
    main > section:nth-of-type(3) { animation-delay: 0.1s; }
    main > section:nth-of-type(4) { animation-delay: 0.15s; }
    main > section:nth-of-type(5) { animation-delay: 0.2s; }
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(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;
  }
}

/* ===== Responsive ===== */
@media (min-width: 720px) {
  #articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  #articles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #faq dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  header#top {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 1rem;
  }

  .brand {
    justify-content: center;
  }

  header nav ul {
    justify-content: center;
    gap: 0.1rem;
  }

  header nav a {
    padding: 0.38rem 0.6rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 128px;
  }

  body {
    font-size: 15px;
  }

  header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav a {
    font-size: 0.82rem;
  }

  section {
    border-radius: var(--radius-md);
    padding: 1.15rem;
  }

  #hero {
    text-align: left;
    padding: 1.8rem 1.15rem;
  }

  #hero h1 {
    max-width: none;
  }

  #hero nav ul {
    gap: 0.5rem;
  }

  #hero nav a {
    padding: 0.5rem 1rem;
    font-size: 0.86rem;
  }

  #faq dt,
  #faq dd {
    padding-left: 2.4rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 1rem;
  }

  #hero nav a {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* ===== Print ===== */
@media print {
  header#top,
  #hero nav,
  footer {
    display: none;
  }

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

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