:root {
  --brand: #ff5a3c;
  --brand-dark: #e0442a;
  --brand-light: #ff8a72;
  --brand-soft: rgba(255, 90, 60, 0.12);
  --accent: #ffb02e;
  --gradient-brand: linear-gradient(135deg, #ff5a3c 0%, #ff7a45 45%, #ffb02e 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 90, 60, 0.08) 0%, rgba(255, 176, 46, 0.08) 100%);
  --bg: #f7f8fb;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #1f2430;
  --text-secondary: #4a5163;
  --text-muted: #7a8296;
  --border: rgba(31, 36, 48, 0.08);
  --border-strong: rgba(31, 36, 48, 0.14);
  --shadow-sm: 0 2px 8px rgba(31, 36, 48, 0.06);
  --shadow-md: 0 8px 28px rgba(31, 36, 48, 0.1);
  --shadow-lg: 0 20px 56px rgba(31, 36, 48, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1180px;
  --header-h: 128px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --bg-elevated: #171b24;
    --bg-glass: rgba(23, 27, 36, 0.72);
    --bg-glass-strong: rgba(23, 27, 36, 0.9);
    --text: #eef1f7;
    --text-secondary: #c2c8d6;
    --text-muted: #8b93a7;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --brand-soft: rgba(255, 90, 60, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 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.8;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      ellipse 80% 50% at 0% 0%,
      rgba(255, 90, 60, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 10%,
      rgba(255, 176, 46, 0.06) 0%,
      transparent 60%
    );
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ============ 顶部品牌栏 ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-flex;
  align-items: center;
}

.brand::before {
  content: "▶";
  font-size: 0.85rem;
  margin-right: 8px;
  color: var(--brand);
  -webkit-text-fill-color: var(--brand);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

.domain {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 3px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: "SF Mono", "Consolas", monospace;
  letter-spacing: 0.3px;
}

.slogan {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: auto;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
  white-space: nowrap;
}

#main-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

#main-nav::-webkit-scrollbar {
  display: none;
}

#main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 6px 0 12px;
}

#main-nav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
  position: relative;
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

#main-nav a:hover::after {
  width: 40%;
}

/* ============ 主内容容器 ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ============ 面包屑 ============ */
#breadcrumb {
  padding: 20px 0 8px;
}

#breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

#breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.5;
}

#breadcrumb a {
  color: var(--text-secondary);
}

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

#breadcrumb [aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

/* ============ 通用 Section ============ */
main > section {
  margin-top: 56px;
  scroll-margin-top: calc(var(--header-h) + 16px);
  animation: fadeUp 0.7s var(--ease) both;
}

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

@supports (animation-timeline: view()) {
  main > section {
    animation: fadeUp 0.6s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

main > section > h2 {
  position: relative;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 28px;
  padding-left: 20px;
  letter-spacing: 0.3px;
}

main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: 6px;
  background: var(--gradient-brand);
  box-shadow: 0 0 16px rgba(255, 90, 60, 0.4);
}

main > section > article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

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

article h3 {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 36px 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

article h3::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 10px rgba(255, 90, 60, 0.5);
}

article p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  text-align: justify;
  word-break: break-word;
}

article p:last-child {
  margin-bottom: 0;
}

article address {
  font-style: normal;
  background: var(--gradient-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.95rem;
}

/* ============ 首屏 Hero ============ */
#hero {
  position: relative;
  margin-top: 24px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite, fadeUp 0.7s var(--ease) both;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(255, 90, 60, 0.32);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero-lead {
  position: relative;
  z-index: 1;
  margin: 0 0 32px;
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.94);
  text-align: justify;
  max-width: 900px;
}

.hero-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s var(--ease);
}

.hero-figure:hover {
  transform: translateY(-4px) scale(1.01);
}

.hero-figure svg {
  border-radius: var(--radius-md);
  width: 100%;
}

.hero-figure figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px 0 2px;
}

/* ============ 列表 ============ */
article ul,
article ol {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

article ul li {
  position: relative;
  padding: 10px 0 10px 26px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}

article ul li:last-child {
  border-bottom: none;
}

article ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.35em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
  transition: transform 0.3s var(--ease);
}

article ul li:hover {
  padding-left: 32px;
  color: var(--text);
}

article ul li:hover::before {
  transform: scale(1.35);
}

article ul li a {
  color: var(--text-secondary);
  font-weight: 500;
}

