/* ============================================
 * 哈哈哈心理咨询官网
 * 配色（可通过后台配置，由 JS 动态覆盖）
 * ============================================ */

:root {
    /* 主配色 - 温暖治愈系（心理咨询主题） */
    --primary: #C4906B;      /* 暖金（主按钮、品牌主调） */
    --secondary: #E8A87C;    /* 暖珊瑚（行动号召、渐变终点） */
    --accent: #2D4A6F;      /* 深海蓝（Hero 深色区、Footer） */
    --light: #FBF7F0;       /* 暖白（页面背景） */
    --dark: #3D5A80;        /* 钢青蓝（标题、正文主色、渐变起点） */
    --gradient-start: #3D5A80; /* Hero 渐变起点 */
    --gradient-mid:   #98C1D9; /* Hero 渐变中间（天空蓝） */
    --gradient-end:   #E8A87C; /* Hero 渐变终点（暖珊瑚） */
    --text-dark: #3D5A80;
    --text-light: #6B7B8D;
    --border: #E8D5C8;
    --shadow: 0 4px 16px rgba(196,144,107,0.15);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--light);
    overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.3; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 14px;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,144,107,0.38); }
.btn-secondary { background: linear-gradient(135deg, var(--accent), var(--dark)); }
.btn-secondary:hover { box-shadow: 0 8px 24px rgba(45,74,111,0.35); }
.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    box-shadow: none;
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }

/* ===== 头部导航 ===== */
header {
    background: rgba(255,255,255,0.97);
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.09); border-bottom-color: var(--border); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 40px; width: auto; }

.nav-links { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.nav-links a {
    display: block;
    padding: 7px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
}
.nav-links a:hover { color: var(--primary); background: rgba(212,175,55,0.08); }
.nav-links a.active { color: var(--primary); background: rgba(212,175,55,0.12); }

.mobile-menu { display: none; font-size: 22px; cursor: pointer; color: var(--primary); padding: 6px; }

/* ===== 页面切换 ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    color: white;
    padding: 90px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;right: -8%;
    width: 480px;height: 480px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -25%;left: -6%;
    width: 340px;height: 340px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero h1 { font-size: 3rem; margin-bottom: 18px; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hero p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.92; line-height: 1.75; }
.hero-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

/* ===== Section 通用 ===== */
.section { padding: 76px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 1.85rem; color: var(--dark); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 0.97rem; }
.section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ===== 课程列表 ===== */
.courses { background: white; }
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.course-card {
    width: 368px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.course-img {
    width: 368px;
    height: 368px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 3rem;
    overflow: hidden;
    flex-shrink: 0;
}
.course-img.has-img { background: transparent; }
.course-img img { width: 100%; height: 100%; object-fit: cover; }

.course-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.course-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(212,175,55,0.12);
    color: var(--dark);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.course-tag.tag-light { background: #f5f5f5; color: var(--text-light); }
.course-content h3 { color: var(--dark); font-size: 1.1rem; margin-bottom: 8px; }
.course-content > p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 14px;
}
.course-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.course-price { font-size: 1.35rem; font-weight: 800; color: var(--secondary); }
.course-original-price { font-size: 12px; color: #bbb; text-decoration: line-through; }
.course-views { margin-left: auto; font-size: 12px; color: #bbb; display: flex; align-items: center; gap: 4px; }

/* ===== 讲师列表 ===== */
.instructors-section { background: linear-gradient(to bottom, white, var(--light)); }
.instructors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

.instructor-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.instructor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.instructor-img {
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--dark);
    overflow: hidden;
}
.instructor-img.has-img { background: transparent; }
.instructor-img img { width: 100%; height: 100%; object-fit: cover; }

.instructor-info { padding: 18px 16px 20px; }
.instructor-info h3 { color: var(--dark); font-size: 1.1rem; margin-bottom: 4px; }
.instructor-title { color: var(--secondary); font-size: 0.84rem; font-weight: 600; margin-bottom: 8px; }
.instructor-bio { color: var(--text-light); font-size: 0.84rem; line-height: 1.5; margin-bottom: 12px; min-height: 38px; }
.instructor-footer { display: flex; justify-content: center; }
.view-detail-link { color: var(--primary); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }

.view-all-wrap { text-align: center; margin-top: 36px; }

/* ===== 特色优势 ===== */
.features { background: linear-gradient(to bottom, var(--light), white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
}
.feature-card:hover { transform: translateY(-6px); }
.feature-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.7rem;
}
.feature-card h3 { color: var(--dark); font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.65; }

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, var(--dark), var(--accent));
    color: white;
    padding: 52px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 32px;
}
.footer-col h3 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; position: relative; }
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 2px;
    background: var(--primary);
}
.footer-col > p { color: rgba(255,255,255,0.78); font-size: 0.88rem; line-height: 1.65; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.contact-info { color: rgba(255,255,255,0.78); font-size: 0.86rem; }
.contact-info p { margin-bottom: 9px; display: flex; align-items: flex-start; gap: 8px; }
.contact-info i { color: var(--primary); width: 14px; text-align: center; margin-top: 3px; flex-shrink: 0; }
/* ===== Footer 三二维码（公众号/客服/视频号）===== */
.footer-qrcodes-wrap { margin-top: 14px; }
.footer-qrcodes-row {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}
.footer-qrcode-item {
    text-align: center;
    flex-shrink: 0;
}
.footer-qrcode-item img {
    width: 90px; height: 90px;
    object-fit: contain;
    border-radius: 6px;
    background: white;
    padding: 4px;
    display: block;
}
.footer-qrcode-item .qrcode-label {
    margin-top: 5px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    display: block;
}
.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 20px 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    max-width: 1180px;
    margin: 0 auto;
}
.footer-icp { margin-top: 6px; }
.footer-icp a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.78rem; transition: color 0.2s; }
.footer-icp a:hover { color: var(--primary); }

