:root {
  --brand: #ff6b35;
  --brand-2: #ff3d71;
  --brand-3: #7c4dff;
  --accent: #00d4ff;
  --bg: #fff7f2;
  --bg-soft: #ffffff;
  --bg-alt: #fff0e8;
  --text: #241a16;
  --text-soft: #6b5b54;
  --text-mute: #9a8a83;
  --border: rgba(255, 107, 53, 0.16);
  --card: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 4px 16px rgba(255, 107, 53, 0.08);
  --shadow: 0 12px 40px rgba(255, 107, 53, 0.14);
  --shadow-lg: 0 24px 64px rgba(255, 61, 113, 0.18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --grad-brand: linear-gradient(135deg, #ff6b35 0%, #ff3d71 48%, #7c4dff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(124, 77, 255, 0.1));
  --grad-banner: linear-gradient(125deg, #ff6b35 0%, #ff3d71 40%, #b44dff 75%, #7c4dff 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
  --maxw: 1180px;
}

*,
*::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;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(255, 107, 53, 0.16), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(124, 77, 255, 0.14), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 61, 113, 0.1), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-3);
}

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

::selection {
  background: rgba(255, 61, 113, 0.24);
  color: var(--text);
}

/* ============ Header / Banner ============ */

header[role="banner"] {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 56px) clamp(40px, 5vw, 64px);
  margin: 0 auto clamp(28px, 4vw, 48px);
  max-width: var(--maxw);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  color: #fff;
  background: var(--grad-banner);
  background-size: 200% 200%;
  animation: bannerShift 18s ease-in-out infinite;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

header[role="banner"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.32), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(0, 212, 255, 0.28), transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

header[role="banner"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

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

header[role="banner"] h1 {
  position: relative;
  margin: 0 auto 18px;
  max-width: 1000px;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 4px 24px rgba(60, 0, 40, 0.28);
  animation: riseIn 0.8s var(--ease) both;
}

header[role="banner"] > p {
  position: relative;
  margin: 0 auto clamp(26px, 4vw, 40px);
  max-width: 820px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.9;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  animation: riseIn 0.8s 0.1s var(--ease) both;
}

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

/* ============ Navigation ============ */

header[role="banner"] nav {
  position: relative;
  animation: riseIn 0.8s 0.2s var(--ease) both;
}

header[role="banner"] nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

header[role="banner"] nav ul li {
  margin: 0;
}

header[role="banner"] nav ul li a {
  display: inline-block;
  padding: 7px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease),
    border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

header[role="banner"] nav ul li a:hover,
header[role="banner"] nav ul li a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(60, 0, 40, 0.22);
}

/* ============ Main layout ============ */

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) clamp(48px, 6vw, 80px);
}

section {
  position: relative;
  margin: 0 0 clamp(24px, 3.4vw, 40px);
  padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3.2vw, 44px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

section:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255, 107, 53, 0.3);
}

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

@supports not (animation-timeline: view()) {
  section {
    animation: none;
    opacity: 1;
  }
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 3.2vw, 44px);
  width: 64px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--grad-brand);
  opacity: 0.9;
}

/* ============ Headings ============ */

h2 {
  position: relative;
  margin: 0 0 clamp(16px, 2vw, 24px);
  padding-bottom: 14px;
  font-size: clamp(1.28rem, 2.5vw, 1.72rem);
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--text);
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
  transition: width 0.5s var(--ease);
}

section:hover h2::after {
  width: 96px;
}

h3 {
  position: relative;
  margin: clamp(20px, 2.6vw, 30px) 0 10px;
  padding-left: 16px;
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
}

h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.14);
}

p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

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

section > p,
section article p,
section h3 + p {
  font-size: clamp(0.94rem, 1.3vw, 1rem);
}

/* ============ Lists ============ */

section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 14px;
}

section ul li {
  position: relative;
  margin: 0;
}

section ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.28s var(--ease), background 0.28s var(--ease),
    border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), color 0.28s var(--ease);
}

section ul li a::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
  transition: transform 0.28s var(--ease);
}

section ul li a:hover,
section ul li a:focus-visible {
  color: var(--brand-2);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(124, 77, 255, 0.08));
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.16);
}

section ul li a:hover::before,
section ul li a:focus-visible::before {
  transform: scale(1.5);
}

/* ============ Article cards ============ */

section article {
  position: relative;
  margin: 0 0 16px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), background 0.35s var(--ease);
}

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

section article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 113, 0.34);
  box-shadow: 0 16px 40px rgba(255, 61, 113, 0.14);
  background: #fff;
}

section article h3 {
  margin-top: 0;
}

section article h3 + p {
  color: var(--text-mute);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

section article p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  background-size: 160% 160%;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(255, 61, 113, 0.28);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    background-position 0.5s var(--ease);
}

section article p a::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}

section article p a:hover,
section article p a:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 10px 26px rgba(255, 61, 113, 0.38);
}

section article p a:hover::after {
  transform: translateX(4px);
}

/* ============ Blockquote / reviews ============ */

blockquote {
  position: relative;
  margin: 0 0 14px;
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.6vw, 26px) clamp(16px, 2.2vw, 22px) clamp(46px, 5vw, 58px);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(124, 77, 255, 0.07));
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
}

blockquote::before {
  content: "“";
  position: absolute;
  left: clamp(14px, 1.8vw, 20px);
  top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--brand);
  opacity: 0.42;
}