article ul li a:hover {
  color: var(--brand);
}

/* ============ 客户评价 ============ */
#testimonials article {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

#testimonials blockquote {
  margin: 0;
  padding: 24px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

#testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 18px;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.14;
  font-family: Georgia, serif;
}

#testimonials blockquote:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

#testimonials blockquote p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* ============ 新闻中心 / 技术文章 时间信息 ============ */
#news article h3 + p,
#articles article h3 + p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: -4px 0 10px;
  padding-left: 18px;
  font-family: "SF Mono", "Consolas", monospace;
  letter-spacing: 0.2px;
}

#news article h3,
#articles article h3 {
  margin-bottom: 8px;
}

/* ============ FAQ ============ */
#faq article h3 {
  padding: 16px 20px;
  margin: 14px 0 0;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq article h3:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

#faq article h3 + p {
  margin: 0 0 14px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.94rem;
}

/* ============ HowTo 步骤 ============ */
#howto article h3 {
  counter-increment: howto-step;
}

#howto article {
  counter-reset: howto-step;
}

#howto article h3::before {
  content: counter(howto-step);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 90, 60, 0.35);
  flex: 0 0 auto;
}

/* ============ 注意事项 ============ */
#notes article {
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
}

/* ============ 网站地图 ============ */
#sitemap nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  list-style: none;
}

#sitemap nav ul li {
  border-bottom: none;
  padding: 0;
}

#sitemap nav ul li::before {
  display: none;
}

#sitemap nav ul li a {
  display: block;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

#sitemap nav ul li a:hover {
  color: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 90, 60, 0.3);
}

/* ============ 友情链接 ============ */
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

#links ul li {
  border-bottom: none;
  padding: 0;
}

#links ul li::before {
  display: none;
}

#links ul li a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}

#links ul li a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

/* ============ 页脚 ============ */
#site-footer {
  margin-top: 80px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  position: relative;
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

#site-footer > section {
  max-width: var(--max-width);
  margin: 0 auto;
}

#site-footer section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

#site-footer section h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--gradient-brand);
}

#site-footer section p {
  margin: 0 0 28px;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-muted);
  text-align: justify;
}

#copyright,
#privacy,
#disclaimer {
  padding-bottom: 8px;
}

#footer-info {
  margin-top: 24px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

#footer-info p {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

#footer-info p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============ 滚动条 ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* ============ 选中文字 ============ */
::selection {
  background: var(--brand);
  color: #fff;
}

/* ============ 焦点可见性 ============ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  :root {
    --header-h: 116px;
  }

  .topbar {
    padding: 12px 18px 8px;
    gap: 10px;
  }

  .slogan {
    display: none;
  }

  .brand {
    font-size: 1.25rem;
  }

  #main-nav {
    padding: 0 18px;
  }

  main {
    padding: 0 18px 60px;
  }

  main > section {
    margin-top: 44px;
  }

  #hero {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 108px;
    --radius-lg: 20px;
    --radius-xl: 24px;
  }

  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .topbar {
    padding: 10px 16px 6px;
  }

  .domain {
    font-size: 0.72rem;
    padding: 2px 10px;
  }

  #main-nav {
    padding: 0 12px;
  }

  #main-nav ul {
    padding: 4px 0 10px;
    gap: 2px;
  }

  #main-nav a {
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  main {
    padding: 0 14px 48px;
  }

  main > section {
    margin-top: 36px;
  }

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

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

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

  article h3 {
    margin-top: 26px;
  }

  article p {
    text-align: left;
  }

  #hero {
    padding: 28px 20px;
  }

  #hero h1 {
    line-height: 1.45;
  }

  .hero-lead {
    text-align: left;
    margin-bottom: 24px;
  }

  .hero-figure {
    padding: 8px;
  }

  #testimonials article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  #sitemap nav ul li a {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  #site-footer {
    padding: 40px 16px 24px;
    margin-top: 56px;
  }

  article address {
    padding: 16px 18px;
    font-size: 0.88rem;
  }
}

@media (max-width: 380px) {
  #sitemap nav ul {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1.1rem;
  }
}

/* ============ 减少动画偏好 ============ */
@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;
  }

  main > section {
    animation: none;
  }
}

/* ============ 打印 ============ */
@media print {
  #site-header,
  #main-nav,
  #hero::before,
  #hero::after,
  #links,
  #sitemap {
    display: none !important;
  }

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

  main > section > article {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}