/* 阶段 1：公开门户组合。sheji2：白底克制；青绿渐变只给标题点缀。 */
.hero-copy h1,
.section-heading h2,
.page-hero h1 {
    font-weight: 700;
}

.hero-gradient {
    background-image: var(--op-brand-gradient-text);
    background-clip: text;
    color: #00a8c2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.course-tab.active,
.filter-chip.active {
    border-color: var(--op-color-action);
    background: var(--op-color-action);
    color: var(--op-color-on-action);
}

.hero-section,
.page-hero {
    padding-right: var(--op-page-gutter-desktop);
    padding-left: var(--op-page-gutter-desktop);
}

.join-hero-actions,
.join-apply-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--op-space-3);
    margin-top: var(--op-space-4);
}

.join-apply-cta {
    justify-content: flex-start;
}

.hero-copy,
.page-hero-inner,
.section-container,
.content-section,
.listing-section,
.detail-cover {
    width: min(
        calc(100% - (var(--op-page-gutter-desktop) * 2)),
        var(--op-layout-max)
    );
}

.hero-feature,
.hardware-panel,
.feature-split,
.wide-story-card,
.query-panel,
.follow-panel {
    border-radius: var(--op-radius-4);
}

.search-box {
    min-height: var(--op-control-min-height);
    padding: var(--op-space-1);
    border: 1px solid var(--op-color-border);
    border-radius: var(--op-radius-2);
    background: var(--op-color-surface);
    box-shadow: none;
}

.list-search,
.query-input {
    display: grid;
    width: min(520px, 100%);
    min-height: 0;
    gap: var(--op-space-2);
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--op-color-text-muted);
    font-size: 14px;
}

.search-box input,
.list-search input,
.query-input input {
    min-height: var(--op-control-min-height);
    width: 100%;
    border-radius: var(--op-radius-2);
}

.content-section,
.courses-section,
.events-section,
.alternate-section,
.listing-section {
    padding-top: var(--op-space-7);
    padding-bottom: var(--op-space-7);
}

.section-heading {
    gap: var(--op-space-3);
}

.card-grid,
.mini-card-grid,
.news-grid,
.registration-grid,
.event-grid {
    gap: var(--op-space-4);
    margin-top: var(--op-space-5);
}

.content-card,
.mini-card,
.news-card,
.registration-card,
.event-list-card {
    border: 1px solid var(--op-color-border);
    border-radius: var(--op-radius-3);
    box-shadow: none;
}

.content-card {
    transition:
        border-color var(--op-motion-normal) var(--op-ease-standard),
        box-shadow var(--op-motion-normal) var(--op-ease-standard);
}

.content-card:hover,
.content-card:focus-visible {
    border-color: var(--op-color-action);
    box-shadow: var(--op-shadow-raised);
    transform: none;
}

.content-card:hover .card-image img {
    transform: none;
}

.card-body,
.mini-card,
.news-card,
.registration-card {
    padding: var(--op-space-4);
}

.card-meta {
    margin-top: var(--op-space-3);
    padding-top: var(--op-space-3);
    border-color: var(--op-color-border);
}

.card-label,
.course-image span,
.filter-chip {
    border-radius: var(--op-radius-1);
}

.course-tabs,
.filter-chips,
.hardware-actions,
.ncb-hero-actions,
.ncb-panel-actions {
    gap: var(--op-space-2);
}

.course-tab,
.filter-chip {
    min-height: var(--op-control-min-height);
    padding: var(--op-space-2) var(--op-space-3);
    border: 1px solid var(--op-color-border);
    border-radius: var(--op-radius-2);
}

.course-tab.active,
.filter-chip.active {
    border-color: var(--op-color-action);
}

.featured-event,
.upcoming-event {
    padding: var(--op-space-5);
    border-radius: var(--op-radius-4);
}

.featured-event .op-button {
    margin-top: var(--op-space-7);
}

.feature-copy,
.hardware-copy {
    padding: var(--op-space-6);
}

.detail-page {
    padding-top: calc(var(--op-nav-height) + var(--op-space-7));
    padding-bottom: var(--op-space-7);
}

