/* ====================================================
   黑龙江省现代学习科学研究院 - 官方网站样式
   Apple-inspired 极简大气设计
   ==================================================== */

:root {
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --text: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --container: 1200px;
}

/* ==================== Reset ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ==================== Top Notice ==================== */
.top-notice { background: var(--primary); color: #fff; font-size: 13px; padding: 8px 0; }
.top-notice .container { display: flex; align-items: center; gap: 8px; }
.notice-icon { flex-shrink: 0; }
.notice-text { flex: 1; }
.notice-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 18px; cursor: pointer; padding: 0 4px; }

/* ==================== Header ==================== */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; height: 72px; gap: 32px; }
.logo-area { flex-shrink: 0; }
.logo-area a { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 44px; }
.logo-text { display: flex; align-items: center; gap: 12px; }
.logo-emblem { font-size: 32px; }
.logo-info { display: flex; flex-direction: column; }
.logo-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; line-height: 1.3; }
.logo-sub { font-size: 11px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.3px; }

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul, .main-nav .blog-navi { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li, .main-nav .blog-navi li { position: relative; }
.main-nav a, .main-nav .blog-navi a { display: block; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text-secondary); border-radius: 8px; transition: var(--transition); white-space: nowrap; }
.main-nav a:hover, .main-nav .blog-navi a:hover { color: var(--primary); background: rgba(29,78,216,0.06); }
.main-nav a.active, .main-nav .blog-navi .active > a { color: var(--primary); }

.header-actions { flex-shrink: 0; display: flex; gap: 8px; }
.btn-login, .btn-user {
    display: inline-flex; align-items: center; padding: 8px 20px;
    background: var(--primary); color: #fff !important; border-radius: 20px;
    font-size: 13px; font-weight: 600; transition: var(--transition);
}
.btn-login:hover, .btn-user:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,78,216,0.3); }

