:root {
    --portal-background: #fff;
    --portal-foreground: #1d1d1f;
    --portal-muted: #6e6e73;
    --portal-secondary: #f5f5f7;
    --portal-primary: #01a9f5;
    --portal-accent: #28c9ae;
    --portal-border: rgba(29, 29, 31, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portal-body {
    margin: 0;
    overflow-x: hidden;
    background: var(--portal-background);
    color: var(--portal-foreground);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.portal-body a { color: inherit; text-decoration: none; }
.portal-body button, .portal-body input { font: inherit; }
.portal-body button { cursor: pointer; }
.portal-body img { display: block; max-width: 100%; }
.portal-body p, .portal-body h1, .portal-body h2, .portal-body h3 { margin-top: 0; }
.portal-body ::selection { background: var(--portal-primary); color: #fff; }

.site-nav {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.nav-inner {
    display: flex;
    width: min(100% - 40px, 1180px);
    height: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}
.site-brand { display: flex; align-items: center; }
.site-logo { width: auto; height: 32px; filter: none; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 20px; color: #424245; font-size: 12px; font-weight: 400; }
.desktop-nav a, .footer-links a { transition: color .2s ease; }
.desktop-nav a:hover, .footer-links a:hover { color: #000; }
.nav-actions { display: flex; align-items: center; gap: 16px; color: #424245; font-size: 12px; font-weight: 400; }
.nav-actions a:not(.apple-button) { color: #424245; font-size: 12px; font-weight: 400; white-space: nowrap; transition: color .2s ease; }
.nav-actions a:not(.apple-button):hover { color: #000; }
.nav-user {
    display: inline-flex;
    max-width: 168px;
    overflow: hidden;
    align-items: center;
    gap: 8px;
    color: #424245;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}
.nav-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 50%;
    background: #f5f5f7;
    object-fit: cover;
}
.nav-user-name { overflow: hidden; text-overflow: ellipsis; }
.nav-user.is-highlight { color: #7c3aed; font-weight: 700; max-width: 196px; }
.nav-user.is-highlight .nav-user-name::after { content: "✦"; margin-left: 4px; font-size: 11px; }
.nav-user.is-link { color: #0f766e; font-weight: 500; cursor: pointer; }
.nav-user.is-link:hover { color: #0b5c55; }
.nav-user.is-link:hover .nav-user-name { text-decoration: underline; }
.nav-account { position: relative; }
.nav-account summary {
    display: flex;
    min-height: 32px;
    padding: 7px 13px;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
    transition: background .2s ease;
}
.nav-account summary::-webkit-details-marker { display: none; }
.nav-account summary:hover, .nav-account[open] summary { background: #e8e8ed; }
.nav-account summary svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; transition: transform .2s ease; }
.nav-account[open] summary svg { transform: rotate(180deg); }
.nav-account-menu {
    position: absolute;
    z-index: 110;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: 210px;
    padding: 8px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 50px rgba(0,0,0,.14);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.nav-actions .nav-account-menu a { padding: 10px 12px; border-radius: 10px; color: #1d1d1f; font-size: 13px; }
.nav-actions .nav-account-menu a:hover { background: #f5f5f7; }
.nav-account-divider { height: 1px; margin: 6px 8px; background: var(--portal-border); }
.nav-actions .nav-account-menu .nav-account-logout { color: #d70015; }
.member-shell { display: flex; width: min(100% - 40px, 1180px); margin: 0 auto; gap: 32px; padding: 64px 0 64px; align-items: flex-start; }
.member-sidebar { flex: 0 0 220px; position: sticky; top: 72px; }
.member-sidebar-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #1d1d1f; }
.member-nav { display: flex; flex-direction: column; gap: 4px; }
.member-nav-item { display: block; padding: 9px 12px; border-radius: 8px; color: #424245; font-size: 14px; font-weight: 400; transition: background .15s ease, color .15s ease; }
.member-nav-item:hover { background: rgba(0, 0, 0, .04); color: #000; }
.member-nav-item.is-active { background: #0f766e; color: #fff; font-weight: 500; }
.member-content { flex: 1 1 auto; min-width: 0; }
.member-content .page-head, .member-content .mc-page-head, .member-content .mh-head { margin-top: 0; }
.member-content .survey-section {
    min-height: 0;
    padding: 0;
    background: transparent;
}
.member-content .survey-shell,
.member-content .points-shell,
.member-content .shop-shell { width: 100%; margin: 0; }
@media (max-width: 860px) {
    .member-shell { flex-direction: column; gap: 16px; width: min(100% - 32px, 640px); }
    .member-sidebar { position: static; flex: none; width: 100%; }
    .member-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .member-nav-item { padding: 7px 10px; }
}
.apple-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;    background: var(--portal-primary);
    padding: 11px 17px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, transform .2s ease;
}
.apple-button:hover { background: var(--portal-accent); transform: none; }
.nav-login { padding: 6px 16px; }
.menu-toggle { display: none; width: 32px; height: 32px; padding: 7px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; margin: 4px 0; background: #1d1d1f; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .96);
    font-size: 14px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .mobile-logout { color: #d70015; }

/* 通用后台/列表工具样式（门户 _Layout 与学员管理后台 _MemberLayout 共用；原内联于 _Layout） */
.portal-body .page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 64px 0 16px; }
.portal-body .page-head h1 { margin: 0; font-size: 24px; }
.portal-body .btn, .portal-body .btn-link {
    display: inline-block; padding: 8px 14px; border-radius: 6px; text-decoration: none;
    font-size: 14px; border: none; cursor: pointer; background: transparent; color: #0f766e;
}
.portal-body .btn-primary { background: #0f766e; color: #fff; }
.portal-body .btn-outline { border: 1px solid #0f766e; color: #0f766e; background: #fff; }
.portal-body .btn-link.danger { color: #c23b2e; }
.portal-body .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.portal-body .filters { display: flex; gap: 8px; margin-bottom: 16px; }
.portal-body .filters input, .portal-body .qty-input { padding: 8px 10px; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; }
.portal-body .qty-input { width: 72px; }
.portal-body .data-table { width: 100%; border-collapse: collapse; background: #fff; }
.portal-body .data-table th, .portal-body .data-table td { border-bottom: 1px solid rgba(0,0,0,.08); padding: 10px 12px; text-align: left; font-size: 14px; }
.portal-body .inline-form { display: inline-flex; align-items: center; gap: 8px; }
.portal-body .ops { display: flex; gap: 8px; align-items: center; }
.portal-body .flash { margin: 0 0 12px; }
.portal-body .flash-ok { color: #1b7a4a; }
.portal-body .flash-err { color: #c23b2e; }
.portal-body .flash-info { color: #86868b; }
.portal-body .empty, .portal-body .muted, .portal-body .pager { color: #86868b; }
.portal-body .pager { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.portal-body .cart-total { font-weight: 600; margin: 16px 0; }
.portal-body .portal-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.portal-body .section-title { font-size: 16px; margin: 24px 0 12px; }
.portal-body .form-grid { display: grid; gap: 12px; max-width: 480px; margin-top: 8px; }
.portal-body .form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.portal-body .form-grid input { padding: 8px 10px; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; }
.portal-body .order-meta { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.portal-body .order-meta p { margin: 0 0 8px; }
.portal-body .order-meta p:last-child { margin-bottom: 0; }

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 140px 20px 48px;
    background: var(--portal-secondary);
}
.hero-orb {
    position: absolute;
    top: -352px;
    left: 50%;
    width: 1120px;
    height: 800px;
    pointer-events: none;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(46,238,250,.16), rgba(157,246,105,.08) 36%, transparent 70%);
    filter: blur(8px);
}
.hero-copy { position: relative; width: min(100%, 980px); margin: 0 auto; text-align: center; }
.hero-kicker { margin-bottom: 16px; color: var(--portal-muted); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.hero-copy h1 {
    margin-bottom: 48px;
    color: #1d1d1f;
    font-size: clamp(50px, 7.7vw, 98px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.065em;
}
.hero-gradient {
    background: linear-gradient(90deg, #00a8c2, #2aaa3d);
    background-clip: text;
    color: #00a8c2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-summary { max-width: 600px; margin: 0 auto; color: var(--portal-muted); font-size: 21px; line-height: 1.52; letter-spacing: -.02em; }
.search-box {
    display: flex;
    max-width: 620px;
    margin: 36px auto 0;
    padding: 6px;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transition: border .2s ease, box-shadow .2s ease;
}
.search-box:focus-within { border-color: rgba(0, 0, 0, .25); box-shadow: 0 16px 40px rgba(0, 0, 0, .12); }
.search-box > svg { width: 19px; height: 19px; margin-left: 16px; flex: none; color: var(--portal-muted); fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.75; }
.search-box input { min-width: 0; flex: 1; padding: 12px; border: 0; outline: 0; background: transparent; color: #1d1d1f; font-size: 15px; }
.search-box input::placeholder { color: #86868b; }
.search-box input:focus, .search-box input:focus-visible { border: 0; outline: 0; box-shadow: none; }
.arrow-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.hero-feature {
    position: relative;
    width: min(100%, 1110px);
    height: 430px;
    margin: 56px auto 0;
    overflow: hidden;
    border-radius: 30px;
    background: #0b1220;
    box-shadow: 0 30px 80px rgba(24, 28, 38, .24);
}
.hero-feature > img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.hero-feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,12,22,.92), rgba(7,12,22,.12) 72%); }
.hero-feature-copy { position: absolute; right: 48px; bottom: 44px; left: 48px; color: #fff; }
.hero-feature-copy > p { margin-bottom: 0; color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500; }
.hero-feature-copy h2 { max-width: none; margin: 8px 0 0; font-size: 45px; font-weight: 600; line-height: 1.32; letter-spacing: -.04em; word-break: keep-all; }
.hero-feature-line-primary { display: block; white-space: nowrap; }
.hero-feature-line-secondary { display: block; }
.hero-feature-copy .text-link { margin-top: 20px; color: #fff !important; }

.content-section, .section-container { width: min(100% - 40px, 1180px); margin: 0 auto; }
.content-section { padding-top: 112px; padding-bottom: 112px; }
.courses-section, .events-section { padding: 112px 0; background: var(--portal-secondary); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.eyebrow { margin-bottom: 0; color: var(--portal-muted); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.section-heading h2 { margin: 7px 0 0; color: #1d1d1f; font-size: clamp(38px, 5vw, 58px); font-weight: 600; line-height: 1.04; letter-spacing: -.055em; }
.text-link { display: inline-flex; flex: none; align-items: center; gap: 8px; color: var(--portal-primary) !important; font-size: 15px; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.content-card { overflow: hidden; border-radius: 24px; background: #fff; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.works-grid .content-card { border: 1px solid rgba(0,0,0,.08); }
.content-card:hover { transform: translateY(-5px); box-shadow: 0 18px 35px rgba(0,0,0,.11); }
.card-image { aspect-ratio: 1.35; overflow: hidden; background: #e8e8ed; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.content-card:hover .card-image img { transform: scale(1.045); }
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 0; font-size: 21px; font-weight: 600; letter-spacing: -.035em; }
.card-body > p { margin: 4px 0 0; color: var(--portal-muted); font-size: 14px; }
.card-meta { display: flex; margin-top: 20px; padding-top: 16px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(0,0,0,.08); color: var(--portal-muted); font-size: 14px; }
.card-meta strong { color: #1d1d1f; font-weight: 500; }
.course-tabs { display: flex; gap: 8px; margin-top: 36px; overflow-x: auto; scrollbar-width: none; }
.course-tabs::-webkit-scrollbar { display: none; }
.course-tab { flex: none; padding: 8px 16px; border: 0; border-radius: 999px; background: #fff; color: #424245; font-size: 14px; font-weight: 500; transition: background .2s ease, color .2s ease; }
.course-tab:hover { background: #e8e8ed; }
.course-tab.active { background: #1d1d1f; color: #fff; }
.course-grid { margin-top: 36px; }
.course-image { position: relative; aspect-ratio: 1.42; }
.course-image span { position: absolute; top: 16px; left: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; backdrop-filter: blur(8px); }
.course-body > p { margin: 0; font-size: 13px; }
.course-body h3 { min-height: 50px; margin-top: 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.03em; }
.course-body .text-link { margin-top: 20px; font-size: 14px; }
.empty-result { padding: 48px 0; color: var(--portal-muted); text-align: center; }
.searchable-card[hidden] { display: none; }

.hardware-panel { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border-radius: 32px; background: #101010; color: #fff; }
.hardware-copy { display: flex; padding: 56px; flex-direction: column; justify-content: center; }
.hardware-copy > p:first-child { margin-bottom: 0; color: rgba(255,255,255,.55); font-size: 15px; font-weight: 600; }
.hardware-copy h2 { margin: 12px 0 0; font-size: clamp(42px, 5vw, 58px); font-weight: 600; line-height: 1.03; letter-spacing: -.055em; }
.hardware-summary { max-width: 420px; margin: 20px 0 0; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.65; }
.hardware-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.light-button, .outline-button, .event-button {
    display: inline-flex;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: transform .2s ease, background .2s ease;
}
.light-button { border: 0; background: #fff; color: #1d1d1f !important; }
.outline-button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff !important; }
.light-button:hover, .event-button:hover { transform: scale(1.03); }
.outline-button:hover { background: rgba(255,255,255,.1); }
.hardware-visual { position: relative; min-height: 420px; background: radial-gradient(circle at 50% 48%,#244f99,transparent 55%),linear-gradient(135deg,#101824,#05070a); }
.hardware-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: .8; }
.hardware-visual::after { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%,transparent,rgba(0,0,0,.5)); content: ""; }

.event-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; margin-top: 44px; }
.event-grid-single { grid-template-columns: 1fr; }
.featured-event, .upcoming-event {
    display: flex;
    min-height: 420px;
    padding: 44px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
}
.featured-event { background: #1c2544; color: #fff; }
.upcoming-event { background: #fff; }
.featured-event > p:first-child { margin-bottom: 0; color: rgba(255,255,255,.6); font-size: 14px; }
.upcoming-event > p:first-child { margin-bottom: 0; color: var(--portal-muted); font-size: 14px; font-weight: 600; }
.featured-event h3, .upcoming-event h3 { margin: 16px 0 0; font-size: clamp(36px, 4.5vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -.05em; }
.upcoming-event h3 { font-size: 31px; line-height: 1.08; letter-spacing: -.045em; }
.event-summary { max-width: 440px; margin: 20px 0 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.75; }
.upcoming-event .event-summary { color: var(--portal-muted); }
.event-button { margin-top: 70px; border: 0; background: var(--portal-primary); color: #fff !important; }
.upcoming-event .text-link { margin-top: 48px; }

.nav-register { color: #424245; font-size: 12px; font-weight: 400; }
.page-hero {
  position: relative;
  min-height: 560px;
  padding: 150px 20px 90px;
  overflow: hidden;
}
.page-hero::before {
  position: absolute;
  inset: -30% 20% auto;
  height: 620px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .48);
  content: "";
  filter: blur(90px);
}
.page-hero-inner {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}
.page-hero .eyebrow { color: rgba(29, 29, 31, .65); }
.page-hero h1 {
  max-width: 900px;
  margin: 16px auto 0;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.065em;
}
.page-hero-inner > p:last-of-type {
  max-width: 650px;
  margin: 28px auto 0;
  color: rgba(29, 29, 31, .66);
  font-size: 20px;
  line-height: 1.65;
}
.page-hero .apple-button { margin-top: 32px; }
.page-hero-violet { background: linear-gradient(145deg, #f4efff, #eef7ff 62%, #fff); }
.page-hero-blue { background: linear-gradient(145deg, #eaf5ff, #f5f5f7 60%, #fff); }
.page-hero-warm { background: linear-gradient(145deg, #fff2e8, #fff8f2 58%, #fff); }
.page-hero-pink { background: linear-gradient(145deg, #fff0f6, #f4efff 58%, #fff); }
.page-hero-mint { background: linear-gradient(145deg, #e8fbf6, #edf8ff 58%, #fff); }
.page-hero-indigo, .page-hero-dark {
  background: radial-gradient(circle at 50% 15%, #284e95, transparent 48%),
    linear-gradient(145deg, #101824, #05070a);
  color: #fff;
}
.page-hero-indigo { background: radial-gradient(circle at 50% 5%, #4855a5, transparent 50%), #15192d; }
.page-hero-dark .eyebrow,
.page-hero-indigo .eyebrow { color: rgba(255, 255, 255, .6); }
.page-hero-dark .page-hero-inner > p:last-of-type,
.page-hero-indigo .page-hero-inner > p:last-of-type { color: rgba(255, 255, 255, .68); }

.listing-section {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 88px 0 112px;
}
.listing-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.list-search, .query-input { display: grid; gap: 9px; color: var(--portal-muted); font-size: 13px; }
.list-search input, .query-input input {
  width: min(440px, 78vw);
  padding: 14px 18px;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  outline: 0;
  background: #f5f5f7;
  color: #1d1d1f;
}
.list-search input:focus {
  border-color: rgba(29, 29, 31, .35);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, .05);
}
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f7;
  color: #424245;
  font-size: 14px;
  font-weight: 500;
}
.filter-chip.active { background: #1d1d1f; color: #fff; }
.standalone-chips { margin-bottom: 40px; }
.portal-card-grid { align-items: stretch; }
.portal-card-grid .content-card { border: 1px solid var(--portal-border); }
.card-label { margin-bottom: 7px !important; color: #1d1d1f !important; font-size: 12px !important; font-weight: 600; }
.card-link { display: inline-block; margin-top: 20px; color: #1d1d1f; font-size: 14px; font-weight: 500; }
.filterable-card[hidden] { display: none; }
.list-empty { padding: 64px 0; color: var(--portal-muted); text-align: center; }

.alternate-section { padding: 112px 0; background: #f5f5f7; }
.feature-split {
  display: grid;
  min-height: 550px;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border-radius: 32px;
  background: #f5f5f7;
}
.feature-copy { display: flex; padding: 64px; flex-direction: column; align-items: flex-start; justify-content: center; }
.feature-copy h2, .creator-callout h2, .about-intro h2, .follow-panel h2 {
  margin: 12px 0 0;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.055em;
}
.feature-copy > p:not(.eyebrow) {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--portal-muted);
  font-size: 17px;
  line-height: 1.7;
}
.feature-copy .apple-button { margin-top: 30px; }
.feature-image { min-height: 420px; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.feature-image:hover img { transform: scale(1.035); }
.mini-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.mini-card {
  padding: 34px;
  border: 1px solid var(--portal-border);
  border-radius: 24px;
  background: #fff;
}
.mini-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #f0f0f3;
  font-size: 22px;
}
.mini-card h3 { margin: 28px 0 0; font-size: 22px; letter-spacing: -.03em; }
.mini-card p { margin: 10px 0 0; color: var(--portal-muted); line-height: 1.65; }

.event-list { display: grid; gap: 20px; }
.event-list-card {
  display: block;
  min-height: 330px;
  padding: 52px;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--portal-border);
}
.event-list-card > div { max-width: 620px; }
.event-list-card p { margin-bottom: 0; color: var(--portal-muted); font-size: 14px; }
.event-list-card h2 { margin: 16px 0 28px; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.event-list-card span { font-size: 15px; font-weight: 500; }
.event-list-feature {
  background: radial-gradient(circle at 85% 20%, #4f68bd, transparent 38%), #1c2544;
  color: #fff !important;
  box-shadow: none;
}
.event-list-feature p { color: rgba(255, 255, 255, .62); }
.muted-event { background: #f5f5f7; }

.step-number { color: #86868b; font-size: 14px; font-weight: 600; }
.process-list {
  display: grid;
  max-width: 850px;
  margin: 48px 0 36px;
  padding: 0;
  gap: 12px;
  list-style: none;
}
.process-list li { display: flex; padding: 24px; gap: 20px; border-radius: 20px; background: #fff; }
.process-list li > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
}
.process-list h3 { margin-bottom: 0; font-size: 18px; }
.process-list p { margin: 5px 0 0; color: var(--portal-muted); line-height: 1.6; }
.disabled-button {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 999px;
  background: #d2d2d7;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 500;
}
.query-panel {
  display: flex;
  margin-top: 48px;
  padding: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: 28px;
  background: #f5f5f7;
}
.query-panel h3 { margin: 10px 0 0; font-size: 28px; letter-spacing: -.04em; }
.query-panel > div > p:last-child { max-width: 500px; margin: 12px 0 0; color: var(--portal-muted); line-height: 1.6; }
.query-input input:disabled { color: #86868b; cursor: not-allowed; }

.creator-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.creator-callout > div > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--portal-muted);
  font-size: 17px;
  line-height: 1.65;
}
.wide-story-card {
  display: grid;
  margin-top: 44px;
  grid-template-columns: 1.2fr .8fr;
  overflow: hidden;
  border-radius: 30px;
  background: #101010;
  color: #fff !important;
}
.wide-story-card img { width: 100%; height: 420px; object-fit: cover; opacity: .82; }
.wide-story-card > div { display: flex; padding: 44px; flex-direction: column; justify-content: center; }
.wide-story-card p { color: rgba(255, 255, 255, .6); font-size: 13px; }
.wide-story-card h3 { margin: 12px 0 28px; font-size: 32px; line-height: 1.15; letter-spacing: -.04em; }

.about-intro { max-width: 900px; }
.about-intro > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--portal-muted);
  font-size: 18px;
  line-height: 1.75;
}
.ncb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}
.page-hero .ncb-hero-actions .apple-button { margin-top: 0; }
.ncb-visual {
    background: radial-gradient(circle at 50% 48%, #244f99, transparent 55%), linear-gradient(135deg, #101824, #05070a);
}
.ncb-visual img { mix-blend-mode: screen; opacity: .82; }
.ncb-caption {
    margin: 16px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
}
.ncb-lead {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 18px;
    line-height: 1.7;
}
.ncb-scene-grid { margin-top: 36px; }
.ncb-panel-actions { justify-content: flex-start; margin-top: 28px; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.news-card { min-height: 300px; padding: 36px; border-radius: 24px; background: #fff; }
.news-card time { color: var(--portal-muted); font-size: 13px; }
.news-card h3 { margin: 42px 0 0; font-size: 28px; letter-spacing: -.04em; }
.news-card p { margin: 12px 0 30px; color: var(--portal-muted); line-height: 1.65; }
.news-card span { font-size: 14px; font-weight: 500; }
.news-placeholder { background: #e8e8ed; }
.follow-panel {
  display: flex;
  padding: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  border-radius: 32px;
  background: #101010;
  color: #fff;
}
.follow-panel .eyebrow { color: rgba(255, 255, 255, .55); }
.follow-panel > div:first-child > p:last-child { margin: 20px 0 0; color: rgba(255, 255, 255, .62); }
.qr-placeholder {
  display: grid;
  width: 170px;
  height: 170px;
  flex: none;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  color: #86868b;
  text-align: center;
}

.registration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.registration-card { display: flex; min-height: 430px; padding: 38px; flex-direction: column; align-items: flex-start; border-radius: 28px; background: #f5f5f7; }
.registration-card > p:first-child { color: var(--portal-muted); font-size: 14px; font-weight: 600; }
.registration-card h2 { margin: 20px 0 0; font-size: 34px; line-height: 1.08; letter-spacing: -.045em; }
.registration-card > p:not(:first-child) { margin: 18px 0 30px; color: var(--portal-muted); line-height: 1.65; }
.registration-card > a { margin-top: auto; }
.registration-primary { background: #eaf5ff; }
.dark-button { display: inline-flex; padding: 12px 18px; border-radius: 999px; background: #1d1d1f; color: #fff !important; font-size: 14px; font-weight: 500; }

.detail-page { padding: 118px 20px 112px; }
.course-detail-cta { margin-top: 26px; }
.course-placeholder-cover { box-shadow: 0 32px 80px rgba(24, 28, 38, .18); }
.course-placeholder-cover img { background: #071a33; }
.course-detail-content { width: min(100%, 980px); }
.course-story-block { width: min(100%, 760px); margin: 0 auto; text-align: center; }
.course-story-block h2, .course-curriculum > h2 { margin: 10px 0 0; font-size: clamp(40px, 5vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.course-story-block > p:last-child { margin: 24px 0 0; color: var(--portal-muted); font-size: 18px; line-height: 1.8; }
.course-detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 72px; }
.course-detail-facts section { min-height: 300px; padding: 42px; border-radius: 28px; background: var(--portal-secondary); }
.course-detail-facts section:last-child { background: linear-gradient(145deg, #eaf5ff, #f4efff); }
.course-detail-facts h2 { margin: 12px 0 0; font-size: 32px; letter-spacing: -.045em; }
.course-detail-facts section > p:last-child { margin: 20px 0 0; color: var(--portal-muted); font-size: 17px; line-height: 1.7; }
.course-curriculum { margin-top: 96px; }
.course-share-sheet {
    width: min(100%, 760px);
    margin: 96px auto 0;
    padding: 48px 12px 8px;
    border-top: 1px solid var(--portal-border);
    text-align: center;
}
.course-share-kicker {
    margin: 0;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
}
.course-share-sheet .course-share-title {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -.04em;
    line-height: 1.15;
}
.course-share-hint {
    max-width: 34em;
    margin: 14px auto 0;
    color: var(--portal-muted);
    font-size: 15px;
    line-height: 1.6;
}
.course-share-apps {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.course-share-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.course-share-app:disabled { opacity: .55; cursor: wait; }
.course-share-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.course-share-icon svg { width: 28px; height: 28px; }
.course-share-app:hover .course-share-icon {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
}
.course-share-app[data-share-platform="微信"] .course-share-icon { background: #07c160; }
.course-share-app[data-share-platform="QQ"] .course-share-icon { background: #12b7f5; }
.course-share-app[data-share-platform="小红书"] .course-share-icon { background: #ff2442; }
.course-share-status {
    margin: 18px 0 0;
    color: #0f766e;
    font-size: 14px;
}
.course-session-list { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.course-session-list li { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; border: 1px solid var(--portal-border); border-radius: 20px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.course-session-list li:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.07); }
.course-session-list span, .course-session-list small { color: var(--portal-muted); }
.course-search-control { display: flex; width: min(520px, 82vw); margin-top: 10px; align-items: center; border: 1px solid var(--portal-border); border-radius: 999px; background: var(--portal-secondary); transition: border .2s ease, box-shadow .2s ease; }
.course-search-control:focus-within { border-color: rgba(29,29,31,.35); box-shadow: 0 0 0 4px rgba(29,29,31,.05); }
.course-search-control svg { width: 19px; height: 19px; margin-left: 18px; flex: none; fill: none; stroke: var(--portal-muted); stroke-linecap: round; stroke-width: 1.75; }
.list-search .course-search-control input { width: 100%; border: 0; background: transparent; box-shadow: none; }
.detail-header { width: min(100%, 900px); margin: 0 auto; text-align: center; }
.detail-back { display: inline-block; margin-bottom: 48px; color: var(--portal-muted) !important; font-size: 14px; }
.detail-header h1 { margin: 14px 0 0; font-size: clamp(48px, 7vw, 82px); line-height: 1; letter-spacing: -.06em; }
.detail-summary { max-width: 700px; margin: 26px auto 0; color: var(--portal-muted); font-size: 21px; line-height: 1.6; }
.detail-meta { margin: 18px 0 0; font-size: 14px; font-weight: 600; }
.detail-cover { width: min(100%, 1180px); height: 580px; margin: 64px auto 0; overflow: hidden; border-radius: 32px; background: #e8e8ed; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { width: min(100%, 760px); margin: 70px auto 0; }
.detail-content h2 { font-size: 34px; letter-spacing: -.04em; }
.detail-content > p { color: var(--portal-muted); font-size: 18px; line-height: 1.8; }
.detail-placeholder { margin-top: 42px; padding: 30px; border-radius: 22px; background: #f5f5f7; }
.detail-placeholder h3 { margin-bottom: 0; }
.detail-placeholder p { margin: 10px 0 0; color: var(--portal-muted); line-height: 1.65; }

.site-footer { padding: 36px 20px; border-top: 1px solid rgba(0,0,0,.08); background: var(--portal-secondary); color: var(--portal-muted); font-size: 12px; }
.footer-inner { display: flex; width: min(100%, 1180px); margin: 0 auto; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner p { margin: 0; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; }
.site-footer__icp { margin: 0; }
.site-footer__icp a { color: inherit; text-decoration: none; }
.site-footer__icp a:hover { color: #000; text-decoration: underline; }
.footer-links { display: flex; gap: 20px; }

.portal-body :focus-visible { outline: 3px solid rgba(0,113,227,.35); outline-offset: 3px; }

.survey-section {
    min-height: calc(100vh - 48px);
    padding: 96px 20px 80px;
    background: var(--portal-secondary);
}
.survey-shell { width: min(100%, 720px); margin: 0 auto; }
.survey-kicker {
    margin: 0 0 8px;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.survey-title {
    margin: 0;
    color: #1d1d1f;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.045em;
}
.survey-lead {
    margin: 12px 0 0;
    color: var(--portal-muted);
    font-size: 17px;
    line-height: 1.55;
}
.survey-card {
    margin-top: 28px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .06);
}
.survey-flash {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}
.survey-flash-ok { background: rgba(52, 199, 89, .12); color: #1b7a4a; }
.survey-flash-err { background: rgba(255, 59, 48, .1); color: #c23b2e; }
.survey-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 500;
}
.survey-progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
}
.survey-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--portal-primary);
    transition: width .25s ease;
}
.survey-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}
.survey-step {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f5f5f7;
    color: #424245;
    font-size: 13px;
    font-weight: 500;
}
.survey-step.is-done { background: rgba(0, 113, 227, .12); color: var(--portal-primary); }
.survey-step.is-current {
    background: #1d1d1f;
    color: #fff;
}
.survey-type {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5f5f7;
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 600;
}
.survey-stem {
    margin: 0;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.survey-options {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.survey-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.survey-option:hover { border-color: rgba(0, 113, 227, .35); }
.survey-option:has(input:checked) {
    border-color: var(--portal-primary);
    background: rgba(0, 113, 227, .06);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, .12);
}
.survey-option input { position: absolute; opacity: 0; pointer-events: none; }
.survey-option-mark {
    flex: none;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(0, 0, 0, .22);
    background: #fff;
}
.survey-option-mark.is-radio { border-radius: 50%; }
.survey-option-mark.is-check { border-radius: 6px; }
.survey-option:has(input:checked) .survey-option-mark {
    border-color: var(--portal-primary);
    background: var(--portal-primary);
    box-shadow: inset 0 0 0 4px #fff;
}
.survey-option-label {
    color: #1d1d1f;
    font-size: 17px;
    line-height: 1.4;
}
.survey-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}
.survey-actions-right { display: flex; flex-wrap: wrap; gap: 10px; }
.survey-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #424245 !important;
    font-size: 14px;
    font-weight: 500;
}
.survey-ghost:hover { color: #000 !important; }
.survey-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border: 0;
    border-radius: 999px;
    background: #e8e8ed;
    color: #1d1d1f !important;
    font-size: 14px;
    font-weight: 500;
}
.survey-secondary:hover { background: #d2d2d7; }
.survey-hint { margin: 16px 0 0; color: var(--portal-muted); font-size: 13px; }
.survey-empty { text-align: center; }
.survey-empty .survey-title { margin-top: 8px; }
.survey-empty .apple-button { margin-top: 28px; }
.survey-foot {
    margin-top: 24px;
    text-align: center;
}
.survey-foot a { color: var(--portal-muted) !important; font-size: 13px; }
.survey-foot a:hover { color: #1d1d1f !important; }

.portrait-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.portrait-updated { color: var(--portal-muted); font-size: 13px; }
.portrait-traits { display: grid; gap: 12px; margin-top: 20px; }
.portrait-trait {
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    background: #f5f5f7;
}
.portrait-trait-dim {
    display: block;
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.portrait-trait-val {
    margin: 6px 0 0;
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.03em;
    white-space: pre-wrap;
    word-break: break-word;
}
.survey-textarea {
    width: 100%;
    min-height: 180px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    background: #fff;
    color: #1d1d1f;
    font: inherit;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
}

/* Points center — Apple HIG account surface */
.points-section { padding-bottom: 96px; }
.points-shell { width: min(100%, 860px); margin: 0 auto; }
.points-hero { margin-top: 32px; }
.points-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.points-hero-main { flex: 1 1 220px; min-width: 0; }
.points-balance-label {
    margin: 10px 0 4px;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.points-balance-value {
    margin: 0;
    color: #1d1d1f;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.05em;
}
.points-level-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f5f5f7 0%, #ebebf0 100%);
    text-align: right;
}
.points-pending {
    flex: 0 1 260px;
    padding: 16px 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, #f5f5f7 0%, #ebebf0 100%);
}
.points-pending-kicker {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 113, 227, .12);
    color: var(--portal-primary);
    font-size: 12px;
    font-weight: 600;
}
.points-pending-copy {
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}
.points-redeem-hint { margin-top: 16px; }
.points-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.points-cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 88px;
    padding: 10px 4px;
    border-radius: 16px;
    background: #f5f5f7;
    color: var(--portal-muted);
    text-align: center;
}
.points-cal-day.is-done {
    background: rgba(52, 199, 89, .14);
    color: #1b7a4a;
}
.points-cal-day.is-today {
    background: #1d1d1f;
    color: #fff;
}
.points-cal-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.points-cal-reward {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.03em;
}
.points-cal-mark {
    font-size: 12px;
    font-weight: 600;
}
.points-cal-notice {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}
.points-cal-notice.is-miss {
    background: rgba(255, 149, 0, .12);
    color: #9a5b00;
}
.points-cal-notice.is-bonus {
    background: rgba(0, 113, 227, .1);
    color: #0058b0;
}
.points-task-progress {
    margin-left: 6px;
    color: var(--portal-muted);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.points-ledger-filters {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}
.points-ledger-filters .filter-chip {
    text-decoration: none;
}
.points-level-num {
    color: #1d1d1f;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.03em;
}
.points-level-tier {
    color: var(--portal-muted);
    font-size: 14px;
    font-weight: 500;
}
.points-level-bonus {
    margin-top: 2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 113, 227, .12);
    color: var(--portal-primary);
    font-size: 12px;
    font-weight: 600;
}
.points-growth { margin-top: 28px; }
.points-growth-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 500;
}
.points-progress-track { margin-top: 0; }
.points-policy {
    margin: 20px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f5f5f7;
    color: #424245;
    font-size: 14px;
    line-height: 1.5;
}
.points-heading {
    margin: 0 0 20px;
    color: #1d1d1f;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.03em;
}
.points-tasks { margin-top: 20px; }
.points-task-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.points-task-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    background: #f5f5f7;
}
.points-task-copy { flex: 1 1 240px; min-width: 0; }
.points-task-title {
    margin: 0;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.02em;
}
.points-task-desc {
    margin: 6px 0 0;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.5;
}
.points-task-action form { margin: 0; }
.points-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.points-badge-done {
    background: rgba(52, 199, 89, .14);
    color: #1b7a4a;
}
.points-badge-muted {
    background: rgba(0, 0, 0, .06);
    color: var(--portal-muted);
}
.points-ledger-card { margin-top: 20px; }
.points-ledger-empty { padding: 12px 0 4px; }
.points-ledger-empty .survey-lead { margin-top: 0; font-size: 20px; }
.points-ledger-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.points-ledger-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}
.points-ledger-table th,
.points-ledger-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}
.points-ledger-table th {
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.01em;
}
.points-ledger-table tbody tr:last-child td { border-bottom: 0; }
.points-ledger-time {
    color: var(--portal-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.points-ledger-summary { display: block; color: #1d1d1f; }
.points-ledger-expiry {
    display: block;
    margin-top: 4px;
    color: var(--portal-muted);
    font-size: 12px;
}
.points-ledger-plus { color: #1b7a4a; font-weight: 600; font-variant-numeric: tabular-nums; }
.points-ledger-minus { color: #c23b2e; font-weight: 600; font-variant-numeric: tabular-nums; }
.points-footnote { margin-top: 20px; margin-bottom: 0; }
.n-hero {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 28px;
    align-items: center;
}
.n-hero-art {
    width: 100%;
    max-width: 240px;
    height: auto;
    display: block;
}
.n-level { margin: 0; font-size: 15px; font-weight: 600; color: var(--portal-muted); }
.n-growth {
    margin: 8px 0 0;
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 650;
    letter-spacing: -.04em;
    line-height: 1;
}
.n-remain, .n-cap { margin: 8px 0 0; color: var(--portal-muted); font-size: 14px; }
.n-warn {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 149, 0, .12);
    color: #9a5b00;
    font-size: 14px;
}
.n-companion {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 40;
    width: 96px;
    text-align: center;
    text-decoration: none;
    color: #1d1d1f;
}
.n-companion img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
}
.n-companion span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
}
@media (max-width: 767px) {
    .n-hero { grid-template-columns: 1fr; }
    .n-companion { width: 72px; right: 12px; bottom: 16px; }
    .n-companion img { width: 72px; height: 72px; }
}
.fill-prompt-lock {
    overflow: hidden;
}
.fill-prompt-lock .site-nav,
.fill-prompt-lock main,
.fill-prompt-lock footer {
    pointer-events: none;
    user-select: none;
}
.fill-prompt-modal {
    /* 默认隐藏；显示由 .is-open 门控（对齐 opathon/member.css，避免无 .is-open 时全屏遮罩吞掉整页点击） */
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .55);
    pointer-events: auto;
}
.fill-prompt-modal.is-open {
    display: flex;
}
.fill-prompt-card {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    width: min(100%, 440px);
    padding: 28px 28px 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.fill-prompt-kicker {
    margin: 0 0 8px;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 600;
}
.fill-prompt-card h2 { margin: 0 0 10px; font-size: 24px; }
.fill-prompt-card p { margin: 0 0 20px; color: var(--portal-muted); line-height: 1.6; }
.fill-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.fill-prompt-actions form { margin: 0; }

@media (max-width: 1023px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
}
@media (max-width: 1180px) {
    .desktop-nav { gap: 14px; }
    .nav-user-name { display: none; }
    .nav-user { max-width: none; }
}
@media (max-width: 767px) {
    .course-detail-facts { grid-template-columns: 1fr; margin-top: 52px; }
    .course-detail-facts section { min-height: 0; padding: 30px; }
    .course-curriculum { margin-top: 64px; }
    .course-share-sheet { margin-top: 64px; padding-top: 36px; }
    .course-share-apps { gap: 20px; }
    .course-session-list li { grid-template-columns: 72px 1fr; padding: 18px; }
    .course-session-list small { grid-column: 2; }
    .hero-section { padding-top: 112px; }
    .hero-summary { font-size: 19px; line-height: 1.68; }
    .search-action { display: none; }
    .hero-feature { height: 300px; margin-top: 56px; }
    .hero-feature-copy { right: 28px; bottom: 28px; left: 28px; }
    .hero-feature-copy h2 { font-size: clamp(24px, 6vw, 31px); }
    .hero-feature-line-primary { white-space: nowrap; }
    .content-section { padding-top: 80px; padding-bottom: 80px; }
    .survey-section { padding-top: 80px; padding-bottom: 64px; }
    .survey-card { padding: 24px; }
    .points-level-pill,
    .points-pending { align-items: flex-start; text-align: left; width: 100%; }
    .points-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .points-task-item { align-items: flex-start; flex-direction: column; }
    .points-balance-value { font-size: 48px; }
    .survey-stem { font-size: 22px; }
    .courses-section, .events-section { padding: 80px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .card-grid { grid-template-columns: 1fr; }
    .hardware-panel { grid-template-columns: 1fr; }
    .hardware-copy { padding: 56px 28px; }
    .hardware-visual { min-height: 320px; }
    .event-grid { grid-template-columns: 1fr; }
    .featured-event, .upcoming-event { padding: 32px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .page-hero { min-height: 500px; padding-top: 120px; }
    .page-hero h1 { font-size: 50px; }
    .page-hero-inner > p:last-of-type { font-size: 18px; }
    .listing-toolbar { align-items: stretch; flex-direction: column; }
    .list-search input { width: 100%; }
    .portal-card-grid, .mini-card-grid, .news-grid, .registration-grid { grid-template-columns: 1fr; }
    .feature-split, .wide-story-card { grid-template-columns: 1fr; }
    .feature-copy { padding: 44px 28px; }
    .feature-image { min-height: 340px; }
    .ncb-hero-actions { justify-content: center; }
    .ncb-panel-actions { justify-content: flex-start; }
    .event-list-card { min-height: 290px; padding: 34px 28px; }
    .query-panel, .creator-callout, .follow-panel { align-items: flex-start; flex-direction: column; }
    .query-input, .query-input input { width: 100%; }
    .wide-story-card img { height: 300px; }
    .follow-panel { padding: 38px 28px; }
    .detail-cover { height: 360px; border-radius: 24px; }
}
@media (max-width: 480px) {
    .nav-inner { width: calc(100% - 28px); }
    .nav-user-name { display: none; }
    .nav-user { max-width: none; }
    .nav-register { display: none; }
    .hero-copy h1 { font-size: 47px; }
    .hero-section { padding-right: 14px; padding-left: 14px; }
    .content-section, .section-container { width: calc(100% - 28px); }
    .listing-section { width: calc(100% - 28px); }
    .page-hero h1 { font-size: 44px; }
    .mini-card, .registration-card { padding: 28px; }
    .query-panel { padding: 30px 24px; }
    .qr-placeholder { width: 140px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

button.work-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--portal-border);
    text-align: left;
    color: inherit;
    background: #fff;
    cursor: pointer;
}
.work-card .card-body { padding: 24px; }
.work-card-meta {
    margin: 6px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
}
.work-preview-mask {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .45);
}
.work-preview-mask[hidden] { display: none; }
.work-preview-modal {
    display: flex;
    flex-direction: column;
    width: min(92vw, 1100px);
    height: min(90vh, 820px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}
.work-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 8px;
}
.work-preview-head h2 { margin: 0; font-size: 22px; }
.work-preview-sub { margin: 6px 0 0; color: var(--portal-muted); font-size: 14px; }
.work-preview-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
}
.work-preview-tabs {
    display: flex;
    gap: 8px;
    padding: 0 24px 12px;
}
.work-preview-tab {
    padding: 6px 12px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    background: #fff;
}
.work-preview-tab.is-active {
    color: #fff;
    background: var(--portal-primary);
    border-color: var(--portal-primary);
}
.work-preview-pane {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    padding: 0 24px 24px;
}
.work-preview-pane[hidden] { display: none; }
.work-preview-frame {
    width: 100%;
    height: 100%;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #fff;
}
.work-preview-code {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: auto;
    padding: 16px;
    border-radius: 12px;
    background: #f5f5f7;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.work-preview-empty { margin: auto; color: var(--portal-muted); }

/* 兑换商城 / 我的兑换 / 幸运转盘 — Apple HIG（sheji.md） */
.shop-page { padding-bottom: 96px; }
.shop-shell { width: min(100%, 860px); margin: 0 auto; }
.shop-kicker {
    margin: 0 0 10px;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.shop-title {
    margin: 0;
    color: #1d1d1f;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.052em;
}
.shop-lead {
    margin: 16px 0 0;
    max-width: 34em;
    color: var(--portal-muted);
    font-size: 21px;
    line-height: 1.45;
}
.shop-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}
.shop-hero-plain { margin-top: 28px; }
.shop-hero-balance { min-width: 160px; }
.shop-hero-label {
    margin: 0 0 4px;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 600;
}
.shop-hero-value {
    margin: 0;
    color: #1d1d1f;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
}
.shop-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    padding-bottom: 8px;
}
.shop-hero-links a {
    color: var(--portal-primary);
    font-size: 15px;
    font-weight: 500;
}
.shop-hero-links a:hover { text-decoration: underline; }
.shop-list {
    display: grid;
    gap: 16px;
    margin-top: 40px;
}
.shop-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px 40px;
    align-items: center;
    padding: 32px 36px;
    border-radius: 28px;
    background: #f5f5f7;
}
.shop-item-copy { min-width: 0; }
.shop-type {
    margin: 0;
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
.shop-name {
    margin: 6px 0 0;
    color: #1d1d1f;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.12;
}
.shop-intro {
    margin: 10px 0 0;
    color: #424245;
    font-size: 16px;
    line-height: 1.5;
}
.shop-meta {
    margin: 8px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.5;
}
.shop-item-buy {
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 14px;
    min-width: 132px;
}
.shop-cost {
    margin: 0;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
}
.shop-cost span {
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 500;
    margin-left: 4px;
}
.shop-item .apple-button { min-width: 104px; }
.shop-item .apple-button:disabled,
.lw-spin:disabled {
    background: #d2d2d7;
    transform: none;
    cursor: not-allowed;
}
.shop-empty {
    padding: 56px 20px;
    color: var(--portal-muted);
    text-align: center;
    font-size: 17px;
}
.shop-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8e8ed;
    color: #424245;
    font-size: 12px;
    font-weight: 600;
}
.shop-status.is-on { background: rgba(52, 199, 89, .14); color: #1b7a4a; }
.shop-status.is-wait { background: rgba(255, 149, 0, .14); color: #9a5b00; }

.lw-arena {
    display: grid;
    place-items: center;
    margin: 48px 0 8px;
}
.lw-bezel {
    position: relative;
    width: min(420px, 86vw);
    aspect-ratio: 1;
    padding: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 36%),
        linear-gradient(145deg, #f2f2f4 0%, #c7c7cc 42%, #e8e8ed 68%, #bdbdc2 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .75) inset,
        0 28px 64px rgba(0, 0, 0, .12),
        0 8px 20px rgba(0, 0, 0, .06);
}
.lw-pin {
    position: absolute;
    left: 50%;
    top: 4px;
    z-index: 4;
    width: 10px;
    height: 22px;
    margin-left: -5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2997ff, #0071e3);
    box-shadow: 0 4px 12px rgba(0, 113, 227, .35);
}
.lw-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: #0071e3;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.lw-disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(29, 29, 31, .06) inset, 0 10px 28px rgba(0, 0, 0, .08) inset;
    transition: transform 4.2s cubic-bezier(.15, .75, .12, 1);
}
.lw-disc svg { display: block; width: 100%; height: 100%; }
.lw-gloss {
    position: absolute;
    inset: 16px;
    z-index: 1;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(255, 255, 255, .48) 0%, rgba(255, 255, 255, 0) 46%);
    pointer-events: none;
}
.lw-hub {
    position: absolute;
    inset: 39%;
    z-index: 2;
    border-radius: 50%;
    background: rgba(255, 255, 255, .86);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .95) inset,
        0 10px 24px rgba(0, 0, 0, .12),
        0 0 0 5px rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.lw-actions { display: grid; justify-items: center; gap: 12px; margin-top: 28px; }
.lw-spin { min-width: 220px; min-height: 48px; font-size: 16px; }
.lw-quota, .lw-hint {
    margin: 0;
    color: var(--portal-muted);
    font-size: 14px;
    text-align: center;
}
.lw-odds {
    margin-top: 64px;
    padding-top: 8px;
}
.lw-odds h2 {
    margin: 0 0 6px;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.036em;
}
.lw-odds-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.lw-odds-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    color: #1d1d1f;
    font-size: 15px;
}
.lw-odds-list span { color: var(--portal-muted); }
.lw-odds-note {
    margin: 18px 0 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.6;
}
.lw-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(22, 22, 24, .32);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.lw-modal[hidden] { display: none; }
.lw-modal-card {
    width: min(400px, 100%);
    padding: 44px 32px 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .16);
    text-align: center;
}
.lw-modal-kicker {
    margin: 0 0 8px;
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 600;
}
.lw-modal-copy {
    margin: 0 0 28px;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.036em;
    line-height: 1.2;
}
@media (max-width: 760px) {
    .shop-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 26px 22px;
    }
    .shop-item-buy { justify-items: start; }
    .lw-odds-list { grid-template-columns: 1fr; }
    .shop-name { font-size: 26px; }
    .lw-bezel { width: min(340px, 88vw); padding: 12px; }
    .lw-gloss { inset: 12px; }
}

.points-tasks .points-heading + .points-task-list { margin-top: 0; }
.points-tasks h2.points-heading:nth-of-type(n+2) { margin-top: 28px; }
.guide-steps {
    display: grid;
    gap: 16px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.guide-step-kicker {
    margin: 0 0 6px;
    color: #0071e3;
    font-size: 13px;
    font-weight: 600;
}
.guide-list {
    margin: 8px 0 0;
    padding-left: 1.2em;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.6;
}
.guide-actions { margin-top: 8px; align-items: center; }
.profile-form { display: grid; gap: 22px; }
.profile-field { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.profile-label {
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 600;
}
.profile-reward {
    margin-left: 6px;
    color: #0071e3;
    font-weight: 600;
}
.profile-field input[type="text"] {
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    font-size: 16px;
}
.profile-avatar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.profile-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, .06);
}
.profile-avatar-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-avatar-pick {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}
.profile-avatar-pick img { width: 100%; height: 100%; display: block; }
.profile-avatar-pick.is-on { border-color: #0071e3; }
.profile-upload {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    color: var(--portal-muted);
    font-size: 13px;
}
.profile-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1f;
    font-size: 15px;
}
