/* +----------------------------------------------------------------------
 * | 郑道驾培官方资讯站 - 全站主样式表
 * | 响应式布局，适配 PC/平板/手机三端
 * +---------------------------------------------------------------------- */

/* ===== 全局重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333; line-height: 1.6; background: #f8f9fa; font-size: 15px;
}
a { color: #1a73e8; text-decoration: none; transition: color .2s; }
a:hover { color: #1557b0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.4; }

/* ===== 通用容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.clearfix::after { content: ''; display: table; clear: both; }
.hidden { display: none !important; }
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block; padding: 10px 24px; border: none; border-radius: 4px;
    font-size: 15px; cursor: pointer; text-align: center; transition: all .2s;
    line-height: 1.5; background: #1a73e8; color: #fff; text-decoration: none;
}
.btn:hover { background: #1557b0; color: #fff; }
.btn-green { background: #4caf50; } .btn-green:hover { background: #388e3c; }
.btn-orange { background: #ff9800; } .btn-orange:hover { background: #f57c00; }
.btn-gray { background: #999; } .btn-gray:hover { background: #666; }
.btn-outline { background: transparent; border: 1px solid #1a73e8; color: #1a73e8; }
.btn-outline:hover { background: #1a73e8; color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* ===== 顶部导航栏 ===== */
.site-header {
    background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 1000;
}
.header-top {
    background: #1a73e8; color: #fff; font-size: 13px; padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: #fff; opacity: .9; }
.header-top a:hover { opacity: 1; }
.header-main { padding: 12px 0; position: relative; z-index: 10; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: #1a73e8; }
.logo img { height: 40px; }
.logo-text { display: none; }
.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block; padding: 10px 16px; color: #333; font-size: 15px;
    font-weight: 500; border-radius: 4px; transition: all .2s;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: #1a73e8; background: #e8f0fe; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; }
.search-box input {
    width: 180px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 20px 0 0 20px;
    font-size: 14px;
}
.search-box button {
    padding: 8px 16px; background: #1a73e8; color: #fff; border: none;
    border-radius: 0 20px 20px 0; cursor: pointer; font-size: 14px;
}
.menu-toggle {
    display: none; width: 40px; height: 40px; font-size: 24px;
    background: none; border: none; cursor: pointer; color: #333;
    padding: 0; line-height: 40px; text-align: center;
    -webkit-tap-highlight-color: transparent;
}

/* 移动端遮罩层 */
.mobile-nav-mask {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5); z-index: 999;
}
.mobile-nav-mask.show { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

/* 关闭按钮图标状态切换 */
.menu-toggle.open { color: #1a73e8; }

/* ===== 轮播图 ===== */
.banner { position: relative; overflow: hidden; background: #e8eaf6; }
.banner-slides { position: relative; height: 380px; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide-content {
    position: absolute; top: 50%; left: 10%; transform: translateY(-50%); color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.banner-slide-content h2 { font-size: 36px; margin-bottom: 10px; }
.banner-slide-content p { font-size: 18px; margin-bottom: 20px; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.banner-dot.active { background: #fff; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.3); color: #fff; border: none; padding: 15px 12px; cursor: pointer; font-size: 20px; }
.banner-arrow.prev { left: 10px; } .banner-arrow.next { right: 10px; }

/* ===== 板块标题 ===== */
.section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { font-size: 28px; color: #1a73e8; margin-bottom: 8px; }
.section-title p { color: #999; font-size: 14px; }
.section-title .line { width: 60px; height: 3px; background: #1a73e8; margin: 12px auto 0; border-radius: 2px; }

/* ===== 卡片网格 ===== */
.card-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.card-img { width: 100%; height: 200px; overflow: hidden; background: #f0f0f0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 16px; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; color: #333; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: #1a73e8; }
.card-body p { color: #666; font-size: 14px; line-height: 1.5; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: #999; }

/* ===== 校区卡片 ===== */
.school-card .card-img { height: 180px; }
.school-info { padding: 16px; }
.school-info h3 { font-size: 18px; margin-bottom: 8px; }
.school-info .info-row { font-size: 13px; color: #666; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 6px; }
.school-info .info-row .icon { color: #1a73e8; flex-shrink: 0; }

/* ===== 教练卡片 ===== */
.coach-card { text-align: center; padding: 24px 16px; }
.coach-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; border: 3px solid #e8f0fe; }
.coach-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coach-card h3 { font-size: 18px; margin-bottom: 6px; }
.coach-meta { font-size: 13px; color: #999; margin-bottom: 8px; }
.coach-rating { color: #ff9800; font-size: 16px; margin-bottom: 10px; }
.coach-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tag { display: inline-block; padding: 2px 10px; background: #e8f0fe; color: #1a73e8; border-radius: 12px; font-size: 12px; }
.tag-orange { background: #fff3e0; color: #ff9800; }
.tag-green { background: #e8f5e9; color: #4caf50; }

/* ===== 班型卡片 ===== */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .badge { position: absolute; top: 10px; right: 10px; background: #ff5722; color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px; z-index: 2; }
.price-card .card-body { padding: 20px 16px 8px; text-align: center; }
.price-card .card-body h3 { font-size: 18px; margin-bottom: 8px; }
.price-amount { padding: 12px 16px 16px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.price-amount .price { font-size: 32px; color: #ff5722; font-weight: 700; }
.price-amount .price small { font-size: 14px; font-weight: 400; }
.price-amount .original { color: #999; text-decoration: line-through; font-size: 14px; margin-left: 8px; }
.price-features { list-style: none; padding: 12px 16px; margin: 0; }
.price-features li { padding: 5px 0 5px 20px; font-size: 14px; color: #555; position: relative; line-height: 1.6; }
.price-features li::before { content: '✓'; position: absolute; left: 0; top: 5px; color: #4caf50; font-weight: bold; }
.price-card .btn { margin: auto 16px 16px; width: calc(100% - 32px); }

/* ===== 关于我们精简模块 ===== */
.about-brief { background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.about-brief h3 { color: #1a73e8; margin-bottom: 12px; }
.about-brief p { color: #555; line-height: 1.8; margin-bottom: 15px; }

/* ===== 列表页通用 ===== */
.page-banner { background: linear-gradient(135deg, #1a73e8, #4285f4); color: #fff; padding: 50px 0; text-align: center; }
.page-banner h1 { font-size: 30px; margin-bottom: 10px; }
.page-banner p { font-size: 16px; opacity: .9; }
.list-page { padding: 30px 0; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.cate-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.cate-filter a { padding: 6px 16px; border: 1px solid #ddd; border-radius: 20px; font-size: 14px; color: #555; }
.cate-filter a.active, .cate-filter a:hover { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.sort-bar { display: flex; gap: 12px; font-size: 14px; }
.sort-bar a { color: #666; }
.sort-bar a.active { color: #1a73e8; font-weight: 600; }

/* ===== 详情页 ===== */
.detail-page { padding: 30px 0; }
.detail-header { background: #fff; padding: 30px; border-radius: 8px 8px 0 0; margin-bottom: 0; }
.detail-header h1 { font-size: 26px; margin-bottom: 12px; line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #999; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-content { background: #fff; padding: 30px; border-radius: 0 0 8px 8px; line-height: 1.9; font-size: 16px; }
.detail-content h2 { font-size: 22px; margin: 24px 0 12px; color: #333; }
.detail-content h3 { font-size: 18px; margin: 20px 0 10px; color: #333; }
.detail-content p { margin-bottom: 16px; }
.detail-content img { max-width: 100%; border-radius: 4px; margin: 16px 0; }
.detail-content ul, .detail-content ol { margin: 12px 0 16px 24px; }
.detail-content li { margin-bottom: 6px; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-content table th, .detail-content table td { border: 1px solid #ddd; padding: 10px; }

/* ===== 富文本内容 ===== */
.rich-text { line-height: 1.9; font-size: 16px; color: #333; word-break: break-word; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { margin: 20px 0 10px; }
.rich-text h1 { font-size: 24px; }
.rich-text h2 { font-size: 20px; }
.rich-text h3 { font-size: 18px; }
.rich-text h4 { font-size: 16px; }
.rich-text p { margin-bottom: 16px; }
.rich-text img { max-width: 100%; border-radius: 4px; margin: 12px 0; display: block; }
.rich-text video, .rich-text iframe { max-width: 100%; margin: 12px 0; }
.rich-text ul, .rich-text ol { margin: 12px 0 16px 24px; padding-left: 24px; }
.rich-text li { margin-bottom: 6px; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rich-text table th, .rich-text table td { border: 1px solid #ddd; padding: 10px; }
.rich-text blockquote { border-left: 4px solid #1890ff; padding: 10px 20px; margin: 16px 0; background: #f9f9f9; color: #666; }
.rich-text a { color: #1890ff; text-decoration: underline; }
.rich-text strong, .rich-text b { font-weight: bold; }
.rich-text em, .rich-text i { font-style: italic; }
.rich-text code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 14px; }
.rich-text pre { background: #f5f5f5; padding: 16px; border-radius: 6px; overflow-x: auto; margin: 16px 0; }
.rich-text pre code { background: none; padding: 0; }
.rich-text hr { border: none; border-top: 1px solid #eee; margin: 24px 0; }
.rich-text div { margin-bottom: 12px; }
.rich-text section { margin-bottom: 16px; }

/* ===== 班型详情富文本 ===== */
.price-detail-content,
.price-detail-content h1,
.price-detail-content h2,
.price-detail-content h3,
.price-detail-content h4 { margin: 16px 0 10px; }
.price-detail-content h1 { font-size: 22px; }
.price-detail-content h2 { font-size: 20px; }
.price-detail-content h3 { font-size: 18px; }
.price-detail-content p { margin-bottom: 14px; line-height: 1.8; }
.price-detail-content img { max-width: 100%; border-radius: 4px; margin: 12px 0; display: block; }
.price-detail-content ul,
.price-detail-content ol { margin: 10px 0 16px 24px; padding-left: 20px; }
.price-detail-content li { margin-bottom: 6px; }
.price-detail-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.price-detail-content table th,
.price-detail-content table td { border: 1px solid #ddd; padding: 8px 12px; }
.price-detail-content a { color: #1890ff; text-decoration: underline; }
.price-detail-content strong,
.price-detail-content b { font-weight: bold; }
.price-detail-content em { font-style: italic; }
.price-detail-content blockquote { border-left: 4px solid #ff8c00; padding: 10px 16px; margin: 14px 0; background: #fff8f0; color: #666; }
.price-detail-content hr { border: none; border-top: 1px solid #eee; margin: 20px 0; }
.price-detail-content div { margin-bottom: 10px; }

/* ===== 评论区 ===== */
.comment-section { background: #fff; border-radius: 8px; padding: 30px; margin-top: 20px; }
.comment-section h3 { margin-bottom: 20px; font-size: 20px; }
.comment-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; resize: vertical; min-height: 80px; font-size: 14px; }
.comment-list { margin-top: 20px; }
.comment-item { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; float: left; margin-right: 12px; background: #e8f0fe; display: flex; align-items: center; justify-content: center; color: #1a73e8; font-weight: 600; }
.comment-body { overflow: hidden; }
.comment-author { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-time { color: #999; font-size: 12px; margin-left: 8px; font-weight: 400; }
.comment-content { color: #555; font-size: 14px; }
.comment-reply { margin-left: 52px; margin-top: 12px; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: #333; }
.form-group label .required { color: #f44336; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; transition: border-color .2s; }
.form-control:focus { border-color: #1a73e8; }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { background: #fff; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 40px; cursor: pointer; border-radius: 4px; border: 1px solid #ddd; }

/* ===== 登录注册页 ===== */
.auth-page { padding: 50px 0; background: #f0f2f5; min-height: 60vh; display: flex; align-items: center; }
.auth-box { max-width: 420px; margin: 0 auto; background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.auth-box h2 { text-align: center; margin-bottom: 30px; color: #1a73e8; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #999; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #eee; }
.qq-login-btn { display: block; width: 100%; padding: 10px; background: #12b7f5; color: #fff; text-align: center; border-radius: 4px; font-size: 15px; }
.qq-login-btn:hover { background: #0aa3df; color: #fff; }

/* ===== 个人中心 ===== */
.user-center { padding: 30px 0; }
.user-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.user-sidebar { background: #fff; border-radius: 8px; padding: 20px; height: fit-content; }
.user-profile { text-align: center; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; margin-bottom: 15px; }
.user-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden; border: 3px solid #e8f0fe; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 18px; font-weight: 600; }
.user-menu li a { display: block; padding: 10px 14px; border-radius: 4px; color: #555; font-size: 14px; margin-bottom: 4px; }
.user-menu li a:hover, .user-menu li a.active { background: #e8f0fe; color: #1a73e8; }
.user-content { background: #fff; border-radius: 8px; padding: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { text-align: center; padding: 20px; background: #f8f9fa; border-radius: 8px; }
.stat-card .num { font-size: 28px; font-weight: 700; color: #1a73e8; }
.stat-card .label { font-size: 13px; color: #999; margin-top: 4px; }

/* ===== 表格 ===== */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.table th { background: #f8f9fa; font-weight: 600; color: #333; }
.table tr:hover { background: #fafbfc; }

/* ===== 分页 ===== */
.pagination { text-align: center; margin-top: 30px; }
.pagination ul { display: inline-flex; gap: 4px; }
.pagination li a, .pagination li span { display: block; padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; color: #555; font-size: 14px; }
.pagination li a:hover { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.pagination li.active span { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.pagination li.disabled span { color: #ccc; background: #f9f9f9; }

/* ===== 状态标签 ===== */
.status-tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.status-pending { background: #fff3e0; color: #ff9800; }
.status-success { background: #e8f5e9; color: #4caf50; }
.status-fail { background: #ffebee; color: #f44336; }
.status-info { background: #e8f0fe; color: #1a73e8; }

/* ===== 底部 ===== */
.site-footer { background: #2c3e50; color: #bbb; padding: 40px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid #3d5066; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 1.8; color: #bbb; }
.footer-col a { color: #bbb; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #888; }
.footer-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 10px; flex-wrap: wrap; }

/* ===== 模态框 ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 9999; justify-content: center; align-items: center; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 8px; padding: 30px; max-width: 480px; width: 90%; }
.modal-box h3 { margin-bottom: 16px; }
.modal-close { float: right; font-size: 24px; cursor: pointer; color: #999; line-height: 1; }

/* ===== 提示信息 ===== */
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-info { background: #e8f0fe; color: #1565c0; border: 1px solid #bbdefb; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }

/* ===== 精选内容布局（列表+侧边栏） ===== */
.content-layout { display: flex; gap: 30px; }
.content-main { flex: 1; min-width: 0; }
.content-sidebar { width: 320px; flex-shrink: 0; }

.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #1a73e8; }
.content-title { font-size: 24px; color: #333; }
.content-tabs { display: flex; gap: 20px; }
.content-tabs .tab { font-size: 15px; color: #999; cursor: pointer; position: relative; }
.content-tabs .tab.active { color: #1a73e8; font-weight: 600; }
.content-tabs .tab.active::after { content: ''; position: absolute; bottom: -17px; left: 0; right: 0; height: 2px; background: #1a73e8; }
.content-tabs .tab-link { font-size: 15px; color: #666; text-decoration: none; }
.content-tabs .tab-link:hover { color: #1a73e8; }

/* 文章列表项 */
.article-item { background: #fff; border-radius: 8px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.article-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.article-link { display: flex; text-decoration: none; color: inherit; }
.article-img { position: relative; width: 260px; height: 180px; flex-shrink: 0; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-item:hover .article-img img { transform: scale(1.05); }
.article-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 4px; font-size: 12px; color: #fff; font-weight: 500; }
.tag-official { background: #1a73e8; }
.tag-user { background: #4caf50; }
.article-info { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.article-title { font-size: 20px; color: #333; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item:hover .article-title { color: #1a73e8; }
.article-summary { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; gap: 20px; font-size: 13px; color: #999; }

/* 侧边栏卡片 */
.sidebar-card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.sidebar-title { font-size: 18px; color: #333; font-weight: 600; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 2px solid #1a73e8; position: relative; }
.sidebar-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #1a73e8; }

/* 咨询卡片 */
.sidebar-contact .contact-tip { font-size: 13px; color: #666; margin-bottom: 15px; line-height: 1.5; }
.sidebar-contact .contact-phone { font-size: 28px; color: #ff5722; font-weight: 700; margin-bottom: 15px; letter-spacing: 1px; }

/* 热门阅读列表 */
.hot-list { list-style: none; padding: 0; margin: 0; }
.hot-list li { display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #eee; }
.hot-list li:last-child { border-bottom: none; }
.hot-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: #e0e0e0; color: #666; font-size: 12px; font-weight: 700; border-radius: 4px; flex-shrink: 0; margin-right: 10px; }
.hot-list li:nth-child(1) .hot-num { background: #ff5722; color: #fff; }
.hot-list li:nth-child(2) .hot-num { background: #ff9800; color: #fff; }
.hot-list li:nth-child(3) .hot-num { background: #4caf50; color: #fff; }
.hot-list a { font-size: 14px; color: #333; line-height: 1.5; text-decoration: none; }
.hot-list a:hover { color: #1a73e8; }

/* 教练列表 */
.coach-list { display: flex; flex-direction: column; gap: 12px; }
.coach-item { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px; border-radius: 6px; transition: background .2s; }
.coach-item:hover { background: #f8f9fb; }
.coach-avatar-sm { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid #e8f0fe; }
.coach-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.coach-info-sm { flex: 1; min-width: 0; }
.coach-name { font-size: 14px; color: #333; font-weight: 500; margin-bottom: 4px; }
.coach-meta-sm { font-size: 12px; color: #999; }

/* 校区列表 */
.school-list { display: flex; flex-direction: column; gap: 12px; }
.school-item { display: flex; gap: 10px; text-decoration: none; padding: 8px; border-radius: 6px; transition: background .2s; }
.school-item:hover { background: #f8f9fb; }
.school-thumb { width: 80px; height: 56px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.school-thumb img { width: 100%; height: 100%; object-fit: cover; }
.school-info-sm { flex: 1; min-width: 0; }
.school-name { font-size: 14px; color: #333; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.school-addr { font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 分页样式 ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; padding: 20px 0; }
.pagination .page-btn {
    padding: 8px 16px; border: 1px solid #ddd; border-radius: 4px;
    color: #666; font-size: 14px; text-decoration: none; background: #fff;
    cursor: pointer; transition: all .2s;
}
.pagination .page-btn:hover { border-color: #1a73e8; color: #1a73e8; }
.pagination .page-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 4px;
    color: #666; font-size: 14px; text-decoration: none; background: #fff;
    cursor: pointer; transition: all .2s;
}
.pagination .page-num:hover { border-color: #1a73e8; color: #1a73e8; }
.pagination .page-num.active {
    background: #1a73e8; color: #fff; border-color: #1a73e8;
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .content-layout { flex-direction: column; }
    .content-sidebar { width: 100%; }
}
@media (max-width: 768px) {
    .nav-menu, .nav-actions .search-box { display: none; }
    .menu-toggle { display: block; }
    .nav-menu.show {
        display: flex; flex-direction: column;
        position: absolute; top: calc(100% + 1px); left: 0; right: 0;
        background: #fff; padding: 10px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        gap: 0; z-index: 1000;
        max-height: 70vh; overflow-y: auto;
        transform-origin: top;
        animation: navSlideDown .25s ease-out;
    }
    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .nav-menu.show > li { width: 100%; }
    .nav-menu.show > li > a {
        padding: 14px 20px; border-bottom: 1px solid #f5f5f5;
        border-radius: 0;
    }
    .nav-menu.show > li:last-child > a { border-bottom: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .banner-slides { height: 240px; }
    .banner-slide-content h2 { font-size: 24px; }
    .banner-slide-content p { font-size: 14px; }
    .section-title h2 { font-size: 22px; }
    .user-layout { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .detail-header, .detail-content, .comment-section { padding: 20px; }
    .detail-header h1 { font-size: 20px; }
    .list-toolbar { flex-direction: column; align-items: flex-start; }
    .header-top .container { font-size: 12px; }
    .header-top { display: none; }
    .article-link { flex-direction: column; }
    .article-img { width: 100%; height: 200px; }
    .article-info { padding: 15px; }
    .article-title { font-size: 18px; }
    .content-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .btn { padding: 8px 18px; font-size: 14px; }
    .stat-grid { grid-template-columns: 1fr; }
    .auth-box { padding: 25px 20px; }
    .price-amount .price { font-size: 26px; }
    .table { font-size: 12px; }
    .table th, .table td { padding: 8px 6px; }
    .article-img { height: 180px; }
    .article-title { font-size: 16px; }
    .article-summary { font-size: 13px; }
    .content-tabs { gap: 12px; }
    .content-tabs .tab, .content-tabs .tab-link { font-size: 14px; }
}

/* ===== Toast 提示组件 ===== */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: toast-slide-down 0.3s ease-out;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
}
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}
.toast-success .toast-icon { background: #52c41a; color: #fff; }
.toast-error .toast-icon { background: #ff4d4f; color: #fff; }
.toast-warning .toast-icon { background: #faad14; color: #fff; }
.toast-info .toast-icon { background: #1890ff; color: #fff; }
.toast-message {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.toast.hide {
    animation: toast-slide-up 0.3s ease-in forwards;
}
@keyframes toast-slide-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-slide-up {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}
