: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;
  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: #f0f2f5;
}

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: 14px 14px 92px;
  scrollbar-width: none;
}

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

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

.category-switch {
  padding: 8px 24px 8px 0;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  position: relative;
}

.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::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--ahu-hot);
  border-radius: 50%;
}

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

.business-tabs button {
  padding: 0 0 8px;
  background: transparent;
  color: var(--ahu-text-secondary);
  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: 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, #ff6a2a 0%, #ff8c3d 52%, #fff1dd 100%);
  color: #ffffff;
  overflow: hidden;
}

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

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

.hero-banner h1 {
  margin-top: 8px;
  font-size: 23px;
  line-height: 1.22;
}

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

.hero-visual {
  align-self: center;
  width: 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;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  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;
}

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

.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: #d6aa4f; }
.quick-entry.live span { background: #ecfff8; color: var(--ahu-green); }

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

.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 {
  background: transparent;
  color: var(--ahu-text-secondary);
  font-size: 12px;
}

.live-card,
.course-card,
.stats-card,
.vip-card,
.bank-item,
.resume-card,
.learning-row,
.profile-card,
.watch-card,
.official-banner,
.news-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 {
  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 / 40%), transparent 42%),
    linear-gradient(145deg, #ff814e, #ff5a1f);
}

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

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

.course-info strong,
.bank-main strong,
.learning-row strong {
  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;
  color: var(--ahu-primary);
  font-size: 11px;
  font-style: normal;
}

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

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

.news-list {
  display: grid;
}

.news-list button {
  padding: 13px 12px;
  background: transparent;
  text-align: left;
  color: var(--ahu-text-regular);
  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;
}

.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 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 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: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ahu-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgb(255 90 31 / 28%);
}

.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;
  }
}
