:root {
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --text: #18181b;
  --text-secondary: #525b6d;
  --text-muted: #75809a;
  --primary: #2667ff;
  --primary-hover: #1b56e0;
  --border: #eceef2;
  --border-strong: #dfe3ea;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: clip;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header — Cloud Studio Minimalist Style */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f2f5;
}
.nav-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  color: #15181a;
  letter-spacing: -0.2px;
}
#brandLogoSlot {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}
#cardLogo svg {
  width: 38px;
  height: 38px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #272e3b;
}
.nav-links a {
  padding: 4px 0;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search input {
  width: 240px;
  height: 34px;
  border-radius: 99px;
  border: 1px solid transparent;
  background: #f3f5f8;
  padding: 0 34px 0 14px;
  font-size: 12.5px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.15s;
}
.nav-search input::placeholder {
  color: #9aa3b2;
}
.nav-search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
}
.nav-search svg {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 15px;
  color: #75809a;
  pointer-events: none;
}

.btn-pill-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 18px;
  border-radius: 99px;
  border: 1px solid #272e3b;
  background: #fff;
  color: #18181b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-pill-login:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
}
.btn-pill-ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

/* Top Zone ("AI工具专区" modeled after "高校专区") */
.zone-section {
  padding: 32px 0 22px;
}
.zone-head {
  margin-bottom: 16px;
}
.zone-head h1 {
  font-size: 20px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 6px;
}
.zone-head p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.zone-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.zone-card:hover,
.zone-card.active {
  border-color: #bfd4ff;
  box-shadow: 0 6px 20px rgba(38, 103, 255, 0.06);
  transform: translateY(-1px);
}
.zone-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zone-icon-wrap img {
  width: 26px;
  height: 26px;
  display: block;
}
.zone-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 3px;
}
.zone-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.zone-meta svg {
  width: 13px;
  height: 13px;
}

/* All Courses Filter & Grid */
.courses-section {
  padding: 18px 0 56px;
}
.courses-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.courses-title-row h2 {
  font-size: 20px;
  font-weight: 700;
}
.courses-sub-badge {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  padding: 3px 12px;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.filter-label {
  width: 62px;
  flex-shrink: 0;
  font-size: 13.5px;
  color: #4b5563;
  padding-top: 4px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.f-pill {
  height: 28px;
  padding: 0 15px;
  border-radius: 99px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: all 0.14s;
}
.f-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.f-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
}
.f-pill img {
  width: 14px;
  height: 14px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 20px;
}
.sort-switch {
  display: inline-flex;
  background: #f2f4f7;
  padding: 3px;
  border-radius: 99px;
}
.sort-btn {
  border: none;
  background: transparent;
  padding: 4px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  color: #525b6d;
  cursor: pointer;
  font-family: inherit;
}
.sort-btn.active {
  background: #fff;
  color: #18181b;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.inline-search {
  position: relative;
  display: flex;
  align-items: center;
}
.inline-search input {
  width: 248px;
  height: 32px;
  border-radius: 99px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0 14px 0 32px;
  font-size: 12.5px;
  font-family: inherit;
}
.inline-search input:focus {
  outline: none;
  border-color: var(--primary);
}
.inline-search svg {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: #9aa3b2;
}

/* 4-Column Course Cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: #d6e2ff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f5f3ff;
  overflow: hidden;
}
.card-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-tool-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 99px;
  padding: 3px 9px 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #272e3b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.cover-tool-chip img {
  width: 14px;
  height: 14px;
}
.card-body {
  padding: 14px 16px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #18181b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.lvl-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.lvl-L1 {
  background: #e6f9f1;
  color: #0ca678;
}
.lvl-L2 {
  background: #e8f2ff;
  color: #2667ff;
}
.lvl-L3 {
  background: #fae8ff;
  color: #c026d3;
}
.topic-tag {
  font-size: 11.5px;
  background: #f3f4f6;
  color: #4b5563;
  padding: 2px 8px;
  border-radius: 4px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.card-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-foot-left svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   PRICING PAGE — Matches Uploaded Screenshots Cleanly
   ========================================================= */
.pricing-page {
  padding: 42px 0 64px;
}
.pricing-head {
  text-align: center;
  margin-bottom: 28px;
}
.pricing-head h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pricing-head p {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.pricing-wrap {
  max-width: 980px;
  margin: 0 auto;
}
.cycle-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  padding: 9px 12px;
  margin-bottom: 30px;
}
.cycle-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.16s;
}
.cycle-tab svg {
  width: 20px;
  height: 20px;
  color: #64748b;
  flex-shrink: 0;
}
.cycle-tab .ct-title {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #475569;
  line-height: 1.25;
}
.cycle-tab .ct-sub {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.cycle-tab.active {
  background: #ebf3ff;
  border-color: #c9dfff;
}
.cycle-tab.active svg,
.cycle-tab.active .ct-title {
  color: #1668dc;
}
.cycle-tab.active .ct-sub {
  color: #5b8fd9;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 34px 24px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.plan-card.popular {
  border: 2px solid #2b7fff;
  box-shadow: 0 10px 28px rgba(43, 127, 255, 0.1);
}
.popular-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #2b7fff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 0 0 9px 9px;
}
.plan-name {
  font-size: 21px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}
