:root {
  --pc-sidebar: 236px;
  --pc-header: 64px;
}

body.pc-web {
  min-width: 900px;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #e5ece9;
  font-size: 14px;
}

.pc-globalbar {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pc-header);
  padding: 0 22px;
  border-bottom: 1px solid #d7e1de;
  background: rgba(250, 252, 251, 0.97);
  box-shadow: 0 2px 12px rgba(31, 62, 56, 0.05);
  backdrop-filter: blur(18px);
}

.pc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.pc-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.pc-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.pc-brand strong {
  font-size: 14px;
  line-height: 1.25;
}

.pc-brand small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.pc-global-summary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pc-global-summary > div {
  display: flex;
  min-width: 88px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  flex-direction: column;
}

.pc-global-summary small {
  color: var(--muted);
  font-size: 9px;
}

.pc-global-summary strong {
  font-size: 13px;
}

.pc-network {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 750;
}

.pc-network i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a9b7e;
  box-shadow: 0 0 0 4px rgba(26, 155, 126, 0.12);
}

.pc-network.offline {
  color: var(--danger);
}

.pc-network.offline i {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(200, 68, 53, 0.12);
}

.pc-global-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 730;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.pc-global-button:hover {
  border-color: #a9bbb6;
  background: #f7faf9;
}

.pc-global-button:active {
  transform: translateY(1px);
}

.pc-global-button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pc-global-button.primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

body.pc-web .app-shell {
  max-width: none;
  min-height: calc(100dvh - var(--pc-header));
  margin-top: var(--pc-header);
  overflow: hidden;
  border-radius: 0;
  background: #f4f7f5;
  box-shadow: none;
}

body.pc-web #app {
  min-height: calc(100dvh - var(--pc-header));
  margin-left: var(--pc-sidebar);
  padding-bottom: 0;
}

body.pc-web .bottom-nav {
  position: fixed;
  z-index: 70;
  top: var(--pc-header);
  right: auto;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--pc-sidebar);
  max-width: var(--pc-sidebar);
  min-height: 0;
  margin: 0;
  padding: 78px 12px 74px;
  border-top: 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  flex-direction: column;
  gap: 5px;
}

body.pc-web .bottom-nav::before {
  position: absolute;
  top: 24px;
  left: 22px;
  color: var(--muted);
  content: "学习导航";
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

body.pc-web .bottom-nav::after {
  position: absolute;
  right: 20px;
  bottom: 22px;
  left: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  content: "学习数据保存在当前浏览器\A登录后可同步到云端";
  font-size: 9px;
  line-height: 1.6;
  white-space: pre;
}

body.pc-web .nav-item {
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  flex-direction: row;
  gap: 11px;
  font-size: 12px;
  font-weight: 680;
}

body.pc-web .nav-item .nav-icon {
  width: 34px;
  height: 34px;
}

body.pc-web .nav-item:hover {
  background: #f0f5f3;
}

body.pc-web .nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

body.pc-web .nav-item.active .nav-icon {
  background: var(--primary);
  color: #fff;
}

body.pc-web .topbar {
  top: var(--pc-header);
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  min-height: 58px;
  padding-top: 7px;
  padding-bottom: 7px;
  background: rgba(248, 250, 249, 0.96);
}

body.pc-web .topbar-title strong {
  font-size: 15px;
}

body.pc-web .hero-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 38px 20px;
}

body.pc-web .hero-header h1 {
  font-size: 30px;
}

body.pc-web .page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 38px 92px;
}

body.pc-web .learning-hero {
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 210px;
  padding: 24px;
}

body.pc-web .progress-ring {
  width: 132px;
  height: 132px;
}

body.pc-web .progress-ring::before {
  width: 104px;
  height: 104px;
}

body.pc-web .hero-copy h2 {
  font-size: 34px;
}

body.pc-web .home-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 14px 18px;
  align-items: start;
}

body.pc-web .home-page > * {
  grid-column: 1 / -1;
}

body.pc-web .home-page > .learning-hero {
  grid-column: 1;
}

