@charset "UTF-8";

/* 作者：搭客佬 */
/* 链接：https://www.jm8pro.cn/ */

:root {
  --navy: #0d2c51;
  --navy-deep: #071c35;
  --navy-soft: #183e69;
  --blue: #1677ff;
  --blue-light: #eaf4ff;
  --orange: #ff6a1a;
  --orange-dark: #dc4e00;
  --ink: #11243a;
  --muted: #68788c;
  --line: #dce5ef;
  --surface: #ffffff;
  --page: #f7faff;
  --success: #24a35a;
  --header-height: 72px;
  --content-width: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 46px rgba(17, 45, 77, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

a,
button,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 2px solid var(--navy);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #d6e1ec;
  border-radius: 14px;
  background: #ffffff;
  object-fit: contain;
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--navy);
  line-height: 1.1;
}

.brand-text strong {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand-text small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #29425f;
  font-size: 14px;
  font-weight: 800;
  transition: color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-actions {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 7px;
}

.mobile-download {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.menu-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #ffffff;
}

.menu-icon {
  display: block;
  width: 22px;
  height: 22px;
  background-image: url("../icons/menu.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(22, 119, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(22, 119, 255, 0.08) 1px, transparent 1px),
    linear-gradient(115deg, var(--navy-deep), var(--navy));
  background-size: 64px 64px, 64px 64px, auto;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 82px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 20px, transparent 20px 31px),
    rgba(3, 16, 31, 0.3);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 780px;
  padding: 70px 0 110px;
}

.hero-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(116, 190, 255, 0.65);
  border-radius: 999px;
  color: #cfe9ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 3.15vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hero-copy > p {
  max-width: 660px;
  margin-top: 22px;
  color: #c7d7e8;
  font-size: 17px;
  line-height: 1.85;
}

.hero-benefits {
  display: grid;
  max-width: 710px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.hero-benefits li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 4px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-benefits li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-benefits i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(110, 181, 255, 0.55);
  border-radius: 10px;
  color: #8ec9ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.hero-benefits span,
.hero-benefits strong,
.hero-benefits small {
  display: block;
}

.hero-benefits strong {
  font-size: 14px;
}

.hero-benefits small {
  margin-top: 2px;
  overflow: hidden;
  color: #9fb6ce;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-download {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 34px;
}

.primary-button,
.download-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 27px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--orange);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible,
.download-button:hover,
.download-button:focus-visible {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.primary-button i,
.download-button i {
  font-style: normal;
  font-size: 20px;
}

.age-label {
  margin-top: 12px;
  color: #a9bed3;
  font-size: 12px;
}

.login-device {
  display: flex;
  align-self: end;
  justify-content: flex-end;
  padding-bottom: 34px;
}

.phone {
  width: 306px;
  padding: 9px;
  border: 3px solid #10151b;
  border-radius: 42px;
  background: #10151b;
}

.phone-screen {
  position: relative;
  min-height: 575px;
  overflow: hidden;
  padding: 18px 17px 20px;
  border-radius: 31px;
  color: var(--ink);
  background: #ffffff;
}

.phone-screen::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100px;
  height: 23px;
  border-radius: 0 0 14px 14px;
  background: #10151b;
  content: "";
  transform: translateX(-50%);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: #1a2736;
  font-size: 12px;
  font-weight: 900;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.login-brand img {
  width: 70px;
  height: 70px;
  border: 1px solid #dce5ee;
  border-radius: 22px;
  background: #ffffff;
  object-fit: contain;
}

.login-brand strong {
  margin-top: 8px;
  color: var(--navy);
  font-size: 16px;
}

.login-heading {
  margin-top: 12px;
  text-align: center;
}

.login-title {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.3;
}

.login-heading p {
  margin-top: 4px;
  color: #79889a;
  font-size: 12px;
}

.login-tab {
  margin-top: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.login-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}

.login-field {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #d8e1eb;
  border-radius: 9px;
  background: #f7f9fc;
}

.login-field > span {
  padding-left: 10px;
  color: #52657a;
  font-size: 12px;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  height: 40px;
  padding: 0 8px;
  border: 0;
  outline: 0;
  color: #263a50;
  background: transparent;
  font-size: 12px;
}

.login-field input:focus {
  background: #ffffff;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 40px;
  padding: 0 9px;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
}

.login-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border-radius: 9px;
  color: #ffffff;
  background: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.login-button:hover,
.login-button:focus-visible {
  background: var(--orange-dark);
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
}

.login-links button {
  padding: 2px 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  color: #8391a0;
  font-size: 12px;
  line-height: 1.4;
}

.agreement input {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.login-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid #dcecff;
  border-radius: 10px;
  background: var(--blue-light);
}

.login-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-size: 14px;
}

