/* PDE 在线学 · Phase 1 */
.ln-page { min-height: 100vh; background: #f4f7fc; }
.ln-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid #e3e9f2; }
.ln-header-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.ln-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #0b1b33; }
.ln-brand b { font-size: 16px; }
.ln-brand small { display: block; font-size: 10.5px; color: #64748b; }
.ln-logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(100deg,#0ea5e9,#4f46e5); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.ln-spacer { flex:1; }
.ln-main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.ln-card { background:#fff; border:1px solid #e3e9f2; border-radius:16px; box-shadow:0 8px 30px -18px rgba(15,23,42,.2); }
.ln-login-wrap { max-width: 440px; margin: 7vh auto 0; }
.ln-login { padding: 30px 30px 26px; }
.ln-login h1 { font-size: 24px; margin-bottom: 6px; }
.ln-login p { color:#64748b; font-size:13px; line-height:1.7; }
.ln-form { display:flex; flex-direction:column; gap:14px; margin-top:20px; }
.ln-row { display:flex; gap:10px; align-items:center; }
.ln-row .zl-input { flex:1; }
.ln-code-btn { white-space:nowrap; }
.ln-demo { margin-top:12px; padding:10px 12px; border-radius:9px; background:#eff6ff; border:1px solid #dbeafe; color:#1e40af; font-size:12px; }
.ln-tabs { display:flex; gap:6px; margin: 20px 0 16px; flex-wrap:wrap; }
.ln-tab { border:0; background:#eef3fa; color:#475569; border-radius:10px; padding:9px 16px; font-size:13px; font-weight:600; cursor:pointer; }
.ln-tab.is-active { background:#0b1b33; color:#fff; }
.ln-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.ln-item { padding:18px; border:1px solid #e3e9f2; border-radius:14px; background:#fff; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.ln-item:hover { transform:translateY(-2px); box-shadow:0 14px 30px -20px rgba(15,23,42,.35); }
.ln-item h3 { font-size:15px; margin:6px 0; }
.ln-item p { font-size:12px; line-height:1.65; color:#64748b; }
.ln-meta { display:flex; gap:8px; flex-wrap:wrap; font-size:11px; color:#64748b; margin-top:10px; }
.ln-tag { background:#f1f5f9; border:1px solid #e2e8f0; border-radius:999px; padding:2px 8px; }
.ln-quota { display:flex; align-items:center; gap:14px; padding:14px 18px; margin-bottom:16px; }
.ln-quota b { font-size:20px; color:#0b1b33; }
.ln-bar { flex:1; height:8px; border-radius:99px; background:#eef3fa; overflow:hidden; }
.ln-bar i { display:block; height:100%; background:linear-gradient(90deg,#0ea5e9,#4f46e5); }
.ln-chat { display:grid; grid-template-columns: 260px 1fr; gap:14px; }
.ln-conv-list { padding:10px; max-height:600px; overflow:auto; }
.ln-conv { padding:10px 12px; border-radius:9px; cursor:pointer; font-size:12.5px; color:#33475f; }
.ln-conv:hover, .ln-conv.is-active { background:#eff6ff; color:#1d4ed8; }
.ln-chat-main { display:flex; flex-direction:column; min-height:560px; }
.ln-chat-head { padding:14px 18px; border-bottom:1px solid #e3e9f2; display:flex; align-items:center; gap:10px; }
.ln-chat-body { flex:1; padding:18px; overflow:auto; display:flex; flex-direction:column; gap:12px; max-height:460px; }
.ln-msg { max-width:82%; padding:11px 14px; border-radius:12px; font-size:13px; line-height:1.75; white-space:pre-wrap; }
.ln-msg.user { align-self:flex-end; background:#0b1b33; color:#fff; }
.ln-msg.assistant { align-self:flex-start; background:#f4f7fc; color:#0b1b33; border:1px solid #e3e9f2; }
.ln-cites { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.ln-cite { font-size:10.5px; color:#1d4ed8; background:#eff6ff; border-radius:6px; padding:2px 6px; }
.ln-chat-input { display:flex; gap:10px; padding:14px 18px; border-top:1px solid #e3e9f2; }
.ln-chat-input textarea { flex:1; min-height:44px; max-height:120px; }
.ln-empty { padding:40px; text-align:center; color:#94a3b8; font-size:13px; }
.ln-section { padding:20px; margin-bottom:16px; }
.ln-section h2 { font-size:17px; margin-bottom:12px; }
.ln-table { width:100%; border-collapse:collapse; font-size:12.5px; }
.ln-table th, .ln-table td { text-align:left; padding:9px 10px; border-bottom:1px solid #eef3fa; }
.ln-table th { color:#64748b; font-weight:600; }
.ln-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ln-actions .zl-btn { height:32px; padding:0 12px; font-size:12px; }
.ln-chip { font-size:11px; background:#f1f5f9; border-radius:999px; padding:2px 8px; color:#475569; }
.ln-plan { display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-bottom:1px solid #eef3fa; gap:12px; flex-wrap:wrap; }
.ln-plan b { font-size:16px; }
.ln-modal { position:fixed; inset:0; z-index:80; display:none; align-items:center; justify-content:center; background:rgba(2,8,23,.55); padding:20px; }
.ln-modal.open { display:flex; }
.ln-modal-card { width:min(640px,100%); max-height:85vh; overflow:auto; background:#fff; border-radius:18px; padding:24px; }
.ln-modal-card h3 { margin-bottom:10px; }
.ln-modal-card p { font-size:13px; line-height:1.8; color:#33475f; white-space:pre-wrap; }
.ln-modal-close { float:right; border:0; background:#f1f5f9; width:30px; height:30px; border-radius:8px; cursor:pointer; }
.ln-muted { color:#64748b; font-size:12px; line-height:1.7; }
.ln-badge { display:inline-flex; align-items:center; gap:4px; font-size:11px; padding:2px 8px; border-radius:999px; background:#f1f5f9; color:#475569; }
.ln-badge.green { background:#ecfdf5; color:#047857; }
.ln-badge.amber { background:#fffbeb; color:#b45309; }
.ln-badge.red { background:#fef2f2; color:#b91c1c; }
@media (max-width: 780px) {
  .ln-chat { grid-template-columns:1fr; }
  .ln-conv-list { max-height:180px; }
  .ln-main { padding:16px 14px 40px; }
  .ln-login { padding:24px 20px; }
}

/* 课程详情 / 学习进度 */
.ln-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ln-section-head h2 { margin-bottom: 0; }
.ln-progress-text { font-size: 11.5px; color: #1d4ed8; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ln-item.is-done { border-color: #bbf7d0; background: #fbfefc; }
.ln-tag.done { background: #ecfdf5; color: #047857; border-color: #d1fae5; }
.ln-course-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ln-course-content { white-space: pre-wrap; font-size: 13.5px; line-height: 1.95; color: #1f3350; padding-bottom: 6px; }
.ln-course-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eef3fa; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* 能力地图筛选 */
.ln-cap-filter { display: flex; gap: 7px; flex-wrap: wrap; margin: 2px 0 14px; }
.ln-cap-chip { border: 1px solid #e3e9f2; background: #fff; color: #475569; border-radius: 999px; padding: 5px 11px; font-size: 11.5px; cursor: pointer; }
.ln-cap-chip:hover { border-color: #bfdbfe; color: #1d4ed8; }
.ln-cap-chip.is-active { background: #0b1b33; border-color: #0b1b33; color: #fff; }

/* 独立课程学习页 */
.ln-course-page { max-width: 1120px; margin: 0 auto; }
.ln-course-crumb { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: #7b8aa3; margin-bottom: 14px; }
.ln-course-crumb a { color: #1d4ed8; }
.ln-course-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.ln-course-kicker { font-size: 10px; letter-spacing: .14em; color: #1d4ed8; text-transform: uppercase; margin-bottom: 8px; }
.ln-course-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; letter-spacing: -.02em; }
.ln-course-head p { margin: 0; color: #5b6b85; font-size: 13px; line-height: 1.7; max-width: 700px; }
.ln-course-head-actions { display: flex; gap: 8px; flex: none; }
.ln-course-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.ln-course-article { padding: 26px 30px; }
.ln-content-section { margin-bottom: 22px; }
.ln-content-section h2 { font-size: 15px; color: #0b1b33; margin: 0 0 8px; }
.ln-content-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.95; color: #243b56; }
.ln-course-footer { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid #eef3fa; padding-top: 16px; margin-top: 8px; }
.ln-course-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 82px; }
.ln-aside-card { padding: 18px; }
.ln-aside-card h3 { font-size: 13px; margin-bottom: 10px; }
.ln-aside-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; font-size: 11.5px; }
.ln-aside-list dt { color: #7b8aa3; }
.ln-aside-list dd { margin: 0; color: #0b1b33; text-align: right; }
.ln-related { border-top: 1px solid #eef3fa; padding: 8px 0; font-size: 12px; color: #334155; }
.ln-related:first-of-type { border-top: 0; }
.ln-related summary { cursor: pointer; font-weight: 600; }
.ln-related p { margin: 6px 0 0; color: #64748b; line-height: 1.7; white-space: pre-wrap; }
.ln-quiz { margin-top: 18px; padding: 24px 26px; }
.ln-quiz h2 { font-size: 17px; margin-bottom: 6px; }
.ln-quiz-q { border-top: 1px solid #eef3fa; padding: 14px 0; }
.ln-quiz-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ln-quiz-opt { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 7px; font-size: 12.5px; color: #334155; cursor: pointer; }
.ln-quiz-opt:hover { background: #f8fafc; }
.ln-quiz-result { margin-top: 8px; font-size: 12px; line-height: 1.7; }
.ln-quiz-result.ok { color: #047857; }
.ln-quiz-result.err { color: #b91c1c; }
.ln-quiz > .zl-btn { margin-top: 8px; }
@media (max-width: 900px) {
  .ln-course-layout { grid-template-columns: 1fr; }
  .ln-course-aside { position: static; }
  .ln-course-head { flex-direction: column; }
  .ln-course-article { padding: 20px; }
}

/* 课程正文排版 */
.ln-content-section h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 22px 0 10px; }
.ln-content-section h2::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: #2563eb; }
.ln-content-section:first-child h2 { margin-top: 0; }
.ln-content-section p { margin: 0 0 10px; font-size: 13.5px; line-height: 2; color: #243b56; }
.ln-step { display: flex; gap: 9px; align-items: flex-start; margin: 7px 0; font-size: 13.3px; line-height: 1.9; color: #243b56; }
.ln-step b { flex: none; width: 20px; height: 20px; border-radius: 6px; background: #eff6ff; color: #1d4ed8; display: grid; place-items: center; font-size: 11px; margin-top: 3px; }
.ln-step span { flex: 1; }
.ln-bullet { position: relative; padding-left: 15px; margin: 6px 0; font-size: 13.3px; line-height: 1.9; color: #243b56; }
.ln-bullet::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #93c5fd; }
.ln-content-section h3 { font-size: 13.5px; margin: 16px 0 6px; color: #0b1b33; }

/* 课程连续学习 */
.ln-course-path { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.ln-path-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid #e3e9f2; border-radius: 12px; background: #fff; text-decoration: none; color: #0b1b33; min-width: 0; }
.ln-path-link:hover { border-color: #bfdbfe; background: #fbfdff; }
.ln-path-link small { font-size: 10px; color: #7b8aa3; letter-spacing: .08em; }
.ln-path-link b { font-size: 12.5px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-path-link.next { text-align: right; background: #0b1b33; border-color: #0b1b33; color: #fff; }
.ln-path-link.next:hover { background: #13294b; }
.ln-path-link.next small { color: #93c5fd; }
.ln-path-link.is-empty { opacity: .6; background: #f8fafc; border-style: dashed; color: #7b8aa3; }
.ln-complete-icon { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: #ecfdf5; color: #047857; font-size: 26px; font-weight: 800; }
.ln-complete-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 700px) { .ln-course-path { grid-template-columns: 1fr; } .ln-path-link.next { text-align: left; } }

/* 经验卡列表与详情 */
.ln-exp-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px; }
.ln-exp-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid #e3e9f2; border-radius: 14px; background: #fff; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 190px; }
.ln-exp-card:hover { transform: translateY(-3px); border-color: #bcd7f7; box-shadow: 0 18px 36px -28px rgba(15,23,42,.4); }
.ln-exp-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ln-exp-cat { font-size: 10px; color: #1d4ed8; background: #eff6ff; padding: 3px 8px; border-radius: 999px; }
.ln-exp-type { font-size: 10px; color: #64748b; background: #f1f5f9; padding: 3px 8px; border-radius: 999px; }
.ln-exp-card h3 { font-size: 15px; margin: 2px 0 0; line-height: 1.5; }
.ln-exp-excerpt { font-size: 12px; color: #64748b; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ln-exp-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed #eef3fa; display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #94a3b8; }
.ln-exp-foot .go { color: #1d4ed8; font-weight: 600; }

.ln-card-page { max-width: 1080px; margin: 0 auto; }
.ln-card-hero { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.ln-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ln-card-hero h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; letter-spacing: -.02em; }
.ln-card-hero p { margin: 0; color: #64748b; font-size: 13px; }
.ln-card-hero-actions { display: flex; gap: 8px; flex: none; }
.ln-card-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.ln-card-article { padding: 26px 30px; }
.ln-related-course { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-top: 1px solid #eef3fa; text-decoration: none; color: #0b1b33; }
.ln-related-course:first-of-type { border-top: 0; }
.ln-related-course b { font-size: 12px; line-height: 1.5; }
.ln-related-course small { font-size: 10.5px; color: #94a3b8; }
@media (max-width: 900px) { .ln-card-layout { grid-template-columns: 1fr; } .ln-card-hero { flex-direction: column; } .ln-card-article { padding: 20px; } }
