:root {
  --brand: #ff6b35;
  --brand-dark: #e05520;
  --brand-light: #ff9a5a;
  --brand-glow: rgba(255, 107, 53, 0.35);
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.86);
  --text: #1f2329;
  --text-sub: #5c6370;
  --border: #e5e8ec;
  --border-glass: rgba(255, 255, 255, 0.6);
  --card: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 14px 38px rgba(0, 0, 0, 0.12);
  --shadow-brand: 0 8px 26px rgba(255, 107, 53, 0.32);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --brand: #ff7d4d;
  --brand-dark: #ff6b35;
  --brand-light: #ffa470;
  --brand-glow: rgba(255, 125, 77, 0.32);
  --bg: #14161a;
  --bg-alt: #1b1e24;
  --bg-glass: rgba(27, 30, 36, 0.66);
  --bg-glass-strong: rgba(27, 30, 36, 0.84);
  --text: #e8eaed;
  --text-sub: #a0a6b0;
  --border: #2b2f36;
  --border-glass: rgba(255, 255, 255, 0.08);
  --card: #1b1e24;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-brand: 0 8px 26px rgba(255, 125, 77, 0.28);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

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

::selection {
  background: var(--brand-glow);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  background: var(--bg-glass-strong);
}

html[data-theme="dark"] .header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition: transform 0.25s var(--ease);
}

.logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

.logo:hover {
  text-decoration: none;
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-brand);
}

.logo span {
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-sub);
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 10px;
  position: relative;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav a:hover {
  color: var(--brand);
  background: var(--bg-alt);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 180px;
  padding: 8px 34px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s var(--ease), width 0.3s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.search-box input::placeholder {
  color: var(--text-sub);
  opacity: 0.8;
}

.search-box input:focus {
  border-color: var(--brand);
  width: 220px;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.search-box button {
  position: absolute;
  right: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-sub);
  padding: 5px;
  display: flex;
  border-radius: 50%;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.search-box button:hover {
  color: var(--brand);
  background: var(--bg-alt);
}

.icon-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.icon-btn:hover {
  background: var(--border);
  color: var(--brand);
  transform: translateY(-2px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  animation: slideDown 0.28s var(--ease);
}

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

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--brand);
  padding-left: 6px;
  text-decoration: none;
}

/* ============ Banner ============ */
.banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8a4d 45%, #ff9a5a 100%);
  color: #fff;
  isolation: isolate;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.16) 0%, transparent 46%);
  pointer-events: none;
  z-index: -1;
}

.banner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

.banner-slide {
  display: none;
  padding: 74px 0;
  min-height: 380px;
  position: relative;
}

.banner-slide.active {
  display: block;
  animation: fadeIn 0.6s var(--ease);
}

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

.banner-content {
  max-width: 720px;
}

.banner h1,
.banner h2 {
  font-size: 38px;
  line-height: 1.32;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

.banner p {
  font-size: 17px;
  opacity: 0.96;
  margin-bottom: 26px;
  max-width: 640px;
  color: #fff;
  line-height: 1.85;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 107, 53, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.banner-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.banner-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s var(--ease), width 0.28s var(--ease), box-shadow 0.25s var(--ease);
}

.banner-dots button:hover {
  background: rgba(255, 255, 255, 0.85);
}

.banner-dots button.active {
  background: #fff;
  width: 26px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--text-sub);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-sub);
  transition: color 0.2s var(--ease);
}

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

.breadcrumb span {
  color: var(--text-sub);
}

/* ============ Sections ============ */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 14px;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1.35;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.section-sub {
  text-align: center;
  color: var(--text-sub);
  margin-bottom: 44px;
  font-size: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

h3 {
  font-size: 21px;
  margin: 30px 0 12px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
}

h4 {
  font-size: 17px;
  margin: 20px 0 10px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

p {
  margin-bottom: 14px;
  color: var(--text-sub);
}

/* ============ Anchor Nav ============ */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
  padding: 16px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.anchor-nav a {
  font-size: 14px;
  padding: 7px 16px;
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--text-sub);
  transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.anchor-nav a:hover {
  color: var(--brand);
  background: var(--bg);
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============ Grid ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* ============ Cards ============ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-glow);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 6px 18px var(--brand-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover .card-icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 10px 26px var(--brand-glow);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.card h4 {
  margin-top: 0;
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* ============ Article List ============ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  position: relative;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-glow);
}

.article-meta {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta time {
  color: var(--brand);
  font-weight: 600;
}

.article-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
  transition: color 0.22s var(--ease);
}

.article-card:hover h4 {
  color: var(--brand);
}

.article-card p {
  font-size: 14px;
  margin-bottom: 12px;
}

.read-more {
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s var(--ease), color 0.22s var(--ease);
}

.read-more:hover {
  text-decoration: none;
  gap: 8px;
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item:hover {
  border-color: var(--brand-glow);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 6px 22px var(--brand-glow);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  line-height: 1.6;
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
  background: var(--bg-alt);
}

.faq-q svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
  fill: var(--brand);
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.35s var(--ease);
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 520px;
  padding-bottom: 18px;
}

.faq-a p {
  font-size: 15px;
  margin: 0;
  line-height: 1.85;
}

/* ============ HowTo ============ */
.howto-step {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.howto-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-glow);
}

.howto-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 6px 16px var(--brand-glow);
  transition: transform 0.3s var(--ease);
}

.howto-step:hover .howto-num {
  transform: scale(1.1) rotate(-6deg);
}