/* ===== Footer 公网安备 ===== */
.footer-police-icp { margin-top: 6px; }
.footer-police-icp a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.78rem; transition: color 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.footer-police-icp a:hover { color: var(--primary); }
.footer-police-icp i { font-size: 11px; }

/* ===== Footer 友情链接 ===== */
.footer-friendlinks {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-fl-title {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}
.footer-fl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    justify-content: center;
}
.footer-fl-list a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-fl-list a:hover { color: var(--primary); }

/* ===== 面包屑 ===== */
.page-breadcrumb {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.page-breadcrumb .container { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-link {
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex; align-items: center; gap: 4px;
}
.breadcrumb-link:hover { color: var(--primary); }
.breadcrumb-sep { font-size: 10px; color: #ccc; }
.breadcrumb-cur { color: var(--dark); font-size: 13px; font-weight: 600; }

/* ===== 课程详情整页 ===== */
.detail-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 60%, var(--secondary) 100%);
    color: white;
    padding: 48px 0 52px;
}
.detail-hero-inner {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}
.detail-hero-main { flex: 1; min-width: 0; }
.detail-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.detail-tag.tag-outline { background: transparent; }
.detail-title { font-size: 2rem; margin-bottom: 12px; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.detail-subtitle { opacity: 0.9; font-size: 1rem; line-height: 1.6; margin-bottom: 16px; }
.detail-meta-row { display: flex; gap: 16px; font-size: 13px; opacity: 0.8; flex-wrap: wrap; }

/* 详情右侧信息卡 */
.detail-hero-card {
    width: 300px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.96);
    color: var(--text-dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.detail-cover { height: 168px; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover-icon { font-size: 3.5rem; color: white; }

.detail-price-box { padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }
.detail-price { font-size: 1.9rem; font-weight: 800; color: var(--secondary); }
.detail-original-price { font-size: 13px; color: #bbb; text-decoration: line-through; margin-left: 8px; }

.detail-enroll-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 14px 20px;
    padding: 13px 0;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: none; cursor: pointer;
    transition: var(--transition);
    width: calc(100% - 40px);
}
.detail-enroll-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,0.35); }

.detail-info-list { padding: 10px 20px 16px; }
.detail-info-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f5f0e0;
    font-size: 13px;
}
.detail-info-item:last-child { border-bottom: none; }
.detail-info-item i { color: var(--primary); width: 16px; text-align: center; }
.detail-info-item span { color: var(--text-light); flex: 1; }
.detail-info-item strong { color: var(--text-dark); }

/* 详情内容区 */
.detail-body-wrap { padding: 40px 20px 60px; }
.detail-content-area {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 820px;
    padding: 28px 32px;
}
/* 富文本内容 */
.rich-content {
    line-height: 1.85;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.rich-content h1,.rich-content h2,.rich-content h3,.rich-content h4 {
    color: var(--dark);
    margin: 20px 0 10px;
}
.rich-content h2 { font-size: 1.25rem; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.rich-content h3 { font-size: 1.1rem; }
.rich-content p { margin-bottom: 12px; }
.rich-content ul,.rich-content ol { padding-left: 24px; margin-bottom: 14px; }
.rich-content li { margin-bottom: 7px; }
.rich-content img { max-width: 100%; border-radius: 8px; margin: 14px 0; display: block; }
.rich-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 18px;
    background: var(--light);
    border-radius: 0 8px 8px 0;
    margin: 14px 0;
    color: var(--text-light);
}
.content-empty { text-align: center; color: #bbb; padding: 40px 20px; font-style: italic; }
.outline-heading { color: var(--dark); padding: 6px 0; font-size: 1rem; }

/* ===== 讲师详情整页 ===== */
.instructor-detail-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    color: white;
    padding: 48px 0 52px;
}
.instructor-detail-hero-inner { display: flex; gap: 32px; align-items: center; }

.instructor-detail-avatar-wrap {
    flex-shrink: 0;
    width: 140px; height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.4);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
}
.instructor-detail-avatar { width: 100%; height: 100%; object-fit: cover; }
.instructor-detail-avatar-placeholder { font-size: 5rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.instructor-detail-info h1 { font-size: 1.9rem; margin-bottom: 6px; }
.instructor-detail-title { opacity: 0.85; font-size: 1rem; margin-bottom: 14px; }

.instructor-specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.specialty-tag {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.instructor-detail-meta { display: flex; gap: 20px; font-size: 13px; opacity: 0.82; flex-wrap: wrap; }
.instructor-detail-meta span { display: flex; align-items: center; gap: 5px; }

.instructor-detail-body { padding: 40px 20px 60px; }
.detail-section-heading {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.detail-section-heading i { color: var(--primary); }

/* ===== 加载/空状态 ===== */
.loading { padding: 64px 20px; text-align: center; color: var(--text-light); font-size: 0.95rem; }
.loading i { margin-right: 6px; color: var(--primary); }
.empty { padding: 64px 20px; text-align: center; color: #bbb; font-size: 0.95rem; }

/* ===== ========== 响应式 ========== ===== */

/* 导航移动端 */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 800;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { padding: 13px 24px; border-radius: 0; width: 100%; }
    .mobile-menu { display: block; }
}

/* 平板 */
@media (max-width: 768px) {
    .hero { padding: 64px 16px 60px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.97rem; }
    .section { padding: 52px 0; }
    .section-title h2 { font-size: 1.6rem; }
    .courses-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
    .instructors-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .contact-info p { justify-content: center; }
    .footer-qrcodes-row { justify-content: center; }

    /* 课程详情整页 */
    .detail-hero { padding: 32px 0 36px; }
    .detail-hero-inner { flex-direction: column; gap: 0; }
    .detail-hero-main { padding: 0 16px 0; }
    .detail-title { font-size: 1.55rem; }
    .detail-hero-card { width: 100%; border-radius: 0; box-shadow: none; border-top: 1px solid rgba(255,255,255,0.15); }
    .detail-cover { height: 200px; }
    .detail-body-wrap { padding: 20px 16px 40px; }
    .detail-tab-content { padding: 20px 18px; }

    /* 讲师详情整页 */
    .instructor-detail-hero { padding: 32px 0 36px; }
    .instructor-detail-hero-inner { flex-direction: column; text-align: center; gap: 20px; }
    .instructor-detail-avatar-wrap { width: 110px; height: 110px; margin: 0 auto; }
    .instructor-detail-info h1 { font-size: 1.6rem; }
    .instructor-specialties { justify-content: center; }
    .instructor-detail-meta { justify-content: center; }
    .instructor-detail-body { padding: 24px 16px 40px; }
}

/* 手机 */
@media (max-width: 480px) {
    .hero { padding: 52px 14px 50px; }
    .hero h1 { font-size: 1.65rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .navbar { padding: 12px 16px; }
    .logo-img { height: 34px; }
    .courses-grid { grid-template-columns: 1fr; }
    .instructors-grid { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 1.4rem; }
    .detail-title { font-size: 1.35rem; }
}

/* ===== 讲师详情页（新版）===== */
.inst-detail-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    color: white;
    padding: 56px 0 60px;
}
.inst-detail-hero-inner {
    display: flex;
    gap: 40px;
    align-items: center;
}
.inst-detail-avatar-wrap {
    flex-shrink: 0;
    width: 160px; height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.12);
}
.inst-detail-avatar {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.inst-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.inst-detail-avatar i { font-size: 4.5rem; color: rgba(255,255,255,0.6); }

.inst-detail-info { flex: 1; min-width: 0; }
.inst-detail-header { margin-bottom: 14px; }
.inst-detail-name { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.inst-detail-title { font-size: 1.05rem; opacity: 0.85; }

.inst-detail-specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.inst-detail-specialty-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.inst-detail-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.inst-detail-stat {
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px;
    opacity: 0.88;
}
.inst-detail-stat i { color: var(--primary); font-size: 15px; opacity: 1; }

.inst-detail-contact-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: none; cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}
.inst-detail-contact-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,175,55,0.5); }

/* 详情内容区 */
.inst-detail-body { padding: 0; background: var(--light); }
.inst-detail-body-inner {
    max-width: 860px;
    margin: -32px auto 0;
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    z-index: 1;
    min-height: 300px;
}
.inst-detail-tabs {
    display: flex;
    border-bottom: 2px solid #f0e8d0;
    background: #fdfaf4;
    border-radius: var(--radius) var(--radius) 0 0;
}
.inst-detail-tab {
    background: none; border: none;
    padding: 15px 28px;
    font-size: 15px; font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
    font-family: inherit;
}
.inst-detail-tab:hover { color: var(--primary); }
.inst-detail-tab.active { color: var(--dark); }
.inst-detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 20px; right: 20px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px 2px 0 0;
}
.inst-detail-panel { padding: 28px 32px; }
.inst-detail-panel.active { display: block; }

/* ===== 响应式：讲师详情页 ===== */
@media (max-width: 768px) {
    .inst-detail-hero { padding: 36px 0 40px; }
    .inst-detail-hero-inner { flex-direction: column; text-align: center; gap: 20px; }
    .inst-detail-avatar-wrap { width: 120px; height: 120px; margin: 0 auto; }
    .inst-detail-name { font-size: 1.7rem; }
    .inst-detail-specialties { justify-content: center; }
    .inst-detail-stats { justify-content: center; }
    .inst-detail-contact-btn { width: 100%; justify-content: center; }
    .inst-detail-body-inner { margin-top: -20px; }
    .inst-detail-panel { padding: 20px 18px; }
}
@media (max-width: 480px) {
    .inst-detail-hero { padding: 28px 0 32px; }
    .inst-detail-name { font-size: 1.45rem; }
    .inst-detail-stats { gap: 14px; }
    .inst-detail-tab { padding: 12px 16px; font-size: 13.5px; }
}

/* ============================
 * 二维码点击放大 Lightbox
 * ============================ */
#qr-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
}
#qr-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-lb-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
}
.qr-lb-box {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 24px 24px 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 420px;
}
.qr-lb-box img {
    max-width: 360px;
    max-height: 360px;
    display: block;
    margin: 0 auto;
}
.qr-lb-label {
    margin-top: 10px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}
.qr-lb-close {
    position: absolute;
    top: 6px; right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
}
.qr-lb-close:hover { color: #111827; }

/* 让页脚的二维码图片看起来可点击 */
.footer-qrcode-item img { cursor: pointer; }
.footer-qrcode-item img:hover { opacity: 0.85; }
