:root {
  --ahu-primary: #ff5a1f;
  --ahu-primary-pressed: #e94d16;
  --ahu-primary-light: #fff4ef;
  --ahu-primary-softer: #fff8f5;
  --ahu-primary-border: #f6b28f;
  --ahu-text-main: #222222;
  --ahu-text-regular: #555555;
  --ahu-text-secondary: #999999;
  --ahu-bg-page: #f7f7f8;
  --ahu-bg-card: #ffffff;
  --ahu-bg-soft: #fafafa;
  --ahu-border: #eeeeee;
  --ahu-divider: #f2f2f2;
  --ahu-hot: #ff4d2e;
  --ahu-blue: #409eff;
  --ahu-green: #1fc48d;
  --ahu-gold: #d6aa4f;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ahu-text-main);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eef0f4;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.phone-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.app-screen {
  position: relative;
  width: min(100vw, 390px);
  height: min(100vh - 48px, 844px);
  min-height: 680px;
  overflow: hidden;
  background: var(--ahu-bg-page);
  border: 1px solid #dedede;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgb(32 38 48 / 18%);
}

#page-root {
  height: 100%;
}

.page {
  height: 100%;
  overflow-y: auto;
  padding: 0 14px 92px;
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 4px;
  color: var(--ahu-text-main);
  font-size: 12px;
  font-weight: 700;
}

.status-bar div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-bar i {
  display: block;
  background: var(--ahu-text-main);
}

.status-bar i:nth-child(1) {
  width: 16px;
  height: 9px;
  border-radius: 2px;
}

.status-bar i:nth-child(2) {
  width: 14px;
  height: 10px;
  border-radius: 8px 8px 2px 2px;
}

.status-bar i:nth-child(3) {
  width: 20px;
  height: 10px;
  border-radius: 3px;
}

.top-bar,
.title-bar,
.learning-head,
.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.category-switch {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 24px 7px 0;
  background: transparent;
  position: relative;
}

.category-switch strong {
  font-size: 18px;
  font-weight: 700;
}

.category-switch span {
  color: var(--ahu-text-secondary);
  font-size: 12px;
}

.category-switch::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 18px;
  border: 5px solid transparent;
  border-top-color: #666666;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ahu-bg-card);
  position: relative;
}

.message-dot::before,
.small-gear::before,
.headset::before,
.settings::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid #5d6470;
  border-radius: 50%;
}

.message-dot i {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--ahu-hot);
  border-radius: 50%;
}

.business-tabs {
  display: flex;
  gap: 24px;
  margin: 2px 0 12px;
}

.business-tabs button {
  padding: 0 0 8px;
  background: transparent;
  color: var(--ahu-text-secondary);
  font-size: 15px;
  font-weight: 600;
  position: relative;
}

.business-tabs .active {
  color: var(--ahu-primary);
}

.business-tabs .active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--ahu-primary);
}

.hero-banner {
  min-height: 132px;
  padding: 17px 18px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  background:
    radial-gradient(circle at 84% 18%, #ffe3d6 0 18%, transparent 19%),
    linear-gradient(125deg, #ff6333 0%, #ff8841 52%, #fff1dd 100%);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.hero-banner p,
.hero-banner h1,
.hero-banner em {
  margin: 0;
}

.hero-banner p {
  font-size: 13px;
  opacity: .92;
}

.hero-banner h1 {
  margin-top: 7px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-banner em {
  display: block;
  margin-top: 7px;
  color: rgb(255 255 255 / 86%);
  font-size: 12px;
  font-style: normal;
}

.hero-banner span {
  display: inline-flex;
  margin-top: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ahu-primary);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  align-self: center;
  flex: 0 0 96px;
  height: 92px;
  position: relative;
}

.hero-visual span {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgb(140 60 10 / 14%);
}

.hero-visual span:nth-child(1) {
  width: 62px;
  height: 74px;
  right: 0;
  top: 8px;
}

.hero-visual span:nth-child(2) {
  width: 48px;
  height: 60px;
  left: 0;
  bottom: 0;
  background: #fff7ed;
}

.hero-visual span:nth-child(3) {
  width: 38px;
  height: 10px;
  right: 12px;
  top: 34px;
  background: #ffd0bd;
  box-shadow: none;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.banner-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 60%);
}

.banner-dots i:first-child {
  width: 13px;
  background: #ffffff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 12px;
  column-gap: 6px;
  margin: 12px -2px 4px;
  padding: 14px 0 12px;
  background: var(--ahu-bg-card);
  border-radius: 8px;
}

.quick-entry,
.tool-row button,
.profile-card button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
  font-size: 12px;
  color: var(--ahu-text-regular);
}

.quick-entry span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: inset 0 -5px 10px rgb(255 255 255 / 58%);
}

