:root{
	--accent-color: #C19A6B;
    --bg-color: #FAF7F2;
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --border-light: #e0dcd3;
}

.hero-section {
            background: linear-gradient(135deg, #2C2C2C 0%, #4a4a4a 100%);
            color: #fff;
            padding: 60px 0 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '☯';
            position: absolute;
            font-size: 15rem;
            opacity: 0.05;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .hero-title {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--accent-color);
        }
		.hero-title-desc{
			font-size: 0.7em; color: #fff;
		}
        .hero-subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 25px;
            font-weight: 300;
        }
        
        .btn-primary-custom {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: #fff;
            padding: 10px 30px;
            border-radius: 50px;
        }

        .btn-primary-custom:hover {
            background-color: #6d1b1b;
            border-color: #6d1b1b;
            color: #fff;
        }
        
        
        .comparison-card {
            background: #fff;
            border-radius: 12px;
            padding: 25px 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            height: 100%;
            border-top: 4px solid #ddd;
            transition: transform 0.3s;
        }

        .comparison-card.active {
            border-top-color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(142, 35, 35, 0.15);
            background: #fffdf9;
        }

        .comparison-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            display: block;
        }

        @media (max-width: 575.98px) {
            .comparison-card {
                padding: 14px 8px;
                border-radius: 8px;
                border-top-width: 3px;
            }
            .comparison-icon {
                font-size: 1.8rem;
                margin-bottom: 8px;
            }
            .comparison-card h3,
            .comparison-card .h4 {
                font-size: 1.2rem !important;
                margin-bottom: 5px;
            }
            .comparison-card .badge {
                font-size: 0.8rem !important;
                padding: 4px 8px;
                margin-bottom: 8px !important;
            }
            .comparison-card ul {
                font-size: 1rem;
                padding-left: 0;
            }
            .comparison-card ul li {
                margin-bottom: 4px !important;
                line-height: 1.4;
            }
            .comparison-card ul li i {
                font-size: 0.8rem;
                margin-right: 3px !important;
            }
            .comparison-card .text-muted.small {
                font-size: 0.9rem !important;
            }
            .hero-subtitle {
                font-size: 1.1rem;
            }
            .text-muted.mb-4 {
                font-size: 1rem !important;
            }
        }

        @media (max-width: 360px) {
            .comparison-card {
                padding: 10px 4px;
            }
            .comparison-icon {
                font-size: 1.5rem;
            }
            .comparison-card h3,
            .comparison-card .h4 {
                font-size: 1rem !important;
            }
            .comparison-card .badge {
                font-size: 0.8rem !important;
            }
            .comparison-card ul {
                font-size: 0.8rem;
            }
        }
        
        .value-icon-box {
            width: 70px;
            height: 70px;
            background: rgba(142, 35, 35, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: var(--primary-color);
            font-size: 2rem;
        }
        
        
        /* ---------- 传承脉络专属样式 ---------- */
        .lineage-flow {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px 0;
        }

        /* 纵向连接线 (桌面端) */
        .lineage-flow::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, var(--border-light), var(--accent-color), var(--border-light));
            transform: translateX(-50%);
            z-index: 0;
        }

        .era-block {
            position: relative;
            z-index: 2;
            margin-bottom: 40px;
            text-align: center;
        }

        .era-title {
            display: inline-block;
            background: var(--bg-light);
            padding: 6px 25px;
            border-radius: 30px;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--primary-color);
            border: 1px solid var(--border-light);
            margin-bottom: 25px;
            font-size: 0.9rem;
            position: relative;
            z-index: 3;
        }

        .person-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 15px;
            position: relative;
            z-index: 2;
        }

        .person-card {
            background: #fff;
            border-radius: 50px;
            padding: 8px 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            border: 1px solid var(--border-light);
            transition: all 0.25s;
            background: #fffdf9;
        }

        .person-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(142, 35, 35, 0.1);
            border-color: var(--accent-color);
        }

        .person-avatar {
            width: 36px;
            height: 36px;
            background: rgba(142,35,35,0.08);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-weight: bold;
            font-size: 0.9rem;
        }

        .person-info {
            text-align: left;
            line-height: 1.3;
        }

        .person-name {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--secondary-color);
        }

        .person-desc {
            font-size: 0.7rem;
            color: #888;
        }

        .arrow-symbol {
            font-size: 1.5rem;
            color: var(--accent-color);
            font-weight: 300;
            margin: 0 5px;
        }
        
        .history-more{
        	position: absolute;top: 10px;right: 2px;
        }

        /* 隐秘传承提示 */
        .secret-note {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 15px 0 25px;
            color: #888;
            font-size: 0.85rem;
            font-style: italic;
        }
        .secret-note i {
            font-size: 1.2rem;
            color: var(--accent-color);
        }

        /* 近代直线传承 */
        .modern-line {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .modern-card {
            background: #fff;
            border-radius: 16px;
            padding: 15px 20px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.04);
            text-align: center;
            min-width: 120px;
            border: 1px solid var(--border-light);
            transition: all 0.3s;
            color: inherit;
    		text-decoration: none;
        }

        .modern-card.highlight {
            border-top: 4px solid var(--primary-color);
            background: #fffdf9;
            box-shadow: 0 10px 22px rgba(142,35,35,0.1);
        }

        .modern-card .modern-avatar {
            width: 50px;
            height: 50px;
            background: rgba(142,35,35,0.08);
            border-radius: 50%;
            margin: 0 auto 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 1.5rem;
        }
        .modern-avatar img{
        	width:100%;
        	border-radius: 50%;
        }

        .modern-name {
            font-weight: 700;
            font-size: 1rem;
        }

        .modern-role {
            font-size: 0.7rem;
            color: #888;
        }

        .arrow-right {
            font-size: 1.8rem;
            color: var(--accent-color);
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .lineage-flow::before {
                display: none;
            }
            .person-row {
                flex-direction: column;
                gap: 8px;
            }
            .arrow-symbol {
                transform: rotate(90deg);
                margin: 0;
            }
            .modern-line {
                flex-direction: column;
                gap: 10px;
            }
            .arrow-right {
                transform: rotate(90deg);
            }
        }

        .timeline {
            position: relative;
            padding-left: 20px;
            border-left: 2px solid #ddd;
            margin-left: 10px;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 30px;
            padding-left: 20px;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -26px;
            top: 5px;
            width: 12px;
            height: 12px;
            background: var(--primary-color);
            border-radius: 50%;
            border: 2px solid #fff;
        }
        