body.pc-web .home-page > .focus-strip {
  grid-column: 2;
  min-height: 100%;
  margin-top: 0;
  padding: 18px;
  grid-template-columns: 48px minmax(0, 1fr) 76px auto;
}

body.pc-web .focus-strip > div:nth-child(2) strong {
  font-size: 15px;
}

body.pc-web .home-page > .stats-grid {
  margin-top: 4px;
}

body.pc-web .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.pc-web .stat-tile {
  min-height: 124px;
  padding: 14px;
}

body.pc-web .stat-tile > strong {
  font-size: 24px;
}

body.pc-web .section-title {
  margin: 14px 0 4px;
}

body.pc-web .continue-row {
  min-height: 78px;
  padding: 14px 16px;
}

body.pc-web .quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.pc-web .quick-action {
  min-height: 86px;
  padding: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.pc-web .quick-action:hover,
body.pc-web .tool-row:hover,
body.pc-web .book-row:hover,
body.pc-web .article-row:hover,
body.pc-web .listen-row:hover {
  border-color: #afc8c2;
  box-shadow: 0 8px 24px rgba(34, 72, 65, 0.08);
  transform: translateY(-1px);
}

body.pc-web .overview-row {
  min-height: 76px;
  padding: 15px 18px;
}

body.pc-web .sync-note {
  margin-top: 6px;
}

body.pc-web .books-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  align-items: start;
}

body.pc-web .books-page > .search-box,
body.pc-web .books-page > .section-title,
body.pc-web .books-page > .current-book,
body.pc-web .books-page > .empty-inline {
  grid-column: 1 / -1;
}

body.pc-web .current-book {
  grid-template-columns: 118px minmax(0, 1fr);
  padding: 20px;
}

body.pc-web .book-cover.large {
  width: 118px;
  height: 154px;
}

body.pc-web .current-book-info h2 {
  font-size: 24px;
}

body.pc-web .current-book-info > p {
  max-width: 720px;
  font-size: 12px;
}

body.pc-web .book-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