.quick-entry span::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: rgb(255 255 255 / 34%);
}

.quick-entry span::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.quick-entry span i {
  position: absolute;
  left: 16px;
  bottom: 13px;
  width: 13px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.quick-entry .quick-image {
  overflow: hidden;
  background: var(--ahu-bg-soft);
  box-shadow: none;
}

.quick-entry .quick-image::before,
.quick-entry .quick-image::after {
  content: none;
}

.quick-entry .quick-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-entry.course span { background: #fff2eb; color: var(--ahu-primary); }
.quick-entry.paper span { background: #edf6ff; color: var(--ahu-blue); }
.quick-entry.material span { background: #fff7e5; color: var(--ahu-gold); }
.quick-entry.live span { background: #ecfff8; color: var(--ahu-green); }
.quick-entry.exam span { background: #fff0f0; color: #f05252; }
.quick-entry.wrongBook span { background: #f4f1ff; color: #8b5cf6; }
.quick-entry.freeMaterial span { background: #ecfff8; color: var(--ahu-green); }
.quick-entry.studyPlan span { background: #fff7e5; color: var(--ahu-gold); }

.quick-entry strong {
  max-width: 64px;
  min-height: 17px;
  overflow: hidden;
  color: var(--ahu-text-regular);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  transform: translateX(-50%);
  max-width: min(340px, calc(100vw - 32px));
  border-radius: 999px;
  background: rgb(34 34 34 / 88%);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 18px;
  box-shadow: 0 10px 28px rgb(0 0 0 / 18%);
  white-space: nowrap;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}

.section-header h2 {
  margin: 0;
  padding-left: 9px;
  border-left: 4px solid var(--ahu-primary);
  font-size: 17px;
  line-height: 1;
}

.section-header button,
.learning-head button,
.user-card button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  color: var(--ahu-text-secondary);
  font-size: 12px;
}

.section-header button span {
  font-size: 16px;
  line-height: 1;
}

.live-card,
.course-card,
.stats-card,
.vip-card,
.bank-item,
.resume-card,
.learning-row,
.profile-card,
.watch-card,
.official-banner,
.news-list,
.premium-list {
  background: var(--ahu-bg-card);
  border-radius: 8px;
}

.live-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.live-time {
  width: 58px;
  text-align: center;
  border-right: 1px solid var(--ahu-divider);
}

.live-time strong {
  display: block;
  color: var(--ahu-primary);
  font-size: 18px;
}

.live-time span,
.live-main p,
.course-info em,
.course-info small,
.bank-main em,
.learning-row em,
.watch-card p,
.version,
.learning-head p,
.resume-card p,
.premium-item em {
  color: var(--ahu-text-secondary);
  font-size: 12px;
  font-style: normal;
}

.live-main {
  min-width: 0;
  flex: 1;
}

.live-main h2 {
  margin: 0 0 4px;
  font-size: 14px;
}

.live-card > button,
.vip-card button,
.resume-card button,
.watch-card button {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ahu-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.course-list {
  display: grid;
  gap: 10px;
}

.course-card,
.bank-item,
.learning-row {
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 12px;
  text-align: left;
}

.course-cover {
  flex: 0 0 82px;
  height: 92px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 44%), transparent 42%),
    linear-gradient(145deg, #ff814e, #ff5a1f);
  position: relative;
}

.course-cover i {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ahu-primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.course-cover.blue {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 44%), transparent 42%),
    linear-gradient(145deg, #50b2ff, #409eff);
}

.course-cover.blue i {
  color: var(--ahu-blue);
}

.course-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-info strong,
.bank-main strong,
.learning-row strong {
  color: var(--ahu-text-main);
  font-size: 15px;
  line-height: 1.35;
}

.tag-row,
.bank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-row i,
.bank-tags i {
  padding: 2px 5px;
  border: 1px solid var(--ahu-primary-border);
  border-radius: 4px;
  background: var(--ahu-primary-softer);
  color: var(--ahu-primary-pressed);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-row b {
  color: var(--ahu-hot);
  font-size: 18px;
}

.premium-list {
  display: grid;
}

.premium-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  column-gap: 10px;
  align-items: center;
  padding: 13px 12px;
  background: transparent;
  text-align: left;
  border-bottom: 1px solid var(--ahu-divider);
}

.premium-item:last-child {
  border-bottom: 0;
}

.premium-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ahu-primary-light);
  color: var(--ahu-primary);
  font-size: 13px;
  font-weight: 800;
}

.premium-item strong {
  min-width: 0;
  color: var(--ahu-text-main);
  font-size: 15px;
}

.premium-item em {
  grid-column: 2;
  margin-top: 4px;
}

.premium-item b {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--ahu-primary);
  font-size: 17px;
}

.news-list {
  display: grid;
}

.news-list button {
  padding: 13px 12px;
  background: transparent;
  text-align: left;
  color: var(--ahu-text-regular);
  font-size: 14px;
  border-bottom: 1px solid var(--ahu-divider);
}

.news-list button:last-child {
  border-bottom: 0;
}

.title-bar h1 {
  margin: 0;
  font-size: 18px;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 8px;
  margin-top: 8px;
  text-align: center;
}

.stats-card div {
  border-right: 1px solid var(--ahu-divider);
}

.stats-card div:last-child {
  border-right: 0;
}

.stats-card strong {
  display: block;
  color: var(--ahu-primary);
  font-size: 21px;
}

.stats-card span {
  color: var(--ahu-text-secondary);
  font-size: 12px;
}

.daily-button {
  width: 100%;
  margin: 12px 0;
  padding: 13px;
  border-radius: 8px;
  background: var(--ahu-primary);
  color: #ffffff;
  font-weight: 700;
}

.vip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  background:
    radial-gradient(circle at right 20%, #ffdfca 0 18%, transparent 19%),
    linear-gradient(130deg, #fff4ef, #ffffff 62%);
  border: 1px solid #ffe1d3;
}

.vip-card p,
.vip-card h2 {
  margin: 0;
}

.vip-card p {
  color: var(--ahu-primary);
  font-size: 13px;
  font-weight: 700;
}

.vip-card h2 {
  margin-top: 5px;
  font-size: 16px;
}

.vip-card span {
  display: block;
  margin-top: 5px;
  color: var(--ahu-text-secondary);
  font-size: 12px;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  padding: 13px 0;
  background: var(--ahu-bg-card);
  border-radius: 8px;
}

.tool-row span {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ahu-primary-light);
  color: var(--ahu-primary);
  font-size: 11px;
}

.tool-row span::after,
.profile-card button span::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.bank-list,
.learning-list {
  display: grid;
  gap: 10px;
}

.bank-cover {
  flex: 0 0 76px;
  height: 92px;
  border-radius: 6px;
  background: linear-gradient(145deg, #ff7a45, #ffe2d2);
}

.bank-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bank-item small,
.learning-row small {
  align-self: flex-end;
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--ahu-primary-light);
  color: var(--ahu-primary);
  font-size: 12px;
  font-weight: 700;
}

.learning-head {
  padding-top: 14px;
}

.learning-head h1 {
  margin: 0 0 3px;
  font-size: 18px;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
  padding: 10px 8px;
  background: var(--ahu-bg-card);
  border-radius: 8px;
}

.calendar-strip button {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 6px 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ahu-text-secondary);
}

.calendar-strip strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.calendar-strip .active strong {
  background: var(--ahu-primary);
  color: #ffffff;
}

.resume-card {
  margin-top: 12px;
  padding: 15px;
}

.resume-card span {
  color: var(--ahu-primary);
  font-size: 13px;
  font-weight: 700;
}

.resume-card h2 {
  margin: 6px 0 4px;
  font-size: 16px;
}

.resume-card button {
  margin-top: 11px;
}

.seg-tabs {
  display: flex;
  gap: 20px;
  margin: 15px -14px 10px;
  padding: 0 14px 9px;
  background: var(--ahu-bg-page);
  border-bottom: 1px solid var(--ahu-divider);
}

.seg-tabs button {
  padding: 0 0 7px;
  background: transparent;
  color: var(--ahu-text-secondary);
  font-weight: 700;
}

.seg-tabs .active {
  color: var(--ahu-text-main);
  border-bottom: 3px solid var(--ahu-primary);
}

.lesson-cover {
  flex: 0 0 78px;
  height: 48px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 44%), transparent),
    linear-gradient(145deg, #ff8b51, #ff5a1f);
}

.learning-row span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.profile-page {
  background: var(--ahu-bg-page);
}

.profile-actions {
  padding-top: 14px;
}

.profile-actions div {
  display: flex;
  gap: 8px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border-radius: 12px;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff8d57, #ff5a1f);
  color: #ffffff;
  font-weight: 800;
}

.user-card div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.user-card h1 {
  margin: 0 0 5px;
  font-size: 18px;
}

.user-card p,
.official-banner p {
  margin: 0;
  color: var(--ahu-text-secondary);
  font-size: 12px;
}

.watch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 15px;
}

.watch-card span {
  color: var(--ahu-primary);
  font-size: 12px;
  font-weight: 700;
}

.watch-card h2 {
  margin: 6px 0 3px;
  font-size: 15px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 6px;
  margin-top: 12px;
  padding: 18px 8px;
  border-radius: 12px;
}

.icon-grid button span {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ahu-bg-soft);
  color: var(--ahu-primary);
}

.utility-grid {
  grid-template-columns: repeat(4, 1fr);
}

.official-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  background: #1f2d3d;
  color: #ffe0a6;
}

