 :root {
            --primary: #c11d1c; /* 浙大红/深红 */
            --primary-hover: #a01716;
            --primary-light: #fff1f0; /* 浅红背景 */
            --primary-border: #ffccc7; /* 浅红边框 */
            --text-main: #333333;
            --text-secondary: #666666;
            --text-light: #999999;
            --bg-body: #f5f7fa;
            --bg-white: #ffffff;
            --border-color: #e8e8e8;
            --shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
        }

        /* Reset & Base */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; 
            background: var(--bg-body); 
            color: var(--text-main); 
            line-height: 1.6; 
        }
        a { text-decoration: none; color: var(--text-main); transition: color 0.3s; }
        a:hover { color: var(--primary); }
        ul, ol { list-style: none; }
        img { max-width: 100%; display: block; }

        /* Layout - 调整最大宽度为 1400px */
        .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

        /* Header */
        .header { background: var(--bg-white); box-shadow: 0 1px 4px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
        .header .container { display: flex; align-items: center; height: 60px; }
        .logo { font-size: 22px; font-weight: bold; color: var(--primary); margin-right: 60px; }
        .logo span { color: var(--text-main); }
        .nav-menu { display: flex; gap: 35px; }
        .nav-menu a { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
        .nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

        /* Breadcrumb */
        .breadcrumb { padding: 20px 0; font-size: 14px; color: var(--text-light); }
        .breadcrumb a { color: var(--text-light); }

        /* Course Hero Section */
        .course-hero { background: var(--bg-white); border-radius: 8px; box-shadow: var(--shadow); padding: 40px; display: flex; gap: 40px; margin-bottom: 25px; }
        .hero-img { 
            flex: 0 0 480px; height: 300px; background: #f0f2f5; border-radius: 8px; overflow: hidden; 
            display: flex; align-items: center; justify-content: center; color: #ccc; 
        }
        .hero-img img { width: 100%; height: 100%; object-fit: cover; }
        .hero-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
        .hero-title { font-size: 28px; font-weight: bold; margin-bottom: 20px; line-height: 1.4; color: #222; }
        .hero-tags { display: flex; gap: 12px; margin-bottom: 25px; }
        .hero-tags span { padding: 6px 14px; background: var(--primary-light); color: var(--primary); font-size: 13px; border-radius: 4px; border: 1px solid var(--primary-border); font-weight: 500; }
        .hero-price { margin-bottom: 25px; }
        .hero-price .price { font-size: 36px; font-weight: bold; color: var(--primary); }
        .hero-price .unit { font-size: 16px; color: var(--text-secondary); margin-left: 8px; }
        .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; font-size: 15px; color: var(--text-secondary); }
        .hero-meta div strong { color: var(--text-main); margin-right: 10px; font-weight: 600; }
        .hero-actions { display: flex; gap: 20px; margin-top: auto; }
        .btn-primary { padding: 14px 50px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 17px; font-weight: bold; cursor: pointer; transition: background 0.3s; box-shadow: 0 4px 10px rgba(193, 29, 28, 0.2); }
        .btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
        .btn-outline { padding: 14px 50px; background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 6px; font-size: 17px; cursor: pointer; transition: all 0.3s; font-weight: 500; }
        .btn-outline:hover { background: var(--primary-light); }

        /* Main Content Layout */
        .main-content { display: flex; gap: 25px; align-items: flex-start; }
        
        /* Left Content (Brochure) */
        .content-left { flex: 1; background: var(--bg-white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; min-height: 800px; }
        .section-header { padding: 25px 40px; border-bottom: 1px solid var(--border-color); background: #fafafa; }
        .section-title { font-size: 20px; font-weight: bold; color: var(--text-main); border-left: 5px solid var(--primary); padding-left: 15px; }
        
        .brochure-content { padding: 10px 40px 20px; }
        .brochure-content h2 { font-size: 22px; margin: 35px 0 20px; color: var(--text-main); font-weight: bold; border-bottom: 1px dashed #eee; padding-bottom: 10px; }
        .brochure-content h2:first-child { margin-top: 0; }
        .brochure-content p { font-size: 16px; line-height: 1.9; color: #444; margin-bottom: 20px; text-indent: 2em; text-align: justify; }
        .brochure-content img { margin: 25px auto; border-radius: 8px; max-width: 100%; background: #f5f5f5; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
        .brochure-content strong { color: var(--text-main); font-weight: 600; }

        /* Right Sidebar (Sticky Form) */
        .content-right { flex: 0 0 360px; position: sticky; top: 90px; z-index: 10; }
        .sidebar-card { background: var(--bg-white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid #eee; }
        .sidebar-title { padding: 18px 25px; font-size: 18px; font-weight: bold; border-bottom: 1px solid var(--border-color); background: #fafafa; color: var(--text-main); text-align: center; }
        .sidebar-body { padding: 25px; }
        
        /* Form Styles */
        .form-group { margin-bottom: 20px; position: relative; }
        .form-group label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
        .form-control { width: 100%; height: 44px; padding: 0 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; outline: none; transition: all 0.3s; background: #fafafa; }
        .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(193, 29, 28, 0.08); background: #fff; }
        .form-row { display: flex; gap: 12px; }
        .code-img { height: 44px; width: 110px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #666; flex-shrink: 0; font-weight: bold; letter-spacing: 2px;}
        .error-msg { color: #ff4d4f; font-size: 12px; margin-top: 6px; display: none; }
        .btn-submit { width: 100%; height: 48px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 17px; font-weight: bold; cursor: pointer; transition: background 0.3s; margin-top: 15px; box-shadow: 0 4px 12px rgba(193, 29, 28, 0.25); }
        .btn-submit:hover { background: var(--primary-hover); }
        .form-tip { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 15px; line-height: 1.4; }
        .success-msg { display: none; color: #52c41a; text-align: center; margin-top: 15px; font-weight: bold; padding: 12px; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 6px; }

        /* Footer */
        
       .footer-simple {
    background-color: #f8f8f8;
    border-top: 1px solid #e8e8e8;
    color: #666;
    font-size: 14px;
    line-height: 2;
    padding: 30px 20px 24px;
    margin-top: 60px;
}

.footer-simple .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-simple .footer-links {
    margin-bottom: 10px;
}

.footer-simple .link-label {
    color: #999;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

.footer-simple .footer-links a {
    color: #666;
    text-decoration: none;
    margin-right: 18px;
    transition: color 0.2s ease;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.footer-simple .footer-links a:hover {
    color: #c11d1c;
    border-bottom-color: #c11d1c;
}

.footer-simple .footer-copyright {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #ddd;
    text-align: center;
    font-size: 13px;
    color: #999;
}
.last{ display:none;width:100%; height:40px; line-height:40px; background:#c11d1c; position:fixed; z-index:99999; bottom:0px;}
.last ul li{ float:left; width:33%; height:40px; border-right:1px #fff solid; background-color:#c11d1c; text-align:center; display:block; overflow:hidden;}
.last ul li:last-child{border: none}
.last ul li a { display:inline-block; height:40px; width:99.8%; color:#FFF; text-align:center; }
.last ul li a span { font-size:14px; font-weight:600;}
/* =========================================
   核心：富文本通用排版样式 (自动适配后台)
   ========================================= */
.rich-content {
    font-size: 16px;
    line-height: 2.0;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* 1. 仅对「直接包含图片」的 div 消除间距 */
.rich-content div:has(> img:only-child),
.rich-content div:has(> a > img:only-child) {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important; /* 只对纯图片容器生效 */
    font-size: 0 !important;   /* 双重保险消除间隙 */
}
/* 2. 其他所有 div 恢复正常文字排版 */
.rich-content div:not(:has(> img:only-child)):not(:has(> a > img:only-child)) {
    line-height: inherit !important; /* 继承父级 1.85 的行高 */
    font-size: inherit !important;
    margin-bottom: 0.8em; /* 恢复合理的段落间距 */
}

/* 段落与文本 */
.rich-content p { margin-bottom: 1.2em; text-align: justify; }
.rich-content strong, .rich-content b { font-weight: 600; color: #111; }
.rich-content em, .rich-content i { font-style: italic; color: #555; }
/* 3. 隐藏编辑器产生的纯空白段落 */
.rich-content p:has(> br:only-child),
.rich-content p:empty {
    display: none !important;
    margin: 0 !important;
}
/* 标题层级 */
.rich-content h2, .rich-content h3, .rich-content h4,
.rich-content h5, .rich-content h6 {
    margin: 2.2em 0 0.9em;
    line-height: 1.35;
    font-weight: 600;
    color: #111;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #eee;
}
.rich-content h2 { font-size: 22px; }
.rich-content h3 { font-size: 19px; }
.rich-content h4 { font-size: 17px; border-bottom: none; }
.rich-content h5 { font-size: 16px; border-bottom: none; }
.rich-content h6 { font-size: 15px; border-bottom: none; color: #444; }

/* 链接 */
.rich-content a { 
    color: var(--primary, #a30001); 
    text-decoration: none; 
    border-bottom: 1px dashed transparent; 
    transition: all 0.2s; 
}
.rich-content a:hover { border-bottom-color: var(--primary, #a30001); }

/* 3. 图片样式保持不变 */
.rich-content img {
    height: auto !important;
    width: 90% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    vertical-align: bottom;
}
.rich-content img.alignleft, .rich-content img[style*="float: left"] { 
    float: left; margin: 0 1.5em 1em 0; max-width: 45%; 
}
.rich-content img.alignright, .rich-content img[style*="float: right"] { 
    float: right; margin: 0 0 1em 1.5em; max-width: 45%; 
}

/* 列表 */
.rich-content ul, .rich-content ol { margin-bottom: 1.2em; padding-left: 1.8em; }
.rich-content li { margin-bottom: 0.5em; }
.rich-content ul { list-style-type: disc; }
.rich-content ol { list-style-type: decimal; }
.rich-content ul ul, .rich-content ol ol { margin-top: 0.5em; margin-bottom: 0; }

/* 引用块 */
.rich-content blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary, #a30001);
    border-radius: 0 6px 6px 0;
    color: #555;
    font-style: italic;
}

/* 表格 */
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 15px;
    overflow-x: auto;
}
.rich-content th, .rich-content td {
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}
.rich-content th { background: #f5f7fa; font-weight: 600; }
.rich-content tr:nth-child(even) td { background: #fafafa; }

/* 代码块 */
.rich-content code, .rich-content pre {
    background: #f4f5f7;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    color: #c7254e;
}
.rich-content pre {
    padding: 16px;
    overflow-x: auto;
    margin: 1.5em 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e0e0e0;
}

/* 分割线 */
.rich-content hr {
    border: none;
    border-top: 1px solid #e6e6e6;
    margin: 2em 0;
}

/* Responsive */
@media (max-width: 1200px) {
     .container { max-width: 960px; }
     .content-right { flex: 0 0 300px; }
}
@media (max-width: 992px) {
    .course-hero { flex-direction: column; padding: 25px; }
    .hero-img { flex: none; width: 100%; height: 220px; }
    .main-content { flex-direction: column; }
    .content-right { flex: none; width: 100%; position: static; margin-bottom: 20px; }
    .sidebar-card { margin-bottom: 20px; }
}
@media (max-width: 768px) {
    .header .container { height: 50px; }
    .logo { font-size: 12px; margin-right: 20px; }
    .nav-menu { gap: 15px; font-size: 8px; overflow-x: auto; white-space: nowrap; }
    .breadcrumb { font-size: 10px; }
    .hero-title { font-size: 20px; }
    .hero-meta { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
    .brochure-content { padding: 20px; }
    .footer-simple {
    padding: 24px 16px 20px;
    font-size: 13px;
    }
    
    .footer-simple .footer-links a {
        margin-right: 12px;
        margin-bottom: 4px;
    }
    
    .footer-simple .link-label {
        display: block;
        margin-bottom: 4px;
    }
    
    .footer-simple .footer-copyright {
        margin-top: 14px;
        padding-top: 14px;
        font-size: 12px;
    }
    .rich-content { font-size: 15px; line-height: 1.8; }
    .rich-content img.alignleft, .rich-content img.alignright { 
        float: none; max-width: 100%; margin: 1em 0; 
    }
    .rich-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .footer-simple{
        display: none;
    }
    .last{ display:block;}
}