/* 全局样式重置 */

/* 确保所有模块标题居中 */
h2, h3 {
    text-align: center !important;
}

/* 修复可能的标题容器对齐问题 */
section .container {
    text-align: center;
}

/* 特殊处理榜单模块中的标题容器 */
.card-3d > div:first-child {
    justify-content: center;
}

/* 确保功能按钮中的标题居中 */
.feature-btn-3d h3 {
    text-align: center !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面主容器 */
body {
    background-color: #f9fafb;
    color: #1f2937;
}

/* 文本阴影效果 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 平滑过渡效果 */
.transition-smooth {
    transition: all 0.3s ease;
}

/* 模块层次感增强 */
section {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

/* 模块分隔装饰 */
section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: linear-gradient(135deg, transparent 33.33%, #e5e7eb 33.33%, #e5e7eb 66.66%, transparent 66.66%);
    background-size: 12px 20px;
    opacity: 0.5;
}

/* 模块标题区域样式增强 */
section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem !important;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a56db, #3b82f6);
    border-radius: 3px;
}

/* 卡片渐变背景 */
.card-gradient {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

/* 深色背景模块样式 */
section.bg-gray-50 {
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 白色背景模块样式 */
section.bg-white {
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* 渐变背景模块样式增强 */
section.bg-gradient-to-b {
    background: linear-gradient(180deg, #f0f9ff, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 导航激活项样式 */
.nav-item-active {
    position: relative;
}

.nav-item-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1a56db;
}

/* 立体感按钮样式 */
.btn-3d {
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.2), rgba(0,0,0,0));
    border-radius: inherit;
    z-index: -1;
}

.btn-3d::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background: rgba(0,0,0,0.15);
    border-radius: inherit;
    z-index: -2;
    transform: translateZ(-1px);
    transition: all 0.3s ease;
}

.btn-3d:hover {
    transform: translateY(-2px) translateZ(2px);
}

.btn-3d:hover::after {
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background: rgba(0,0,0,0.2);
}

.btn-3d:active {
    transform: translateY(0) translateZ(0);
}

.btn-3d:active::after {
    top: 2px;
    left: 2px;
    right: -2px;
    bottom: -2px;
}

/* 立体感卡片样式 */
.card-3d {
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    background-color: white;
    border-radius: 8px;
}

.card-3d:hover {
    transform: translateY(-5px) translateZ(5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    z-index: 10;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a56db, #3b82f6);
    border-radius: 4px 4px 0 0;
}

/* 模块容器增强 */
.container {
    position: relative;
}

/* 卡片间距增强 */
.grid > .card-3d {
    margin-bottom: 1rem;
}

/* 功能按钮在模块中的突出显示 */
.feature-btn-3d {
    position: relative;
    z-index: 5;
}

/* 立体感功能按钮样式 */
.feature-btn-3d {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15), 0 6px 6px rgba(0,0,0,0.1);
}

.feature-btn-3d:hover {
    transform: translateY(-10px) scale(1.03) translateZ(10px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 10px 10px -5px rgba(0,0,0,0.1);
}

.feature-btn-3d:active {
    transform: translateY(-5px) scale(0.98) translateZ(5px);
}

/* 轮播图样式增强 */
#carousel {
    position: relative;
}

.carousel-item {
    transition: opacity 1s ease-in-out;
}

.carousel-indicator {
    cursor: pointer;
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .btn-3d::after {
        top: 3px;
        left: 3px;
        right: -3px;
        bottom: -3px;
    }
    
    .card-3d {
        box-shadow: 0 6px 12px -2px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.06);
    }
}