.detail-back {
    display: inline-flex;
    min-height: var(--op-control-min-height);
    margin-bottom: var(--op-space-5);
    padding: var(--op-space-2);
    align-items: center;
    border-radius: var(--op-radius-2);
}

.detail-cover {
    margin-top: var(--op-space-7);
    border-radius: var(--op-radius-4);
}

.detail-content {
    margin-top: var(--op-space-7);
}

.detail-placeholder,
.course-story-block,
.course-detail-facts section,
.course-session-list li {
    border-radius: var(--op-radius-3);
}

.detail-placeholder {
    padding: var(--op-space-4);
}

.process-list,
.event-list {
    gap: var(--op-space-3);
}

.query-panel,
.follow-panel {
    padding: var(--op-space-5);
    gap: var(--op-space-4);
}

.work-preview-modal {
    border-radius: var(--op-radius-4);
}

.work-preview-close,
.work-preview-tab {
    min-height: var(--op-control-min-height);
    border-radius: var(--op-radius-2);
}

.work-preview-head,
.work-preview-tabs {
    gap: var(--op-space-3);
}

.portal-section--flush-top {
    padding-top: 0;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--op-nav-height) + var(--op-space-7));
    padding-bottom: var(--op-space-6);
}

.hero-orb {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1200px, 108%);
    height: 800px;
    pointer-events: none;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-blue) 18%, transparent),
        color-mix(in srgb, var(--op-aux-teal) 12%, transparent) 50%,
        transparent 80%
    );
    filter: blur(16px);
}

.co-catalog,
.co-detail,
.hw-catalog,
.hw-detail,
.page-hero-violet,
.page-hero-indigo,
.page-hero-warm,
.page-hero-pink,
.page-hero-mint,
.page-hero-blue,
.page-hero-courses,
.page-hero-hardware {
    position: relative;
    isolation: isolate;
}

.co-catalog::before,
.co-detail::before,
.hw-catalog::before,
.hw-detail::before,
.page-hero-violet::before,
.page-hero-indigo::before,
.page-hero-warm::before,
.page-hero-pink::before,
.page-hero-mint::before,
.page-hero-blue::before,
.page-hero-courses::before,
.page-hero-hardware::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    height: 800px;
    pointer-events: none;
    transform: translateX(-50%);
    filter: blur(16px);
}

.co-catalog::before,
.co-detail::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-brand-cyan) 20%, transparent),
        color-mix(in srgb, var(--op-brand-lime) 12%, transparent) 50%,
        transparent 80%
    );
}

.hw-catalog::before,
.hw-detail::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-teal) 22%, transparent),
        color-mix(in srgb, var(--op-aux-slate) 10%, transparent) 50%,
        transparent 80%
    );
}

/* 公开栏目 Hero：白底 + 仅顶区一层光晕，不向后续内容区再铺一层 */
.page-hero-violet,
.page-hero-indigo,
.page-hero-warm,
.page-hero-pink,
.page-hero-mint,
.page-hero-blue,
.page-hero-courses,
.page-hero-hardware {
    background: transparent;
    color: var(--op-color-text);
}

.page-hero-violet .eyebrow,
.page-hero-indigo .eyebrow,
.page-hero-warm .eyebrow,
.page-hero-pink .eyebrow,
.page-hero-mint .eyebrow,
.page-hero-blue .eyebrow,
.page-hero-courses .eyebrow,
.page-hero-hardware .eyebrow {
    color: var(--op-color-text-muted);
}

.page-hero-violet .page-hero-inner > p:last-of-type,
.page-hero-indigo .page-hero-inner > p:last-of-type,
.page-hero-warm .page-hero-inner > p:last-of-type,
.page-hero-pink .page-hero-inner > p:last-of-type,
.page-hero-mint .page-hero-inner > p:last-of-type,
.page-hero-blue .page-hero-inner > p:last-of-type,
.page-hero-courses .page-hero-inner > p:last-of-type,
.page-hero-hardware .page-hero-inner > p:last-of-type {
    color: var(--op-color-text-muted);
}

