/* ===== Reset / Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #2c3e50;
    line-height: 1.7;
    background: #fff;
}
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a6c;
    letter-spacing: 0.5px;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}
.site-nav a {
    display: inline-block;
    padding: 8px 16px;
    color: #444;
    border-radius: 6px;
    transition: all 0.15s;
}
.site-nav a:hover {
    color: #1a3a6c;
    background: #f3f6fb;
    text-decoration: none;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #1a3a6c 0%, #2c5aa0 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}
.hero h1 {
    font-size: 44px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.hero-sub {
    font-size: 20px;
    opacity: 0.92;
    margin-bottom: 36px;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.15s;
    border: 2px solid transparent;
}
.btn-primary { background: #fff; color: #1a3a6c; }
.btn-primary:hover { background: #f0f4fa; text-decoration: none; }
.btn-ghost { color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* ===== Sections ===== */
.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 48px;
    color: #1a3a6c;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #2c5aa0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Features ===== */
.features { padding: 80px 0; background: #fafbfc; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,58,108,0.08);
    border-color: #c7d4e8;
}
.feature-card h3 {
    font-size: 20px;
    color: #1a3a6c;
    margin-bottom: 12px;
}
.feature-card p { color: #555; }

/* ===== Gallery / 作业展示 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.gallery-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.gallery-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
}
.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,58,108,0.1);
    border-color: #c7d4e8;
    text-decoration: none;
}
.gallery-cover {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f2f5;
}
.gallery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-card:hover .gallery-cover img {
    transform: scale(1.05);
}
.gallery-info {
    padding: 16px 20px;
}
.gallery-category {
    display: inline-block;
    font-size: 12px;
    color: #1a3a6c;
    background: #eef2f9;
    padding: 2px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.gallery-info h3 {
    font-size: 17px;
    color: #2c3e50;
    margin: 0 0 6px;
}
.gallery-date {
    font-size: 13px;
    color: #999;
}
.empty-hint {
    text-align: center;
    color: #999;
    padding: 48px 0;
}
.page-sub {
    color: #666;
    font-size: 16px;
    margin-top: 8px;
}

/* 详情页图片 */
.article-body img {
    display: block;
    max-width: 100%;
    margin: 16px auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 旧新闻列表样式保留（已不再使用，可删除） */
.latest-news { padding: 80px 0; }
.more-link { text-align: center; margin-top: 32px; }
.more-link a { color: #1a3a6c; font-weight: 500; }

/* ===== Page Header ===== */
.page-header {
    background: #f5f7fa;
    padding: 56px 0;
    border-bottom: 1px solid #e5e7eb;
}
.page-header h1 {
    font-size: 32px;
    color: #1a3a6c;
}
.article-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 8px;
}
.article-meta .category {
    display: inline-block;
    padding: 2px 10px;
    background: #1a3a6c;
    color: #fff;
    border-radius: 3px;
    margin-right: 12px;
    font-size: 12px;
}

/* ===== Page / Article Body ===== */
.page-content { padding: 56px 0; }
.article-body {
    max-width: 820px;
    font-size: 16px;
    color: #333;
}
.article-body h2 {
    margin: 32px 0 16px;
    color: #1a3a6c;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 24px;
}
.article-body h3 {
    margin: 28px 0 12px;
    color: #2c5aa0;
    font-size: 20px;
}
.article-body p { margin: 14px 0; }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 28px; }
.article-body li { margin: 6px 0; }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.article-body table th, .article-body table td {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.article-body table th { background: #f5f7fa; }
.article-body blockquote {
    border-left: 4px solid #2c5aa0;
    padding: 8px 16px;
    background: #f5f7fa;
    color: #555;
    margin: 16px 0;
}
.article-body code {
    background: #f5f7fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.92em;
}
.article-body hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}
.article-body img.business-card,
.article-body .business-card img,
.article-body img[alt*="名片"] {
    display: block;
    max-width: 480px;
    width: 100%;
    margin: 16px 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(26,58,108,0.12);
    border: 1px solid #e5e7eb;
}
.article-foot { max-width: 820px; margin-top: 32px; }
.back-link { color: #1a3a6c; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    color: #666;
}
.pagination a {
    padding: 6px 14px;
    border: 1px solid #d0d7e2;
    border-radius: 4px;
    color: #1a3a6c;
}
.pagination a:hover { background: #f3f6fb; text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
    background: #1a2a44;
    color: #c5cdd9;
    margin-top: 64px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding: 56px 24px 32px;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}
.footer-col p { font-size: 14px; line-height: 2; }
.footer-links { list-style: none; }
.footer-links li { margin: 4px 0; }
.footer-links a { color: #c5cdd9; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    border-top: 1px solid #2a3a55;
    padding: 20px 0;
    font-size: 13px;
    color: #8b97a8;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
    .header-inner { height: auto; flex-direction: column; padding: 12px 0; gap: 8px; }
    .site-nav ul { flex-wrap: wrap; justify-content: center; }
    .hero { padding: 64px 0; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 16px; }
    .news-item { grid-template-columns: 1fr; gap: 4px; }
    .news-summary { grid-column: 1; }
    .features, .latest-news, .page-content { padding: 48px 0; }
}
