/* 河合塾风格样式 - 思齐塾主页 */

/* 新Navbar样式 */
.navbar-custom {
    background-color: var(--siqi-white) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


/* 简化的Logo样式 */
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* 导航链接 */
.navbar-nav .nav-link {
    color: var(--siqi-red) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--siqi-red-dark) !important;
}

/* 带图标的导航项 */
.nav-item-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-icon {
    background-color: #07c160;
    position: relative;
}

.wechat-icon::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    top: 2px;
    left: 2px;
}

.wechat-icon::before {
    content: '●●●';
    position: absolute;
    color: #07c160;
    font-size: 8px;
    top: 4px;
    left: 4px;
}

.consultation-icon {
    background-color: transparent;
    border: 2px solid var(--siqi-red);
    position: relative;
}

.consultation-icon::after {
    content: '●●';
    position: absolute;
    color: var(--siqi-red);
    font-size: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Q&A弹窗样式 */
.qa-content .qa-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(151, 71, 71, 0.1);
}

.qa-content .qa-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.qa-content .qa-item strong {
    color: var(--siqi-red-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.qa-content .qa-item p {
    color: var(--siqi-red);
    margin: 0;
    line-height: 1.6;
}

/* 基础字体和颜色 - 客户指定配色 */
:root {
    /* 客户指定颜色 */
    --siqi-red-dark: rgb(86, 21, 21);      /* 大红 */
    --siqi-red: rgb(151, 71, 71);          /* 红 */
    --siqi-pink: rgb(212, 120, 117);       /* 粉红 */
    --siqi-off-white: rgb(255, 252, 246);  /* 杂白色 */
    --siqi-white: rgb(255, 255, 255);      /* 白色 */
    
    /* 兼容性变量（保持原有命名） */
    --kawai-blue: rgb(86, 21, 21);
    --kawai-light-blue: rgb(151, 71, 71);
    --kawai-orange: rgb(212, 120, 117);
    --kawai-light-orange: rgb(212, 120, 117);
    --kawai-gray: rgb(151, 71, 71);
    --kawai-light-gray: rgb(255, 252, 246);
    --kawai-dark-gray: rgb(86, 21, 21);
}

/* 统计卡片样式 */
.stat-card {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--kawai-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--kawai-gray);
    font-weight: 500;
}

/* 全局样式 */
body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--kawai-dark-gray);
    font-size: 16px;
    font-weight: 400;
}

/* 首页顶部空白修复：移除 main 默认内边距与导航下方间距 */
body > main {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.navbar {
    margin-bottom: 0;
}

/* 导航栏美化（白色背景） */
.navbar-custom {
    background-color: var(--siqi-white) !important;
    border-bottom: 1px solid rgba(151, 71, 71, 0.1);
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-right: 20px; /* 与右侧导航保持合理间距 */
}

/* Logo悬停动画 */
.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.navbar-custom .nav-link {
    color: var(--siqi-red) !important;
    font-weight: 600;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover {
    color: var(--siqi-red-dark) !important;
}


.navbar-right-group .social-links {
    gap: 10px;
}

.navbar-right-group .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    transition: all .2s ease;
    margin-left: 6px;
}

.navbar-right-group .social-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}


/* 统一社交图标尺寸与对齐，确保在圆内居中显示 */
.navbar-right-group .social-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* 暗黑主题覆盖 */



.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/Sakura.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.hero-section .lead {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-section .h5 {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* 信息区域样式 */
.info-section {
    background: var(--kawai-light-gray);
    padding: 80px 0;
}

.news-section {
    background: white;
    padding: 80px 0;
}

/* 特色网格布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--kawai-light-blue), var(--kawai-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--kawai-dark-gray);
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.feature-item p {
    color: var(--kawai-gray);
    margin-bottom: 10px;
    font-size: 1rem;
}

.feature-item .small {
    font-size: 0.9rem;
    color: var(--kawai-gray);
    opacity: 0.8;
}

/* 暗黑模式下的文字颜色优化 */





/* 区域标题在暗黑模式下的颜色优化 */
.section-title {
    color: var(--kawai-dark-gray);
}

.section-subtitle {
    color: var(--kawai-gray);
}



/* 暗黑模式下的灰色文字优化 */



/* 成就区域副标题在暗黑模式下的颜色 */
.achievements-subtitle {
    color: var(--kawai-gray);
}

/* 课程卡片样式 */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.course-card .card-body {
    padding: 40px 30px;
    text-align: center;
}

.course-card .h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--kawai-light-blue);
    margin-bottom: 15px;
}

.course-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--kawai-dark-gray);
    margin-bottom: 15px;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.course-card .card-text {
    color: var(--kawai-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 新闻项目样式 */
.news-item {
    border-left: 5px solid var(--kawai-light-blue);
    padding-left: 25px;
    margin-bottom: 30px;
    background: white;
    padding: 20px 25px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-date {
    color: var(--kawai-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.news-title {
    font-weight: 600;
    color: var(--kawai-dark-gray);
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.4;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.news-desc {
    color: var(--kawai-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* 按钮样式 */
.btn-primary-custom {
    background: linear-gradient(45deg, var(--kawai-orange), var(--kawai-light-orange));
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.4);
    color: white;
    text-decoration: none;
}


.btn-outline-primary {
    border: 2px solid var(--kawai-light-blue);
    color: var(--kawai-light-blue);
    background: transparent;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--kawai-light-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--kawai-gray);
    color: var(--kawai-gray);
    background: transparent;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--kawai-gray);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-light {
    background: white;
    color: var(--kawai-blue);
    border: 2px solid white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* 标题样式 */
.h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--kawai-dark-gray);
    margin-bottom: 20px;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.lead {
    font-size: 1.2rem;
    color: var(--kawai-gray);
    font-weight: 400;
}

/* 冻结导航后为主体添加安全内边距，避免被遮挡 */
body.fixed-nav-enabled > main {
    padding-top: 58px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 轮播响应式 */
    .carousel-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .carousel-image {
        height: 50vh;
        min-height: 400px;
    }
    
    .carousel-caption {
        padding: 16px 20px;
        max-width: 94%;
    }
    
    .carousel-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .carousel-subtitle { display: none; }
    
    .carousel-desc { display: none; }
    
    .btn-carousel-primary {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    /* 其他响应式 */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .achievement-badge {
        padding: 12px 16px;
        margin-bottom: 15px;
    }
    
    
    .btn-primary-custom {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* 轮播小屏幕响应式 */
    .carousel-section {
        height: 40vh;
        min-height: 300px;
    }
    
    .carousel-image {
        height: 40vh;
        min-height: 300px;
    }
    
    .carousel-caption {
        padding: 10px 14px;
        max-width: 96%;
    }
    
    .carousel-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .carousel-subtitle { display: none; }
    
    .carousel-desc { display: none; }
    
    .btn-carousel-primary {
        padding: 8px 14px;
        font-size: 0.78rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
    
    /* 其他小屏幕响应式 */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 25px 15px;
    }
    
    .course-card .card-body {
        padding: 30px 20px;
    }
    
    .course-card .h3 {
        font-size: 2rem;
    }
    
    .news-item {
        padding: 15px 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.course-card,
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 移除自定义滚动条样式，恢复系统默认外观 */
