/* ===== 学习之路模板 —— 在原 app.css 基础上的扩展 ===== */
html{scroll-behavior:smooth}
:root{--main:#25a3db;--java:#e76f00;--py:#3776ab;--text:#252525;--sub:#4a4a4a;--muted:#8a8a8a;--line:#e5edf3;--bg-soft:#f6fafd}

/* Logo：原模板使用图片，这里换成文字 Logo */
.study-logo{display:inline-flex;align-items:center;gap:8px;font-size:1.125rem;font-weight:700;color:var(--text)!important;white-space:nowrap;line-height:35px}
.study-logo i{font-style:normal;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:var(--main);color:#fff;font-size:.75rem;font-weight:800}
.top-bar-wrapper.fixed2{background:rgba(255,255,255,.95);box-shadow:0 2px 30px rgba(0,0,0,.05)}
.top-bar .top-bar-title{margin-right:2rem}

/* 首屏 */
.home-header-container{height:auto;min-height:37.5rem;padding-bottom:2rem}
.hero-badge{display:inline-block;padding:4px 12px;border-radius:20px;background:#e8f6fc;color:var(--main);font-size:.875rem;margin-bottom:1rem}
.hero-badge b{font-weight:700}
.home-header-container p code{background:#fff3e6;color:var(--java);padding:1px 6px;border-radius:4px;font-size:1rem}
.home-header-container .ghost_try{display:inline-block;margin-left:1rem;font-size:1.0625rem;color:var(--main);font-weight:500}
.hero-svg{width:100%;height:auto;max-width:480px;display:block;margin-left:auto}

/* 通用标题 */
.section-title{font-size:2rem;font-weight:600;color:var(--text);text-align:center;margin-bottom:.5rem}
.section-sub{text-align:center;color:var(--muted);margin-bottom:2.5rem}

/* 统计 */
.stats-box{padding:1rem 0 4rem}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:2rem}
.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1.25rem;text-align:center;box-shadow:0 6px 20px rgba(37,163,219,.06)}
.stat b{display:block;font-size:2rem;font-weight:700;color:var(--main);line-height:1.2;font-variant-numeric:tabular-nums}
.stat span{font-size:.875rem;color:var(--muted)}
.track-bars{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1.5rem}
.track-row{display:flex;align-items:center;gap:1rem;margin:.6rem 0}
.track-row .name{width:5.5rem;font-weight:600;color:var(--text);font-size:.9375rem}
.track-row .bar{flex:1;height:10px;background:#eef3f7;border-radius:5px;overflow:hidden}
.track-row .bar i{display:block;height:100%;width:0;border-radius:5px;transition:width 1.2s ease}
.track-row .val{width:6.5rem;text-align:right;color:var(--sub);font-size:.875rem;font-variant-numeric:tabular-nums}

/* 学习路线 —— 对应原模板 service-box：左侧文字吸顶，右侧滚动 */
.route-box{padding:4rem 0;background:linear-gradient(180deg,#fff 0,var(--bg-soft) 100%)}
.route-wrap{display:flex;gap:3rem;position:relative}
.route-left{flex:0 0 40%;position:sticky;top:80px;height:calc(100vh - 120px);display:flex;align-items:center}
.route-left .controls-nav{list-style:none;margin:0 1.5rem 0 0}
.route-left .controls-item{width:.8125rem;height:.8125rem;background:#d9d9d9;border-radius:50%;margin:.75rem 0;cursor:pointer;transition:all .3s}
.route-left .controls-item.active{background:var(--main);transform:scale(1.25)}
.route-text{list-style:none;margin:0;position:relative;flex:1;min-height:20rem}
.route-item{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;opacity:0;transform:translateY(20px);transition:all .45s ease;pointer-events:none}
.route-item.active{opacity:1;transform:none;pointer-events:auto}
.route-item h4{font-size:2rem;font-weight:600;color:var(--text);line-height:2.875rem}
.route-item p{font-size:1.0625rem;color:var(--text);line-height:2rem;margin-bottom:1.25rem}
.route-icon{display:inline-flex;align-items:center;justify-content:center;width:3.75rem;height:3.75rem;border-radius:16px;color:#fff;font-weight:800;font-size:1.375rem;margin-bottom:1.5rem}
.route-icon.java{background:linear-gradient(135deg,#f89820,#e76f00)}
.route-icon.python{background:linear-gradient(135deg,#3776ab,#ffd43b)}
.route-icon.next{background:linear-gradient(135deg,#7ca6ff,#b1b8f2)}
.tags span{display:inline-block;margin:0 .5rem .5rem 0;padding:3px 12px;border-radius:14px;background:#e8f6fc;color:var(--main);font-size:.8125rem}
.route-right{flex:1}
.route-card{min-height:calc(100vh - 120px);display:flex;align-items:center;position:relative}
.route-card::before{content:'';position:absolute;right:-10%;top:15%;width:70%;height:70%;border-radius:20px 0 0 20px;opacity:.35;z-index:0}
.route-card[data-i="0"]::before{background:#ffe3c8}
.route-card[data-i="1"]::before{background:#c9e4ff}
.route-card[data-i="2"]::before{background:#f0eaff}

.code-win{position:relative;z-index:1;width:100%;background:#1e2638;border-radius:12px;box-shadow:0 20px 50px rgba(30,38,56,.25);overflow:hidden}
.code-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;background:#161c2b}
.code-bar i{width:11px;height:11px;border-radius:50%;background:#ef5350}
.code-bar i:nth-child(2){background:#ffb300}.code-bar i:nth-child(3){background:#66bb6a}
.code-bar span{margin-left:10px;color:#8a95a8;font-size:.8125rem}
.code-win pre{margin:0;padding:1.25rem 1.5rem;color:#cfd8e3;font:13.5px/1.75 "JetBrains Mono",Menlo,Consolas,monospace;overflow-x:auto;white-space:pre}
.code-win .k{color:#c792ea}.code-win .s{color:#c3e88d}.code-win .t{color:#ffcb6b}.code-win .c{color:#697098;font-style:italic}

.goal-card{position:relative;z-index:1;width:100%;background:#fff;border-radius:12px;padding:2rem;box-shadow:0 20px 50px rgba(124,166,255,.18)}
.goal-card h5{font-size:1.25rem;font-weight:600;margin-bottom:1rem;color:var(--text)}
.goal-card label{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;border-bottom:1px dashed var(--line);font-size:1rem;color:var(--sub)}
.goal-card label:last-child{border-bottom:0}
.goal-card input{margin:0;width:18px;height:18px;accent-color:var(--main)}

/* 学习记录时间线 */
.records-box{padding:5rem 0 3rem}
.filter-bar{display:flex;justify-content:center;flex-wrap:wrap;gap:.75rem;margin-bottom:2.5rem}
.filter-bar button{padding:.5rem 1.25rem;border-radius:20px;border:1px solid var(--line);background:#fff;color:var(--sub);font-size:.9375rem;cursor:pointer;transition:all .2s}
.filter-bar button:hover{border-color:var(--main);color:var(--main)}
.filter-bar button.active{background:var(--main);border-color:var(--main);color:#fff}
.filter-bar button em{font-style:normal;opacity:.7;margin-left:4px}
.timeline{list-style:none;margin:0;position:relative;padding-left:2rem}
.timeline::before{content:'';position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl-item{position:relative;margin-bottom:1.5rem;animation:fadeUp .4s ease both}
.tl-item .dot{position:absolute;left:-2rem;top:1.35rem;width:16px;height:16px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px currentColor}
.tl-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1.125rem 1.375rem;transition:box-shadow .2s,transform .2s}
.tl-card:hover{box-shadow:0 10px 30px rgba(0,0,0,.06);transform:translateY(-2px)}
.tl-head{display:flex;flex-wrap:wrap;align-items:center;gap:.625rem;margin-bottom:.375rem}
.tl-date{color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums}
.tl-tag{padding:1px 10px;border-radius:10px;color:#fff;font-size:.75rem;font-weight:600}
.tl-hours{margin-left:auto;color:var(--muted);font-size:.8125rem}
.tl-card h6{font-size:1.125rem;font-weight:600;color:var(--text);margin:0 0 .25rem}
.tl-card p{margin:0;color:var(--sub);font-size:.9375rem;line-height:1.7}
.tl-empty{color:var(--muted);text-align:center;padding:2rem}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* 底部 CTA */
.bottom-contact-us{padding:2rem 0 4rem}
.cta-card{text-align:center;padding:3rem 1.5rem;border-radius:20px;background:linear-gradient(120deg,#25a3db 0,#7ca6ff 100%);color:#fff}
.cta-card h3{font-size:1.875rem;font-weight:600;color:#fff}
.cta-card p{opacity:.9;margin-bottom:1.5rem}
.cta-card .contact-btn{display:inline-block;padding:.75rem 2rem;background:#fff;color:var(--main);border-radius:4px;font-weight:600}

/* 手机端 */
@media screen and (max-width:39.9375em){
  .study-logo{font-size:1rem}
  .hero-badge{display:table;margin:0 auto 1rem}
  .home-header-container .ghost_try{display:block;text-align:center;margin:.75rem 0 0}
  .hero-svg{margin:0 auto}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .stat b{font-size:1.5rem}
  .section-title{font-size:1.5rem}
  .route-wrap{display:block}
  .route-left{display:none}
  .route-card{min-height:0;display:block;padding:1.5rem 0}
  .route-card::before{display:none}
  .route-card .m-text{display:block}
  .code-win pre{font-size:12px;padding:1rem}
  .track-row .name{width:4.5rem;font-size:.875rem}
  .track-row .val{width:5rem;font-size:.75rem}
  .timeline{padding-left:1.5rem}
  .tl-item .dot{left:-1.5rem}
  .cta-card h3{font-size:1.25rem}
}
.m-text{display:none;margin-bottom:1rem}
.m-text h4{font-size:1.125rem;font-weight:600;margin:.5rem 0}
.m-text p{font-size:.875rem;color:var(--text);line-height:1.6;margin:0}
