:root {
  --bg: #0f172a;
  --bg-soft: #131c31;
  --bg-elev: #1a2540;
  --bg-card: rgba(26, 37, 64, 0.72);
  --bg-glass: rgba(15, 23, 42, 0.62);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e7edf7;
  --text-soft: #b4c0d6;
  --text-mute: #8494b0;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #f472b6;
  --accent-grad: linear-gradient(120deg, #38bdf8 0%, #818cf8 48%, #f472b6 100%);
  --accent-grad-soft: linear-gradient(120deg, rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.16), rgba(244, 114, 182, 0.16));
  --shadow-sm: 0 2px 8px rgba(2, 6, 23, 0.35);
  --shadow-md: 0 10px 30px rgba(2, 6, 23, 0.45);
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.55);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 72px;
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg: #f4f7fc;
  --bg-soft: #eaeff8;
  --bg-elev: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-soft: #334155;
  --text-mute: #64748b;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 12% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(1000px 520px at 88% 0%, rgba(129, 140, 248, 0.16), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(244, 114, 182, 0.1), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent-2);
}

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

ul,
ol {
  padding-left: 1.25em;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin: 0 0 0.6em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin: 0 0 0.7em;
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin: 1.4em 0 0.5em;
  color: var(--text);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

strong {
  color: var(--text);
}

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad-soft);
  border: 1px solid var(--border);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

header > div {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

header > div > a[aria-label="77影院首页"] {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 4px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header > div > a[aria-label="77影院首页"]:hover {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
}

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

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

header nav ul li a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
  color: var(--text);
  background: var(--accent-grad-soft);
  transform: translateY(-1px);
}

header form[role="search"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 1 320px;
}

header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

header form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

header form[role="search"] input[type="search"]::placeholder {
  color: var(--text-mute);
}

header form[role="search"] input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
  outline: none;
}

header form[role="search"] button[type="submit"] {
  height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #05121f;
  background: var(--accent-grad);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

header form[role="search"] button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.35);
  filter: brightness(1.06);
}

header > div > button[aria-label="切换暗黑模式"] {
  height: 40px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

header > div > button[aria-label="切换暗黑模式"]:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--accent-grad-soft);
  transform: translateY(-1px);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 80px;
}

main > nav[aria-label="面包屑导航"] {
  margin-bottom: 18px;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-mute);
}

main > nav[aria-label="面包屑导航"] ol li {
  display: flex;
  align-items: center;
  gap: 6px;
}

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  color: var(--text-mute);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] ol li a {
  color: var(--text-mute);
}

main > nav[aria-label="面包屑导航"] ol li a:hover {
  color: var(--accent);
}

main > nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
  color: var(--text-soft);
  font-weight: 600;
}

main > section {
  position: relative;
  margin: 0 0 26px;
  padding: 30px clamp(18px, 3vw, 38px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

main > section:nth-of-type(2) { animation-delay: 0.04s; }
main > section:nth-of-type(3) { animation-delay: 0.08s; }
main > section:nth-of-type(4) { animation-delay: 0.12s; }
main > section:nth-of-type(5) { animation-delay: 0.16s; }
main > section:nth-of-type(6) { animation-delay: 0.2s; }
main > section:nth-of-type(7) { animation-delay: 0.24s; }
main > section:nth-of-type(8) { animation-delay: 0.28s; }
main > section:nth-of-type(9) { animation-delay: 0.32s; }
main > section:nth-of-type(10) { animation-delay: 0.36s; }
main > section:nth-of-type(11) { animation-delay: 0.4s; }
main > section:nth-of-type(12) { animation-delay: 0.44s; }
main > section:nth-of-type(13) { animation-delay: 0.48s; }
main > section:nth-of-type(14) { animation-delay: 0.52s; }
main > section:nth-of-type(15) { animation-delay: 0.56s; }
main > section:nth-of-type(16) { animation-delay: 0.6s; }
main > section:nth-of-type(17) { animation-delay: 0.64s; }

main > section#hero {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(700px 380px at 90% 10%, rgba(129, 140, 248, 0.2), transparent 60%),
    radial-gradient(600px 360px at 60% 110%, rgba(244, 114, 182, 0.14), transparent 60%),
    var(--bg-card);
  border-color: var(--border-strong);
  overflow: hidden;
}

main > section#hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  background: conic-gradient(from 180deg, rgba(56, 189, 248, 0.28), rgba(129, 140, 248, 0.24), rgba(244, 114, 182, 0.24), rgba(56, 189, 248, 0.28));
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  border-radius: 50%;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

main > section#hero > p:first-of-type {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 78ch;
}

main > section#hero > div {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-top: 22px;
}

main > section#hero figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

main > section#hero figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

main > section#hero figure svg {
  width: 100%;
  height: auto;
}

main > section#hero figure figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
  background: var(--bg-glass);
}

main > section#hero > div > p {
  margin: 0;
}

main > section ul,
main > section ol {
  color: var(--text-soft);
}

main > section ul li,
main > section ol li {
  margin-bottom: 0.45em;
}

main > section ul li::marker {
  color: var(--accent);
}

main > section ol li::marker {
  color: var(--accent-2);
  font-weight: 700;
}