blockquote:hover {
  transform: translateX(4px);
  border-left-color: var(--brand-3);
  box-shadow: 0 12px 32px rgba(124, 77, 255, 0.14);
}

blockquote p {
  margin: 0;
  font-size: clamp(0.94rem, 1.3vw, 1rem);
  color: var(--text);
  font-style: italic;
}

/* ============ Address / contact ============ */

address {
  font-style: normal;
  display: grid;
  gap: 10px;
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.07), rgba(0, 212, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

address p {
  margin: 0;
  padding-left: 26px;
  position: relative;
  font-size: 0.94rem;
  color: var(--text-soft);
  word-break: break-word;
}

address p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

/* ============ Footer ============ */

footer[role="contentinfo"] {
  position: relative;
  margin: clamp(24px, 4vw, 48px) auto 0;
  max-width: var(--maxw);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 44px);
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(150deg, #2a1a22 0%, #3a1f2e 55%, #241a2e 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -12px 48px rgba(60, 20, 40, 0.24);
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 107, 53, 0.28), transparent 45%),
    radial-gradient(circle at 88% 100%, rgba(124, 77, 255, 0.26), transparent 50%);
  pointer-events: none;
}

footer[role="contentinfo"] p {
  position: relative;
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  word-break: break-word;
}

footer[role="contentinfo"] p:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

footer[role="contentinfo"] p:last-child {
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}

footer[role="contentinfo"] a {
  color: #ffb08f;
  text-decoration: underline;
  text-decoration-color: rgba(255, 176, 143, 0.4);
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

footer[role="contentinfo"] a:hover,
footer[role="contentinfo"] a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

/* ============ Scrollbar ============ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 107, 53, 0.06);
}

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff3d71, #7c4dff);
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  :root {
    --radius-lg: 22px;
    --radius: 16px;
  }

  header[role="banner"] {
    border-radius: 0 0 22px 22px;
  }

  header[role="banner"] nav ul {
    gap: 6px 8px;
    padding: 12px;
  }

  header[role="banner"] nav ul li a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  section ul {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

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

  header[role="banner"] {
    padding: 40px 18px 32px;
    margin-bottom: 22px;
  }

  header[role="banner"] nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 16px;
  }

  header[role="banner"] nav ul::-webkit-scrollbar {
    display: none;
  }

  header[role="banner"] nav ul li {
    flex: 0 0 auto;
  }

  main {
    padding: 0 14px 40px;
  }

  section {
    padding: 22px 18px;
    margin-bottom: 18px;
  }

  section::before {
    left: 18px;
  }

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

  blockquote {
    padding-left: 42px;
  }

  address {
    padding: 16px;
  }

  address p {
    padding-left: 22px;
    font-size: 0.88rem;
  }

  footer[role="contentinfo"] {
    padding: 26px 18px;
    border-radius: 20px 20px 0 0;
  }
}

/* ============ Dark mode ============ */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14101a;
    --bg-soft: #1e1826;
    --bg-alt: #1a1420;
    --text: #f4eef8;
    --text-soft: #c4b8cf;
    --text-mute: #9a8fa8;
    --border: rgba(255, 138, 96, 0.18);
    --card: rgba(32, 24, 40, 0.72);
    --glass: rgba(40, 30, 50, 0.6);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.34);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.46);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --grad-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.16), rgba(124, 77, 255, 0.14));
  }

  body {
    background-image:
      radial-gradient(circle at 8% 4%, rgba(255, 107, 53, 0.16), transparent 42%),
      radial-gradient(circle at 92% 12%, rgba(124, 77, 255, 0.18), transparent 40%),
      radial-gradient(circle at 50% 100%, rgba(255, 61, 113, 0.12), transparent 55%);
  }

  a {
    color: #ff9b7a;
  }

  a:hover,
  a:focus-visible {
    color: #b39dff;
  }

  section {
    border-color: rgba(255, 138, 96, 0.16);
  }

  section:hover {
    border-color: rgba(255, 138, 96, 0.34);
  }

  section article {
    background: rgba(38, 29, 48, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  section article:hover {
    background: rgba(48, 36, 60, 0.96);
    border-color: rgba(255, 138, 96, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }

  section ul li a {
    background: rgba(38, 29, 48, 0.9);
  }

  section ul li a:hover,
  section ul li a:focus-visible {
    color: #ffb08f;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(124, 77, 255, 0.16));
    border-color: rgba(255, 138, 96, 0.42);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.44);
  }

  blockquote {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(124, 77, 255, 0.12));
    border-color: rgba(255, 138, 96, 0.2);
  }

  blockquote p {
    color: var(--text);
  }

  address {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 212, 255, 0.08));
  }

  footer[role="contentinfo"] {
    background: linear-gradient(150deg, #1a1219 0%, #241725 55%, #171322 100%);
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.5);
  }

  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
  }

  ::-webkit-scrollbar-thumb {
    border-color: var(--bg);
  }
}

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

/* ============ Print ============ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  header[role="banner"],
  footer[role="contentinfo"] {
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  header[role="banner"] h1,
  header[role="banner"] > p,
  header[role="banner"] nav ul li a,
  footer[role="contentinfo"] p {
    color: #000;
    text-shadow: none;
  }

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

  section article p a {
    background: none;
    color: #000;
    box-shadow: none;
    padding: 0;
  }
}