.howto-body h4 {
  margin-top: 0;
}

.howto-body p {
  margin-bottom: 0;
}

/* ============ Case & Testimonial ============ */
.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-glow);
}

.case-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--brand);
  margin-bottom: 12px;
  font-weight: 600;
  transition: background 0.22s var(--ease);
}

.case-card:hover .case-tag {
  background: rgba(255, 107, 53, 0.2);
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 20px;
  font-size: 64px;
  line-height: 1;
  color: var(--brand);
  opacity: 0.14;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-glow);
}

.testimonial-text {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: transform 0.3s var(--ease);
}

.testimonial:hover .avatar,
.author-box:hover .avatar {
  transform: scale(1.08);
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-sub);
}

/* ============ News ============ */
.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  align-items: flex-start;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
  border-color: var(--brand-glow);
}

.news-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 64px;
  transition: background 0.25s var(--ease);
}

.news-item:hover .news-date {
  background: rgba(255, 107, 53, 0.12);
}

.news-date strong {
  display: block;
  font-size: 20px;
  color: var(--brand);
  line-height: 1.3;
}

.news-date span {
  font-size: 12px;
  color: var(--text-sub);
}

.news-body h4 {
  margin: 0 0 6px;
  font-size: 16px;
  transition: color 0.22s var(--ease);
}

.news-item:hover .news-body h4 {
  color: var(--brand);
}

.news-body p {
  font-size: 14px;
  margin: 0;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: var(--brand);
  margin-top: 4px;
  transition: transform 0.28s var(--ease);
}

.contact-item:hover svg {
  transform: scale(1.15) rotate(-6deg);
}

.contact-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text);
}

.contact-item span {
  font-size: 14px;
  color: var(--text-sub);
  word-break: break-word;
}

/* ============ Author Box ============ */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 24px 0;
  transition: box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.author-box:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-glow);
}

.author-box .avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.author-box strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.author-box span {
  font-size: 13px;
  color: var(--text-sub);
}

/* ============ Update Info ============ */
.update-info {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
}

/* ============ Table ============ */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

th,
td {
  border: 1px solid var(--border);
  padding: 11px 15px;
  text-align: left;
  transition: background 0.2s var(--ease);
}

th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

tbody tr {
  transition: background 0.2s var(--ease);
}

tbody tr:hover {
  background: var(--bg-alt);
}

td {
  color: var(--text-sub);
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0 24px;
  margin-top: 20px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text);
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: var(--text-sub);
  font-size: 14px;
  transition: color 0.22s var(--ease), padding-left 0.22s var(--ease);
  display: inline-block;
}

.footer a:hover {
  color: var(--brand);
  padding-left: 4px;
  text-decoration: none;
}

.footer p {
  font-size: 14px;
  color: var(--text-sub);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}

.footer-bottom p {
  margin-bottom: 6px;
}

/* ============ Back Top ============ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
  z-index: 999;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.back-top.show {
  display: flex;
  animation: popIn 0.3s var(--ease);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.back-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px var(--brand-glow);
}

.back-top:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============ Reveal Animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.reveal:nth-child(5) {
  transition-delay: 0.24s;
}

.reveal:nth-child(6) {
  transition-delay: 0.3s;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  border: 2px solid var(--bg-alt);
  transition: background 0.2s var(--ease);
}

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

/* ============ Article Anchors ============ */
article[id^="article-"] {
  margin-top: 28px;
  padding-top: 4px;
  scroll-margin-top: 84px;
}

article[id^="brand-"] {
  scroll-margin-top: 84px;
}

section[id] {
  scroll-margin-top: 72px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .banner h1,
  .banner h2 {
    font-size: 28px;
  }

  .banner-slide {
    padding: 60px 0;
    min-height: 340px;
  }

  .banner p {
    font-size: 16px;
  }

  .section {
    padding: 54px 0;
  }

  .section-title {
    font-size: 26px;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .grid-3,
  .grid-2,
  .article-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 44px 0;
  }

  .section-title {
    font-size: 23px;
  }

  .section-sub {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .banner-slide {
    padding: 46px 0 60px;
    min-height: 300px;
  }

  .banner h1,
  .banner h2 {
    font-size: 24px;
    line-height: 1.38;
  }

  .banner p {
    font-size: 15px;
    line-height: 1.75;
  }

  .btn {
    padding: 11px 24px;
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .stat-num {
    font-size: 30px;
  }

  .news-item {
    flex-direction: column;
    gap: 12px;
  }

  .news-date {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    min-width: 0;
    align-self: flex-start;
  }

  .news-date strong {
    font-size: 16px;
  }

  .howto-step {
    padding: 14px;
    gap: 14px;
  }

  .howto-num {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .card {
    padding: 22px;
  }

  .article-card {
    padding: 20px;
  }

  .faq-q {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-a {
    padding: 0 18px;
  }

  .faq-item.open .faq-a {
    padding-bottom: 16px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .logo {
    font-size: 18px;
  }

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

  .header-inner {
    height: 58px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  h3 {
    font-size: 19px;
  }
}

@media (max-width: 360px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .banner h1,
  .banner h2 {
    font-size: 21px;
  }
}

/* ============ Reduced Motion ============ */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ Print ============ */
@media print {
  .header,
  .banner,
  .back-top,
  .footer,
  .anchor-nav,
  .banner-dots {
    display: none !important;
  }

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

  .card,
  .article-card,
  .faq-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}