@import url("/assets/components.css");
.orders-panel {
  margin-top: 24px;
}
.membership-title {
  margin-top: 18px;
}
.admin-preview-video {
  width: 100%;
  max-height: 380px;
  background: #152238;
  border-radius: 12px;
}
.preview-subtitle {
  white-space: pre-line;
}
:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --ink: #19253b;
  --muted: #6d7789;
  --line: #e5e9ef;
  --blue: #245de5;
  --blue-soft: #edf3ff;
  --nav: #16243a;
  --radius: 20px;
  --shadow: 0 12px 40px #20325108;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #83a8ff;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 46px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 92px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.25;
}
h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  line-height: 1.6;
}
p {
  line-height: 1.8;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 36px 22px 22px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 34px;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: 3px;
}
.brand small {
  letter-spacing: 2px;
  font-size: 10px;
}
.nav-label {
  padding: 10px 14px;
  color: #919aaa;
  font-size: 10px;
  letter-spacing: 1.6px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  min-height: 48px;
  color: #687489;
  font-size: 14px;
}
.nav a:hover {
  background: #f0f3f8;
}
.nav a.active {
  background: var(--nav);
  color: white;
  box-shadow: 0 5px 12px #16243a14;
}
.nav .icon {
  width: 20px;
  height: 20px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.membership-note {
  border: 1px solid var(--line);
  padding: 18px 16px;
  border-radius: 16px;
  background: white;
}
.membership-note p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 14px;
}
.sidebar-footer {
  font-size: 11px;
  color: #9ba3b0;
  padding: 24px 10px 0;
  line-height: 2;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  background: #ffffffb3;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb span {
  color: #b7bec9;
  padding: 0 10px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.date-label {
  font-size: 12px;
  color: #8d97a7;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8eefb;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 44px 50px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.hero {
  position: relative;
  min-height: 234px;
  border-radius: 24px;
  background: #eaf0f8;
  overflow: hidden;
  padding: 36px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.45;
  margin: 12px 0;
}
.hero p {
  font-size: 14px;
  margin: 0;
  color: #65758c;
}
.hero .hero-art {
  align-self: stretch;
  width: 270px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .disc {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: #d7e3f7;
  position: absolute;
  box-shadow:
    0 0 0 20px #e0e9f8,
    0 0 0 40px #e5ecf7;
}
.hero-art .hola {
  font-family: Georgia, serif;
  font-size: 66px;
  font-style: italic;
  position: relative;
  color: #2255af;
  transform: rotate(-10deg);
}
.hero-art .art-caption {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #6b84aa;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  gap: 16px;
}
.section-title h2 {
  margin: 0;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tab {
  background: none;
  border: 0;
  padding: 0 0 13px;
  color: #7a8496;
  min-height: 44px;
  position: relative;
  font-size: 14px;
}
.tab.active {
  color: var(--ink);
  font-weight: 650;
}
.tab.active:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--blue);
  bottom: -1px;
  left: 0;
  right: 0;
  border-radius: 2px;
}
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-bar select {
  width: auto;
  min-width: 132px;
  font-size: 13px;
}
.search {
  margin-left: auto;
  max-width: 270px;
  font-size: 13px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.course-cover {
  aspect-ratio: 16/9;
  display: block;
  position: relative;
  background: #e0e7ef;
  overflow: hidden;
}
.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.course-card:hover img {
  transform: scale(1.03);
}
.cover-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #8698b5;
  font-family: Georgia, serif;
  font-size: 40px;
  font-style: italic;
}
.cover-labels {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #172236b8;
  color: white;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 5px;
}
.course-info {
  padding: 18px 18px 14px;
}
.course-info h3 {
  margin: 7px 0 12px;
  font-size: 16px;
}
.course-meta {
  font-size: 11px;
  color: #7b899c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.course-bottom {
  border-top: 1px solid #f0f2f6;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8993a3;
}
.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: start;
}
.player-panel {
  position: sticky;
  top: 22px;
}
.video-frame {
  background: #111d30;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}
.video-frame video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.play-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.play-controls select {
  width: auto;
  font-size: 12px;
}
.record-panel {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 20px;
}
.record-panel p {
  font-size: 12px;
  color: var(--muted);
}
.record-panel audio {
  width: 100%;
  margin: 16px 0;
}
.record-button {
  background: #e44d5a !important;
  color: white !important;
}
.record-button.recording {
  animation: pulse 1s infinite;
}
.transcript {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.transcript-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.transcript-header select {
  width: auto;
  font-size: 12px;
}
.sentence-list {
  max-height: 640px;
  overflow: auto;
  padding: 10px;
}
.sentence {
  padding: 16px 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  border-radius: 12px;
  align-items: start;
  margin-bottom: 4px;
}
.sentence.active {
  background: var(--blue-soft);
}
.sentence-num {
  min-width: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 44px;
  color: #9aa6b8;
  font-size: 11px;
}
.sentence.active .sentence-num {
  color: var(--blue);
}
.sentence .es {
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 5px;
}
.sentence .zh {
  font-size: 12px;
  color: #8590a2;
  margin: 0;
  line-height: 1.8;
}
.word {
  min-width: 44px;
  border: 0;
  background: transparent;
  padding: 0 1px;
  color: inherit;
  font: inherit;
  min-height: 44px;
}
.word:hover {
  color: var(--blue);
  text-decoration: underline;
}
.attribution {
  font-size: 11px;
  color: #8a94a4;
  line-height: 1.8;
}
.attribution a {
  color: var(--blue);
  text-decoration: underline;
}
.review-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.review-list {
  display: grid;
  gap: 14px;
}
.review-card h3 {
  margin: 0 0 5px;
}
.review-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.account-grid,
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.price {
  font-size: 54px;
  font-weight: 600;
  letter-spacing: -3px;
  margin: 18px 0;
}
.price small {
  font-size: 14px;
  letter-spacing: 0;
}
.price-card {
  background: var(--nav);
  color: white;
}
.price-card .muted,
.price-card small {
  color: #b4c2d9;
}
.benefits {
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 2.7;
}
.benefits li:before {
  content: "✓";
  color: #9eb9f5;
  margin-right: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.stat strong {
  font-size: 30px;
  display: block;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.upload-zone {
  border: 1px dashed #adc1e6;
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  background: #f7faff;
}
.upload-zone.dragover {
  background: #e6efff;
}
.admin-editor {
  display: grid;
  gap: 22px;
}
.subtitle-row {
  display: grid;
  grid-template-columns: 78px 1fr 1fr 44px;
  gap: 8px;
  margin-bottom: 10px;
}
.subtitle-row textarea {
  min-height: 76px;
  font-size: 13px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef2f8;
  padding: 20px;
}
.login-card {
  width: min(420px, 100%);
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.login-card .brand {
  padding: 0 0 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wide {
  grid-column: 1/-1;
}
.footnote {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #929baa;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.status-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: #3fa57c;
}
.screen-reader {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.boot {
  padding: 80px;
  text-align: center;
  font-size: 25px;
}
.boot span {
  display: block;
  font-size: 14px;
  margin: 15px;
  color: var(--muted);
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px #e44d5a18;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.main {
  animation: rise 0.25s ease-out;
}
@media (min-width: 1550px) {
  .course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 14px;
  }
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .learning-layout {
    grid-template-columns: 1fr;
  }
  .player-panel {
    position: static;
  }
  .sentence-list {
    max-height: none;
  }
  .hero-art {
    width: 200px !important;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 740px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 20px;
    background: white;
  }
  .brand {
    padding: 0;
    gap: 10px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand strong {
    font-size: 18px;
  }
  .sidebar .brand small {
    font-size: 8px;
  }
  .nav-label,
  .sidebar-bottom,
  .sidebar-footer {
    display: none;
  }
  .nav {
    display: flex;
    gap: 6px;
    overflow: auto;
    margin-top: 18px;
  }
  .nav a {
    white-space: nowrap;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 12px;
  }
  .nav .icon {
    width: 17px;
    height: 17px;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
  }
  .date-label {
    display: none;
  }
  .main {
    padding: 24px 20px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .hero {
    padding: 26px 24px;
    min-height: 220px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    max-width: 230px;
    font-size: 12px;
  }
  .hero .hero-art {
    position: absolute !important;
    right: -88px;
    top: 30px;
    opacity: 0.28;
    pointer-events: none;
  }
  .hero > div:first-child {
    position: relative;
    z-index: 1;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .course-grid {
    gap: 15px;
  }
  .course-info {
    padding: 13px;
  }
  .course-info h3 {
    font-size: 14px;
  }
  .course-meta {
    font-size: 10px;
  }
  .course-bottom {
    font-size: 10px;
  }
  .filter-bar {
    gap: 8px;
  }
  .filter-bar select {
    min-width: 0;
    flex: 1;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
    margin: 0;
  }
  .tabs {
    gap: 24px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .account-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .subtitle-row {
    grid-template-columns: 66px 1fr 44px;
  }
  .subtitle-row textarea:nth-of-type(2) {
    grid-column: 2;
  }
  .review-card {
    padding: 18px;
    align-items: start;
  }
  .review-card .actions {
    flex-direction: column;
  }
  .footnote {
    flex-direction: column;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .top-actions {
    gap: 6px;
  }
  .learning-layout {
    gap: 20px;
  }
  .sentence {
    padding: 12px 8px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .sentence .es {
    font-size: 15px;
  }
}
@media (max-width: 420px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 27px;
  }
  .nav a {
    padding: 10px;
  }
  .top-actions .btn {
    padding: 9px 12px;
  }
  .cover-labels {
    top: 10px;
    left: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
