/* ===== 全局样式重置 ===== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei","Noto Sans SC",sans-serif;color:#1a1a2e;background:#fafbff;line-height:1.8;overflow-x:hidden}
a{color:#4361ee;text-decoration:none;transition:color .3s}
a:hover{color:#7209b7}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.3;color:#0f0e17}
h1{font-size:2.5rem}
h2{font-size:2rem}
h3{font-size:1.5rem}
h4{font-size:1.25rem}
p{margin-bottom:1rem}

/* ===== 干扰标签隐藏 ===== */
.jammer-block{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;opacity:0;pointer-events:none;z-index:-9999}

/* ===== 容器 ===== */
.container{max-width:1280px;margin:0 auto;padding:0 1.5rem}
.container-narrow{max-width:960px;margin:0 auto;padding:0 1.5rem}

/* ===== 导航栏 ===== */
.site-nav{background:linear-gradient(135deg,#1a237e 0%,#4361ee 100%);padding:1rem 0;position:relative;z-index:100}
.nav-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.nav-logo{display:flex;align-items:center;gap:.75rem}
.nav-logo img{height:40px;width:auto;border-radius:6px}
.nav-logo span{color:#fff;font-size:1.25rem;font-weight:700;letter-spacing:1px}
.nav-links{display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap}
.nav-links a{color:rgba(255,255,255,.9);font-size:.95rem;padding:.4rem .8rem;border-radius:6px;transition:all .3s}
.nav-links a:hover,.nav-links a.active{background:rgba(255,255,255,.15);color:#fff}
.nav-toggle{display:none;background:none;border:none;color:#fff;font-size:1.5rem;cursor:pointer;padding:.5rem}

/* ===== 面包屑 ===== */
.breadcrumb{padding:1rem 0;font-size:.875rem;color:#6c757d}
.breadcrumb a{color:#4361ee}
.breadcrumb span{margin:0 .5rem;color:#adb5bd}

/* ===== 英雄区域 ===== */
.hero{position:relative;background:linear-gradient(135deg,#1a237e 0%,#4361ee 50%,#7209b7 100%);padding:5rem 0 4rem;overflow:hidden;min-height:520px}
.hero::before{content:"";position:absolute;top:-50%;right:-20%;width:600px;height:600px;background:radial-gradient(circle,rgba(114,9,183,.3) 0%,transparent 70%);border-radius:50%}
.hero::after{content:"";position:absolute;bottom:-30%;left:-10%;width:500px;height:500px;background:radial-gradient(circle,rgba(67,97,238,.3) 0%,transparent 70%);border-radius:50%}
.hero-content{position:relative;z-index:2;display:flex;align-items:center;gap:3rem;flex-wrap:wrap}
.hero-text{flex:1;min-width:320px;color:#fff}
.hero-text h1{font-size:2.75rem;margin-bottom:1.5rem;line-height:1.2;text-shadow:0 2px 10px rgba(0,0,0,.2)}
.hero-text p{font-size:1.15rem;opacity:.9;margin-bottom:2rem;max-width:560px}
.hero-image{flex:1;min-width:300px;text-align:center}
.hero-image img{border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.3);max-height:400px;object-fit:cover}
.hero-btns{display:flex;gap:1rem;flex-wrap:wrap}

/* ===== 按钮 ===== */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 2rem;border-radius:50px;font-size:1rem;font-weight:600;cursor:pointer;border:none;transition:all .3s;text-align:center}
.btn-primary{background:linear-gradient(135deg,#f72585,#b5179e);color:#fff;box-shadow:0 4px 15px rgba(247,37,133,.4)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(247,37,133,.5);color:#fff}
.btn-secondary{background:rgba(255,255,255,.15);color:#fff;border:2px solid rgba(255,255,255,.4);backdrop-filter:blur(10px)}
.btn-secondary:hover{background:rgba(255,255,255,.25);color:#fff;transform:translateY(-2px)}
.btn-outline{background:transparent;color:#4361ee;border:2px solid #4361ee}
.btn-outline:hover{background:#4361ee;color:#fff}

/* ===== 区块通用 ===== */
.section{padding:4.5rem 0}
.section-alt{background:linear-gradient(180deg,#f0f2ff 0%,#fafbff 100%)}
.section-dark{background:linear-gradient(135deg,#1a237e 0%,#0f0e17 100%);color:#fff}
.section-header{text-align:center;margin-bottom:3rem}
.section-header h2{position:relative;display:inline-block;padding-bottom:.75rem}
.section-header h2::after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:60px;height:4px;background:linear-gradient(90deg,#4361ee,#7209b7);border-radius:2px}
.section-header p{color:#6c757d;margin-top:1rem;font-size:1.05rem;max-width:680px;margin-left:auto;margin-right:auto}

/* ===== 课程卡片 ===== */
.course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:2rem}
.course-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.06);transition:all .4s;border:1px solid rgba(67,97,238,.08)}
.course-card:hover{transform:translateY(-8px);box-shadow:0 12px 40px rgba(67,97,238,.15)}
.course-card-img{position:relative;overflow:hidden;height:220px}
.course-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.course-card:hover .course-card-img img{transform:scale(1.05)}
.course-card-badge{position:absolute;top:1rem;left:1rem;background:linear-gradient(135deg,#f72585,#b5179e);color:#fff;padding:.3rem .8rem;border-radius:20px;font-size:.8rem;font-weight:600}
.course-card-body{padding:1.5rem}
.course-card-body h3{font-size:1.2rem;margin-bottom:.75rem}
.course-card-body p{color:#6c757d;font-size:.9rem;margin-bottom:1rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.course-meta{display:flex;gap:1rem;flex-wrap:wrap;font-size:.85rem;color:#6c757d}
.course-meta-item{display:flex;align-items:center;gap:.3rem}

/* ===== 文档速览 ===== */
.doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem}
.doc-card{background:#fff;border-radius:12px;padding:1.5rem;border:1px solid #e8ecf4;transition:all .3s}
.doc-card:hover{border-color:#4361ee;box-shadow:0 8px 25px rgba(67,97,238,.1)}
.doc-card img{border-radius:8px;margin-bottom:1rem;height:180px;width:100%;object-fit:cover}
.doc-card h4{margin-bottom:.5rem}
.doc-card p{color:#6c757d;font-size:.9rem}
.doc-tag{display:inline-block;background:#eef0ff;color:#4361ee;padding:.2rem .6rem;border-radius:4px;font-size:.75rem;margin-right:.5rem;margin-bottom:.5rem}

/* ===== 动态新闻 ===== */
.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:2rem}
.news-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.05);transition:all .3s}
.news-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,.1)}
.news-card img{height:200px;width:100%;object-fit:cover}
.news-card-body{padding:1.25rem}
.news-card-body h4{margin-bottom:.5rem}
.news-card-body p{color:#6c757d;font-size:.9rem}
.news-date{font-size:.8rem;color:#adb5bd;margin-top:.75rem}

/* ===== 评价区 ===== */
.testimonial-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:2rem}
.testimonial-card{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 20px rgba(0,0,0,.05);border-left:4px solid #4361ee;transition:all .3s}
.testimonial-card:hover{box-shadow:0 8px 30px rgba(67,97,238,.12)}
.testimonial-quote{font-size:1rem;color:#333;line-height:1.8;margin-bottom:1.25rem;font-style:italic}
.testimonial-author{display:flex;align-items:center;gap:1rem}
.testimonial-author img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.testimonial-author-info h5{font-size:.95rem;margin-bottom:.2rem}
.testimonial-author-info span{font-size:.8rem;color:#6c757d}

/* ===== 搜索框 ===== */
.search-box{position:relative;max-width:600px;margin:0 auto}
.search-box input{width:100%;padding:1rem 1.5rem;padding-right:3.5rem;border:2px solid rgba(255,255,255,.3);border-radius:50px;background:rgba(255,255,255,.1);color:#fff;font-size:1rem;backdrop-filter:blur(10px);outline:none;transition:all .3s}
.search-box input::placeholder{color:rgba(255,255,255,.6)}
.search-box input:focus{border-color:rgba(255,255,255,.6);background:rgba(255,255,255,.15)}
.search-box button{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:linear-gradient(135deg,#f72585,#b5179e);border:none;color:#fff;width:42px;height:42px;border-radius:50%;cursor:pointer;font-size:1.1rem;transition:all .3s}
.search-box button:hover{transform:translateY(-50%) scale(1.05)}

/* ===== API演示 ===== */
.api-demo{background:#1e1e2e;border-radius:16px;padding:2rem;color:#cdd6f4;font-family:"Fira Code","Source Code Pro","Courier New",monospace;font-size:.9rem;overflow-x:auto;position:relative}
.api-demo-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #313244}
.api-demo-dot{width:12px;height:12px;border-radius:50%}
.api-demo-dot.red{background:#f38ba8}
.api-demo-dot.yellow{background:#f9e2af}
.api-demo-dot.green{background:#a6e3a1}
.api-demo pre{white-space:pre-wrap;word-break:break-all;line-height:1.6}
.api-demo .keyword{color:#cba6f7}
.api-demo .string{color:#a6e3a1}
.api-demo .number{color:#fab387}
.api-demo .comment{color:#6c7086}

/* ===== 讲师区 ===== */
.instructor-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:2rem}
.instructor-card{text-align:center;background:#fff;border-radius:16px;padding:2rem 1.5rem;box-shadow:0 4px 15px rgba(0,0,0,.05);transition:all .3s}
.instructor-card:hover{transform:translateY(-6px);box-shadow:0 10px 30px rgba(67,97,238,.12)}
.instructor-card img{width:120px;height:120px;border-radius:50%;object-fit:cover;margin:0 auto 1.25rem;border:4px solid #eef0ff}
.instructor-card h4{margin-bottom:.3rem}
.instructor-card p{color:#6c757d;font-size:.9rem}

/* ===== 统计数据 ===== */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;padding:3rem 0}
.stat-item{text-align:center;padding:1.5rem}
.stat-number{font-size:2.5rem;font-weight:800;background:linear-gradient(135deg,#4361ee,#7209b7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.stat-label{color:#6c757d;font-size:.95rem;margin-top:.5rem}

/* ===== 行动号召 ===== */
.cta{background:linear-gradient(135deg,#1a237e 0%,#7209b7 100%);padding:4rem 0;text-align:center;color:#fff;position:relative;overflow:hidden}
.cta::before{content:"";position:absolute;top:-50%;right:-30%;width:600px;height:600px;background:radial-gradient(circle,rgba(247,37,133,.2) 0%,transparent 70%);border-radius:50%}
.cta h2{font-size:2rem;margin-bottom:1rem;position:relative;z-index:2}
.cta p{font-size:1.1rem;opacity:.9;margin-bottom:2rem;position:relative;z-index:2}

/* ===== 页脚 ===== */
.site-footer{background:#0f0e17;color:#a7a9be;padding:3.5rem 0 0}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2.5rem;margin-bottom:2.5rem}
.footer-col h4{color:#fff;margin-bottom:1.25rem;font-size:1.05rem;position:relative;padding-bottom:.5rem}
.footer-col h4::after{content:"";position:absolute;bottom:0;left:0;width:30px;height:3px;background:linear-gradient(90deg,#4361ee,#7209b7);border-radius:2px}
.footer-col p{font-size:.9rem;line-height:1.8}
.footer-col a{display:block;color:#a7a9be;padding:.3rem 0;font-size:.9rem;transition:all .3s}
.footer-col a:hover{color:#4361ee;padding-left:.5rem}
.footer-social{display:flex;gap:1rem;margin-top:1rem}
.footer-social a{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.08);color:#a7a9be;transition:all .3s}
.footer-social a:hover{background:#4361ee;color:#fff;transform:translateY(-3px)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:1.5rem 0;text-align:center;font-size:.85rem}
.footer-bottom a{color:#4361ee}

/* ===== 内页样式 ===== */
.page-header{background:linear-gradient(135deg,#1a237e 0%,#4361ee 100%);padding:3rem 0;color:#fff}
.page-header h1{font-size:2.2rem;margin-bottom:.5rem}
.page-header p{opacity:.85;font-size:1.05rem}

.content-area{padding:3rem 0}
.content-main{max-width:860px}
.content-sidebar{width:300px}
.content-layout{display:flex;gap:3rem;flex-wrap:wrap}
.content-layout .content-main{flex:1;min-width:0}
.content-layout .content-sidebar{flex-shrink:0}

/* ===== 代码块 ===== */
.code-block{background:#1e1e2e;border-radius:12px;padding:1.5rem;margin:1.5rem 0;overflow-x:auto;position:relative}
.code-block pre{color:#cdd6f4;font-family:"Fira Code","Source Code Pro",monospace;font-size:.875rem;line-height:1.7;white-space:pre-wrap}
.code-block .copy-btn{position:absolute;top:.75rem;right:.75rem;background:rgba(255,255,255,.1);border:none;color:#cdd6f4;padding:.4rem .8rem;border-radius:6px;cursor:pointer;font-size:.8rem;transition:all .3s}
.code-block .copy-btn:hover{background:rgba(255,255,255,.2)}

/* ===== FAQ ===== */
.faq-item{background:#fff;border-radius:12px;margin-bottom:1rem;border:1px solid #e8ecf4;overflow:hidden}
.faq-question{padding:1.25rem 1.5rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-weight:600;transition:all .3s}
.faq-question:hover{background:#f8f9ff}
.faq-answer{padding:0 1.5rem;max-height:0;overflow:hidden;transition:all .4s;color:#6c757d;line-height:1.8}
.faq-item.active .faq-answer{max-height:500px;padding:0 1.5rem 1.25rem}
.faq-icon{transition:transform .3s;font-size:1.2rem;color:#4361ee}
.faq-item.active .faq-icon{transform:rotate(45deg)}

/* ===== 评论区 ===== */
.comment-section{margin-top:2rem}
.comment-item{display:flex;gap:1rem;padding:1.25rem 0;border-bottom:1px solid #e8ecf4}
.comment-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;flex-shrink:0}
.comment-body h5{font-size:.95rem;margin-bottom:.3rem}
.comment-body p{color:#6c757d;font-size:.9rem}
.comment-time{font-size:.8rem;color:#adb5bd;margin-top:.3rem}

/* ===== 侧边栏 ===== */
.sidebar-widget{background:#fff;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid #e8ecf4}
.sidebar-widget h4{margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #eef0ff}
.sidebar-widget a{display:block;padding:.5rem 0;color:#333;font-size:.9rem;border-bottom:1px solid #f5f5f5}
.sidebar-widget a:hover{color:#4361ee}

/* ===== 目录导航 ===== */
.toc{position:sticky;top:2rem}
.toc h4{margin-bottom:1rem}
.toc a{display:block;padding:.4rem 0 .4rem 1rem;color:#6c757d;font-size:.875rem;border-left:2px solid #e8ecf4;transition:all .3s}
.toc a:hover,.toc a.active{color:#4361ee;border-left-color:#4361ee}

/* ===== 标签筛选 ===== */
.filter-bar{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:2rem;justify-content:center}
.filter-btn{padding:.5rem 1.25rem;border-radius:25px;border:1px solid #e8ecf4;background:#fff;color:#6c757d;cursor:pointer;font-size:.9rem;transition:all .3s}
.filter-btn:hover,.filter-btn.active{background:#4361ee;color:#fff;border-color:#4361ee}

/* ===== 动画 ===== */
.fade-in{opacity:0;transform:translateY(30px);transition:all .6s ease-out}
.fade-in.visible{opacity:1;transform:translateY(0)}
.slide-left{opacity:0;transform:translateX(-40px);transition:all .6s ease-out}
.slide-left.visible{opacity:1;transform:translateX(0)}
.slide-right{opacity:0;transform:translateX(40px);transition:all .6s ease-out}
.slide-right.visible{opacity:1;transform:translateX(0)}

/* ===== 响应式 ===== */
@media(max-width:1024px){
  .hero-content{flex-direction:column;text-align:center}
  .hero-text h1{font-size:2rem}
  .hero-btns{justify-content:center}
  .content-layout{flex-direction:column}
  .content-sidebar{width:100%}
}
@media(max-width:768px){
  .nav-links{display:none;width:100%;flex-direction:column;padding-top:1rem;gap:.5rem}
  .nav-links.active{display:flex}
  .nav-toggle{display:block}
  h1{font-size:1.75rem}
  h2{font-size:1.5rem}
  .section{padding:3rem 0}
  .hero{padding:3rem 0 2.5rem;min-height:auto}
  .course-grid{grid-template-columns:1fr}
  .doc-grid{grid-template-columns:1fr}
  .news-grid{grid-template-columns:1fr}
  .testimonial-grid{grid-template-columns:1fr}
  .instructor-grid{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
  .filter-bar{justify-content:flex-start}
}
@media(max-width:480px){
  .container{padding:0 1rem}
  .instructor-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .hero-text h1{font-size:1.5rem}
}