.page-hero-violet::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-orange) 16%, transparent),
        color-mix(in srgb, var(--op-aux-blue) 12%, transparent) 50%,
        transparent 80%
    );
}

.page-hero-indigo::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-blue) 18%, transparent),
        color-mix(in srgb, var(--op-aux-slate) 12%, transparent) 50%,
        transparent 80%
    );
}

.page-hero-warm::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-orange) 18%, transparent),
        color-mix(in srgb, var(--op-aux-teal) 10%, transparent) 50%,
        transparent 80%
    );
}

.page-hero-pink::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-blue) 14%, transparent),
        color-mix(in srgb, var(--op-aux-orange) 12%, transparent) 50%,
        transparent 80%
    );
}

.page-hero-mint::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-teal) 18%, transparent),
        color-mix(in srgb, var(--op-brand-cyan) 12%, transparent) 50%,
        transparent 80%
    );
}

.page-hero-blue::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-blue) 18%, transparent),
        color-mix(in srgb, var(--op-brand-cyan) 12%, transparent) 50%,
        transparent 80%
    );
}

.page-hero-courses::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-brand-cyan) 20%, transparent),
        color-mix(in srgb, var(--op-brand-lime) 12%, transparent) 50%,
        transparent 80%
    );
}

.page-hero-hardware::before {
    background: radial-gradient(
        ellipse 64% 70% at 50% 18%,
        color-mix(in srgb, var(--op-aux-teal) 22%, transparent),
        color-mix(in srgb, var(--op-aux-slate) 10%, transparent) 50%,
        transparent 80%
    );
}

.page-hero {
    min-height: 0;
    padding-top: calc(var(--op-nav-height) + var(--op-space-7));
    padding-bottom: var(--op-space-7);
    overflow: visible;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: min(
        calc(100% - (var(--op-page-gutter-desktop) * 2)),
        var(--op-layout-max)
    );
    margin-inline: auto;
    text-align: center;
}

.page-hero .eyebrow {
    margin: 0;
}

.page-hero h1 {
    max-width: 18ch;
    margin: var(--op-space-3) auto 0;
    color: var(--op-color-text);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.04em;
}

.page-hero-inner > p:last-of-type {
    max-width: 42ch;
    margin: var(--op-space-4) auto 0;
    color: var(--op-color-text-muted);
    font-size: 18px;
    line-height: 1.65;
}

.page-hero .op-button {
    margin-top: var(--op-space-5);
}

.hero-copy h1 {
    margin-bottom: var(--op-space-6);
    line-height: 1.32;
    letter-spacing: -0.02em;
}

.hero-copy .hero-summary {
    margin-top: 0;
    padding-top: 0;
}

.hardware-copy h2 {
    line-height: 1.32;
}

.hardware-copy .hardware-summary {
    margin-top: var(--op-space-3);
    line-height: 1.52;
}

.search-box,
.course-tabs,
.course-grid {
    margin-top: var(--op-space-5);
}

.hero-section .search-box {
    border: 2px solid transparent;
    border-radius: var(--op-radius-4);
    background-image:
        linear-gradient(var(--op-color-surface), var(--op-color-surface)),
        var(--op-brand-gradient-text);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--op-aux-teal) 16%, transparent);
}

.hero-section .search-box:focus-within {
    border-color: transparent;
    box-shadow:
        0 16px 40px color-mix(in srgb, var(--op-aux-blue) 18%, transparent),
        0 0 0 4px color-mix(in srgb, var(--op-aux-blue) 12%, transparent);
}

.portal-body .hero-section .search-action {
    border-color: transparent;
    background-color: var(--op-brand-cyan);
    background-image: var(--op-brand-gradient);
    color: var(--op-color-text) !important;
}

