:root {
  --brand: #ff5a5f;
  --brand-dark: #e14b50;
  --brand-light: #ffe9e9;
  --accent: #3a7bd5;
  --accent-light: #eaf3ff;
  --green: #2ecc71;
  --green-light: #eafaf1;
  --orange: #ffb347;
  --ink: #1d2129;
  --ink-2: #4e5969;
  --ink-3: #86909c;
  --line: #e5e6eb;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(29, 33, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(29, 33, 41, 0.08);
  --shadow-lg: 0 16px 48px rgba(29, 33, 41, 0.12);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff6b70;
    --brand-dark: #ff8a8e;
    --brand-light: #3a1f22;
    --accent: #5b9bf0;
    --accent-light: #1a2638;
    --green: #3ddc84;
    --green-light: #16281f;
    --orange: #ffc266;
    --ink: #f2f3f5;
    --ink-2: #c9cdd4;
    --ink-3: #8a919c;
    --line: #2e3238;
    --bg: #14161a;
    --bg-2: #1b1e24;
    --card: #1f232a;
    --glass: rgba(31, 35, 42, 0.72);
    --glass-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);
  }
}

*,
*::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: -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(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}

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

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

ul,
ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.45em;
  color: var(--ink-2);
}

strong {
  color: var(--ink);
  font-weight: 700;
}

blockquote {
  margin: 0 0 1em;
  padding: 1em 1.2em;
  background: var(--bg-2);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
}

blockquote p {
  margin: 0;
  color: var(--ink-2);
  font-style: italic;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ 顶部品牌信息条 ============ */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 8px clamp(16px, 4vw, 48px);
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(90deg, var(--brand) 0%, #ff8a5c 55%, var(--orange) 100%);
  letter-spacing: 0.02em;
}

.topbar span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
  padding: 8px clamp(16px, 4vw, 48px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.logo svg {
  border-radius: 10px;
  transition: transform 0.35s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

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

.site-header nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.site-header nav li {
  margin: 0;
  flex-shrink: 0;
}

.site-header nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.15);
}

.site-search input {
  width: clamp(120px, 14vw, 200px);
  padding: 6px 12px;
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.site-search input::placeholder {
  color: var(--ink-3);
}

.site-search button {
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #ff8a5c);
  border: 0;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 95, 0.35);
}

/* ============ 面包屑 ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 48px) 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.breadcrumb li {
  margin: 0;
  color: var(--ink-3);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-3);
}

.breadcrumb a {
  color: var(--ink-2);
}

/* ============ 主容器 ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 64px;
}

main > section {
  margin-top: clamp(40px, 6vw, 72px);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section > h2 {
  position: relative;
  padding-left: 16px;
}

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

/* ============ Banner ============ */
.banner {
  position: relative;
  margin-top: clamp(24px, 4vw, 40px) !important;
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffe9e9 0%, #fff5ec 45%, #eaf3ff 100%);
  overflow: hidden;
  isolation: isolate;
}

.banner::before,
.banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
}

.banner::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -60px;
  background: var(--brand);
}

.banner::after {
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: -80px;
  background: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .banner {
    background: linear-gradient(135deg, #2a1a1c 0%, #241f1a 45%, #16202e 100%);
  }
}

.banner h1 {
  max-width: 900px;
  background: linear-gradient(120deg, var(--brand) 0%, #ff8a5c 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.banner > p {
  max-width: 860px;
  font-size: 1rem;
  color: var(--ink-2);
}

.banner-slides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(20px, 3vw, 32px);
}

.banner-slides figure {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.banner-slides figure:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.banner-slides svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius) var(--radius) 0 0;
}

.banner-slides figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
}

/* ============ 数据指标 ============ */
.stats {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stats h2 {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.stats h2::before {
  display: none;
}

.stats ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.stats li {
  margin: 0;
  padding: 16px 8px;
  font-size: 0.9rem;
  color: var(--ink-3);
  border-radius: var(--radius);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.stats li:hover {
  background: var(--bg-2);
  transform: translateY(-3px);
}

.stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--brand), #ff8a5c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ 通用卡片化内容区块 ============ */
#brand,
#products,
#solutions,
#applications,
#cases,
#news,
#articles,
#howto,
#faq,
#notes,
#contact,
#sitemap,
#privacy,
#disclaimer {
  padding: clamp(24px, 4vw, 44px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease);
}

#brand:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-md);
}

#brand h3,
#products h3,
#solutions h3,
#applications h3,
#cases h3,
#news h3,
#articles h3,
#howto h3,
#notes h3,
#contact h3 {
  margin-top: 1.4em;
  padding-bottom: 0.4em;
  border-bottom: 1px dashed var(--line);
}