.official-banner h2 {
  margin: 0 0 5px;
  font-size: 15px;
}

.official-banner button {
  padding: 7px 13px;
  border-radius: 999px;
  background: #d6aa4f;
  color: #1f2d3d;
  font-size: 12px;
  font-weight: 700;
}

.version {
  padding: 20px 0 2px;
  text-align: center;
}

.floating-service {
  position: absolute;
  right: 14px;
  bottom: 92px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  gap: 1px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ahu-primary);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgb(255 90 31 / 22%);
}

.floating-service span {
  width: 25px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 8px 8px;
  position: relative;
}

.floating-service span::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.floating-service strong {
  font-size: 11px;
}

.bottom-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 72px;
  padding-bottom: env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid var(--ahu-divider);
}

.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: var(--ahu-text-secondary);
  font-size: 11px;
}

.tab-button.active {
  color: var(--ahu-primary);
  font-weight: 700;
}

.tab-icon {
  position: relative;
  width: 23px;
  height: 23px;
}

.tab-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.icon-home::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 1px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-bank::before {
  border-radius: 3px;
}

.icon-learning::before {
  border-radius: 50%;
}

.icon-profile::before {
  border-radius: 50% 50% 45% 45%;
}

@media (max-width: 520px) {
  .phone-shell {
    padding: 0;
  }

  .app-screen {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