.plan-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.ptag-tier {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 99px;
}
.ptag-days {
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.plan-divider {
  height: 1px;
  background: #eef2f6;
  margin: 0 4px 22px;
}
.price-box {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 22px 14px;
  margin-bottom: 20px;
}
.price-main {
  color: #2b7fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}
.price-main .unit {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  margin-left: 3px;
}
.price-total {
  font-size: 13px;
  color: #8492a6;
  margin-top: 7px;
}
.quota-box {
  border: 1px solid #e9eef5;
  background: #fafbfd;
  border-radius: 10px;
  padding: 16px 14px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}
.plan-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #dce3ee;
  background: #fff;
  color: #1e293b;
  transition: all 0.16s;
}
.plan-btn:hover {
  border-color: #2b7fff;
  color: #2b7fff;
}
.plan-card.popular .plan-btn {
  background: #2b7fff;
  color: #fff;
  border-color: #2b7fff;
}
.plan-card.popular .plan-btn:hover {
  background: #1d6ae5;
}

/* Login Page — Minimalist Single Card (Registration Closed) */
.login-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fafbfc;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.text-input {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
.text-input:focus {
  outline: none;
  border-color: var(--primary);
}
.form-msg {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
}
.form-msg.err {
  display: block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.form-msg.ok {
  display: block;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Learn / Article Reader Page */
.learn-wrap {
  padding: 28px 0 60px;
}
.learn-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.side-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  position: sticky;
  top: 78px;
}
.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.side-item:hover {
  background: #f5f7fa;
}
.side-item.active {
  background: #eef4ff;
  color: var(--primary);
  font-weight: 600;
}
.article-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 34px;
}
.step-item {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 14px;
  color: #334155;
}
.example-block {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin: 14px 0;
  font-size: 13.5px;
  color: #1e293b;
}

/* Rich Multi-Chapter Tutorial Styles */
.chap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
}
.chap-tab {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.chap-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.chap-tab.active {
  background: #eef4ff;
  border-color: #bfd4ff;
  color: var(--primary);
  font-weight: 600;
}
.article-rich p {
  font-size: 14px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 14px;
}
.article-rich h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #18181b;
  margin: 22px 0 10px;
}
.article-rich code {
  background: #f1f5f9;
  color: #1e40af;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}
.tut-fig {
  margin: 18px 0;
  background: #fafbfc;
  border: 1px solid #eceef2;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.tut-fig img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.tut-fig figcaption {
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-muted);
}
.tut-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.tut-table th,
.tut-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.6;
}
.tut-table th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 600;
}

/* =========================================================
   ORDER TRANSACTION DETAIL PAGE (/order)
   ========================================================= */
