/* ============================================================
   China-Gateway Rwanda - Custom Styles
   ============================================================ */

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 主色调 - 教育商务风 */
:root {
    --primary-color: #1a5276;
    --secondary-color: #2e86c1;
    --accent-color: #f39c12;
    --light-bg: #f8f9fa;
}

/* 导航栏自定义 */
.navbar {
    background-color: var(--primary-color) !important;
}

.navbar-brand {
    font-size: 1.3rem;
}

/* 轮播图 */
.carousel-item {
    height: 420px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.carousel-caption {
    bottom: 25%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 卡片悬停效果 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* 页面标题区 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 内容区 */
.content-section {
    padding: 30px 0;
}

.content-section h2,
.content-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.content-section h4 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 新闻列表 */
.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h5 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.news-item h5 a:hover {
    color: var(--secondary-color);
}

.news-date {
    color: #888;
    font-size: 0.9rem;
}

/* 联系信息卡片 */
.contact-info-card {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.contact-info-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* 分页 */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 新闻详情 */
.news-detail-content {
    font-size: 1rem;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 15px;
}

/* 表单样式优化 */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 193, 0.25);
}

/* 特色区块背景 */
.feature-section {
    background-color: var(--light-bg);
    padding: 60px 0;
}

/* 分隔线 */
.section-divider {
    height: 3px;
    width: 60px;
    background: var(--accent-color);
    margin: 0 auto 30px;
}

/* ============================================================
   新增样式 - 获客成交型网站
   ============================================================ */

/* 区块标题 */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* Hero 首屏 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 600px;
}

/* 服务卡片 */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* 占位图 / 真实图片容器 */
.why-china-placeholder,
.scholarship-placeholder,
.page-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.why-china-placeholder img,
.scholarship-placeholder img,
.page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.why-china-placeholder,
.scholarship-placeholder {
    height: 350px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e9f6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 4rem;
}

.why-china-placeholder.has-image,
.scholarship-placeholder.has-image {
    display: block;
    font-size: inherit;
}

/* 流程时间线 */
.process-timeline {
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(26, 82, 118, 0.3);
}

/* 课程卡片 */
.course-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.course-header {
    padding: 30px;
    text-align: center;
    color: white;
}

.course-header i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hsk-bg {
    background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
}

.csca-bg {
    background: linear-gradient(135deg, #7d3c98 0%, #a569bd 100%);
}

.course-body {
    padding: 25px;
}

.price-tag {
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 价格卡片 */
.pricing-card {
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.pricing-card .display-6 {
    color: var(--primary-color);
}

/* 成功案例卡片 */
.story-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e8f4f8, #d1e9f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--secondary-color);
    overflow: hidden;
}

.story-avatar.has-image {
    display: block;
    font-size: inherit;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* CTA 区块 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    color: white;
}

/* WhatsApp 悬浮按钮 */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* 时间线列表 */
.timeline-list {
    position: relative;
    padding-left: 30px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

/* 新闻卡片 */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Accordion 样式优化 */
.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

/* 导航栏CTA按钮在移动端的间距 */
@media (max-width: 991.98px) {
    .navbar .d-flex.gap-2 {
        margin-bottom: 10px;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .min-vh-75 {
        min-height: auto;
        padding: 30px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .why-china-placeholder,
    .scholarship-placeholder {
        height: 250px;
        font-size: 3rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .process-step {
        margin-bottom: 20px;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}