.portal-body .hero-section .search-action:hover {
    background-color: var(--op-brand-cyan);
    background-image: linear-gradient(
        90deg,
        color-mix(in srgb, var(--op-brand-cyan) 88%, #000),
        color-mix(in srgb, var(--op-brand-lime) 88%, #000)
    );
}

.portal-body .hero-section .search-action:active {
    background-color: var(--op-brand-lime);
    background-image: linear-gradient(
        90deg,
        color-mix(in srgb, var(--op-brand-cyan) 80%, #000),
        color-mix(in srgb, var(--op-brand-lime) 80%, #000)
    );
}

.hero-feature {
    margin-top: var(--op-space-6);
}

.listing-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--op-space-5);
    margin-bottom: var(--op-space-5);
}

.course-search-control {
    display: flex;
    width: min(520px, 82vw);
    min-height: var(--op-control-min-height);
    margin-top: var(--op-space-2);
    align-items: center;
    border: 1px solid var(--op-color-border);
    border-radius: var(--op-radius-2);
    background: var(--op-color-surface);
    box-shadow: none;
}

.course-search-control:focus-within {
    outline: none;
    border-color: var(--op-color-focus);
    box-shadow: none;
}

.course-search-control svg {
    width: var(--op-icon-sm);
    height: var(--op-icon-sm);
    margin-left: var(--op-space-3);
}

.list-search .course-search-control {
    width: 100%;
    margin-top: 0;
}

.list-search .course-search-control input,
.list-search .course-search-control input:focus,
.list-search .course-search-control input:focus-visible,
.list-search input:focus,
.list-search input:focus-visible {
    min-height: var(--op-control-min-height);
    width: 100%;
    border: 0;
    outline: none;
    border-radius: var(--op-radius-2);
    background: transparent;
    box-shadow: none;
}

.portal-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card-grid,
.registration-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filterable-card[hidden],
.searchable-card[hidden],
.work-preview-mask[hidden],
.work-preview-pane[hidden] {
    display: none;
}

.process-list {
    margin: var(--op-space-6) 0 var(--op-space-5);
    gap: var(--op-space-3);
}

.process-list li {
    padding: var(--op-space-4);
    gap: var(--op-space-3);
    border-radius: var(--op-radius-3);
}

.qr-placeholder {
    border-radius: var(--op-radius-3);
}

.course-session-list {
    margin: var(--op-space-5) 0 0;
    gap: var(--op-space-3);
}

.course-session-list li {
    padding: var(--op-space-3) var(--op-space-4);
    gap: var(--op-space-3);
    border-radius: var(--op-radius-3);
    transition:
        border-color var(--op-motion-fast) var(--op-ease-standard),
        box-shadow var(--op-motion-fast) var(--op-ease-standard);
}

.course-session-list li:hover {
    box-shadow: var(--op-shadow-raised);
    transform: none;
}

.course-share-sheet {
    margin-top: var(--op-space-7);
    padding: var(--op-space-6) var(--op-space-2) var(--op-space-2);
    border-color: var(--op-color-border);
}

.course-share-sheet .course-share-title {
    margin-top: var(--op-space-2);
}

.course-share-hint {
    margin-top: var(--op-space-3);
}

.course-share-apps {
    margin-top: var(--op-space-4);
    gap: var(--op-space-4);
}

.course-share-app {
    min-width: var(--op-control-min-height);
    min-height: var(--op-control-min-height);
    gap: var(--op-space-2);
}

.course-share-icon {
    width: var(--op-icon-lg);
    height: var(--op-icon-lg);
    border-radius: var(--op-radius-4);
    box-shadow: var(--op-shadow-raised);
}

.course-share-icon svg {
    width: var(--op-icon-sm);
    height: var(--op-icon-sm);
}

.course-share-app:hover .course-share-icon {
    box-shadow: var(--op-shadow-raised);
    transform: none;
}

.course-share-status {
    margin-top: var(--op-space-3);
}

.work-preview-mask {
    padding: var(--op-space-4);
}

.work-preview-head {
    padding: var(--op-space-4) var(--op-space-4) var(--op-space-2);
}

.work-preview-tabs {
    padding: 0 var(--op-space-4) var(--op-space-3);
}

.work-preview-pane {
    padding: 0 var(--op-space-4) var(--op-space-4);
}

.hw-catalog,
.hw-detail {
    width: min(
        calc(100% - (var(--op-page-gutter-desktop) * 2)),
        var(--op-layout-max)
    );
    margin: 0 auto;
    padding-top: calc(var(--op-nav-height) + var(--op-space-6));
    padding-bottom: var(--op-space-7);
}

.hw-catalog__head {
    max-width: 640px;
    margin-bottom: var(--op-space-6);
}

.hw-catalog__head h1 {
    margin: var(--op-space-2) 0 0;
    color: var(--op-color-text);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.hw-catalog__head > p:last-child {
    margin: var(--op-space-3) 0 0;
    color: var(--op-color-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.hw-device-feature {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: var(--op-space-5);
    align-items: center;
    padding: var(--op-space-3);
    color: inherit;
}

.hw-device-feature__link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.hw-device-feature__actions {
    grid-column: 1 / -1;
    padding: 0 var(--op-space-3) var(--op-space-3);
}

.hw-device-feature__stage,
.hw-device-card__stage,
.hw-detail__stage {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--op-color-surface-subtle);
}

.hw-device-feature__stage {
    min-height: 420px;
    border-radius: var(--op-radius-3);
}

.hw-device-feature__stage img,
.hw-device-card__stage img,
.hw-detail__stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hw-device-feature__stage img {
    max-height: 420px;
    padding: var(--op-space-5);
}

.hw-device-feature__body {
    padding-right: var(--op-space-4);
}

.hw-device-feature__body h2 {
    margin: var(--op-space-2) 0 0;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.hw-device-feature__body > p:not(.eyebrow) {
    margin: var(--op-space-3) 0 0;
    color: var(--op-color-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.hw-device-feature__cta {
    margin-top: var(--op-space-5);
}

.hw-device-feature__link:hover .hw-device-feature__cta,
.hw-device-feature__link:focus-visible .hw-device-feature__cta {
    text-decoration: underline;
}

.hw-device-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--op-space-4);
    margin-top: var(--op-space-5);
}

.hw-device-card {
    display: flex;
    flex-direction: column;
    color: inherit;
}

.hw-device-card__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.hw-device-card__actions,
.co-course-card__footer,
.hw-device-card__footer {
    padding: 0 var(--op-space-4) var(--op-space-4);
}

.hw-device-card__buy,
.co-course-card__buy,
.portal-add-cart.co-course-card__buy,
.portal-add-cart.hw-device-card__buy {
    width: 100%;
}

.co-course-card__buy-btn,
.hw-device-card__buy-btn {
    width: 100%;
    justify-content: center;
}

.co-course-card {
    display: flex;
    flex-direction: column;
    color: inherit;
}

.co-course-card__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.hw-device-card__stage {
    aspect-ratio: 4 / 3;
}

.hw-device-card__stage img {
    padding: var(--op-space-4);
}

.hw-device-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: var(--op-space-4);
    gap: var(--op-space-2);
}

.hw-device-card__body h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.hw-device-card__body p {
    margin: 0;
    color: var(--op-color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hw-device-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--op-space-2);
    margin-top: auto;
    padding-top: var(--op-space-3);
    color: var(--op-color-text);
    font-size: 15px;
    font-weight: 500;
}

.hw-device-card__link:hover .hw-device-card__cta,
.hw-device-card__link:focus-visible .hw-device-card__cta {
    color: var(--op-color-action);
    text-decoration: underline;
}

.hw-device-feature:focus-visible,
.hw-device-card:focus-visible {
    outline: 2px solid var(--op-color-focus);
    outline-offset: 2px;
}

.hw-detail__bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--op-space-4);
}

.hw-detail__stage {
    min-height: 480px;
    border: 1px solid var(--op-color-border);
    border-radius: var(--op-radius-4);
    background: var(--op-color-surface-subtle);
}

.hw-detail__stage img {
    max-height: 520px;
    padding: var(--op-space-6);
}

.hw-detail__identity {
    max-width: 720px;
    margin-top: var(--op-space-5);
}

.hw-detail__identity h1 {
    margin: var(--op-space-2) 0 0;
    color: var(--op-color-text);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.hw-detail__summary,
.hw-detail__meta,
.hw-detail__note p {
    margin: var(--op-space-3) 0 0;
    color: var(--op-color-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.hw-detail__note {
    max-width: 720px;
    margin-top: var(--op-space-5);
}

.co-catalog,
.co-detail {
    width: min(
        calc(100% - (var(--op-page-gutter-desktop) * 2)),
        var(--op-layout-max)
    );
    margin: 0 auto;
    padding-top: calc(var(--op-nav-height) + var(--op-space-6));
    padding-bottom: var(--op-space-7);
}

.co-catalog__head {
    max-width: 640px;
    margin-bottom: var(--op-space-5);
}

.co-catalog__head h1 {
    margin: var(--op-space-2) 0 0;
    color: var(--op-color-text);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.co-catalog__head > p:last-child {
    margin: var(--op-space-3) 0 0;
    color: var(--op-color-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.co-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--op-space-4);
    margin-top: var(--op-space-5);
}

.co-course-card__stage,
.co-detail__stage {
    overflow: hidden;
    background: var(--op-color-surface-subtle);
}

.co-course-card__stage {
    aspect-ratio: 16 / 9;
}

/* 块内白色文字：右下角叠一层深色压暗，保证白字在渐变最亮处（#22d3ee）也清晰 */
.co-course-card__stage,
.co-detail__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: var(--op-space-4);
    background:
        linear-gradient(
            to top,
            rgba(4, 16, 32, .62),
            rgba(4, 16, 32, .22) 46%,
            transparent 72%
        ),
        radial-gradient(
            55% 55% at 70% 28%,
            rgba(165, 243, 252, .72),
            transparent 100%
        ),
        linear-gradient(135deg, #071a33, #075985 55%, #22d3ee);
}

.co-course-card__eyebrow,
.co-detail__eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.co-course-card__title,
.co-detail__cover-title {
    margin: var(--op-space-2) 0 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -.02em;
    text-shadow: 0 1px 3px rgba(4, 16, 32, .45);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.co-course-card__title {
    font-size: 22px;
    line-height: 1.3;
}

.co-detail__cover-title {
    font-size: 32px;
    line-height: 1.22;
}

.co-course-card__stage-meta,
.co-detail__cover-meta {
    margin: var(--op-space-2) 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(4, 16, 32, .4);
}

.co-course-card__stage img,
.co-detail__stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.co-course-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: var(--op-space-4);
    gap: var(--op-space-2);
}

.co-course-card__body h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* 卡片元信息行：创作者名 + 体验课徽标 */
.co-course-card__meta {
    display: flex;
    align-items: center;
    gap: var(--op-space-2);
    flex-wrap: wrap;
}

.co-course-card__creator {
    color: var(--op-color-text-muted);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 体验课徽标：课程列表中与正式课混排，仅体验课展示 */
.co-course-card__trial {
    padding: 2px var(--op-space-2);
    border: 1px solid var(--op-color-accent, #2aeefa);
    border-radius: 999px;
    color: var(--op-color-accent, #2aeefa);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.co-course-card__body p,
.co-course-card__desc {
    margin: 0;
    color: var(--op-color-text-muted);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.co-course-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--op-space-1);
    margin-top: auto;
    padding-top: var(--op-space-3);
    color: var(--op-color-text);
    font-size: 15px;
    font-weight: 600;
}

.co-course-card__link:hover .co-course-card__cta,
.co-course-card__link:focus-visible .co-course-card__cta {
    color: var(--op-color-primary, #2563eb);
}

.co-course-card__cta::after {
    content: "→";
    font-size: 14px;
}

.co-detail__bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--op-space-4);
}

.co-course-card:focus-visible {
    outline: 2px solid var(--op-color-focus);
    outline-offset: 2px;
}

.co-detail__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--op-space-6);
    align-items: start;
}

.co-detail__notice {
    margin: 0 0 var(--op-space-4);
    padding: var(--op-space-3) var(--op-space-4);
    border: 1px solid var(--op-color-warning, #d9a441);
    border-radius: var(--op-radius-2);
    background: var(--op-color-warning-soft, #fdf6e7);
    color: var(--op-color-text);
    font-size: 14px;
}

.co-detail__stage {
    aspect-ratio: 16 / 9;
    margin-bottom: var(--op-space-4);
    border-radius: var(--op-radius-3);
}

.co-detail__course h1 {
    margin: 0;
    color: var(--op-color-text);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.co-detail__meta,
.co-detail__summary,
.co-detail__empty {
    margin: var(--op-space-3) 0 0;
    color: var(--op-color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.co-detail__course .course-detail-cta {
    margin-top: 0;
}

.co-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--op-space-3);
    margin-top: var(--op-space-4);
}

.co-detail__curriculum-head {
    display: flex;
    min-height: var(--op-control-min-height);
    align-items: center;
    justify-content: space-between;
    gap: var(--op-space-3);
}

.co-detail__curriculum-head .eyebrow {
    margin: 0;
}

.co-detail__curriculum-head .op-button {
    flex: none;
}

.hw-detail__actions {
    margin-top: var(--op-space-4);
}

.co-detail__curriculum .course-session-list {
    margin-top: var(--op-space-3);
}

.co-detail__curriculum:not(.is-expanded) .course-session-list li:nth-child(n + 6) {
    display: none !important;
}

.co-detail__curriculum .course-session-list li {
    padding: var(--op-space-3);
    border-radius: var(--op-radius-3);
}

.co-detail__support {
    margin-top: var(--op-space-6);
}

.co-detail .course-detail-facts {
    margin-top: var(--op-space-5);
}

.co-detail .course-detail-facts section {
    min-height: 0;
    padding: var(--op-space-4);
}

.co-detail .course-detail-facts h2 {
    font-size: 18px;
}

.course-detail-facts__creator {
    margin: var(--op-space-2) 0 0;
    color: var(--op-color-text);
    font-size: 15px;
    font-weight: 600;
}

.co-detail .course-share-sheet {
    width: 100%;
    margin-top: var(--op-space-6);
}

/* 课程族筛选：搜索框右侧，横向滑动多选标签。 */
.course-family-filter {
    display: grid;
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100%;
    gap: var(--op-space-2);
}

.course-family-filter__label {
    color: var(--op-color-text-muted);
    font-size: 14px;
}

.course-family-filter__track {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--op-space-1);
}

.course-family-filter .filter-chips {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: var(--op-space-2);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.course-family-filter .filter-chips::-webkit-scrollbar {
    display: none;
}

.course-family-filter .filter-chips:focus-visible {
    outline: 2px solid var(--op-color-focus);
    outline-offset: 2px;
}

.course-family-filter .filter-chip {
    flex: none;
    cursor: pointer;
    font: inherit;
}

.course-family-filter__nav {
    display: inline-flex;
    flex: none;
    width: var(--op-control-min-height);
    min-width: var(--op-control-min-height);
    height: var(--op-control-min-height);
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--op-color-border);
    border-radius: var(--op-radius-2);
    background: var(--op-color-surface);
    color: var(--op-color-text);
    cursor: pointer;
}

.course-family-filter__nav:hover {
    border-color: var(--op-color-action);
    color: var(--op-color-action);
}

.course-family-filter__nav:focus-visible {
    outline: 2px solid var(--op-color-focus);
    outline-offset: 2px;
}

.course-family-filter__nav svg {
    width: var(--op-icon-sm);
    height: var(--op-icon-sm);
}

.course-family-filter__nav[hidden] {
    display: none;
}

/* 卡片顶部图片右上角的课程族名称：右上与左下内边距一致。 */
.co-course-card__family {
    position: absolute;
    z-index: 1;
    top: var(--op-space-3);
    right: var(--op-space-3);
    max-width: calc(100% - (var(--op-space-3) * 2));
    padding: var(--op-space-1) var(--op-space-2);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: var(--op-radius-1);
    background: rgba(4, 16, 32, .32);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .hero-orb {
        width: min(880px, 100%);
        height: 720px;
    }

    .co-catalog::before,
    .co-detail::before,
    .hw-catalog::before,
    .hw-detail::before,
    .page-hero-violet::before,
    .page-hero-indigo::before,
    .page-hero-warm::before,
    .page-hero-pink::before,
    .page-hero-mint::before,
    .page-hero-blue::before,
    .page-hero-courses::before,
    .page-hero-hardware::before {
        height: 720px;
    }

    .hero-copy,
    .page-hero-inner,
    .section-container,
    .content-section,
    .listing-section,
    .detail-cover,
    .hw-catalog,
    .hw-detail,
    .co-catalog,
    .co-detail {
        width: calc(100% - (var(--op-page-gutter-tablet) * 2));
    }

    .co-detail__pair {
        grid-template-columns: 1fr;
        gap: var(--op-space-5);
    }

    .co-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hw-device-feature {
        grid-template-columns: 1fr;
    }

    .hw-device-feature__stage,
    .hw-detail__stage {
        min-height: 320px;
    }

    .hw-device-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-copy,
    .hardware-copy {
        padding: var(--op-space-5);
    }

    .portal-card-grid,
    .mini-card-grid,
    .registration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hero-orb,
    .co-catalog::before,
    .co-detail::before,
    .hw-catalog::before,
    .hw-detail::before,
    .page-hero-violet::before,
    .page-hero-indigo::before,
    .page-hero-warm::before,
    .page-hero-pink::before,
    .page-hero-mint::before,
    .page-hero-blue::before,
    .page-hero-courses::before,
    .page-hero-hardware::before {
        height: 640px;
    }

    .hero-section,
    .page-hero {
        padding-right: var(--op-page-gutter-mobile);
        padding-left: var(--op-page-gutter-mobile);
    }

    .hero-copy,
    .page-hero-inner,
    .section-container,
    .content-section,
    .listing-section,
    .detail-cover,
    .hw-catalog,
    .hw-detail,
    .co-catalog,
    .co-detail {
        width: calc(100% - (var(--op-page-gutter-mobile) * 2));
    }

    .co-course-grid {
        grid-template-columns: 1fr;
    }

    .co-catalog__head h1,
    .co-detail__course h1 {
        font-size: 24px;
    }

    .hw-device-grid {
        grid-template-columns: 1fr;
    }

    .hw-catalog__head h1,
    .hw-device-feature__body h2 {
        font-size: 24px;
    }

    .hw-detail__identity h1 {
        font-size: 32px;
    }

    .hw-detail__stage {
        min-height: 280px;
    }

    .hw-detail__stage img {
        padding: var(--op-space-4);
    }

    .content-section,
    .courses-section,
    .events-section,
    .alternate-section,
    .listing-section {
        padding-top: var(--op-space-6);
        padding-bottom: var(--op-space-6);
    }

    .card-grid,
    .mini-card-grid,
    .news-grid,
    .registration-grid,
    .event-grid {
        grid-template-columns: 1fr;
        gap: var(--op-space-3);
        margin-top: var(--op-space-4);
    }

    .feature-copy,
    .hardware-copy,
    .featured-event,
    .upcoming-event,
    .query-panel,
    .follow-panel {
        padding: var(--op-space-4);
    }

    .hardware-panel,
    .feature-split,
    .wide-story-card,
    .event-grid {
        grid-template-columns: 1fr;
    }

    .listing-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: var(--op-space-3);
    }

    .list-search,
    .list-search input,
    .course-search-control,
    .query-input,
    .query-input input {
        width: 100%;
    }

    .detail-cover {
        height: 360px;
        border-radius: var(--op-radius-4);
    }

    .course-detail-facts {
        grid-template-columns: 1fr;
    }

    .course-session-list li {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .course-session-list small {
        grid-column: 2;
    }

    .work-preview-mask {
        padding: var(--op-space-3);
    }

    .work-preview-head,
    .work-preview-pane {
        padding-right: var(--op-space-3);
        padding-left: var(--op-space-3);
    }

    .work-preview-tabs {
        padding-right: var(--op-space-3);
        padding-left: var(--op-space-3);
    }
}