.order-page {
  padding: 34px 0 64px;
  background: #fafbfc;
  min-height: calc(100vh - 130px);
}
.order-shell {
  max-width: 880px;
  margin: 0 auto;
}
.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 34px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.03);
}
.order-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.order-status-bar.paid {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}
.order-status-bar.pending {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.order-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  padding: 18px 0;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13.5px;
}
.order-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.order-kv span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
}
.order-kv span:last-child {
  color: #18181b;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.pay-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pay-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #dfe3ea;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.pay-opt.active {
  border-color: var(--primary);
  background: #f2f7ff;
  color: var(--primary);
  font-weight: 600;
}

@media print {
  .navbar, .footer, .no-print {
    display: none !important;
  }
  .order-page {
    background: #fff;
    padding: 0;
  }
  .order-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* Modal */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal-mask.open {
  display: flex;
}
.modal-card {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 24px 26px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.modal-close {
  border: none;
  background: #f1f5f9;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

/* Minimal Clean Footer */
.footer {
  border-top: 1px solid #f0f2f5;
  background: #fff;
  padding: 24px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.footer-links a:hover {
  color: var(--primary);
}

.order-gen-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  justify-content: space-between;
}
.order-gen-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.order-query-box {
  display: flex;
  gap: 8px;
  align-items: center;
}
.order-summary-box {
  width: 270px;
  background: #f8fafc;
  border: 1px solid #eceef2;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13.5px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================= */
@media (max-width: 1120px) {
  .zone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-search input {
    width: 180px;
  }
}

@media (max-width: 920px) {
  .learn-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .side-list {
    position: static;
  }
  #sideItems {
    max-height: 210px !important;
  }
  .plan-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .container {
    padding: 0 16px;
  }
  .nav-inner {
    flex-wrap: wrap;
    padding: 10px 0 0;
    gap: 10px;
  }
  .nav-left {
    display: contents;
  }
  .brand {
    order: 1;
    font-size: 15.5px;
  }
  .nav-right {
    order: 2;
    margin-left: auto;
  }
  .nav-search {
    display: none;
  }
  .nav-links {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 8px 0 10px;
    border-top: 1px solid #f2f4f7;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 680px) {
  .zone-section {
    padding: 20px 0 14px;
  }
  .zone-head h1,
  .courses-title-row h2 {
    font-size: 18px;
  }
  .zone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .zone-card {
    padding: 12px 12px;
    gap: 10px;
  }
  .zone-icon-wrap {
    width: 38px;
    height: 38px;
  }
  .zone-icon-wrap img {
    width: 22px;
    height: 22px;
  }
  .zone-info {
    min-width: 0;
  }
  .zone-info h3 {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .zone-meta {
    font-size: 11.5px;
  }

  .filter-row {
    flex-direction: column;
    gap: 6px;
  }
  .filter-label {
    width: auto;
    font-size: 12.5px;
    font-weight: 600;
    padding-top: 0;
  }
  .filter-pills {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .f-pill {
    flex-shrink: 0;
  }

  .toolbar-row {
    gap: 10px;
  }
  .inline-search {
    flex: 1;
    min-width: 0;
  }
  .inline-search input {
    width: 100%;
  }

  .course-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cycle-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  .cycle-tab {
    padding: 9px 10px;
    justify-content: flex-start;
  }
  .cycle-tab .ct-title {
    font-size: 14px;
  }

  .article-box {
    padding: 20px 16px;
  }
  .article-box h1 {
    font-size: 19px !important;
  }
  .article-rich .tut-table {
    display: block;
    overflow-x: auto;
  }
  .article-rich .tut-table th,
  .article-rich .tut-table td {
    min-width: 110px;
  }

  .order-page {
    padding: 18px 0 44px;
  }
  .order-gen-bar {
    padding: 14px;
  }
  .order-gen-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
  }
  .order-gen-fields select,
  .order-gen-fields input {
    width: 100% !important;
  }
  .order-gen-fields button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .order-query-box {
    width: 100%;
  }
  .order-query-box input {
    flex: 1;
    width: auto !important;
  }
  .order-card {
    padding: 18px 15px;
  }
  .order-kv-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .order-summary-box {
    width: 100%;
  }

  .login-card {
    padding: 28px 20px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