.login-note p {
  color: #58708a;
  font-size: 12px;
  line-height: 1.5;
}

.page-section {
  padding: 96px 0;
}

.page-section:nth-of-type(odd) {
  background: #ffffff;
}

.section-heading {
  display: grid;
  max-width: 820px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 18px;
  margin-bottom: 36px;
}

.section-number,
.pass-kicker {
  grid-column: 1 / -1;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  position: relative;
  padding-left: 16px;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-heading h2::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 5px;
  border-radius: 99px;
  background: var(--blue);
  content: "";
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
}

.interest-section {
  background: #ffffff;
}

.interest-workspace {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) 326px;
  gap: 16px;
}

.interest-search {
  display: grid;
  min-height: 76px;
  grid-column: 2 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.interest-search > label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  overflow: hidden;
  border: 1px solid #cbd8e6;
  border-radius: 11px;
  background: #f8fbff;
}

.search-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.11);
}

.search-control input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.search-control button {
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.genre-rail {
  display: flex;
  grid-row: 1 / 3;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--navy);
}

.genre-rail > span {
  margin-bottom: 7px;
  color: #9db9d6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.genre-button {
  min-height: 43px;
  padding: 0 13px;
  border-radius: 10px;
  color: #d5e3f0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.genre-button:hover,
.genre-button:focus-visible,
.genre-button.is-active {
  color: var(--navy);
  background: #ffffff;
}

.index-catalog,
.interest-results {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.catalog-heading,
.result-heading,
.cache-heading,
.strip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.catalog-heading strong,
.result-heading strong,
.cache-heading strong {
  font-size: 16px;
}

.catalog-heading span,
.result-heading span,
.cache-heading span {
  color: var(--muted);
  font-size: 12px;
}

.catalog-books {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.catalog-books button {
  position: relative;
  display: flex;
  min-height: 186px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #cfdae6;
  border-top: 9px solid var(--blue);
  border-radius: 5px 5px 12px 12px;
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(22, 119, 255, 0.08) 21px 22px),
    #f8fbff;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease;
}

.catalog-books button:nth-child(2) {
  border-top-color: var(--orange);
}

.catalog-books button:nth-child(3) {
  border-top-color: #26a782;
}

.catalog-books button:nth-child(4) {
  border-top-color: #6f64d9;
}

.catalog-books button:hover,
.catalog-books button:focus-visible {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.catalog-books span,
.catalog-books small {
  display: block;
}

.catalog-books span {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
}

.catalog-books small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-caption {
  margin-top: 17px;
  color: #607188;
  font-size: 13px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.result-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid #e4eaf1;
  border-radius: 12px;
  background: #fbfdff;
}

.result-card[hidden] {
  display: none;
}

.result-cover {
  width: 64px;
  aspect-ratio: 3 / 4;
  padding: 3px;
  border-radius: 7px;
  background: #edf2f7;
}

.result-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-card strong,
.result-card span,
.result-card small {
  display: block;
}

.result-card strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card span {
  color: var(--muted);
  font-size: 12px;
}

.result-card small {
  margin-top: 4px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.result-empty {
  margin-top: 18px;
  padding: 18px;
  border-radius: 11px;
  color: var(--muted);
  background: #f5f8fb;
  font-size: 13px;
  text-align: center;
}

.plan-section {
  background: #f1f7fd;
}

.plan-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #cfe0f2;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.plan-flow li {
  position: relative;
  display: flex;
  min-height: 110px;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid #dbe6f0;
}

.plan-flow li:last-child {
  border-right: 0;
}

.plan-flow li::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -10px;
  width: 18px;
  height: 18px;
  border-top: 1px solid #dbe6f0;
  border-right: 1px solid #dbe6f0;
  background: #ffffff;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.plan-flow li:last-child::after {
  display: none;
}

.plan-flow li.is-current {
  background: var(--blue-light);
}

.plan-flow li.is-current::after {
  background: var(--blue-light);
}

.plan-flow b {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
}

.plan-flow span,
.plan-flow strong,
.plan-flow small {
  display: block;
}

.plan-flow strong {
  font-size: 14px;
}

.plan-flow small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.follow-strip {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.strip-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.strip-heading span {
  color: var(--muted);
  font-size: 12px;
}

.strip-heading strong {
  color: var(--navy);
  font-size: 18px;
}

.strip-next {
  padding: 7px 11px;
  border: 1px solid #cddaea;
  border-radius: 9px;
  color: var(--blue);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.strip-books {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.strip-books article {
  display: grid;
  min-width: 0;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid #e2e8ef;
  border-radius: 12px;
  background: #fbfdff;
}

.strip-books img {
  width: 70px;
  aspect-ratio: 3 / 4;
  border-radius: 7px;
  background: #edf1f5;
  object-fit: contain;
}

.strip-books strong,
.strip-books span,
.strip-books small {
  display: block;
}

.strip-books strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip-books span {
  color: var(--muted);
  font-size: 12px;
}

.strip-books small {
  margin-top: 5px;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.offline-section {
  background: #ffffff;
}

.offline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.cache-list,
.network-rail {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cache-columns,
.cache-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(120px, 0.8fr) minmax(150px, 0.9fr) 84px 44px;
  align-items: center;
  gap: 14px;
}

.cache-columns {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #75859a;
  background: #f2f6fa;
  font-size: 12px;
  font-weight: 800;
}

.cache-row {
  min-height: 82px;
  padding: 11px 12px;
  border-bottom: 1px solid #e8edf2;
  font-size: 12px;
}

.cache-row:last-child {
  border-bottom: 0;
}

.cache-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.cache-title img {
  width: 42px;
  height: 56px;
  flex: 0 0 42px;
  border-radius: 6px;
  background: #edf1f5;
  object-fit: contain;
}

.cache-title strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cache-progress {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  gap: 8px;
}

.cache-progress::before {
  height: 6px;
  grid-column: 1;
  grid-row: 1;
  border-radius: 999px;
  background: #e4eaf0;
  content: "";
}

.cache-progress i {
  z-index: 1;
  height: 6px;
  grid-column: 1;
  grid-row: 1;
  border-radius: 999px;
  background: var(--blue);
}

.cache-progress small {
  color: var(--muted);
  font-size: 12px;
}

.state {
  font-size: 12px;
  font-weight: 800;
}

.state.downloading {
  color: var(--blue);
}

.state.waiting {
  color: #7f8b98;
}

.state.complete {
  color: var(--success);
}

.cache-action {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd8e5;
  border-radius: 50%;
  color: #52687f;
  background: #ffffff;
  font-size: 12px;
}

.cache-action:hover,
.cache-action:focus-visible,
.cache-action[aria-pressed="true"] {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.cache-action.is-complete {
  border-color: var(--success);
  color: #ffffff;
  background: var(--success);
}

.network-heading span,
.network-heading strong {
  display: block;
}

.network-heading span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.network-heading strong {
  margin-top: 4px;
  font-size: 17px;
}

.network-rail > label {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.network-rail select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #cedae6;
  border-radius: 10px;
  outline: 0;
  background: #f9fbfd;
  font-size: 13px;
}

.network-rail select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.11);
}

.wifi-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5ebf1;
}

.wifi-setting span,
.wifi-setting strong,
.wifi-setting small {
  display: block;
}

.wifi-setting strong {
  font-size: 13px;
}

.wifi-setting small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 48px;
  border-radius: 999px;
  background: #bdc8d3;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
  transition: left 150ms ease;
}

.switch.is-active {
  background: var(--blue);
}

.switch.is-active::after {
  left: 25px;
}

.screenshots-section {
  background:
    linear-gradient(90deg, rgba(22, 119, 255, 0.035) 1px, transparent 1px),
    #f1f7fd;
  background-size: 42px 42px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d3e0ed;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.screenshot-viewport {
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 10px;
  background: #f4f7fa;
}

.screenshot-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screenshot-card figcaption {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 16px;
  border-top: 1px solid #dfe6ed;
}

.screenshot-card figcaption strong {
  font-size: 15px;
}

.screenshot-card figcaption span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.guide-section {
  background: #ffffff;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.guide-item summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}

.guide-item summary::-webkit-details-marker {
  display: none;
}

.guide-item summary i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-light);
  font-style: normal;
  font-size: 20px;
  line-height: 1;
}

.guide-item[open] {
  border-color: rgba(22, 119, 255, 0.55);
}

.guide-item[open] summary {
  color: var(--blue);
}

.guide-item[open] summary i {
  color: #ffffff;
  background: var(--blue);
}

.guide-answer {
  padding: 0 22px 20px;
}

.guide-answer p {
  padding-top: 15px;
  border-top: 1px solid #e7edf3;
  color: #596b7f;
  font-size: 14px;
}

.guide-answer a {
  color: var(--blue);
  font-weight: 800;
  word-break: break-all;
}

.official-site {
  margin-top: 8px;
  border-color: #aebdcb;
  background: #fbfdff;
}

.feedback-section {
  background: #f3f7fb;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feedback-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 21px;
  border: 1px solid #d9e3ec;
  border-radius: 5px 16px 16px 16px;
  background: #ffffff;
}

.feedback-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e7edf2;
}

.user-identity {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.user-identity strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #cfe2f7;
  border-radius: 50%;
  background-color: var(--blue-light);
  background-image: url("../icons/avatar.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px;
}

.user-rating {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  color: var(--orange);
  font-size: 14px;
  line-height: 1;
}

.aiarticle-comment-rating-icon {
  font-style: normal;
}

.fa-star.aiarticle-comment-rating-icon::before {
  content: "★";
}

.fa-star-o.aiarticle-comment-rating-icon::before {
  content: "☆";
}

.feedback-card > p {
  margin-top: 15px;
  color: #4c6075;
  font-size: 14px;
  line-height: 1.8;
}

.feedback-card > time {
  margin-top: auto;
  padding-top: 16px;
  color: #8290a0;
  font-size: 12px;
  text-align: right;
}

.download-section {
  padding: 100px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--navy-deep);
  background-size: 54px 54px;
}

.download-pass {
  position: relative;
  display: flex;
  width: min(100%, 590px);
  min-height: 650px;
  margin: 0 auto;
  padding: 48px 52px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  border: 1px solid #cbdced;
  border-radius: 28px 28px 10px 10px;
  color: var(--ink);
  background: #ffffff;
  text-align: center;
}

.download-pass::before,
.download-pass::after {
  position: absolute;
  top: 160px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-deep);
  content: "";
}

.download-pass::before {
  left: -17px;
}

.download-pass::after {
  right: -17px;
}

.download-pass h2 {
  width: 100%;
  margin-top: 10px;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-align: left;
  white-space: nowrap;
}

.download-pass > p {
  max-width: 440px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.pass-route {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 390px;
  flex-direction: column;
  gap: 0;
  margin-top: 34px;
  text-align: left;
}

.pass-route::before {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 24px;
  width: 1px;
  border-left: 1px dashed #9eb9d5;
  content: "";
}

.pass-route li {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 98px;
  align-items: center;
  gap: 17px;
}

.pass-route b {
  display: grid;
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  place-items: center;
  border: 1px solid #b7d4f3;
  border-radius: 50%;
  color: var(--blue);
  background: #ffffff;
  font-size: 12px;
}

.pass-route span,
.pass-route strong,
.pass-route small {
  display: block;
}

.pass-route strong {
  font-size: 15px;
}

.pass-route small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.download-button {
  width: 100%;
  max-width: 390px;
  margin-top: auto;
}

.pass-note {
  margin-top: 13px;
  color: #7d8d9d;
  font-size: 12px;
}

.site-footer {
  color: #ffffff;
  background: var(--navy);
}

.footer-inner {
  padding: 40px 0 22px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 27px;
}

.footer-brand .brand-text {
  color: #ffffff;
}

.footer-brand .brand-text small {
  color: #c8d8e8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.footer-nav a {
  color: #d5e0eb;
  font-size: 12px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.96);
  color: #aebfd0;
  font-size: 12px;
}

.back-top {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 13px;
  opacity: 0;
  background: var(--blue);
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top i {
  display: block;
  width: 22px;
  height: 22px;
  background-image: url("../icons/top.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.42);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .interest-workspace {
    grid-template-columns: 142px minmax(0, 1fr);
  }

  .interest-search {
    grid-column: 2;
  }

  .interest-results {
    grid-column: 1 / -1;
  }

  .genre-rail {
    grid-row: 1 / 3;
  }

  .offline-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

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

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    height: var(--header-height);
  }

  .mobile-actions {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    margin: 0;
    padding: 10px;
    border: 1px solid #d7e2ed;
    border-radius: 0 0 15px 15px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(7, 28, 53, 0.17);
  }

  .site-header.is-open .main-nav {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    min-height: 46px;
    justify-content: center;
    border-bottom: 1px solid #e7edf3;
  }

  .main-nav li:last-child .nav-link {
    border-bottom: 0;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 70px 0 36px;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
    white-space: normal;
  }

  .hero-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-benefits {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .hero-download {
    align-items: center;
  }

  .login-device {
    width: 100%;
    align-self: auto;
    justify-content: center;
    padding-bottom: 110px;
  }

  .phone {
    width: 306px;
  }

  .interest-workspace {
    grid-template-columns: 1fr;
  }

  .interest-search,
  .interest-results,
  .genre-rail {
    grid-column: auto;
    grid-row: auto;
  }

  .genre-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .genre-rail > span {
    grid-column: 1 / -1;
  }

  .genre-button {
    text-align: center;
  }

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

  .plan-flow li:nth-child(2) {
    border-right: 0;
  }

  .plan-flow li:nth-child(2)::after {
    display: none;
  }

  .plan-flow li:nth-child(-n + 2) {
    border-bottom: 1px solid #dbe6f0;
  }

  .offline-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }

  .page-section {
    padding: 76px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-benefits li {
    max-width: 280px;
    margin: 0 auto;
    padding: 8px 0;
    border-left: 0;
  }

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

  .catalog-books button {
    min-height: 150px;
  }

  .cache-columns {
    display: none;
  }

  .cache-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 16px 0;
  }

  .cache-title {
    grid-column: 1;
  }

  .cache-row > span:not(.state) {
    grid-column: 1;
    padding-left: 52px;
  }

  .cache-progress {
    grid-column: 1;
    padding-left: 52px;
  }

  .cache-row .state {
    grid-column: 1;
    padding-left: 52px;
  }

  .cache-action {
    grid-column: 2;
    grid-row: 1;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 6px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    margin-top: 2px;
    font-size: 12px;
  }

  .mobile-actions {
    gap: 5px;
  }

  .mobile-download {
    min-height: 34px;
    padding: 0 10px;
  }

  .menu-button {
    width: 36px;
    height: 36px;
  }

  .main-nav {
    right: 10px;
    left: 10px;
  }

  .hero-copy {
    padding-top: 56px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: 31px;
    line-height: 1.35;
  }

  .hero-copy > p {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-label {
    font-size: 12px;
  }

  .phone {
    width: min(100%, 306px);
  }

  .interest-search {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .genre-rail {
    display: flex;
    overflow-x: auto;
    flex-direction: row;
    padding: 12px;
    scroll-snap-type: x proximity;
  }

  .genre-rail > span {
    display: none;
  }

  .genre-button {
    min-width: 70px;
    scroll-snap-align: start;
  }

  .index-catalog,
  .interest-results,
  .cache-list,
  .network-rail {
    padding: 17px;
  }

  .plan-flow {
    grid-template-columns: 1fr;
  }

  .plan-flow li {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid #dbe6f0;
  }

  .plan-flow li:nth-child(2) {
    border-bottom: 1px solid #dbe6f0;
  }

  .plan-flow li:last-child {
    border-bottom: 0;
  }

  .plan-flow li::after {
    display: none;
  }

  .strip-books {
    grid-template-columns: 1fr;
  }

  .strip-heading {
    align-items: flex-start;
  }

  .screenshots-grid {
    gap: 8px;
  }

  .screenshot-viewport {
    padding: 6px;
  }

  .screenshot-card figcaption {
    min-height: 70px;
    padding: 10px;
  }

  .screenshot-card figcaption strong {
    font-size: 13px;
  }

  .guide-item summary {
    min-height: 58px;
    padding: 0 16px;
    font-size: 14px;
  }

  .guide-answer {
    padding: 0 16px 18px;
  }

  .download-section {
    padding: 76px 0;
  }

  .download-pass {
    min-height: 610px;
    padding: 38px 20px;
  }

  .download-pass h2 {
    font-size: clamp(20px, 6.2vw, 27px);
  }

  .download-button {
    min-height: 52px;
  }

  .footer-inner {
    padding-top: 34px;
  }

  .footer-nav {
    gap: 12px 18px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .mobile-download {
    padding: 0 8px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .catalog-books {
    gap: 8px;
  }

  .download-pass h2 {
    font-size: 20px;
  }
}

@media (hover: none) and (pointer: coarse) {
  a,
  button,
  input,
  select,
  summary {
    transition: none !important;
    animation: none !important;
  }

  .primary-button:hover,
  .download-button:hover,
  .catalog-books button:hover {
    transform: none;
  }
}
