body {
    background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
    background-attachment: fixed;
}

/* ====== 🌸 导航栏样式 ====== */
.sakura-nav {
    background: linear-gradient(90deg, rgba(255, 245, 247, 0.75) 0%, rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 192, 203, 0.3);
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.25);
    transition: all 0.4s ease;
}

/* Logo 动画与阴影 */
.sakura-logo {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 182, 193, 0.4);
}

.sakura-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 182, 193, 0.7);
}

/* 链接样式 */
.nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: #e83e8c !important;
    text-shadow: 0 0 6px rgba(232, 62, 140, 0.4);
}

/* ====== 🌸 页脚样式 ====== */
.sakura-footer {
    background: linear-gradient(90deg, rgba(255, 245, 247, 0.75) 0%, rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 182, 193, 0.3);
    box-shadow: 0 -4px 20px rgba(255, 182, 193, 0.2);
    border-radius: 20px 20px 0 0;
}

.sakura-footer a:hover {
    color: #e83e8c !important;
}

/* ====== 🌸 小屏优化 ====== */
@media (max-width: 768px) {
    .navbar-brand img {
        width: 30px;
        height: 30px;
    }

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

/* ===== 🌸 卡片整体玻璃风格 ===== */
.sakura-card {
    background: linear-gradient(180deg, rgba(255, 245, 247, 0.8), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 192, 203, 0.25);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sakura-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(255, 182, 193, 0.35);
}

/* ===== 🌸 图片容器 ===== */
.card-img-container {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 192, 203, 0.25);
}

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sakura-card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== 🌸 浮动徽章（城市名 / 课程类别） ===== */
.sakura-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 192, 203, 0.85);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(255, 182, 193, 0.3);
    letter-spacing: 0.5px;
}

/* ===== 🌸 文字样式 ===== */
.card-title {
    color: #333;
    font-size: 1.05rem;
}

.card-text {
    color: #666;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 🌸 响应式优化 ===== */
@media (max-width: 768px) {
    .card-img-top {
        height: 140px;
    }

    .card-title {
        font-size: 1rem;
    }

    .sakura-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* 整体容器玻璃背景 */
.sakura-hot-list {
    background: linear-gradient(180deg, rgba(255, 245, 247, 0.8), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 192, 203, 0.25);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(255, 182, 193, 0.15);
}

/* 每一项的样式 */
.sakura-hot-item {
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    padding: 10px 12px;
}

.sakura-hot-item:hover {
    background: rgba(255, 240, 245, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(255, 182, 193, 0.25);
}

/* 图片风格 */
.hot-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(255, 182, 193, 0.3);
    transition: transform 0.4s ease;
}

.sakura-hot-item:hover .hot-img {
    transform: scale(1.08);
}

/* 排名徽章 */
.rank-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: linear-gradient(145deg, #ffb6c1, #ff69b4);
    color: #fff;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(255, 182, 193, 0.3);
}

/* 文字样式 */
.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .hot-img {
        width: 48px;
        height: 48px;
    }
}

.sakura-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(255, 182, 193, 0.15);
    /* padding: 30px; */
}

/* ===== 🌸 搜索框背景 ===== */
.sakura-search {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(255, 182, 193, 0.2);
}

/* ===== 🌸 输入框 ===== */
.sakura-input {
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sakura-input:focus {
    border-color: #ffb6c1;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.4);
}

/* ===== 🌸 渐变主按钮 ===== */
.btn-sakura {
    background: linear-gradient(90deg, #ffb6c1, #ff69b4);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: white !important;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.35);
    transition: all 0.3s ease;
}

.btn-sakura:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 182, 193, 0.45);
}

/* ===== 🌸 渐变描边按钮（查看更多） ===== */
.btn-sakura-outline {
    border: 2px solid #ffb6c1;
    border-radius: 12px;
    color: #ff69b4 !important;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.15);
    transition: all 0.3s ease;
}

.btn-sakura-outline:hover {
    background: linear-gradient(90deg, #ffb6c1, #ff69b4);
    color: white !important;
    box-shadow: 0 4px 16px rgba(255, 182, 193, 0.3);
    transform: translateY(-3px);
}


/* ===== 🌸 分页容器 ===== */
.pagination {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 16px;
    display: inline-flex;
    box-shadow: 0 4px 14px rgba(255, 182, 193, 0.2);
}

/* ===== 🌸 分页项 ===== */
.sakura-page-item {
    margin: 0 4px;
}

/* ===== 🌸 分页链接基础样式 ===== */
.sakura-page-link {
    color: #ff69b4;
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 182, 193, 0.15);
}

.sakura-page-link:hover {
    background: linear-gradient(90deg, #ffb6c1, #ff69b4);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

/* ===== 🌸 当前页 ===== */
.active-page {
    background: linear-gradient(90deg, #ffb6c1, #ff69b4) !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

/* ===== 🌸 手机端分页优化 ===== */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        padding: 6px 8px;
    }

    .sakura-page-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* ===== 🌸 学校大图区域 ===== */
.position-relative.mb-4 {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(255, 182, 193, 0.3);
    position: relative;
}

.position-relative.mb-4::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 192, 203, 0.25), rgba(255, 255, 255, 0.3));
    z-index: 2;
}

