/* 学习全流程深色主题；嵌入主站时仅保留主站导航。 */
html.learning-public{color-scheme:dark;--bg:#050a15;--panel:#0d1525;--panel2:#141e31;--line:#243047;--text:#f3f5ff;--muted:#a3aec2;--accent:#a18aff;background:var(--bg);color:var(--text)}
.learning-public body{background:var(--bg);min-height:100svh}.learning-public main{width:100%;max-width:none;padding:32px clamp(20px,4vw,80px) 60px}.learning-embedded body>.topbar{display:none!important}.learning-public .topbar{background:#080e1c}.learning-public footer{max-width:none;background:#050a15}.learning-public .brand small{font-size:11px}.learning-public body.landing-mode main{padding:0 0 60px;max-width:none;width:100%;margin:0}.learning-hero{height:clamp(570px,56vw,1100px);min-height:570px;position:relative;display:flex;align-items:center;isolation:isolate;overflow:hidden;width:100%;background:#030916}.learning-ribbon{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2;animation:ribbon-drift 18s ease-in-out infinite alternate;will-change:transform;pointer-events:none}.learning-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#02071366,transparent 60%),linear-gradient(0deg,#050a15,transparent 15%);pointer-events:none}.learning-hero-copy{padding:0 5vw 50px;width:53%;color:white}.learning-hero h1{font-size:clamp(48px,5.7vw,100px);line-height:1.03;letter-spacing:-.045em;font-weight:850;margin:0 0 24px;text-shadow:0 4px 22px #0008}.learning-hero h1 span{display:block;letter-spacing:-.03em;font-size:1.12em}.learning-hero p{font-size:clamp(14px,1.2vw,20px);line-height:1.8;color:#d4dded;white-space:nowrap}.learning-hero-actions{display:flex;gap:18px;align-items:center;margin-top:30px;flex-wrap:wrap}.learning-hero-actions .primary{border:1px solid #91bcff88!important;background:linear-gradient(100deg,#00d3f5,#4a4fff 55%,#a831ff)!important;border-radius:28px;padding:13px 30px;box-shadow:0 0 28px #544aff80,0 0 10px #13cfff70;color:white}.learning-hero-actions a{font-size:14px;color:#dce5fb;padding:10px 0}.learning-hero-actions .learning-library{color:#9aabc6;font-size:12px}.learning-scroll{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);background:none;border:0;color:#bed6ee;display:grid;gap:8px;justify-items:center;font-size:25px}.learning-scroll small{font-size:11px;letter-spacing:.12em}.learning-motion{position:absolute;right:24px;bottom:20px;border:1px solid #a6b5e222;background:#09101d70;color:#9cacc5;font-size:11px;padding:6px 10px}.learning-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:38px 4vw 24px;scroll-margin-top:20px}.learning-intro h2{font-size:32px;color:#fff;margin:0 0 10px}.learning-intro p{font-size:14px;color:#9aa8bd}.learning-types{display:flex;gap:6px;padding:4px;border:1px solid #282643;border-radius:24px;background:#090d1c}.learning-types a{padding:10px 30px;color:#a9b2c8;font-size:14px;border-radius:22px;white-space:nowrap}.learning-types a.active{color:white;background:linear-gradient(110deg,#254df1,#702bdb);box-shadow:0 0 20px #5332e955}.landing-mode .grid,.landing-mode .tu-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0 4vw}.landing-mode .card,.landing-mode .tu-card{background:#0b1220;border:1px solid #202a40;border-radius:15px;overflow:hidden;transition:transform .25s,box-shadow .25s}.landing-mode .card:hover,.landing-mode .tu-card:hover{transform:translateY(-4px);box-shadow:0 10px 28px #0006}.landing-mode .cover,.landing-mode .tu-cover{aspect-ratio:16/9;object-fit:cover;width:100%;height:auto}.landing-mode .category-panel,.landing-mode .tu-filters{margin:0 4vw 20px;padding:14px 0;background:none;border:0}.landing-mode .category-head h2,.landing-mode .category-head .eyebrow,.landing-mode .tu-filter-top>div{display:none}.landing-mode .category-head,.landing-mode .tu-filter-top{justify-content:flex-end;margin-bottom:16px}.landing-mode .category-primary{display:flex;flex-wrap:wrap;gap:8px}.landing-mode .category-primary button{min-height:38px;padding:8px 18px}.landing-mode .category-icon{display:none}.landing-mode .catalog-heading,.landing-mode .tu-results{margin:0 4vw 24px}.landing-mode .tu-empty,.landing-mode .empty{margin:0 4vw;background:#0b1220}.landing-mode .tu-chips button,.landing-mode .filters button{border:0}.learning-public .tu-text{color:#cad4e5}.learning-public .tu-intro{background:#101a2d}.learning-public .panel,.learning-public .tu-toc{background:#0d1525}.learning-public .tu-doc-page{color:#eef2fc}
@keyframes ribbon-drift{from{transform:scale(1.01) translate3d(-.3%,0,0)}to{transform:scale(1.055) translate3d(.4%,.3%,0)}}.motion-paused .learning-ribbon{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.learning-ribbon{animation:none;will-change:auto}.landing-mode .card,.landing-mode .tu-card{transition:none}}
@media(min-width:1800px){.learning-hero{height:min(56vw,1200px);max-height:1200px}.learning-ribbon{object-fit:cover}.learning-hero-copy{padding-left:6vw}}
@media(max-width:900px){.learning-hero-copy{width:64%}.learning-hero h1{font-size:55px}.learning-hero p{white-space:normal;max-width:340px}.learning-hero{min-height:520px}.learning-intro{align-items:flex-start}.learning-types a{padding:10px 18px}.landing-mode .grid,.landing-mode .tu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.learning-hero{min-height:610px;height:85svh;align-items:flex-start}.learning-hero-copy{width:100%;padding:54px 24px 0}.learning-hero h1{font-size:48px}.learning-hero p{max-width:280px;font-size:13px}.learning-ribbon{object-position:62% center;opacity:.7}.learning-hero:after{background:linear-gradient(180deg,#03091688,transparent 80%)}.learning-hero-actions{gap:15px;margin-top:20px}.learning-intro{flex-direction:column;padding-top:28px}.learning-intro h2{font-size:27px}.landing-mode .grid,.landing-mode .tu-grid{grid-template-columns:1fr}.learning-public .topbar{padding:10px 16px;height:auto;flex-wrap:wrap;gap:12px}.learning-public .topbar nav{order:3;flex-basis:100%}.learning-public .topbar #account{margin-left:auto}}

/* 首屏按可视高度收纳完整构图，小人与倒影不再落到折叠线下。 */
@media(min-width:901px){
 .learning-hero{height:calc(100svh - 76px);min-height:0;max-height:none}
 .learning-embedded .learning-hero{height:100svh}
 .learning-ribbon{left:auto;width:min(100%,177.7svh);object-fit:contain;object-position:right center;transform-origin:right center;mask-image:linear-gradient(90deg,transparent,#000 24%);animation-name:ribbon-fit-drift}
 .learning-hero-copy{padding-bottom:30px}
 .learning-hero h1{font-size:clamp(42px,min(5.7vw,12svh),94px)}
 .learning-hero p{white-space:normal}
}
@keyframes ribbon-fit-drift{from{transform:scale(.96)}to{transform:scale(.985)}}

/* 品牌名横向排版，给右侧主视觉保留呼吸空间。 */
.learning-hero h1{white-space:nowrap;font-size:clamp(30px,4.25vw,72px);line-height:1.15;letter-spacing:-.035em}
.learning-hero h1 span{display:inline;font-size:1em;margin-left:.12em;letter-spacing:-.025em}
.learning-hero-copy{width:60%}
.learning-hero p{font-size:clamp(13px,1.12vw,18px);line-height:1.8}
@media(min-width:901px){.learning-hero h1{font-size:clamp(38px,min(4.25vw,9svh),72px)}.learning-hero-copy{padding-bottom:45px}}
@media(max-width:900px){.learning-hero-copy{width:85%}.learning-hero h1{font-size:clamp(30px,5.4vw,48px)}}
@media(max-width:600px){.learning-hero-copy{width:100%}.learning-hero h1{font-size:clamp(25px,6.3vw,38px)}}

/* 品牌主视觉与文字沿中轴排列；未来社群卡片可插入副标题之后。 */
.learning-hero{justify-content:center}
.learning-hero-copy{width:100%;padding:0 24px 100px;text-align:center;position:relative;z-index:1}
.learning-hero h1{font-size:clamp(30px,5.1vw,86px);text-shadow:0 3px 28px #020713,0 1px 6px #020713}
.learning-hero p{margin-left:auto;margin-right:auto;max-width:none;text-shadow:0 2px 12px #020713}
.learning-hero-actions{justify-content:center}
.learning-ribbon{object-position:center;transform-origin:center;left:50%;right:auto;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);animation-name:ribbon-centered-drift}
.learning-hero:after{background:radial-gradient(ellipse at 50% 41%,#02071388,transparent 62%),linear-gradient(0deg,#050a15,transparent 15%)}
@keyframes ribbon-centered-drift{from{transform:translateX(-50%) scale(.96)}to{transform:translateX(-50%) scale(.985)}}
@media(min-width:901px){.learning-hero-copy{padding-bottom:100px}.learning-hero h1{font-size:clamp(38px,min(5.1vw,11svh),86px)}}
@media(max-width:900px){.learning-hero-copy{width:100%;padding-bottom:100px}.learning-hero p{max-width:90%}}
@media(max-width:600px){.learning-hero-copy{padding:54px 18px 0}.learning-hero h1{font-size:clamp(25px,6.3vw,38px)}}

/* 分类区使用固定行列关系，搜索与筛选集中对齐。 */
.landing-mode .learning-intro{padding-bottom:22px}
.landing-mode .tu-filters,.landing-mode .category-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 24px;padding:20px 0;border-top:1px solid #202a40;border-bottom:1px solid #202a40}
.landing-mode .tu-filter-top,.landing-mode .category-head{grid-column:2;grid-row:1 / span 2;margin:0;align-self:center}
.landing-mode .tu-filters>.tu-chips,.landing-mode .category-primary{grid-column:1;margin:0;gap:8px;align-items:center}
.landing-mode .tu-chips button{min-height:36px;padding:8px 16px;border-radius:9px}
.landing-mode .tu-results,.landing-mode .catalog-heading{display:flex;justify-content:space-between;align-items:center;margin-top:18px;margin-bottom:18px}
.landing-mode .tu-grid>.tu-empty{margin:0;width:100%;grid-column:1 / -1}
@media(max-width:1000px){.landing-mode .tu-filters,.landing-mode .category-panel{grid-template-columns:1fr}.landing-mode .tu-filter-top,.landing-mode .category-head{grid-column:1;grid-row:auto;justify-content:flex-start}.landing-mode .tu-filters>.tu-chips{flex-wrap:wrap}}

/* 环绕飘带与山谷融合背景，完整显示首屏。 */
.learning-ribbon{width:100%;object-fit:contain;mask-image:none}
.learning-hero:after{background:radial-gradient(ellipse at 50% 43%,#02071355,transparent 55%),linear-gradient(0deg,#050a15,transparent 12%)}
.learning-hero-copy{padding-bottom:65px}
.learning-hero-actions .learning-library{color:#d0daec}

/* 社区入口：中英标题共用基线，英文采用粗斜体与紧凑字距。 */
.learning-hero h1{font-weight:800;letter-spacing:.045em;margin-bottom:20px}
.learning-hero h1 span{display:inline-block;font-family:Arial,"Helvetica Neue",sans-serif;font-weight:800;font-style:italic;letter-spacing:.045em;margin-left:.32em;padding-right:.08em}
.learning-hero-copy{padding-bottom:85px}
.learning-hero-actions{margin-top:22px}
.learning-community{display:flex;align-items:center;gap:20px;width:max-content;max-width:100%;margin:24px auto 0;padding:18px 24px 18px 18px;text-align:left;background:linear-gradient(125deg,#eff7ffed,#f3ecffed);border:1px solid #fff9;border-radius:22px;box-shadow:0 12px 40px #040d2b55;backdrop-filter:blur(18px);color:#172338}
.community-qr{width:106px;height:106px;flex:0 0 106px;background:white;padding:7px;border-radius:10px;display:grid;place-items:center}
.community-qr img{display:block;width:100%;height:100%;object-fit:contain}
.community-qr-placeholder{font-size:13px;line-height:1.8;text-align:center;color:#737f96;border:1px dashed #c7cddd;width:100%;height:100%;display:grid;align-content:center;border-radius:5px}
.learning-community h2{font-size:19px;font-weight:800;line-height:1.3;margin:0 0 8px;color:#162036}
.learning-hero .learning-community p{font-size:13px;line-height:1.65;margin:3px 0;max-width:280px;color:#505d73;text-shadow:none;white-space:normal}
.learning-community strong{font-size:19px;font-weight:850;color:#6e48df;font-variant-numeric:tabular-nums}
.learning-community small{font-size:10px;color:#7f889a}
.learning-hero .learning-community .community-description{color:#768096;font-size:12px;margin-top:6px}
@media(max-height:700px) and (min-width:901px){.learning-hero h1{font-size:min(5vw,64px);margin-bottom:10px}.learning-hero-actions{margin-top:12px}.learning-community{margin-top:16px;padding:12px 18px;gap:16px}.community-qr{width:88px;height:88px;flex-basis:88px}.learning-hero-copy{padding-bottom:55px}}
@media(max-width:600px){.learning-hero-copy{padding:40px 16px 0}.learning-community{gap:12px;padding:14px;max-width:350px}.community-qr{width:90px;height:90px;flex-basis:90px}.learning-community h2{font-size:17px}.learning-hero .learning-community p{font-size:12px}.learning-hero h1{font-size:clamp(24px,6vw,38px)}}

@media(min-width:901px){.learning-hero-copy{padding-bottom:145px}.learning-hero h1{font-size:clamp(38px,min(4.8vw,10svh),82px)}}

/* 参考站实测：1710px宽时中文116px、英文86px；首屏整组垂直居中。 */
.learning-public body.landing-mode{background:#050a15}
.learning-hero{background:#050a15;width:100%;margin:0;align-items:center}
.learning-ribbon{inset:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;mask-image:linear-gradient(to bottom,#000 0%,#000 78%,transparent 100%);transform-origin:center;animation-name:ribbon-fullbleed}
@keyframes ribbon-fullbleed{from{transform:scale(1)}to{transform:scale(1.025)}}
.learning-hero:after{background:linear-gradient(to bottom,#050a1533 0%,transparent 14%,transparent 74%,#050a15 100%)}
.learning-hero-copy{padding:0 20px 0;width:100%;transform:none}
.learning-hero h1{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans SC","PingFang SC",sans-serif;font-size:clamp(40px,6.77vw,142px);font-weight:700;letter-spacing:.025em;line-height:1.05;margin:0 0 26px;text-shadow:0 3px 24px #02071399}
.learning-hero h1 span{font-size:.84em;font-weight:700;letter-spacing:.055em;margin-left:.24em;vertical-align:baseline}
.learning-hero>div>p{font-size:clamp(14px,1.25vw,22px);margin-top:0}
.learning-hero-actions{margin-top:24px}
.learning-community{margin-top:24px}
@media(max-width:900px){.learning-hero-copy{padding:0 18px 0}.learning-hero h1{font-size:6.65vw}.learning-ribbon{object-position:40% center}.learning-hero{min-height:640px}}
@media(max-width:600px){.learning-hero h1{font-size:6.55vw;letter-spacing:.015em;margin-bottom:20px}.learning-hero h1 span{margin-left:.12em}.learning-hero-copy{padding:0 16px 0}.learning-hero{height:calc(100svh - 40px);min-height:590px}.learning-hero p{max-width:100%}.learning-community{margin-top:20px}}

.learning-hero.learning-hero-compact {
  height:auto;
  min-height:max(340px, calc((100svh - 76px) * 2 / 3));
}
.learning-embedded .learning-hero.learning-hero-compact {
  min-height:max(340px, calc(100svh * 2 / 3));
}
.learning-hero-compact .learning-hero-copy {padding:24px 16px 58px;}
.learning-hero-compact h1 {font-size:clamp(30px, 4.6vw, 96px);margin-bottom:12px;}
.learning-hero-compact .learning-hero-actions {margin-top:14px;}
.learning-hero-compact .learning-community {margin-top:14px;padding:10px 16px;gap:14px;}
.learning-hero-compact .community-qr {width:88px;height:88px;flex-basis:88px;}
.learning-hero-compact .learning-scroll {bottom:10px;gap:2px;font-size:20px;}
.learning-hero-compact .learning-motion {bottom:12px;}
@media(max-width:900px) {
  .learning-hero.learning-hero-compact,
  .learning-embedded .learning-hero.learning-hero-compact {
    min-height:max(340px, calc(100svh * 2 / 3));
  }
}
@media(max-width:600px) {
  .learning-hero-compact h1 {font-size:clamp(24px, 6.55vw, 38px);}
}

.learning-hero-compact .learning-ribbon {
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  mask-image:none;
  animation-name:ribbon-panorama-glow;
}
@keyframes ribbon-panorama-glow {
  from {opacity:.94;}
  to {opacity:1;}
}
@media(max-width:600px) {
  .learning-hero-compact .learning-ribbon {object-position:center bottom;}
}

.mobile-learning-brand{display:none}
.mobile-learning .mobile-learning-brand{
  display:flex;align-items:center;padding:10px 16px;min-height:48px;
  background:#080f21;border-bottom:1px solid #26314a;box-sizing:border-box;
}
.mobile-learning .mobile-learning-brand a{
  display:inline-flex;align-items:center;gap:9px;color:#f3f5ff;
  font-weight:800;font-size:15px;letter-spacing:.045em;text-decoration:none;
}
.mobile-learning .mobile-learning-brand img{width:24px;height:24px;object-fit:contain}
.mobile-learning .learning-hero.learning-hero-compact{
  height:auto;min-height:0;padding:0;display:block;overflow:hidden;background:#080f21;
}
.mobile-learning .learning-hero-compact .learning-ribbon{display:none}
.mobile-learning .learning-hero-compact::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(#080f2120,#080f2166 75%,#080f21),
    url('/static/learning/assets/mobile-courses-hero.webp') center bottom / 100% auto no-repeat;
}
.mobile-learning .learning-hero-compact .learning-hero-copy{
  position:relative;width:100%;max-width:none;padding:32px 18px 58px;
}
.mobile-learning .learning-hero-compact h1{font-size:clamp(30px,9vw,42px);line-height:1.14}
.mobile-learning .learning-hero-compact p{max-width:26em;line-height:1.65;white-space:normal}
.mobile-learning .learning-hero-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 14px}
.mobile-learning .learning-hero-actions .primary{flex-basis:100%;max-width:340px;min-height:44px}
.mobile-learning .learning-hero-actions a{min-height:44px;display:inline-flex;align-items:center}
.mobile-learning .learning-hero-compact .learning-community{width:min(100%,340px);box-sizing:border-box}
.mobile-learning .learning-hero-compact .community-qr{width:62px;height:62px;flex-basis:62px}
.mobile-learning .learning-hero-compact .community-copy{min-width:0;text-align:left}
.mobile-learning .landing-mode .category-head{display:grid;gap:12px}
.mobile-learning .landing-mode :is(.category-head,.catalog-heading) form{
  display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;min-width:0;
}
.mobile-learning .landing-mode :is(.category-head,.catalog-heading) input{min-width:0;width:100%}
.mobile-learning .landing-mode .catalog-course-grid{grid-template-columns:minmax(0,1fr)}

.full-learning-art .learning-hero.learning-hero-compact {
  height: auto;
  min-height: max(340px, calc(100svh * 2 / 3), calc(100vw / 3));
  aspect-ratio: 3 / 1;
}
.full-learning-art .learning-hero-compact .learning-ribbon {
  object-fit: contain;
  object-position: center;
  transform: none;
}
.full-learning-art .featured-course-banner > img,
.full-learning-art .featured-course-banner > img.featured-banner-default {
  object-fit: contain;
}

.learning-hero .learning-scroll-action {
  position:absolute;bottom:18px;left:50%;transform:translateX(-50%);
  margin:0;z-index:2;white-space:nowrap;
}
.learning-hero .learning-scroll-action .primary {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;min-height:44px;line-height:1.15;
}
.learning-hero .learning-scroll-action .primary span {font-size:1.25em;line-height:1}

/* Keep the entire 3:1 panorama visible on desktop. */
@media (min-width: 901px) {
  .learning-hero.learning-hero-compact,
  .learning-embedded .learning-hero.learning-hero-compact {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 1;
  }
  .learning-hero-compact .learning-ribbon {
    object-fit: contain;
    transform: none;
  }
}
.learning-hero-compact .learning-hero-copy {
  padding: 32px 18px 52px;
}
@media (min-width: 901px) {
  .learning-hero.learning-hero-compact .learning-hero-copy {
    padding-block: 64px 20px;
    transform: translateY(clamp(24px, 3.3vw, 64px));
  }
  .learning-hero-compact .learning-hero-copy > h1 {
    font-size: clamp(48px, 6.8vw, 144px);
  }
  .learning-hero-compact .learning-hero-copy > p {
    font-size: clamp(15px, 1.2vw, 20px);
  }
}
@media (min-width: 901px) {
  .learning-hero.learning-hero-compact .learning-hero-copy {
    padding-bottom: 78px;
  }
}
.learning-hero.learning-hero-compact .learning-hero-copy > .learning-community {
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 22px auto 0;
}
.learning-hero-compact .learning-hero-copy > .learning-community .community-copy {
  min-width: 0;
  text-align: left;
}
@media (max-width: 600px) {
  .learning-hero.learning-hero-compact,
  .learning-embedded .learning-hero.learning-hero-compact {
    min-height: 280px;
  }
  .learning-hero-compact .learning-hero-copy > .learning-community .community-qr {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
}
