:root {
  --orange: #ff7a45;
  --orange-light: #ff9a6b;
  --orange-deep: #e85d2a;
  --bg: #fff8f4;
  --bg-alt: #fff;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 122, 69, 0.16);
  --text: #2b2118;
  --text-soft: #6b5d52;
  --text-mute: #9a8b7f;
  --shadow: 0 10px 30px rgba(232, 93, 42, 0.10);
  --shadow-hover: 0 18px 44px rgba(232, 93, 42, 0.20);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-bg: rgba(255, 255, 255, 0.66);
  --header-h: 66px;
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100d;
    --bg-alt: #1c1713;
    --card-bg: rgba(38, 30, 24, 0.62);
    --card-border: rgba(255, 154, 107, 0.18);
    --text: #f4ece5;
    --text-soft: #c7b8ab;
    --text-mute: #8f8073;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 18px 44px rgba(255, 122, 69, 0.22);
    --nav-bg: rgba(28, 23, 19, 0.66);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 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);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 69, 0.10), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(255, 154, 107, 0.10), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(255, 122, 69, 0.06), transparent 55%);
  background-attachment: fixed;
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  padding-left: 1.3em;
}

li {
  margin: 0.28em 0;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 24px rgba(232, 93, 42, 0.06);
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

header > div > a {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  white-space: nowrap;
}

header > div > a::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--orange-deep));
  box-shadow: 0 4px 12px rgba(232, 93, 42, 0.4);
  flex-shrink: 0;
}

header > div > a:hover {
  color: var(--orange-deep);
}

header nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

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

header nav ul li {
  margin: 0;
}

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

header nav ul li a:hover {
  background: rgba(255, 122, 69, 0.14);
  color: var(--orange-deep);
  transform: translateY(-1px);
}

/* ============ Main & Sections ============ */
main {
  display: block;
}

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 24px;
}

section > h2 {
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 22px;
  color: var(--text);
  position: relative;
  padding-left: 18px;
  letter-spacing: 0.3px;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-deep));
  box-shadow: 0 0 12px rgba(255, 122, 69, 0.5);
}

section h3 {
  font-size: 1.16rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--text);
  line-height: 1.5;
}

section p {
  color: var(--text-soft);
  margin: 10px 0;
  font-size: 0.98rem;
}

/* ============ Hero Banner ============ */
#hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 78px 24px 86px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 40%),
    radial-gradient(circle at 82% 80%, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(135deg, #ff8a5c 0%, #ff7a45 45%, #f26b3a 75%, #e85d2a 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

#hero::before,
#hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
  opacity: 0.5;
  animation: floaty 12s ease-in-out infinite;
}

#hero::before {
  width: 340px;
  height: 340px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
}

#hero::after {
  width: 420px;
  height: 420px;
  bottom: -200px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 220, 190, 0.45), transparent 70%);
  animation-delay: -6s;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -18px, 0) scale(1.06); }
}

#hero h1 {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.36;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 22px rgba(160, 60, 20, 0.28);
  animation: riseIn 0.8s ease both;
}

#hero p {
  max-width: 880px;
  margin: 14px auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  line-height: 1.85;
  animation: riseIn 0.8s ease both;
}

#hero p:first-of-type {
  animation-delay: 0.1s;
}

#hero p:last-of-type {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
  display: inline-block;
  animation-delay: 0.2s;
}

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

/* ============ Breadcrumb ============ */
nav[aria-label="面包屑导航"] {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px 0;
}

nav[aria-label="面包屑导航"] ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-mute);
}

nav[aria-label="面包屑导航"] ol li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

nav[aria-label="面包屑导航"] ol li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-mute);
}

nav[aria-label="面包屑导航"] ol li:last-child {
  color: var(--orange-deep);
  font-weight: 600;
}

/* ============ Anchor Nav ============ */
nav[aria-label="站内锚点导航"] {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 0 24px;
}

nav[aria-label="站内锚点导航"] ul {
  list-style: none;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

nav[aria-label="站内锚点导航"] ul li {
  margin: 0;
}

nav[aria-label="站内锚点导航"] ul li a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-soft);
  background: rgba(255, 122, 69, 0.08);
  transition: all 0.25s ease;
}

nav[aria-label="站内锚点导航"] ul li a:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange-deep));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(232, 93, 42, 0.35);
}

/* ============ Cards: generic section styling ============ */
#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  position: relative;
}

#about > p,
#history > p,
#culture > p,
#applications > p,
#legal > p {
  color: var(--text-soft);
}

/* Glass cards for content blocks */
#products h3,
#advantages h3,
#solutions h3,
#cases h3,
#news article,
#articles article,
#knowledge h3,
#faq h3,
#howto h3,
#contact h3 {
  position: relative;
}

#products h3,
#advantages h3,
#solutions h3,
#knowledge h3,
#contact h3 {
  padding-left: 14px;
}

#products h3::before,
#advantages h3::before,
#solutions h3::before,
#knowledge h3::before,
#contact h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 5px;
  height: 1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-deep));
}

/* ============ News & Articles cards ============ */
#news article,
#articles article {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 122, 69, 0.42);
}

#news article h3,
#articles article h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
  transition: color 0.25s ease;
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--orange-deep);
}

#news article p,
#articles article p {
  margin: 6px 0;
  font-size: 0.94rem;
}