/* Mobile Toggle */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); z-index: 999; overflow-y: auto; opacity: 0; transform: translateY(-10px); transition: var(--transition); pointer-events: none; }
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav-inner { padding: 24px; }
.mobile-nav ul, .mobile-nav .blog-navi { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mobile-nav a, .mobile-nav .blog-navi a { display: block; padding: 14px 16px; font-size: 17px; font-weight: 500; color: var(--text); border-radius: 12px; }
.mobile-nav a:hover { background: var(--bg-secondary); }
.mobile-nav-actions { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.btn-primary-full { display: block; text-align: center; padding: 14px; background: var(--primary); color: #fff !important; border-radius: 12px; font-size: 16px; font-weight: 600; }

/* ==================== Hero ==================== */
.hero-section {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1d4ed8 100%);
    padding: 120px 0 100px;
    min-height: 580px; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(59,130,246,0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(14,165,233,0.15) 0%, transparent 50%);
}
.hero-particles { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block; padding: 6px 20px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px; color: rgba(255,255,255,0.9);
    font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-size: 52px; font-weight: 800; color: #fff;
    line-height: 1.2; margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 18px; color: rgba(255,255,255,0.75);
    line-height: 1.8; max-width: 640px; margin: 0 auto 40px;
    font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-flex; align-items: center; padding: 14px 36px;
    background: #fff; color: var(--primary) !important;
    border-radius: 28px; font-size: 16px; font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }
.btn-hero-secondary {
    display: inline-flex; align-items: center; padding: 14px 36px;
    background: rgba(255,255,255,0.1); color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25); border-radius: 28px;
    font-size: 16px; font-weight: 500; transition: var(--transition);
    backdrop-filter: blur(10px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); }

/* Hero Stats */
.hero-stats {
    display: flex; justify-content: center; gap: 0; align-items: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 20px 40px;
    backdrop-filter: blur(20px);
}
.hero-stat { text-align: center; padding: 0 28px; }
.stat-number { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.stat-suffix { font-size: 18px; font-weight: 600; color: rgba(255,255,255,0.7); margin-left: 2px; }
.stat-label { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; font-weight: 400; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.12); }

/* ==================== Section Common ==================== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; padding: 4px 16px;
    background: rgba(29,78,216,0.08); color: var(--primary);
    border-radius: 20px; font-size: 13px; font-weight: 600;
    margin-bottom: 16px; letter-spacing: 0.5px;
}
.section-title { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.2; }
.section-desc { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ==================== Services ==================== */
.services-section { padding: 100px 0; background: var(--bg-secondary); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: #fff; border-radius: var(--radius-lg); padding: 36px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon-wrap { margin-bottom: 20px; }
.service-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(29,78,216,0.08); font-size: 28px;
}
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.service-card > p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.service-features { margin-bottom: 20px; flex: 1; }
.service-features li {
    padding: 6px 0; font-size: 13px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
}
.service-features li::before { content: '✓'; color: var(--primary); font-weight: 700; font-size: 12px; }
.service-link {
    display: inline-flex; align-items: center; padding: 8px 20px;
    border: 1.5px solid var(--border); border-radius: 24px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    align-self: flex-start; transition: var(--transition);
}
.service-link:hover { background: rgba(29,78,216,0.06); border-color: var(--primary); }

/* ==================== Certificate Query ==================== */
.cert-section { padding: 80px 0 0; }
.cert-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    border-radius: var(--radius-xl); padding: 4px;
    border: 1px solid rgba(14,165,233,0.15);
}
.cert-card-inner { background: #fff; border-radius: 24px; padding: 48px; }
.cert-info { text-align: center; margin-bottom: 32px; }
.cert-icon { font-size: 48px; margin-bottom: 12px; }
.cert-info h3 { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.cert-info p { font-size: 15px; color: var(--text-secondary); }
.cert-form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; }
.cert-input {
    flex: 1; padding: 14px 20px; border: 1.5px solid var(--border);
    border-radius: 12px; font-size: 15px; outline: none;
    transition: var(--transition); font-family: var(--font);
}
.cert-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29,78,216,0.1); }
.btn-cert-query {
    padding: 14px 28px; background: var(--primary); color: #fff;
    border: none; border-radius: 12px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-cert-query:hover { background: var(--primary-dark); }
.cert-result { margin-top: 24px; padding: 20px; border-radius: 12px; text-align: center; font-size: 15px; }
.cert-result.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.cert-result.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ==================== AI Section ==================== */
.ai-section { padding: 100px 0; background: var(--bg); }
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ai-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.ai-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.ai-feature { display: flex; gap: 16px; align-items: flex-start; }
.ai-feature-icon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(29,78,216,0.08); display: flex; align-items: center;
    justify-content: center; font-size: 22px;
}
.ai-feature h4 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ai-feature p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.btn-ai-more {
    display: inline-flex; padding: 12px 28px;
    background: var(--primary); color: #fff !important;
    border-radius: 24px; font-size: 14px; font-weight: 600;
    transition: var(--transition);
}
.btn-ai-more:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,78,216,0.3); }
.ai-visual { display: flex; justify-content: center; }
.ai-visual-card {
    position: relative; width: 360px; height: 360px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ede9fe 100%);
    border-radius: var(--radius-xl); display: flex; align-items: center;
    justify-content: center; overflow: hidden;
}
.ai-visual-glow {
    position: absolute; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    border-radius: 50%; animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.3); opacity: 0.8; } }
.ai-brain-animation { width: 280px; height: 280px; position: relative; z-index: 1; }
.ai-brain-animation svg { width: 100%; height: 100%; }

/* ==================== News ==================== */
.news-section { padding: 100px 0; background: var(--bg-secondary); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-light); transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-cover { overflow: hidden; height: 200px; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-cover img { transform: scale(1.05); }
.news-body { padding: 24px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; color: var(--text-muted); }
.news-cat { padding: 2px 10px; background: rgba(29,78,216,0.08); color: var(--primary); border-radius: 10px; font-weight: 500; }
.news-title { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--primary); }
.news-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-read-more { font-size: 13px; font-weight: 600; color: var(--primary); }
.news-empty { grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--text-muted); }
.section-more { text-align: center; margin-top: 40px; }
.btn-outline {
    display: inline-flex; padding: 12px 32px;
    border: 1.5px solid var(--border); border-radius: 24px;
    font-size: 14px; font-weight: 600; color: var(--text-secondary);
    transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ==================== Partners ==================== */
.partners-section { padding: 80px 0; }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; align-items: center; }
.partner-item { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.6; transition: var(--transition); }
.partner-item:hover { opacity: 1; }
.partner-item img { height: 48px; width: auto; filter: grayscale(100%); transition: var(--transition); }
.partner-item:hover img { filter: grayscale(0%); }
.partner-item span { font-size: 12px; color: var(--text-muted); }

