:root {
  --ink: #17291e;
  --muted: #45574c;
  --green: #2e633c;
  --green-hover: #234e30;
  --line: #dce7df;
  --paper: #f7faf4;
  --blue: #2563a4;
  --gutter: clamp(17px, 4vw, 46px);
  --section-space: clamp(52px, 7vw, 95px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  line-break: strict;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ol { margin: 0; }
body { background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #fffffff5;
  backdrop-filter: blur(14px);
}

.bar { display: flex; align-items: center; gap: clamp(23px, 4vw, 60px); min-height: 68px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 9px; font-weight: 760; white-space: nowrap; }
.brand img { border-radius: 10px; }
.main-nav { display: flex; gap: clamp(18px, 3.2vw, 39px); margin-left: auto; color: var(--muted); font-size: .94rem; white-space: nowrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-weight: 740;
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.button-small { flex: none; padding: 6px 16px; min-height: 40px; border: 1px solid #a5bea9; color: #285135; font-size: .92rem; }
.button-primary { min-width: 230px; min-height: 54px; padding: 10px 26px; background: var(--green); color: #fff; }
.download-icon { width: 16px; height: 17px; position: relative; border-bottom: 2px solid currentColor; }
.download-icon::before, .download-icon::after { content: ""; position: absolute; left: 50%; }
.download-icon::before { width: 2px; height: 10px; background: currentColor; transform: translateX(-50%); }
.download-icon::after { top: 5px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateX(-50%) rotate(45deg); }

.hero {
  background: radial-gradient(ellipse at 92% 60%, #e9f1df, transparent 57%), linear-gradient(115deg, #fff 18%, #f7faf4 66%, #eef4e7);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: 530px;
  padding-block: clamp(63px, 7.2vw, 106px);
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(33px, 5.3vw, 79px);
}

.hero-copy h1 { font-size: clamp(1.2rem, 2.4vw, 1.75rem); color: #386344; line-height: 1.3; }
.hero-title { margin-top: 14px; font-size: clamp(2.7rem, 4.1vw, 4.2rem); line-height: 1.16; font-weight: 820; }
.hero-description { max-width: 30em; margin: 22px 0 27px; font-size: 1.02rem; color: var(--muted); }
.hero .button-primary { box-shadow: 0 10px 21px #22583425; }
.connection-figure {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 29px;
  min-height: 340px;
  border-radius: 23px;
  border: 1px solid #314d3d;
  background: radial-gradient(ellipse at 73% 21%, #355447 0%, #213d35 52%, #182d25 100%);
  box-shadow: 0 24px 43px #203d3127;
  color: #f5f9f5;
}

.connection-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle, #d9eddf2f 1px, transparent 1.3px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at center, #000 27%, transparent 83%);
}

.connection-visual { width: 100%; max-width: 445px; display: grid; grid-template-columns: 1fr minmax(94px, 1.03fr) 1fr; align-items: center; }
.device {
  min-width: 0;
  min-height: 157px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 10px 4px;
  border: 1px solid #90b29c6b;
  border-radius: 15px;
  background: #1d352cf0;
  text-align: center;
}

.device strong { margin-top: 9px; font-size: .96rem; }
.device > span { color: #c5dad4; font-size: .78rem; }
.device-icon { display: grid; place-items: center; position: relative; }
.phone-icon { width: 40px; height: 56px; border: 2px solid #c6ddc7; border-radius: 8px; }
.phone-icon img { width: 28px; border-radius: 6px; }
.television-icon { width: 58px; height: 40px; margin-block: 7px 9px; border: 2px solid #c6ddc7; border-radius: 5px; }
.television-icon::after { content: ""; position: absolute; width: 30px; height: 2px; left: 12px; bottom: -8px; border-radius: 20px; background: #c6ddc7; }
.television-icon i { width: 9px; height: 9px; border-radius: 50%; background: #b1d78c; box-shadow: 0 0 15px #b1d78c75; }
.connection-bridge { position: relative; padding: 2px 3px 19px; color: #d6eadd; text-align: center; white-space: nowrap; font-size: .81rem; font-weight: 650; }
.connection-bridge::before { content: ""; position: absolute; right: 0; bottom: 7px; left: 0; border-top: 1px dashed #92c1aa; }
.connection-bridge::after { content: ""; position: absolute; right: 3px; bottom: 4px; width: 7px; height: 7px; border: solid #b4dbbd; border-width: 1px 1px 0 0; transform: rotate(45deg); }

.section { padding-block: var(--section-space); scroll-margin-top: 86px; }
.section h2 { font-size: clamp(1.92rem, 3.5vw, 2.8rem); line-height: 1.24; font-weight: 780; }
.section-heading { margin-bottom: clamp(26px, 3.6vw, 42px); }
.section-heading p { margin-top: 13px; color: var(--muted); font-size: 1.02rem; }
.centered { text-align: center; }

.screenshots { background: #f1f5f3; }
.screenshots h2 { margin-bottom: 30px; }
.screenshot-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px, 2.35vw, 28px); }
.screenshot-strip a {
  display: block;
  min-width: 0;
  border: 1px solid #cbd9d1;
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 8px 22px #203b2b0c;
  transition: border-color .2s, transform .2s;
}
.screenshot-strip img { width: 100%; border-radius: inherit; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.feature-card { padding: clamp(23px, 3vw, 34px); border: 1px solid var(--line); border-radius: 14px; background: #fefffd; }
.feature-card h3, .method h3, .install-path h3 { font-size: 1.17rem; line-height: 1.4; }
.feature-card p, .install-path p { margin-top: 9px; color: var(--muted); }
.feature-icon { display: grid; place-items: center; position: relative; width: 43px; height: 43px; margin-bottom: 14px; border-radius: 12px; color: #28585b; background: #e4f2ec; }
.feature-icon::before, .feature-icon::after { content: ""; grid-area: 1 / 1; border: 2px solid currentColor; }
.app-icon::before { width: 21px; height: 22px; border-radius: 4px; }
.app-icon::after { width: 9px; height: 2px; border: 0; background: currentColor; box-shadow: 0 5px currentColor; transform: translateY(-2px); }
.chip-icon { color: #356750; background: #e6f1e5; }
.chip-icon::before { width: 18px; height: 18px; border-radius: 4px; }
.chip-icon::after { width: 6px; height: 6px; border-width: 1px; border-radius: 2px; }
.folder-icon { color: #776123; background: #f7efd6; }
.folder-icon::before { width: 23px; height: 15px; margin-top: 4px; border-radius: 3px; }
.folder-icon::after { width: 11px; height: 5px; margin: 0 9px 15px 0; border-bottom: 0; border-radius: 3px 3px 0 0; }
.screen-icon { color: #2a62a0; background: #e7f0fc; }
.screen-icon::before { width: 23px; height: 16px; margin-bottom: 4px; border-radius: 3px; }
.screen-icon::after { width: 11px; height: 2px; margin-top: 17px; border: 0; background: currentColor; }

.connect { border-block: 1px solid var(--line); background: var(--paper); }
.connection-methods { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.method { padding: clamp(21px, 3vw, 34px); border: 1px solid #cfded4; border-radius: 16px; background: #fff; }
.method h3 { color: #2d5f3e; }
.method-wired h3 { color: #285b8d; }
.method ol { margin-top: 17px; padding-left: 1.4em; color: var(--muted); }
.method li { padding-left: .2em; }
.method li + li { margin-top: 11px; }
.method li::marker { font-weight: 700; color: #35694a; }
.method-note { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.install-path { padding: 22px clamp(18px, 3vw, 32px); margin-top: 21px; border-left: 3px solid #75a684; background: #eaf2e7; border-radius: 0 12px 12px 0; }

.faq-inner { max-width: 830px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding: 19px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  line-height: 1.55;
  cursor: pointer;
  font-weight: 720;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 1px; border: solid var(--green); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.faq-list details[open] summary { color: var(--green); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-list p { padding: 0 20px 21px 6px; color: var(--muted); line-height: 1.8; }

.download-section { padding-top: 0; }
.download-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(25px,5vw,55px);
  border: 1px solid #cfdfd0;
  border-radius: 19px;
  background: linear-gradient(120deg, #eaf3e7, #f1f7ed 50%, #e5f0e5);
}
.download-brand { display: flex; align-items: center; gap: 15px; }
.download-brand img { flex: none; border-radius: 14px; }
.download-brand h2 { font-size: clamp(1.6rem, 3.2vw, 2.45rem); }
.site-footer { background: #172c24; color: #f2f8f0; }
.footer-inner { display: grid; justify-items: center; gap: 15px; padding-block: 38px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 21px; color: #d2e2d7; font-size: .92rem; }
.site-footer p { color: #aec4b7; font-size: .85rem; }

@media (hover: hover) {
  .main-nav a:hover, .faq-list summary:hover { color: var(--green); }
  .site-footer nav a:hover { color: #d8ef9b; }
  .button-small:hover { background: #edf5ea; border-color: #6a9c7a; }
  .button-primary:hover { background: var(--green-hover); transform: translateY(-2px); }
  .screenshot-strip a:hover { border-color: #779d8c; transform: translateY(-3px); }
}

@media (max-width: 830px) {
  .bar { gap: 20px; }
  .hero-grid { min-height: 0; gap: 25px; }
  .connection-figure { padding: 19px; min-height: 278px; }
  .hero-title { font-size: clamp(2.3rem, 4.2vw, 3.2rem); }
}

@media (max-width: 690px) {
  .bar { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding-top: 8px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 10px; padding: 7px 0 10px; margin: 0; border-top: 1px solid var(--line); font-size: .85rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px; gap: 28px; }
  .hero-title { margin-top: 11px; }
  .hero-description { margin: 15px 0 20px; }
  .button-primary { width: 100%; min-width: 0; }
  .connection-figure { min-height: 208px; border-radius: 15px; padding: 16px; }
  .connection-visual { grid-template-columns: 1fr minmax(68px,.88fr) 1fr; }
  .device { min-height: 128px; border-radius: 10px; }
  .device strong { margin-top: 7px; font-size: .82rem; }
  .device > span, .connection-bridge { font-size: .72rem; }
  .phone-icon { width: 32px; height: 44px; }
  .phone-icon img { width: 22px; }
  .television-icon { width: 44px; height: 32px; margin-block: 5px 7px; }
  .television-icon::after { width: 23px; left: 8px; bottom: -7px; }
  .section { scroll-margin-top: 108px; }
  .screenshots h2 { margin-bottom: 21px; }
  .screenshot-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 43%;
    gap: 10px;
    margin: -6px calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: #9eb7a7 #e8efe9;
  }
  .screenshot-strip a { scroll-snap-align: start; border-radius: 9px; }
  .feature-grid, .connection-methods { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .download-panel { flex-direction: column; text-align: center; }
  .download-brand { flex-direction: column; gap: 9px; }
  .site-footer nav { gap: 6px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
