:root{--ink:#1b1d20;--charcoal:#292c30;--amber:#ffb20f;--paper:#f4f4f2;--muted:#677078;--line:#d9ddde;--max:1160px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;line-height:1.7;letter-spacing:0}a{color:inherit;text-decoration:none}.detail-header{height:72px;display:flex;align-items:center;gap:32px;padding:0 max(24px,calc((100vw - var(--max))/2));border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:10}.detail-header img{width:116px;height:46px;object-fit:contain}.detail-header nav{display:flex;gap:24px;margin-left:auto;font-size:13px}.detail-header .contact-link{background:var(--ink);color:#fff;padding:9px 15px}.detail-hero{background:var(--ink);color:#fff;padding:78px max(24px,calc((100vw - var(--max))/2)) 70px;position:relative;overflow:hidden}.detail-hero:after{content:"";position:absolute;right:max(24px,calc((100vw - var(--max))/2));top:0;width:180px;height:100%;background:var(--amber);opacity:.95;clip-path:polygon(65% 0,100% 0,35% 100%,0 100%)}.crumb{font-size:12px;color:#aeb5b9;margin-bottom:34px}.crumb a{color:var(--amber)}.kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--amber)}.detail-hero h1{font-size:clamp(38px,5vw,66px);line-height:1.1;margin:11px 0 18px;max-width:800px}.detail-hero>p:last-of-type{max-width:700px;color:#c7cdd0}.hero-actions{display:flex;gap:12px;margin-top:30px}.btn{padding:12px 20px;font-weight:700;font-size:13px;background:var(--amber);color:var(--ink)}.btn.outline{background:transparent;color:#fff;border:1px solid #667078}.detail-main{max-width:var(--max);margin:auto;padding:70px 24px}.intro-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:60px}.prose h2,.section-title{font-size:32px;line-height:1.25;margin:0 0 18px}.prose h3{font-size:20px;margin:36px 0 8px}.prose p{color:var(--muted)}.fact-box{background:var(--paper);border-top:4px solid var(--amber);padding:28px;align-self:start}
.course-categories{padding-bottom:60px}.category-heading{display:grid;grid-template-columns:1.4fr .6fr;gap:60px;align-items:end;margin-bottom:36px}.category-heading .kicker,.course-facts .kicker{color:#b87800}.category-heading h2,.course-facts h2{margin:8px 0 10px;font-size:38px;line-height:1.2}.category-heading p{margin:0;color:var(--muted)}.category-heading>p{text-align:right;font-size:13px}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.category-card{overflow:hidden;border:1px solid var(--line);background:#fff;transition:.25s}.category-card:hover{transform:translateY(-4px);border-color:var(--amber);box-shadow:0 14px 30px rgba(27,29,32,.1)}.category-visual{position:relative;display:flex;align-items:flex-end;height:190px;padding:22px;overflow:hidden;color:#fff;background:linear-gradient(145deg,#2d3034,#1b1d20)}.category-visual:before{content:"";position:absolute;top:-45px;right:-28px;width:155px;height:155px;border:38px solid rgba(255,178,15,.95);border-radius:50%}.category-visual:after{content:"";position:absolute;right:22px;bottom:49px;width:130px;height:2px;background:var(--amber);transform:rotate(-18deg);transform-origin:right}.category-visual span{position:absolute;top:18px;left:20px;color:var(--amber);font:700 12px monospace}.category-visual strong{position:relative;z-index:1;font-size:25px;line-height:1}.category-copy{padding:20px}.category-copy h3{margin:0 0 6px;font-size:19px}.category-copy p{min-height:48px;margin:0;color:var(--muted);font-size:13px;line-height:1.65}.category-copy>div{display:flex;gap:7px;margin-top:15px}.category-copy>div span{padding:3px 10px;border:1px solid #d7dcde;border-radius:20px;color:#5e686e;font-size:11px}.course-facts{display:grid;grid-template-columns:.8fr 1.2fr;gap:55px;margin-bottom:55px;padding:34px;border-top:4px solid var(--amber);background:#f1f2f0}.course-facts h2{font-size:30px}.course-facts>div>p{margin:0;color:var(--muted);font-size:13px}.course-facts dl{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin:0}
/* === 课程页数据驱动补充样式（2026-08-17） === */
/* === footer logo 防爆框修复（2026-08-19） === */
.site-foot img,.detail-footer img,.unified-site-footer img{max-width:200px;max-height:72px;height:auto;width:auto;display:block}
/* 子页面底部二维码放大（覆盖上方通用 max-height:72px 限制） */
.detail-footer-contact .footer-qr{width:140px;height:140px;object-fit:contain;max-height:none}
.course-info-desc{max-width:860px;color:var(--muted);font-size:15px;line-height:1.85;margin:6px 0 0}
.section-head{margin-bottom:10px}
.content-section .category-grid{margin-top:6px}
/* === 图片覆盖 + 师资卡片（2026-08-19） === */
/* 覆盖原本的 ::before 黄圆/::after 装饰和 height，让真实图片成为视觉主体 */
.category-visual{position:relative;height:220px;padding:22px;overflow:hidden;color:#fff;background:linear-gradient(145deg,#2d3034,#1b1d20);display:flex;align-items:flex-end}
.category-visual:before{display:none!important}
.category-visual:after{display:none!important}
.category-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:1;transition:transform .4s}
.category-card:hover .category-visual img{transform:scale(1.05)}
.category-visual span{position:absolute;top:18px;left:20px;color:var(--amber);font:700 12px monospace;z-index:2;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.category-visual strong{position:relative;z-index:2;font-size:25px;line-height:1;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.info-image{width:100%;height:170px;overflow:hidden;background:#f1f2f0}
.info-image img{width:100%;height:100%;object-fit:cover;display:block}
.teacher-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.teacher-card{background:#fff;border:1px solid var(--line);overflow:hidden;transition:.25s}
.teacher-card:hover{transform:translateY(-3px);border-color:var(--amber);box-shadow:0 12px 24px rgba(27,29,32,.08)}
.teacher-photo{width:100%;height:200px;overflow:hidden;background:var(--paper)}
.teacher-photo img{width:100%;height:100%;object-fit:cover;display:block}
.teacher-photo span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--muted);font-size:12px}
.teacher-info{padding:16px}
.teacher-info h3{margin:0 0 4px;font-size:17px}
.teacher-title{margin:0 0 2px;color:var(--amber);font-size:12px;font-weight:700}
.teacher-specialty{margin:0 0 8px;color:var(--ink);font-size:13px;font-weight:600}
.teacher-bio{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
@media(max-width:980px){.teacher-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.teacher-grid{grid-template-columns:1fr}}

/* ===== 2026-09-08 网站修改 V2 ===== */

/* 合作案例：每行 3 个，间距适中（用属性选择器精准锁定，不影响其他列表） */
.detail-main > section > .card-grid[data-load="cases"]{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.detail-main > section > .card-grid[data-load="cases"] > *{min-width:0}
@media(max-width:980px){.detail-main > section > .card-grid[data-load="cases"]{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.detail-main > section > .card-grid[data-load="cases"]{grid-template-columns:1fr;gap:18px}}

/* 合作方向页（如有）：每行 3 个，与合作案例一致 */
.detail-main > section > .card-grid[data-load="partners"]{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.detail-main > section > .card-grid[data-load="partners"] > *{min-width:0}
@media(max-width:980px){.detail-main > section > .card-grid[data-load="partners"]{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.detail-main > section > .card-grid[data-load="partners"]{grid-template-columns:1fr;gap:18px}}

/* 课程卡片：3 列 */
.detail-main > section > .card-grid[data-load="courses"]{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.detail-main > section > .card-grid[data-load="courses"] > *{min-width:0}
@media(max-width:980px){.detail-main > section > .card-grid[data-load="courses"]{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.detail-main > section > .card-grid[data-load="courses"]{grid-template-columns:1fr;gap:18px}}

/* 校区卡片：3 列 */
.detail-main > section > .card-grid[data-load="campus"]{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.detail-main > section > .card-grid[data-load="campus"] > *{min-width:0}
@media(max-width:980px){.detail-main > section > .card-grid[data-load="campus"]{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.detail-main > section > .card-grid[data-load="campus"]{grid-template-columns:1fr;gap:18px}}

/* 资质卡片：3 列 */
.detail-main > section > .card-grid[data-load="credentials"]{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.detail-main > section > .card-grid[data-load="credentials"] > *{min-width:0}
@media(max-width:980px){.detail-main > section > .card-grid[data-load="credentials"]{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.detail-main > section > .card-grid[data-load="credentials"]{grid-template-columns:1fr;gap:18px}}

/* 资讯页：2 列，间距大（specificity 提高到 .news-page-layout .news-content-column .card-grid，0-3-0，强于合作案例的 0-2-1） */
.news-page-layout .news-content-column .card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:32px!important}
@media(max-width:980px){.news-page-layout .news-content-column .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}}
@media(max-width:640px){.news-page-layout .news-content-column .card-grid{grid-template-columns:1fr!important;gap:18px!important}}

/* 合作方向：整体居中，三张白色卡片横向排列 */
.related{text-align:center;padding:60px 24px;background:#f1f4f5}
.related h2{font-size:32px;margin:0 0 28px}
.related-links{display:flex;justify-content:center;align-items:stretch;gap:24px;flex-wrap:wrap;max-width:var(--max);margin:0 auto}
.related-links a{flex:0 1 220px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);padding:22px 18px;font-size:16px;font-weight:600;color:var(--ink);transition:.2s;border-radius:6px}
.related-links a:hover{border-color:var(--amber);color:var(--amber);transform:translateY(-2px);box-shadow:0 8px 18px rgba(27,29,32,.06)}

/* 富文本编辑器工具栏与内容区（增强） */
.editor-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;background:#f7f8f8;border:1px solid var(--line);border-bottom:0;align-items:center}
.editor-toolbar button,.editor-toolbar select{min-height:30px;padding:0 10px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:13px;font-weight:600;cursor:pointer;border-radius:4px}
.editor-toolbar button:hover,.editor-toolbar select:hover{background:var(--amber);border-color:var(--amber)}
.editor-toolbar input[type=color]{width:32px;height:30px;border:1px solid var(--line);padding:0;background:#fff;cursor:pointer;border-radius:4px}
.editor-toolbar .sep{width:1px;background:var(--line);margin:0 2px;align-self:stretch}
.editor-content{min-height:260px;padding:14px 16px;border:1px solid var(--line);background:#fff;font-size:15px;line-height:1.8;color:var(--ink);border-radius:0 0 6px 6px;overflow:auto}
.editor-content:focus{outline:0;border-color:var(--amber)}
.editor-content h2,.editor-content h3,.editor-content h4{margin:18px 0 10px;line-height:1.3}
.editor-content h2{font-size:24px}
.editor-content h3{font-size:20px}
.editor-content h4{font-size:17px}
.editor-content p{margin:0 0 12px}
.editor-content img{max-width:100%;height:auto;border-radius:4px;margin:8px 0}
.editor-content blockquote{border-left:4px solid var(--amber);background:#fff8eb;margin:12px 0;padding:10px 14px;color:var(--ink)}
.editor-content code,.editor-content pre{background:#f4f5f3;padding:2px 6px;border-radius:3px;font-family:Consolas,monospace;font-size:13px}
.editor-content pre{padding:10px 14px;overflow-x:auto;display:block}
.editor-content ul,.editor-content ol{margin:0 0 12px 22px}

.editor-toolbar .toolbar-hint{font-size:12px;color:var(--muted);padding:0 6px}

/* 师资占位段（与 styles.css 的 .instructor-section.placeholder 同步——子页面只引 detail.css） */
.instructor-section.placeholder{background:#1b1d20;color:#fff;padding:90px max(28px,calc((100vw - 1220px)/2));margin:0}
.instructor-section.placeholder .instructor-heading{margin:0 0 36px;max-width:780px}
.instructor-section.placeholder .instructor-heading .kicker{color:#ffb20f;font:700 12px/1 monospace;letter-spacing:2px;margin:0 0 14px}
.instructor-section.placeholder .instructor-heading h2{margin:0 0 16px;font-size:38px;line-height:1.15;color:#fff}
.instructor-section.placeholder .instructor-heading p{margin:0;color:#b8bdc1;font-size:14px;line-height:1.8}
.instructor-section.placeholder .instructor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.instructor-section.placeholder article{background:#292c30;padding:24px 26px 26px}
.instructor-section.placeholder article figure{width:80px;height:80px;background:#5a6166;margin:0 0 16px;display:flex;align-items:center;justify-content:center;color:#7a8086;font-size:11px}
.instructor-section.placeholder article>div>span{color:#ffb20f;font:700 11px/1 monospace;letter-spacing:2px;display:block;margin:0 0 8px}
.instructor-section.placeholder article h3{margin:0 0 10px;font-size:18px;font-weight:700;color:#fff}
.instructor-section.placeholder article>div>p{margin:0 0 14px;color:#c8ced2;font-size:13px;line-height:1.75}
.instructor-section.placeholder article dl{margin:0;padding:14px 0 0;border-top:1px solid #3a3f42}
.instructor-section.placeholder article dl>div{display:grid;grid-template-columns:auto 1fr;gap:8px;margin:0 0 6px}
.instructor-section.placeholder article dt{color:#9ba4aa;font:400 11px/1.4 monospace;letter-spacing:1px}
.instructor-section.placeholder article dd{margin:0;color:#fff;font-size:13px;font-weight:600}
.instructor-section.placeholder .instructor-note{margin:30px 0 0;color:#9ba4aa;font-size:12px;text-align:center}
@media(max-width:980px){.instructor-section.placeholder .instructor-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.instructor-section.placeholder .instructor-grid{grid-template-columns:1fr}.instructor-section.placeholder{padding:60px 20px}}

/* 师资段（V3 风格：数据条 + 主教员大卡 + 副教员 2 列，与 styles.css 同步——子页面只引 detail.css） */
.instructor-team{background:#fff;padding:90px max(28px,calc((100vw - 1220px)/2));color:#1b1d20}
.instructor-team .kicker{color:#ffb20f;font:700 12px/1 monospace;letter-spacing:2px;margin:0 0 14px}
.instructor-team h2{margin:0 0 16px;font-size:38px;line-height:1.15}
.instructor-team .intro{max-width:780px;margin:0 0 50px;color:#5a6166;font-size:14px;line-height:1.8}
.instructor-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #e1e4e6;margin:0 0 32px;background:#fff}
.instructor-stats[data-count="3"]{grid-template-columns:repeat(3,1fr)}
.instructor-stats .stat{padding:28px 22px;text-align:left;border-right:1px solid #e1e4e6}
.instructor-stats .stat:last-child{border-right:0}
.instructor-stats .stat strong{display:block;font-size:46px;font-weight:800;color:#1b1d20;line-height:1;letter-spacing:-1px}
.instructor-stats .stat strong sub{font-size:18px;color:#ffb20f;font-weight:800;margin-left:2px;vertical-align:baseline}
.instructor-stats .stat span{display:block;margin-top:6px;color:#7a8086;font-size:13px}
.instructor-lead{display:grid;grid-template-columns:280px 1fr;gap:0;border:1px solid #e1e4e6;margin:0 0 32px;background:#2a3942;color:#fff;overflow:hidden}
.instructor-lead .photo{background:#5a6166;display:flex;align-items:center;justify-content:center;overflow:hidden}
.instructor-lead .photo img{width:100%;height:100%;object-fit:cover;display:block}
.instructor-lead .info{padding:30px 36px 28px;display:flex;flex-direction:column;gap:10px}
.instructor-lead .role{color:#ffb20f;font:700 11px/1 monospace;letter-spacing:2px}
.instructor-lead h3{margin:0;font-size:26px;font-weight:800;color:#fff}
.instructor-lead .desc{margin:0;color:#d3dade;font-size:13px;line-height:1.85}
.instructor-lead dl{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:14px 0 0;padding:14px 0 0;border-top:1px solid #41474b}
.instructor-lead dl>div{margin:0}
.instructor-lead dt{color:#9ba4aa;font:400 11px/1.4 monospace;letter-spacing:1px;margin:0 0 4px}
.instructor-lead dd{margin:0;color:#fff;font-size:13px;font-weight:700}
.instructor-lead .quote{margin:14px 0 0;padding:10px 14px;border-left:3px solid #ffb20f;background:rgba(255,178,15,.08);color:#ffd980;font-size:13px;line-height:1.7}
.instructor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin:0}
.instructor-card{position:relative;display:grid;grid-template-columns:170px 1fr;gap:0;background:#fff;border:1px solid #e1e4e6}
.instructor-card .photo{background:#f1f2f0;overflow:hidden}
.instructor-card .photo img{width:100%;height:100%;object-fit:cover;display:block}
.instructor-card .info{padding:24px 26px 22px;display:flex;flex-direction:column;gap:8px}
.instructor-card .role{color:#ffb20f;font:700 11px/1 monospace;letter-spacing:2px}
.instructor-card h3{margin:0;font-size:19px;font-weight:800;color:#1b1d20}
.instructor-card .desc{margin:0;color:#5a6166;font-size:13px;line-height:1.75}
.instructor-card dl{display:grid;grid-template-columns:1fr;gap:8px;margin:10px 0 0;padding:10px 0 0;border-top:1px solid #ececec}
.instructor-card dl>div{margin:0}
.instructor-card dt{color:#9ba4aa;font:400 11px/1.4 monospace;letter-spacing:1px;margin:0 0 2px}
.instructor-card dd{margin:0;color:#1b1d20;font-size:13px;font-weight:700}
.instructor-team .note{margin:30px 0 0;color:#9ba4aa;font-size:12px}
@media(max-width:980px){.instructor-stats{grid-template-columns:repeat(2,1fr)}.instructor-stats .stat:nth-child(2){border-right:0}.instructor-stats[data-count="3"]{grid-template-columns:repeat(2,1fr)}.instructor-stats[data-count="3"] .stat:nth-child(2){border-right:0}.instructor-lead{grid-template-columns:1fr}.instructor-lead .photo{height:240px}.instructor-grid{grid-template-columns:1fr}}
@media(max-width:640px){.instructor-stats{grid-template-columns:1fr}.instructor-stats .stat{border-right:0;border-bottom:1px solid #e1e4e6}.instructor-stats .stat:last-child{border-bottom:0}.instructor-card{grid-template-columns:120px 1fr}.instructor-card .photo{min-height:140px}.instructor-team{padding:60px 20px}}
