:root {
    --primary-color: #8B2635; /* 绛色 */
    --secondary-color: #FFD700; /* 黄色 */
    --dark-red: #5C1A22;
    --light-gold: #FFDF5D;
    --text-dark: #F5F5F5;
    --text-light: #000000;
    --bg-light: #f9f9f9;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
}


body {
    font-family: "mp-quote", -apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
    background-color: #1a1a1a;
    color: var(--text-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-dark-red {
    background-color: var(--dark-red);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color);
}

.border-secondary {
    border-color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 3D效果容器 */
#three-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(139, 38, 53, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 套餐卡片样式 */
.package-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.package-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.package-card.popular {
    border-color: var(--secondary-color);
    position: relative;
}

.package-card.popular::before {
    content: '最受欢迎';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 2px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 表单样式 */
.form-input {
    transition: all 0.3s ease;
    border: 1px solid #ccc;
}

.form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-red);
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    #three-container {
        height: 200px;
    }
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.index-qrcode {
    position: absolute;
    bottom: 40px;
    right: 20px;
    max-width: 200px;
    height: auto;
}

.bg-white.shadow-lg {
    position: relative;
}

.breadcrumb {
    background-color: rgba(139, 38, 53, 0.05);
}

body.sub {
    background-color: var(--bg-light);
}

/* 卡片图片样式 */
.card-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.knowledge-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    background: white;
    box-shadow: var(--card-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.knowledge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--secondary-color);
}

.knowledge-card:hover::before {
    width: 8px;
    background-color: var(--secondary-color);
}

.knowledge-card:hover .card-img {
    transform: scale(1.08);
}

.card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a13a49 100%);
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(139, 38, 53, 0.2);
    position: relative;
    z-index: 1;
    margin-top: -30px;
    margin-left: 1.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.read-more-btn i {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* 页码样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4rem 0 2rem;
    gap: 0.5rem;
}

.pagination a, .pagination span, .pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: white;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination a:hover:not(.disabled):not(.active), .pagination span:hover:not(.disabled):not(.active),
.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .active span,
.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.2);
}

.pagination .disabled span,
.pagination-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.pagination-btn i {
    font-size: 1rem;
}


/* 左侧列表页码样式 */
.sidebar-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 0;
    gap: 0.3rem;
    border-top: 1px solid #eee;
}

.sidebar-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: white;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.sidebar-pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.sidebar-pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(139, 38, 53, 0.2);
}

.sidebar-pagination-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.sidebar-pagination-btn i {
    font-size: 0.8rem;
}

/* 右侧知识内容区域 */
.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 3rem;
    border: 1px solid #eee;
}

/* 知识内容样式 */
.knowledge-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.knowledge-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.knowledge-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
    gap: 2rem;
}

.knowledge-meta span {
    display: flex;
    align-items: center;
}

.knowledge-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.knowledge-content {
    font-size: 1.05rem;
    color: #333;
}

.knowledge-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 1rem;
}

.knowledge-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2rem;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.knowledge-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.knowledge-content ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: none;
}

.knowledge-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.knowledge-content li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.knowledge-tip {
    background-color: rgba(139, 38, 53, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.knowledge-tip strong {
    color: var(--primary-color);
}

.knowledge-img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 左侧列表样式 */
.sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid #eee;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a13a49 100%);
    color: white;
    padding: 1.5rem;
}

.sidebar-menu {
    padding: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
}

.menu-item.active {
    background-color: rgba(139, 38, 53, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

.menu-item:hover:not(.active) {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.menu-item i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* 左侧列表页码样式 */
.sidebar-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 0;
    gap: 0.3rem;
    border-top: 1px solid #eee;
}

.sidebar-pagination a,
.sidebar-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: white;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.sidebar-pagination a:hover:not(.disabled):not(.active),
.sidebar-pagination span:hover:not(.disabled):not(.active),
.sidebar-pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.sidebar-pagination .active span,
.sidebar-pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(139, 38, 53, 0.2);
}

.sidebar-pagination .disabled span,
.sidebar-pagination-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.sidebar-pagination i,
.sidebar-pagination-btn i {
    font-size: 0.8rem;
}