/* 三全教育电子书展示模板 - 大海蓝 */
:root {
    --primary: #023e8a;
    --primary-light: #0077b6;
    --accent: #00b4d8;
    --sky: #90e0ef;
    --bg: #f0faff;
    --text: #1d3557;
    --text-light: #457b9d;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(2, 62, 138, 0.12);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; transition: all .25s ease; }
img { max-width: 100%; display: block; }

/* ===== 头部（简洁，无导航） ===== */
.header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 18px 0;
    box-shadow: 0 4px 20px rgba(2, 62, 138, 0.2);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { height: 52px; width: auto; }
.header-phone {
    color: var(--white);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-phone svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    animation: pulse 2s infinite;
}
.header-phone strong { font-size: 22px; margin-left: 6px; letter-spacing: 1px; }
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .8; }
}

/* ===== 轮播图 ===== */
.banner {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--primary);
}
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .9s ease;
    background-size: cover;
    background-position: center;
}
.banner-item.active { opacity: 1; z-index: 1; }
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,62,138,.75) 0%, rgba(2,62,138,.25) 100%);
    z-index: 2;
}
.banner-content {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 900px;
}
.banner-content h2 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 4px 20px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .8s forwards;
}
.banner-content p {
    font-size: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .8s .2s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}
.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .3s;
}
.banner-dots span.active { background: var(--accent); width: 32px; border-radius: 6px; }

/* ===== 新闻列表区域 ===== */
.section-news { padding: 70px 24px; max-width: 1400px; margin: 0 auto; }
.section-title {
    text-align: center;
    margin-bottom: 45px;
}
.section-title h3 {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}
.section-title p {
    color: var(--text-light);
    font-size: 16px;
}
.section-title .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    margin: 16px auto 0;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(2, 62, 138, 0.18);
}
.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e6f4f9;
    position: relative;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.08); }
.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}
.news-body { padding: 18px; }
.news-body h4 {
    font-size: 16px;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 50px;
}
.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 13px;
}
.news-meta .more {
    color: var(--primary-light);
    font-weight: 600;
}
.news-card:hover .more { color: var(--accent); }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 14px;
}
.pagination .page-status {
    display: inline-block;
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 8px;
    background: #f0f7ff;
    color: var(--primary);
    border: 1px solid #dbeafe;
    padding: 0 16px;
    font-weight: 500;
    white-space: nowrap;
}
.pagination .page-index a,
.pagination .page-pre a,
.pagination .page-next a,
.pagination .page-last a,
.pagination .page-numbar a,
.pagination .page-numbar span,
.pagination .page-num {
    display: inline-block;
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    border: 1px solid #dbeafe;
    transition: all .25s;
    padding: 0 14px;
    font-weight: 500;
    margin: 0 2px;
}
.pagination .page-index a:hover,
.pagination .page-pre a:hover,
.pagination .page-next a:hover,
.pagination .page-last a:hover,
.pagination .page-numbar a:hover,
.pagination .page-num:hover:not(.page-num-current) {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.pagination .page-numbar .page-num-current,
.pagination .page-num.page-num-current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(2, 62, 138, 0.25);
}
.pagination .page-none {
    color: #999;
}
.pagination:empty {
    display: none;
}

/* ===== 底部版权（仅一行技术支持） ===== */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    text-align: center;
    padding: 18px 24px;
    font-size: 14px;
}
.footer a { color: var(--accent); }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .banner { height: 420px; }
    .banner-content h2 { font-size: 36px; }
}
@media (max-width: 992px) {
    .banner { height: 360px; }
    .banner-content h2 { font-size: 30px; }
    .banner-content p { font-size: 17px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 12px; }
    .logo img { height: 44px; }
    .header-phone strong { font-size: 18px; }
    .banner { height: 280px; }
    .banner-content h2 { font-size: 24px; }
    .banner-content p { font-size: 15px; }
    .section-news { padding: 45px 16px; }
    .section-title h3 { font-size: 26px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .news-body { padding: 14px; }
    .news-body h4 { font-size: 14px; min-height: 44px; }
}
@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
    .banner { height: 220px; }
    .banner-content h2 { font-size: 20px; }
}