/* ===== 🌸 学校详情（about 内容） ===== */
.school-detail .summernote-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 182, 193, 0.2);
    line-height: 1.8;
}

/* ===== 🌸 表格样式（课程费用表） ===== */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table-warning th {
    background: linear-gradient(90deg, #ffe4ec 0%, #fff7fa 100%);
    color: #333;
    border-color: rgba(255, 182, 193, 0.3);
}

.table-bordered td,
.table-bordered th {
    border-color: rgba(255, 182, 193, 0.2);
}

.table tr:hover {
    background: rgba(255, 240, 245, 0.5);
    transition: background 0.3s;
}

/* ===== 🌸 提交表单 ===== */
.contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(255, 182, 193, 0.25);
}

.contact-form label {
    font-weight: 600;
    color: #555;
}

.contact-form .form-control {
    border-radius: 10px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    transition: all 0.2s ease;
}

.contact-form .form-control:focus {
    border-color: #ffb6c1;
    box-shadow: 0 0 8px rgba(255, 182, 193, 0.4);
}

/* 🌸 按钮 */
.contact-form .btn-primary {
    background: linear-gradient(90deg, #ffb6c1, #ff69b4);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 182, 193, 0.4);
}

/* ===== 🌸 手机端优化 ===== */
/* 🌸 修复学校大图高度过低问题 */
.school-hero {
    height: 400px;
    /* 默认桌面高度 */
}

@media (max-width: 768px) {
    .school-hero {
        height: 320px !important;
        /* 手机端稍微矮一点，但保持比例 */
    }
}

/* 🌸 动态樱花瓣样式 */
.sakura-container-hero {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.sakura-petal {
    position: absolute;
    top: -10px;
    background: radial-gradient(circle at 35% 40%, #ffb6c1 0%, #ff69b4 60%, transparent 100%);
    opacity: 0.8;
    border-radius: 50% 50% 50% 50%;
    transform-origin: center;
    animation: sakuraFall linear forwards;
}

@keyframes sakuraFall {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }

    50% {
        opacity: 0.9;
        transform: translateX(30px) translateY(50vh) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translateX(-30px) translateY(100vh) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}

.text-truncate-1 {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 限制为两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4em;
    max-height: 2.8em;
    /* 2 行 * 行高 */
}

a.list-group-item .text-content {
    flex: 1;
    /* 占满剩余宽度 */
    min-width: 0;
    /* 避免溢出 */
}

.img-50 {
    width: 50px;
    height: 50px;
    object-fit: cover;
    /* 保持比例不变形 */
    border-radius: 6px;
    /* 可选，让图片更柔和 */
}

.card-img-uniform {
    height: 180px;
    object-fit: cover;
}

/* ========= Summernote 富文本展示样式 ========= */
.summernote-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 图片自适应 */
.summernote-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0.5rem auto;
    border-radius: 0.5rem;
}

/* 表格可横向滚动 */
.summernote-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 1rem;
    display: block;
    overflow-x: auto;
}

.summernote-content table td,
.summernote-content table th {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
}

/* 处理 iframe（YouTube, GoogleMap 等） */
.summernote-content iframe {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 清除编辑器遗留的字体、颜色等 */
.summernote-content span,
.summernote-content font {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* 段落留白 */
.summernote-content p {
    margin-bottom: 1rem;
}

/* 引用、列表微调 */
.summernote-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 0.8rem;
    color: #555;
    margin: 1rem 0;
}

.summernote-content ul,
.summernote-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* 手机端优化 */
@media (max-width: 768px) {
    .summernote-content {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 0.5rem;
    }

    .summernote-content table td,
    .summernote-content table th {
        font-size: 0.9rem;
        padding: 6px;
    }

    /* .school-detail {
        padding: 0.5rem;
    } */

    .summernote-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    h2 {
        font-size: 1.3rem;
    }

    .table td,
    .table th {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h5 {
        font-size: 1.1rem;
    }

    .contact-form .form-label {
        font-size: 0.95rem;
    }
}

/* 初始模糊图片样式 */
.lazy-blur {
    filter: blur(20px);
    transition: filter 0.6s ease, opacity 0.3s ease;
}

/* 图片加载完成后去掉模糊 */
.lazy-blur.loaded {
    filter: blur(0);
    opacity: 1;
}

.school-detail a {
    word-break: break-all;
    overflow-wrap: break-word;
    text-decoration: underline;
    color: #0d6efd;
    /* 保持 Bootstrap 链接蓝色 */
}

.school-detail p {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ✅ 样式优化 */
.school-detail {
    font-size: 1rem;
    line-height: 1.75;
}

.summernote-content {
    overflow-x: auto;
    word-wrap: break-word;
}

.card {
    border-radius: 12px;
    background-color: #fff;
}

/* ✅ 桌面表格在灰背景下更柔和 */
.table {
    background-color: #fff;
}

/* ✅ 微调文字与行距 */
.table th,
.table td {
    padding: 0.75rem;
}

.table th {
    white-space: nowrap;
}

.contact-form {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

/* 🌸 改进版徽章样式：更亮、更清晰 */
.sakura-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(145deg, #ff69b4, #ff1493);
    /* 深粉色渐变 */
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    /* 阴影增强对比 */
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* 文字立体 */
    z-index: 5;
}