
:root {
    --primary: #1B4332;
    --primary-light: #2D6A4F;
    --accent: #52B788;
    --accent-soft: #D8F3DC;
    --bg-page: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-main: #212529;
    --text-muted: #6C757D;
    --border-color: #E9ECEF;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); background: var(--bg-page); color: var(--text-main); line-height: 1.6; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon { width: 38px; height: 38px; }
.brand-title { font-size: 20px; font-weight: 700; color: var(--primary); display: block; }
.brand-sub { font-size: 11px; color: var(--text-muted); display: block; font-weight: 500; }
.main-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--text-main); text-decoration: none; }
.main-nav a:hover { color: var(--accent); }

.search-btn { display: flex; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid #B7E4C7; padding: 8px 16px; border-radius: 20px; color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer; }
.search-btn:hover { background: #B7E4C7; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%); color: #FFFFFF; padding: 56px 0 54px; }
.hero-container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 42px; align-items: center; }
.hero-title { font-size: 36px; font-weight: 800; margin-bottom: 16px; line-height: 1.25; }
.hero-lead { font-size: 17px; color: #D8F3DC; margin-bottom: 24px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badge { background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 500; border: 1px solid rgba(255,255,255,0.25); }
.hero-media { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,0.35); }
.hero-img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; display: block; }

/* Main Content & Cards */
.page-body { padding: 48px 0; }
.section-title { font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }

.article-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.card-thumb-wrap { width: 100%; height: 210px; overflow: hidden; background: #E2E8F0; position: relative; }
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; display: block; }
.article-card:hover .card-thumb { transform: scale(1.05); }
.card-content { padding: 22px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-category { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.card-title { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.card-title a { color: var(--text-main); text-decoration: none; }
.card-title a:hover { color: var(--primary-light); }
.card-excerpt { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; flex-grow: 1; line-height: 1.55; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 14px; }

/* Article Page */
.article-container { max-width: 840px; margin: 0 auto; background: #FFFFFF; padding: 42px; border-radius: 14px; border: 1px solid var(--border-color); margin-top: 32px; margin-bottom: 48px; }
.article-header { border-bottom: 1px solid var(--border-color); padding-bottom: 24px; margin-bottom: 28px; }
.article-page-title { font-size: 32px; font-weight: 800; line-height: 1.3; color: var(--primary); margin-bottom: 16px; }
.article-meta-row { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); }
.article-hero-wrap { margin-bottom: 28px; border-radius: 12px; overflow: hidden; background: #E2E8F0; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.article-hero-img { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.article-img-caption { font-size: 13px; color: var(--text-muted); font-style: italic; padding: 10px 16px; background: #F8F9FA; border-top: 1px solid var(--border-color); }
.about-hero-wrap { margin-bottom: 28px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.about-hero-img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.article-lead { font-size: 18px; font-weight: 500; color: #2D3748; line-height: 1.65; margin-bottom: 24px; padding: 18px 22px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 4px; }
.article-body h2 { font-size: 22px; color: var(--primary); margin: 34px 0 14px; font-weight: 700; }
.article-body p { margin-bottom: 18px; font-size: 16px; line-height: 1.7; }
.article-body ul, .article-body ol { margin: 18px 0 22px 28px; font-size: 16px; line-height: 1.7; }
.article-body li { margin-bottom: 8px; }

/* Footer */
.site-footer { background: #081C15; color: #B7E4C7; padding: 54px 0 32px; margin-top: 60px; font-size: 14px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; }
.footer-logo .brand-title { color: #FFFFFF; font-size: 18px; margin-bottom: 14px; }
.footer-desc { color: #74C69D; font-size: 13px; line-height: 1.6; }
.footer-title { color: #FFFFFF; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #95D5B2; text-decoration: none; }
.footer-links a:hover { color: #FFFFFF; }
.footer-note { font-size: 13px; color: #74C69D; line-height: 1.5; margin-bottom: 16px; }
.copyright { font-size: 12px; color: #52B788; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }

/* Search Modal */
.search-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); }
.search-dialog { position: relative; background: #FFFFFF; width: 90%; max-width: 600px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden; z-index: 10; }
.search-header { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-color); gap: 12px; }
.search-header input { width: 100%; border: none; font-size: 17px; outline: none; }
.search-header button { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }
.search-results { max-height: 420px; overflow-y: auto; padding: 18px 20px; }
.search-item { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.search-item:last-child { border-bottom: none; }
.search-item a { font-weight: 700; font-size: 16px; color: var(--primary); text-decoration: none; display: block; margin-bottom: 4px; }
.search-item p { font-size: 13px; color: var(--text-muted); }
.search-hint { font-size: 14px; color: var(--text-muted); text-align: center; padding: 20px 0; }

@media (max-width: 768px) {
    .header-container { flex-direction: column; height: auto; padding: 14px 20px; gap: 12px; }
    .main-nav { flex-wrap: wrap; justify-content: center; gap: 14px; font-size: 14px; }
    .hero-container { grid-template-columns: 1fr; gap: 28px; }
    .hero-title { font-size: 28px; }
    .footer-container { grid-template-columns: 1fr; }
    .article-container { padding: 22px; }
    .card-thumb-wrap { height: 180px; }
}