#brand h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#applications h3:first-of-type,
#cases h3:first-of-type,
#contact h3:first-of-type {
  margin-top: 0.6em;
}

#brand ul,
#products ul,
#solutions ul,
#howto ul,
#howto ol,
#notes ul,
#contact ul,
#sitemap ul {
  padding-left: 0;
  list-style: none;
}

#brand ul li,
#products ul li,
#solutions ul li,
#howto ul li,
#notes ul li,
#contact ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.6em;
  color: var(--ink-2);
}

#brand ul li::before,
#products ul li::before,
#solutions ul li::before,
#howto ul li::before,
#notes ul li::before,
#contact ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.12);
}

#howto ol {
  counter-reset: step;
  padding-left: 0;
}

#howto ol li {
  position: relative;
  counter-increment: step;
  padding-left: 44px;
  margin-bottom: 0.9em;
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff8a5c);
}

/* ============ 新闻 & 文章卡片 ============ */
#news article,
#articles article {
  padding: clamp(16px, 2.5vw, 24px);
  margin-bottom: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--ink);
}

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

#news article p:first-of-type,
#articles article p:first-of-type {
  font-size: 0.82rem;
  color: var(--ink-3);
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

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

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

/* ============ 案例引用 ============ */
#cases blockquote {
  position: relative;
  padding-left: 2.4em;
  background: linear-gradient(135deg, var(--brand-light), var(--bg-2));
  border-left: 4px solid var(--brand);
  transition: transform 0.3s var(--ease);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.5em;
  top: 0.1em;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.5;
}

#cases blockquote:hover {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details:hover {
  border-color: var(--brand);
}

#faq details[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

#faq summary {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

#faq summary:hover {
  color: var(--brand);
  background: var(--brand-light);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  color: var(--ink-2);
  animation: fadeUp 0.35s var(--ease) both;
}

/* ============ 联系我们 ============ */
#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 24px;
}

#contact ul li {
  padding: 10px 12px 10px 30px;
  margin: 0;
  font-size: 0.92rem;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

#contact ul li:hover {
  background: var(--brand-light);
  transform: translateX(3px);
}

#contact ul li::before {
  top: 1.05em;
  left: 12px;
}

/* ============ 网站地图 ============ */
#sitemap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

#sitemap li {
  margin: 0;
}

#sitemap a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

#sitemap a:hover {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), #ff8a5c);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 90, 95, 0.3);
}

/* ============ 页脚 ============ */
footer {
  margin-top: 0;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px) 40px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 28px;
}

footer h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}

footer p {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin: 0 0 0.5em;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

footer li {
  margin: 0;
}

footer a {
  font-size: 0.9rem;
  color: var(--ink-2);
}

footer a:hover {
  color: var(--brand);
}

footer section[aria-labelledby="copyright"] {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ============ 动画 ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@supports (animation-timeline: view()) {
  main > section {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@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: 1024px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header nav {
    order: 3;
    flex-basis: 100%;
  }

  .site-search {
    margin-left: auto;
  }
}

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

  body {
    font-size: 15px;
  }

  .topbar {
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
  }

  .site-header {
    gap: 8px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo svg {
    width: 34px;
    height: 34px;
  }

  .site-search {
    flex: 1 1 100%;
    order: 4;
  }

  .site-search input {
    width: 100%;
    flex: 1;
  }

  .banner-slides {
    grid-template-columns: 1fr;
  }

  .stats ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #contact ul {
    grid-template-columns: 1fr;
  }

  #sitemap ul {
    grid-template-columns: repeat(2, 1fr);
  }

  main > section > h2 {
    padding-left: 12px;
  }

  main > section > h2::before {
    width: 4px;
  }
}

@media (max-width: 480px) {
  .banner {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  .stats {
    padding: 20px 16px;
  }

  .stats ul {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #brand,
  #products,
  #solutions,
  #applications,
  #cases,
  #news,
  #articles,
  #howto,
  #faq,
  #notes,
  #contact,
  #sitemap,
  #privacy,
  #disclaimer {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  #faq summary {
    padding: 14px 42px 14px 16px;
  }

  #faq details p {
    padding: 0 16px 16px;
  }
}

/* ============ 打印 ============ */
@media print {
  .topbar,
  .site-header,
  .breadcrumb,
  .site-search,
  footer {
    display: none;
  }

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

  main > section {
    box-shadow: none;
    border: 0;
    page-break-inside: avoid;
  }

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