/* ==================== CTA ==================== */
.cta-section { padding: 0 0 100px; }
.cta-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #3b82f6 100%);
    border-radius: var(--radius-xl); padding: 72px 48px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.cta-card h2 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 12px; position: relative; }
.cta-card p { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 36px; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; position: relative; flex-wrap: wrap; }
.btn-cta-primary { padding: 14px 36px; background: #fff; color: var(--primary) !important; border-radius: 28px; font-size: 16px; font-weight: 600; transition: var(--transition); }
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }
.btn-cta-secondary { padding: 14px 36px; background: rgba(255,255,255,0.1); color: #fff !important; border: 1px solid rgba(255,255,255,0.25); border-radius: 28px; font-size: 16px; font-weight: 500; transition: var(--transition); }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.18); }

/* ==================== Page Banner ==================== */
.page-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    padding: 80px 0 60px; text-align: center;
}
.page-banner-title { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.page-banner-desc { font-size: 16px; color: rgba(255,255,255,0.7); }

/* ==================== Page Layout ==================== */
.page-container { padding-top: 40px; padding-bottom: 80px; }
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }

/* ==================== Article List ==================== */
.article-card {
    display: flex; background: #fff; border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 24px;
    border: 1px solid var(--border-light); transition: var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); }
.article-cover { width: 280px; flex-shrink: 0; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform 0.6s; }
.article-card:hover .article-cover img { transform: scale(1.05); }
.article-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.meta-sep { color: var(--border); }
.article-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--primary); }
.article-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.8; flex: 1; margin-bottom: 16px; }
.article-footer { display: flex; justify-content: space-between; align-items: center; }
.read-more { font-size: 13px; font-weight: 600; color: var(--primary); }
.article-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }

/* ==================== Detail ==================== */
.detail-article { background: #fff; border-radius: var(--radius-lg); padding: 48px; border: 1px solid var(--border-light); }
.detail-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.detail-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.detail-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.detail-content { font-size: 16px; line-height: 2; color: var(--text); }
.detail-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 16px; }
.detail-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.detail-content p { margin-bottom: 16px; }
.detail-content img { border-radius: 12px; margin: 16px 0; }
.detail-content blockquote { border-left: 3px solid var(--primary); padding: 16px 24px; margin: 16px 0; background: var(--bg-secondary); border-radius: 0 12px 12px 0; }
.detail-content pre { background: #1e293b; color: #e2e8f0; padding: 20px; border-radius: 12px; overflow-x: auto; margin: 16px 0; }
.detail-content code { background: var(--bg-tertiary); padding: 2px 8px; border-radius: 4px; font-size: 14px; }
.detail-content pre code { background: none; padding: 0; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-content th, .detail-content td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.detail-content th { background: var(--bg-secondary); font-weight: 600; }
.detail-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.detail-tags a { display: inline-block; padding: 4px 14px; margin: 4px; background: var(--bg-secondary); border-radius: 16px; font-size: 13px; color: var(--text-secondary); }
.detail-tags a:hover { background: rgba(29,78,216,0.08); color: var(--primary); }

.detail-neighbor { margin-top: 24px; display: flex; gap: 16px; }
.detail-neighbor a { flex: 1; padding: 16px 20px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); font-size: 14px; color: var(--text-secondary); }
.detail-neighbor a:hover { border-color: var(--primary); color: var(--primary); }

/* ==================== Sidebar ==================== */
.page-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.widget-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.widget-header h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.widget-body { padding: 16px 20px; }
.widget-list li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.widget-list li:last-child { border-bottom: none; }
.widget-list a { font-size: 14px; color: var(--text-secondary); }
.widget-list a:hover { color: var(--primary); }
.list-count { font-size: 12px; color: var(--text-muted); }
.widget-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { padding: 4px 12px; background: var(--bg-secondary); border-radius: 14px; font-size: 13px; color: var(--text-secondary); }
.tag-item:hover { background: rgba(29,78,216,0.08); color: var(--primary); }
.widget-about { text-align: center; }
.about-logo { font-size: 40px; margin-bottom: 8px; }
.widget-about h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.widget-about p { font-size: 13px; color: var(--text-secondary); }
.search-form { display: flex; gap: 8px; }
.search-input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; outline: none; }
.search-input:focus { border-color: var(--primary); }
.search-btn { padding: 10px 14px; background: var(--primary); color: #fff; border: none; border-radius: 10px; cursor: pointer; }

/* ==================== Pagination ==================== */
.pagination-wrap { margin-top: 32px; display: flex; justify-content: center; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    margin: 0 3px; border-radius: 10px; font-size: 14px;
    border: 1px solid var(--border); color: var(--text-secondary); transition: var(--transition);
}
.pagination-wrap a:hover { border-color: var(--primary); color: var(--primary); }
.pagination-wrap .pageEll { border: none; }
.pagination-wrap .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== Comments ==================== */
.comments-header { margin-top: 32px; }
.comments-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.comment-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.comment-item.comment-child { padding: 14px 0; }
.comment-avatar { flex-shrink: 0; }
.comment-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-light); }
.comment-child .comment-avatar img { width: 36px; height: 36px; }
.comment-body { flex: 1; min-width: 0; }
.comment-info { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.comment-time { font-size: 12px; color: var(--text-secondary); }
.comment-content { font-size: 14px; line-height: 1.7; color: var(--text-primary); word-break: break-word; }
.comment-actions { margin-top: 6px; }
.comment-actions a { font-size: 12px; color: var(--primary); }
.comment-children { margin-left: 58px; }
.comment-form-wrap { margin-top: 32px; padding: 24px; background: var(--bg-secondary); border-radius: var(--radius); }
.comment-form-wrap h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.comment-fields { display: flex; gap: 12px; margin-bottom: 12px; }
.comment-fields input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 14px; background: #fff; }
.comment-form-wrap textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 14px; resize: vertical; background: #fff; box-sizing: border-box; }
.comment-submit { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.comment-submit .btn-primary, .comment-submit button[type="submit"] { padding: 10px 24px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.comment-submit .btn-primary:hover, .comment-submit button[type="submit"]:hover { opacity: 0.9; }

/* ==================== Navigation Dropdown ==================== */
.nav-item { position: relative; }
.nav-item.has-dropdown > a { cursor: pointer; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff; border: 1px solid var(--border-light); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 6px 0; z-index: 100; list-style: none; margin: 0; }
.nav-item.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { margin: 0; }
.dropdown-menu a { display: block; padding: 8px 18px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.dropdown-menu a:hover { background: rgba(29,78,216,0.06); color: var(--primary); }

/* ==================== Neighbor Nav ==================== */
.neighbor-nav { margin-top: 24px; display: flex; gap: 16px; }
.neighbor-nav .neighbor-prev, .neighbor-nav .neighbor-next { flex: 1; padding: 16px 20px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); transition: var(--transition); }
.neighbor-nav .neighbor-prev:hover, .neighbor-nav .neighbor-next:hover { border-color: var(--primary); }
.neighbor-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.neighbor-nav a { font-size: 14px; color: var(--text-primary); }
.neighbor-nav a:hover { color: var(--primary); }
.neighbor-none { font-size: 14px; color: var(--text-secondary); }

/* ==================== Top Flag ==================== */
.top-flag { display: inline-block; padding: 2px 8px; background: linear-gradient(135deg, var(--primary), var(--accent, #0ea5e9)); color: #fff; font-size: 11px; font-weight: 600; border-radius: 4px; margin-right: 6px; vertical-align: middle; }

/* ==================== Edit Link ==================== */
.edit-link { font-size: 12px; color: var(--text-secondary); margin-left: 8px; }
.edit-link:hover { color: var(--primary); }

/* ==================== Footer ==================== */
.site-footer { background: #0f172a; color: rgba(255,255,255,0.7); }
.footer-main { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.footer-links-group h4, .footer-contact h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links-group a:hover { color: #fff; }
.footer-contact p { font-size: 13px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.fc-icon { flex-shrink: 0; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom-inner { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.4); align-items: center; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }
.footer-icp a, .footer-police a { display: inline-flex; align-items: center; gap: 4px; }
.police-icon { width: 14px; height: 14px; vertical-align: middle; flex-shrink: 0; }

/* ==================== 404 ==================== */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 48px; }
.error-content { text-align: center; }
.error-code { font-size: 120px; font-weight: 900; color: var(--border); line-height: 1; }
.error-content h2 { font-size: 28px; font-weight: 700; margin: 16px 0 8px; }
.error-content p { color: var(--text-secondary); margin-bottom: 32px; }

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); cursor: pointer;
    opacity: 0; transform: translateY(16px);
    transition: var(--transition); pointer-events: none;
    border: 1px solid var(--border);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==================== Empty State ==================== */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); }

/* ==================== Animation ==================== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==================== Responsive ==================== */
@media screen and (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-layout { grid-template-columns: 1fr; gap: 48px; }
    .ai-visual { order: -1; }
    .ai-visual-card { width: 280px; height: 280px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media screen and (max-width: 768px) {
    :root { --container: 100%; }
    
    /* Header */
    .header-inner { height: 60px; }
    .main-nav, .header-actions { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-nav { display: block; top: 60px; }
    .logo-name { font-size: 15px; }
    .logo-sub { font-size: 10px; }
    .logo-emblem { font-size: 26px; }
    
    /* Hero */
    .hero-section { padding: 80px 0 60px; min-height: auto; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
    .hero-actions { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 40px; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 280px; justify-content: center; }
    .hero-stats { flex-wrap: wrap; padding: 16px; gap: 8px; }
    .hero-stat { padding: 8px 16px; width: 45%; }
    .hero-stat-divider { display: none; }
    .stat-number { font-size: 28px; }
    
    /* Sections */
    .services-section, .ai-section, .news-section { padding: 64px 0; }
    .section-title { font-size: 28px; }
    .services-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    
    /* Page */
    .page-layout { grid-template-columns: 1fr; }
    .page-sidebar { order: 1; }
    .page-banner { padding: 60px 0 40px; }
    .page-banner-title { font-size: 28px; }
    
    /* Article */
    .article-card { flex-direction: column; }
    .article-cover { width: 100%; height: 200px; }
    .article-body { padding: 20px; }
    
    /* Detail */
    .detail-article { padding: 24px; }
    .detail-title { font-size: 24px; }
    .detail-neighbor { flex-direction: column; }
    .neighbor-nav { flex-direction: column; }
    .comment-children { margin-left: 24px; }
    .comment-fields { flex-direction: column; }
    
    /* Cert */
    .cert-card-inner { padding: 32px 20px; }
    .cert-form { flex-direction: column; }
    .cert-info h3 { font-size: 22px; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
    
    /* CTA */
    .cta-card { padding: 48px 24px; }
    .cta-card h2 { font-size: 26px; }
    .cta-actions { flex-direction: column; align-items: center; }
    
    /* Back to top */
    .back-to-top { bottom: 20px; right: 20px; }
}

@media screen and (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 26px; }
    .hero-badge { font-size: 12px; }
    .section-title { font-size: 24px; }
    .service-card { padding: 24px; }
}

/* ==================== Print ==================== */
@media print {
    .site-header, .site-footer, .back-to-top, .mobile-nav, .hero-section, .cta-section { display: none; }
    .page-layout { grid-template-columns: 1fr; }
    .page-sidebar { display: none; }
}