main > section#brand-intro ul,
main > section#products ul,
main > section#howto ul {
  list-style: none;
  padding-left: 0;
}

main > section#brand-intro ul li,
main > section#products ul li,
main > section#howto ul li {
  position: relative;
  padding: 10px 16px 10px 40px;
  margin-bottom: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

main > section#brand-intro ul li::before,
main > section#products ul li::before,
main > section#howto ul li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

main > section#brand-intro ul li:hover,
main > section#products ul li:hover,
main > section#howto ul li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  background: var(--accent-grad-soft);
}

main > section#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

main > section#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 56px;
  margin-bottom: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

main > section#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #05121f;
  background: var(--accent-grad);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

main > section#howto ol li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
}

main > section#cases blockquote {
  margin: 14px 0;
  padding: 18px 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-image: var(--accent-grad) 1;
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

main > section#cases blockquote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

main > section#cases blockquote p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-soft);
  font-style: italic;
}

main > section#news article,
main > section#articles article {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

main > section#news article h3,
main > section#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.1rem;
}

main > section#news article h3 a,
main > section#articles article h3 a {
  color: var(--text);
}

main > section#articles article p:last-child {
  margin-bottom: 0;
}

main > section#articles article p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad-soft);
  border: 1px solid var(--border);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

main > section#articles article p:last-child a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

main > section#articles article p:last-child a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

main > section#articles article p:last-child a:hover::after {
  transform: translateX(3px);
}

main > section#faq details {
  margin: 0 0 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

main > section#faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  background: var(--accent-grad-soft);
}

main > section#faq details summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

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

main > section#faq details summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

main > section#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--accent-grad);
  color: #05121f;
  border-color: transparent;
}

main > section#faq details summary:hover {
  color: var(--accent);
}

main > section#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  color: var(--text-soft);
}

main > section#contact address {
  font-style: normal;
}

main > section#contact address ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

main > section#contact address ul li {
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

main > section#contact address ul li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

main > section#sitemap ul,
main > section#links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

main > section#sitemap ul li,
main > section#links ul li {
  margin: 0;
}

main > section#sitemap ul li a,
main > section#links ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

main > section#sitemap ul li a:hover,
main > section#links ul li a:hover {
  color: var(--text);
  background: var(--accent-grad-soft);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

footer {
  position: relative;
  margin-top: 20px;
  padding: 48px 24px 32px;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(700px 360px at 90% 20%, rgba(129, 140, 248, 0.12), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
}

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

footer h2 {
  font-size: 1.1rem;
  padding-left: 14px;
  margin-bottom: 0.7em;
}

footer h2::before {
  width: 4px;
}

footer h3 {
  font-size: 0.98rem;
  margin: 1em 0 0.4em;
  color: var(--text);
}

footer p {
  font-size: 0.9rem;
  color: var(--text-mute);
}

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

footer nav ul li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

footer nav ul li a:hover {
  color: var(--text);
  background: var(--accent-grad-soft);
  transform: translateY(-2px);
}

footer > section[aria-labelledby="footer-legal"] {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

footer > section[aria-labelledby="footer-legal"] > p:last-child {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-mute);
  text-align: center;
}

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

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.12);
  }
}

@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;
  }
}

@media (max-width: 1024px) {
  header > div {
    gap: 12px;
    padding: 10px 18px;
  }

  header nav ul li a {
    padding: 7px 10px;
    font-size: 0.85rem;
  }

  header form[role="search"] {
    flex: 1 1 240px;
  }

  main > section#hero > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: auto;
    --radius-lg: 20px;
  }

  header > div {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
  }

  header > div > a[aria-label="77影院首页"] {
    font-size: 1.2rem;
  }

  header nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  header nav ul li a {
    white-space: nowrap;
  }

  header form[role="search"] {
    order: 4;
    flex: 1 1 100%;
  }

  header > div > button[aria-label="切换暗黑模式"] {
    margin-left: auto;
    height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  main {
    padding: 18px 14px 60px;
  }

  main > section {
    padding: 22px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius);
  }

  main > section#hero > p:first-of-type {
    font-size: 0.96rem;
  }

  main > section#hero figure figcaption {
    font-size: 0.76rem;
  }

  main > section#contact address ul {
    grid-template-columns: 1fr;
  }

  main > section#howto ol li {
    padding: 12px 14px 12px 50px;
  }

  footer {
    padding: 36px 16px 24px;
  }
}

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

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
    padding-left: 14px;
  }

  h2::before {
    width: 4px;
  }

  main > section#news article,
  main > section#articles article {
    padding: 16px;
  }

  main > section#faq details summary {
    padding: 14px 46px 14px 16px;
    font-size: 0.92rem;
  }

  main > section#faq details p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

  header form[role="search"] button[type="submit"] {
    padding: 0 14px;
  }
}

@media (hover: none) {
  main > section:hover,
  main > section#news article:hover,
  main > section#articles article:hover,
  main > section#cases blockquote:hover,
  main > section#contact address ul li:hover,
  main > section#brand-intro ul li:hover,
  main > section#products ul li:hover,
  main > section#howto ul li:hover,
  main > section#howto ol li:hover {
    transform: none;
  }
}

@media print {
  header,
  footer,
  main > section#sitemap,
  main > section#links {
    display: none;
  }

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

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