.section-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 40px;
        color: var(--primary-color);
        position: relative;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--secondary-color);
        margin: 12px auto 0;
    }

    .btn-primary {
        background: var(--secondary-color);
        color: var(--primary-color);
        padding: 14px 32px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        border: 2px solid var(--secondary-color);
        transition: all 0.3s;
    }

    .btn-primary:hover {
        background: white;
        color: var(--primary-color);
    }

    .btn-secondary {
        background: transparent;
        color: white;
        padding: 14px 32px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        border: 2px solid white;
        transition: all 0.3s;
    }

    .btn-secondary:hover {
        background: white;
        color: var(--primary-color);
    }

    .btn-outline {
        display: inline-block;
        margin-top: 20px;
        padding: 12px 32px;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        border-radius: 30px;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s;
    }

    .btn-outline:hover {
        background: var(--primary-color);
        color: white;
    }

    .value-card {
        background: var(--white);
        padding: 32px 24px;
        border-radius: 16px;
        text-align: center;
        box-shadow: var(--shadow);
        border-top: 4px solid var(--secondary-color);
    }

    .value-icon {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    .value-card h3 {
        color: var(--primary-color);
        margin-bottom: 12px;
    }

    .master-avatar {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        margin: 0 auto 16px;
        background: var(--secondary-color);
        overflow: hidden;
        border: 4px solid var(--primary-color);
    }

    .master-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .master-title {
        color: var(--primary-color);
        font-weight: bold;
        margin-bottom: 8px;
    }

    .book-card {
        background: var(--bg-color);
        padding: 24px;
        border-radius: 16px;
        text-align: center;
    }

    .book-card img {
        width: 150px;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .book-publisher {
        color: var(--text-light);
        font-size: 0.9rem;
    }

    .achievement-item {
        text-align: center;
        padding: 24px;
        background: var(--white);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .achievement-number {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--primary-color);
    }

    .media-card {
        background: var(--bg-color);
        padding: 24px;
        border-radius: 16px;
        align-items: center;
    }

    .media-card img {
        width: 100%;
        max-width: 300px;
        border-radius: 12px;
        margin: 0 auto;
    }
    .banner-section{
        overflow: hidden;
    }
    .banner-section img {
        margin-top: -10%;
        margin-bottom: -10%;
    }
   .banner {
background: linear-gradient(135deg, #8B0000 0%, #5D0000 100%);
color: white;
padding: 60px 16px;
text-align: center;
position: relative;
overflow: hidden;
}

.banner-title {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.banner-desc {
    font-size: 1rem;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s;
}

.btn-primary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}


.core-values {
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.value-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.masters {
    padding: 60px 0;
    background: var(--white);
}

.masters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.master-card {
    text-align: center;
}

.master-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--secondary-color);
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
}

.about-preview {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.btn-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.books-section {
    padding: 60px 0;
    background: var(--white);
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.book-card {
    background: var(--bg-color);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.book-card img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.book-publisher {
    color: var(--text-light);
    font-size: 0.9rem;
}

.achievements {
    padding: 60px 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.achievement-item {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.media-section {
    padding: 60px 0;
    background: var(--white);
}

.media-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: var(--bg-color);
    padding: 24px;
    border-radius: 16px;
    align-items: center;
}

.media-card img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    margin: 0 auto;
}

.culture-charity {
    padding: 60px 0;
    text-align: center;
} 

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .desktop-nav {
        display: flex;
    }

    .banner {
        padding: 100px 16px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .masters-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .media-card {
        grid-template-columns: 300px 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .floating-consult {
        bottom: 40px;
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.course-detail {
    padding: 50px 0;
}

.detail-content {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.detail-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-banner {
    background: linear-gradient(135deg, #8B0000 0%, #5D0000 100%);
    color: white;
    padding: 50px 16px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}
.p1{
    margin-bottom: 10px;
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color:#4c4c4c;
}
@media (max-width: 768px) {
    .detail-content{
        padding: 16px;
    }
    .course-detail{
        padding: 16px 0;
    }
    .course-detail .container{
        --bs-gutter-x : 0;
    }
}
.tw-section{
    display: flex;
    gap: 20px;
}
@media (max-width: 768px) {
    .tw-section{
        flex-direction: column;
    }
}
.tw-section>*{
    flex:1;
}
.tw-section>figure img{
    width: 100%;
}
.tw-section>.content h6{
    color:#7a7a7a;
}
.tw-section .sc_item_title{
    color:#111111;
    margin-bottom: 1.2rem;
    padding-bottom: 0.62rem;
    position: relative;
}
.sc_item_title::after{
    content:'';
    background:#fc320a;
    height: 1px;
    width: 40px;
    position: absolute;
    bottom: 1px;
    left: 0;
}