#news article p:first-of-type,
#articles article p:first-of-type {
  color: var(--text-mute);
  font-size: 0.84rem;
  letter-spacing: 0.3px;
}

#news article a,
#articles article a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.12);
  color: var(--orange-deep);
  transition: all 0.25s ease;
}

#news article a:hover,
#articles article a:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange-deep));
  color: #fff;
  transform: translateX(3px);
}

/* ============ Reviews (blockquote) ============ */
#reviews blockquote {
  position: relative;
  margin: 16px 0;
  padding: 22px 24px 22px 60px;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.55;
  font-family: Georgia, serif;
}

#reviews blockquote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

#reviews blockquote p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* ============ FAQ ============ */
#faq h3 {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0 0;
  font-size: 1.02rem;
  box-shadow: var(--shadow);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: default;
}

#faq h3:hover {
  color: var(--orange-deep);
  border-color: rgba(255, 122, 69, 0.4);
  transform: translateX(3px);
}

#faq h3 + p {
  margin: 0;
  padding: 14px 18px 18px;
  background: rgba(255, 122, 69, 0.05);
  border: 1px solid var(--card-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.94rem;
  animation: fadeIn 0.4s ease both;
}

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

/* ============ HowTo ============ */
#howto ol,
#howto ul {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px 20px 44px;
  box-shadow: var(--shadow);
  color: var(--text-soft);
}

#howto ol li,
#howto ul li {
  margin: 8px 0;
  color: var(--text-soft);
}

#howto ol li::marker {
  color: var(--orange-deep);
  font-weight: 700;
}

/* ============ Contact & lists ============ */
#contact ul,
#about ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px 18px;
}

#contact ul li,
#about ul li,
#sitemap ul li,
#links ul li {
  margin: 0;
  padding: 10px 16px;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(232, 93, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  word-break: break-word;
}

#contact ul li:hover,
#about ul li:hover,
#sitemap ul li:hover,
#links ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 122, 69, 0.4);
}

#sitemap ul li a,
#links ul li a {
  color: var(--text-soft);
  font-weight: 500;
}

#sitemap ul li:hover a,
#links ul li:hover a {
  color: var(--orange-deep);
}

/* ============ Legal ============ */
#legal h2 {
  margin-top: 34px;
}

#legal h2:first-child {
  margin-top: 0;
}

/* ============ Footer ============ */
footer {
  margin-top: 40px;
  padding: 44px 24px 34px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(255, 122, 69, 0.07));
  border-top: 1px solid var(--card-border);
}

footer p {
  max-width: var(--maxw);
  margin: 6px auto;
  color: var(--text-mute);
  font-size: 0.88rem;
  line-height: 1.8;
}

footer p:first-child {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

footer p:last-child {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--card-border);
  font-size: 0.82rem;
}

/* ============ Scroll reveal (progressive enhancement) ============ */
@supports (animation-timeline: view()) {
  section,
  #news article,
  #articles article,
  #reviews blockquote {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }

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

/* ============ Responsive ============ */
@media (max-width: 900px) {
  #hero h1 {
    font-size: 1.9rem;
  }

  section > h2 {
    font-size: 1.45rem;
  }

  header > div {
    padding: 0 16px;
  }

  header nav {
    width: 100%;
    justify-content: flex-start;
  }

  header nav ul {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
    --radius: 15px;
  }

  body {
    font-size: 15px;
  }

  header > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 16px;
  }

  header > div > a {
    font-size: 1.18rem;
  }

  header nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    width: max-content;
    padding-bottom: 4px;
  }

  header nav ul li a {
    padding: 7px 11px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  #hero {
    padding: 52px 18px 60px;
  }

  #hero h1 {
    font-size: 1.55rem;
    line-height: 1.45;
  }

  #hero p {
    font-size: 0.94rem;
  }

  #hero p:last-of-type {
    font-size: 0.82rem;
    display: block;
  }

  section {
    padding: 34px 16px;
  }

  section > h2 {
    font-size: 1.28rem;
    padding-left: 14px;
    margin-bottom: 16px;
  }

  section > h2::before {
    width: 5px;
  }

  section h3 {
    font-size: 1.06rem;
    margin-top: 20px;
  }

  nav[aria-label="面包屑导航"],
  nav[aria-label="站内锚点导航"] {
    padding-left: 16px;
    padding-right: 16px;
  }

  nav[aria-label="站内锚点导航"] ul {
    padding: 10px;
    gap: 6px;
  }

  nav[aria-label="站内锚点导航"] ul li a {
    padding: 5px 11px;
    font-size: 0.8rem;
  }

  #news article,
  #articles article {
    padding: 18px;
  }

  #reviews blockquote {
    padding: 18px 18px 18px 48px;
  }

  #reviews blockquote::before {
    left: 12px;
    font-size: 2.6rem;
  }

  #contact ul,
  #about ul,
  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr;
  }

  #howto ol,
  #howto ul {
    padding: 16px 18px 16px 36px;
  }

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

@media (max-width: 420px) {
  #hero h1 {
    font-size: 1.34rem;
  }

  section > h2 {
    font-size: 1.16rem;
  }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============ Focus & selection ============ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(255, 122, 69, 0.3);
  color: var(--text);
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-deep);
  background-clip: padding-box;
}
</style>