:root {
  --orange: #FF7A45;
  --orange-light: #FFB347;
  --orange-soft: #FFF3E0;
  --pink: #FF6B9D;
  --pink-soft: #FFE4EC;
  --text: #2B2118;
  --text-soft: #6B5D52;
  --bg: #FFF9F4;
  --bg-soft: #FFFFFF;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #FFFFFF;
  --border: rgba(255, 122, 69, 0.14);
  --shadow: 0 10px 40px rgba(255, 122, 69, 0.12);
  --shadow-hover: 0 20px 60px rgba(255, 122, 69, 0.22);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --blur: saturate(180%) blur(18px);
  --max-width: 1180px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #F5EDE6;
    --text-soft: #B8A99C;
    --bg: #17110D;
    --bg-soft: #1F1813;
    --card: rgba(40, 30, 24, 0.66);
    --card-solid: #241B15;
    --border: rgba(255, 179, 71, 0.18);
    --orange-soft: rgba(255, 122, 69, 0.14);
    --pink-soft: rgba(255, 107, 157, 0.14);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 20px 60px rgba(255, 122, 69, 0.28);
  }
}

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

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 69, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 107, 157, 0.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 179, 71, 0.12), transparent 55%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  background: linear-gradient(120deg, var(--orange) 0%, var(--pink) 55%, var(--orange-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orange);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  position: relative;
  padding-left: 18px;
}

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

h3 {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: var(--text);
}

p {
  color: var(--text-soft);
  margin-bottom: 0.85em;
}

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

strong {
  color: var(--orange);
  font-weight: 800;
}

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px clamp(14px, 3vw, 32px);
  background: var(--card);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 30px rgba(255, 122, 69, 0.08);
}

.brand-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-bar > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  padding: 6px 4px;
}

.brand-bar > a::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  box-shadow: 0 0 0 4px var(--orange-soft), 0 6px 16px rgba(255, 122, 69, 0.4);
  flex: none;
  animation: pulseDot 2.6s ease-in-out infinite;
}

.brand-bar > a strong {
  font-size: 1.28rem;
  background: linear-gradient(120deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px var(--orange-soft), 0 6px 16px rgba(255, 122, 69, 0.4); }
  50% { box-shadow: 0 0 0 9px rgba(255, 122, 69, 0.08), 0 6px 20px rgba(255, 122, 69, 0.55); }
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

header nav a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  transition: color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

header nav a:hover,
header nav a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 69, 0.35);
  outline: none;
}

/* ============ Main ============ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(14px, 3vw, 32px) 40px;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.5vw, 40px);
}

section {
  background: var(--card);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.6vw, 44px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.35), transparent 40%);
  opacity: 0.6;
}

@media (prefers-color-scheme: dark) {
  section::after {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.05), transparent 45%);
  }
}

section:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 122, 69, 0.32);
}

section > h2 {
  margin-bottom: 18px;
}

section > h3 {
  margin: 26px 0 10px;
}

section > h3:first-of-type {
  margin-top: 4px;
}

section > p,
section > h3 + p {
  margin-bottom: 0.9em;
}

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

section:nth-of-type(1) { animation-delay: 0.02s; }
section:nth-of-type(2) { animation-delay: 0.06s; }
section:nth-of-type(3) { animation-delay: 0.1s; }
section:nth-of-type(4) { animation-delay: 0.14s; }
section:nth-of-type(5) { animation-delay: 0.18s; }
section:nth-of-type(6) { animation-delay: 0.22s; }
section:nth-of-type(7) { animation-delay: 0.26s; }
section:nth-of-type(8) { animation-delay: 0.3s; }
section:nth-of-type(9) { animation-delay: 0.34s; }
section:nth-of-type(10) { animation-delay: 0.38s; }
section:nth-of-type(11) { animation-delay: 0.42s; }
section:nth-of-type(12) { animation-delay: 0.46s; }
section:nth-of-type(13) { animation-delay: 0.5s; }
section:nth-of-type(14) { animation-delay: 0.54s; }
section:nth-of-type(15) { animation-delay: 0.58s; }

/* ============ Hero ============ */
#hero {
  background:
    linear-gradient(140deg, rgba(255, 122, 69, 0.16) 0%, rgba(255, 107, 157, 0.14) 45%, rgba(255, 179, 71, 0.16) 100%),
    var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4.5vw, 56px);
}

#hero h1 {
  margin-bottom: 18px;
}

#hero > p {
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  max-width: 860px;
}