body.pc-web .book-row {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.pc-web .book-row:last-child {
  border: 1px solid var(--line);
}

body.pc-web .book-detail-head {
  max-width: 820px;
}

body.pc-web .study-page {
  max-width: 790px;
}

body.pc-web .study-card {
  min-height: 520px;
  padding: 26px;
}

body.pc-web .study-word-block {
  padding: 76px 0 58px;
}

body.pc-web .study-word-block h1 {
  font-size: 64px;
}

body.pc-web .rating-actions {
  max-width: 690px;
  margin-right: auto;
  margin-left: auto;
}

body.pc-web .rating-button {
  min-height: 70px;
}

body.pc-web .training-page {
  max-width: 1180px;
}

body.pc-web .tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

body.pc-web .tool-row {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.pc-web .tool-row:last-child {
  border: 1px solid var(--line);
}

body.pc-web .activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.pc-web .activity-list > div {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

body.pc-web .activity-list > div:last-child {
  border-right: 0;
}

body.pc-web .practice-page,
body.pc-web .ai-page {
  max-width: 900px;
}

body.pc-web .question-card {
  min-height: 310px;
}

body.pc-web .option-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.pc-web .answer-feedback {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

body.pc-web .ai-config {
  min-height: 72px;
}

body.pc-web .writing-box textarea {
  min-height: 110px;
}

body.pc-web .sticky-action {
  max-width: 420px;
  margin-right: auto;
  margin-left: auto;
}

body.pc-web .article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

body.pc-web .article-row {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.pc-web .article-row:last-child {
  border: 1px solid var(--line);
}

body.pc-web .article-cover {
  width: 84px;
  height: 96px;
}

body.pc-web .article-page {
  max-width: 880px;
}

body.pc-web .article-body {
  max-width: 760px;
  margin: 0 auto;
}

body.pc-web .article-header {
  max-width: 820px;
  margin: 0 auto;
}

body.pc-web .glossary {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

body.pc-web .reading-finish {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

body.pc-web .listen-page {
  max-width: 920px;
}

body.pc-web .audio-player {
  padding: 20px;
}

body.pc-web .audio-art {
  height: 150px;
}

body.pc-web .listen-questions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.pc-web .notebook-page {
  max-width: 980px;
}

body.pc-web .weak-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
}

body.pc-web .weak-word-row {
  border: 1px solid #e5d8c1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

body.pc-web .report-page {
  max-width: 1180px;
}

body.pc-web .report-headline {
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 22px;
}

body.pc-web .report-headline .progress-ring {
  width: 132px;
  height: 132px;
}

body.pc-web .report-headline .progress-ring::before {
  width: 104px;
  height: 104px;
}

body.pc-web .chart-panel {
  padding: 20px;
}

body.pc-web #trendChart {
  height: 250px;
}

body.pc-web .forecast-bars {
  height: 170px;
}

body.pc-web .forecast-bars > div > span {
  height: 132px;
}

body.pc-web .profile-page,
body.pc-web .settings-page {
  max-width: 960px;
}

body.pc-web .profile-card {
  padding: 22px;
}

body.pc-web .menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
}

body.pc-web .menu-list > button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.pc-web .menu-list > button:last-child {
  border: 1px solid var(--line);
}

body.pc-web .settings-section {
  padding: 4px 16px;
}

body.pc-web .form-section {
  padding: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.pc-web .form-section > .wide,
body.pc-web .form-section > .button-pair,
body.pc-web .form-section > .switch-row {
  grid-column: 1 / -1;
}

body.pc-web .modal-backdrop {
  align-items: center;
  padding: 24px;
}

body.pc-web .modal-panel {
  max-width: 640px;
  max-height: 88dvh;
  border-radius: 12px;
}

body.pc-web .modal-body {
  max-height: 68dvh;
}

body.pc-web .toast-root {
  left: calc(50% + var(--pc-sidebar) / 2);
  width: min(calc(100% - var(--pc-sidebar) - 40px), 520px);
}

@media (max-width: 1120px) {
  :root {
    --pc-sidebar: 204px;
  }

  body.pc-web .home-page {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  }

  body.pc-web .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pc-web .hero-header,
  body.pc-web .page {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 940px) {
  :root {
    --pc-sidebar: 78px;
  }

  body.pc-web .bottom-nav {
    padding-right: 9px;
    padding-left: 9px;
  }

  body.pc-web .bottom-nav::before,
  body.pc-web .bottom-nav::after {
    display: none;
  }

  body.pc-web .nav-item {
    justify-content: center;
    padding: 0;
  }

  body.pc-web .nav-item > span:last-child {
    display: none;
  }

  body.pc-web .home-page {
    grid-template-columns: 1fr;
  }

  body.pc-web .home-page > .learning-hero,
  body.pc-web .home-page > .focus-strip {
    grid-column: 1;
  }

  body.pc-web .book-shelf,
  body.pc-web .article-list,
  body.pc-web .tool-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.pc-web {
    min-width: 0;
  }

  .pc-global-summary > div,
  #pcInstallButton {
    display: none !important;
  }

  .pc-globalbar {
    padding: 0 12px;
  }

  .pc-global-button {
    padding: 7px 9px;
    font-size: 0;
  }

  .pc-global-button .icon,
  .pc-global-button svg {
    margin: 0;
  }

  body.pc-web #app {
    margin-left: 0;
    padding-bottom: 72px;
  }

  body.pc-web .bottom-nav {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    min-height: 72px;
    padding: 7px 5px max(7px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    gap: 0;
  }

  body.pc-web .nav-item {
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
  }

  body.pc-web .nav-item > span:last-child {
    display: inline;
  }

  body.pc-web .topbar {
    top: var(--pc-header);
  }

  body.pc-web .hero-header,
  body.pc-web .page {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.pc-web .stats-grid,
  body.pc-web .quick-grid,
  body.pc-web .option-list,
  body.pc-web .listen-questions,
  body.pc-web .menu-list,
  body.pc-web .weak-list,
  body.pc-web .form-section {
    grid-template-columns: 1fr;
  }

  body.pc-web .toast-root {
    left: 50%;
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-global-button,
  body.pc-web .quick-action,
  body.pc-web .tool-row,
  body.pc-web .book-row,
  body.pc-web .article-row,
  body.pc-web .listen-row {
    transition: none;
  }
}