#hero figure {
  margin: 28px 0 26px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(255, 122, 69, 0.28);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-6px) scale(1.008);
  box-shadow: 0 28px 70px rgba(255, 122, 69, 0.4);
}

#hero figure svg {
  width: 100%;
  height: auto;
  display: block;
}

#hero figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(0deg, rgba(43, 33, 24, 0.55), transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

#hero nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#hero nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid rgba(255, 122, 69, 0.24);
  transition: all var(--transition);
}

#hero nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(255, 122, 69, 0.4);
}

/* ============ Articles / News cards ============ */
#news article,
#articles article {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.4vw, 24px);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--pink));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 122, 69, 0.18);
  border-color: rgba(255, 122, 69, 0.32);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleY(1);
}

#news article h3,
#articles article h3 {
  margin-bottom: 6px;
  transition: color var(--transition);
}

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

#news time,
#articles time {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink);
  transition: gap var(--transition), color var(--transition);
}

#articles article a::after {
  content: "→";
  transition: transform var(--transition);
}

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

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

/* ============ FAQ ============ */
#faq details {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 0 20px;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
  overflow: hidden;
}

#faq details[open] {
  border-color: rgba(255, 122, 69, 0.36);
  box-shadow: 0 12px 32px rgba(255, 122, 69, 0.14);
  background: linear-gradient(180deg, var(--orange-soft), var(--card-solid) 60%);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

#faq summary:hover {
  color: var(--orange);
}

#faq details p {
  padding: 0 0 18px;
  font-size: 0.95rem;
  animation: fadeIn 0.4s ease both;
}

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

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 8px;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 62px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 6px 16px rgba(255, 122, 69, 0.35);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: rgba(255, 122, 69, 0.34);
  box-shadow: 0 12px 28px rgba(255, 122, 69, 0.16);
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 18px 0 6px;
}

#contact address p {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.94rem;
  margin: 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#contact address p:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 122, 69, 0.16);
  border-color: rgba(255, 122, 69, 0.32);
}

/* ============ Sitemap / Links lists ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--card-solid);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 122, 69, 0.32);
}

/* ============ Legal / Author ============ */
#legal h3,
#author h2 {
  margin-top: 18px;
}

#author p {
  font-size: 0.94rem;
  color: var(--text-soft);
}

/* ============ Footer ============ */
footer {
  margin-top: 20px;
  padding: clamp(26px, 4vw, 44px) clamp(16px, 3vw, 32px);
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 122, 69, 0.12), rgba(255, 107, 157, 0.1));
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

footer p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

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

footer a {
  color: var(--orange);
  font-weight: 600;
  padding: 0 4px;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange), var(--pink));
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--pink), var(--orange));
}

/* ============ Selection ============ */
::selection {
  background: rgba(255, 122, 69, 0.28);
  color: var(--text);
}

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

/* ============ Responsive ============ */
@media (max-width: 992px) {
  header {
    position: relative;
  }

  .brand-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header nav ul {
    gap: 4px;
  }

  header nav a {
    font-size: 0.85rem;
    padding: 6px 11px;
  }
}

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

  html {
    scroll-padding-top: 20px;
  }

  header {
    padding: 10px 14px;
  }

  .brand-bar > a {
    font-size: 1.12rem;
  }

  .brand-bar > a strong {
    font-size: 1.12rem;
  }

  header nav ul {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav a {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 6px 12px;
    background: var(--orange-soft);
    color: var(--orange);
  }

  main {
    padding: 18px 14px 28px;
    gap: 18px;
  }

  section {
    border-radius: var(--radius-md);
    padding: 20px 16px;
  }

  h2 {
    padding-left: 14px;
    margin-bottom: 14px;
  }

  h2::before {
    width: 4px;
  }

  #hero {
    padding: 22px 18px;
  }

  #hero nav ul {
    gap: 8px;
  }

  #hero nav a {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  #hero figcaption {
    position: static;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    text-align: center;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

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

  #howto ol li {
    padding: 12px 14px 12px 52px;
    font-size: 0.9rem;
  }

  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  #faq details {
    padding: 0 14px;
  }

  #faq summary {
    font-size: 0.94rem;
    padding: 14px 30px 14px 0;
  }

  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.84rem;
  }

  footer {
    padding: 24px 14px;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 14px;
  }

  section {
    padding: 16px 12px;
  }

  #hero h1 {
    font-size: 1.5rem;
  }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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