* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #1a5c3a; --primary-dark: #0a2e1f; --accent: #0f766e;
    --bg: #f4f7fc; --text: #1e2a2e; --muted: #4a5b5e;
    --header-h: 72px;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); }

/* ── 导航 ── */
header { background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 200; border-bottom: 1px solid rgba(15,118,110,0.1); box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
.navbar { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo-img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.logo-text strong { display: block; font-size: 1.05rem; color: var(--primary-dark); line-height: 1.2; }
.logo-text span { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.nav-wrap { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.9rem; padding: 8px 14px; border-radius: 8px; transition: 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); background: rgba(26,92,58,0.06); }
.nav-links a.active { color: var(--primary); background: rgba(26,92,58,0.1); font-weight: 600; }
.nav-links a.nav-cta { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff !important; border-radius: 24px; padding: 8px 18px; margin-left: 4px; }
.nav-links a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,92,58,0.3); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.nav-phone { font-size: 0.85rem; color: var(--primary); text-decoration: none; font-weight: 600; padding: 8px 12px; border: 1px solid rgba(26,92,58,0.2); border-radius: 24px; white-space: nowrap; }
.nav-phone:hover { background: rgba(26,92,58,0.06); }
.menu-toggle { display: none; background: none; border: 1px solid #ddd; border-radius: 8px; padding: 6px 10px; font-size: 1.2rem; cursor: pointer; color: var(--primary-dark); }

.btn-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 12px 28px; border-radius: 40px; text-decoration: none; display: inline-block; border: none; cursor: pointer; font-size: 1rem; transition: 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,92,58,0.3); }

/* ── 首屏 ── */
.hero { padding: 50px 0; background: linear-gradient(120deg, #f8fbf7, #eef3ea); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hero-badge { display: inline-block; background: rgba(26,92,58,0.1); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; color: var(--primary); margin-bottom: 16px; }
.hero h2 { font-size: 2rem; margin-bottom: 16px; line-height: 1.3; }
.hero h2 span { color: var(--primary); }
.answer-first { background: rgba(15,118,110,0.06); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 16px 0 24px; font-size: 0.95rem; }
.hero-stats { display: flex; gap: 32px; margin-top: 24px; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.hero-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.hero-card h3 { margin-bottom: 16px; color: var(--primary); }
.info-list { list-style: none; }
.info-list li { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.info-list strong { display: inline-block; width: 60px; color: var(--muted); }

/* ── 区块 ── */
.section { padding: 60px 0; }
.section-alt { background: rgba(255,255,255,0.65); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-title { font-size: 1.8rem; margin-bottom: 8px; color: var(--primary-dark); }
.section-sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }
.section-count { display: inline-block; margin-top: 8px; font-size: 0.8rem; color: var(--accent); background: rgba(15,118,110,0.08); padding: 4px 12px; border-radius: 12px; }
.city-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.city-tags span { background: rgba(26,92,58,0.1); padding: 8px 18px; border-radius: 24px; font-size: 0.9rem; }

/* ── 筛选 ── */
.filter-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn { padding: 8px 22px; border: 1px solid #ddd; border-radius: 24px; background: #fff; cursor: pointer; font-size: 0.9rem; transition: 0.2s; }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── 列表卡片 ── */
.cases-grid, .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-grid.news-list-mode { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.case-card, .news-card { background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: 0.25s; border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.news-list-mode .news-card { flex-direction: row; min-height: 160px; }
.case-card:hover, .news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,92,58,0.12); border-color: rgba(26,92,58,0.15); }
.case-img { height: 200px; background: linear-gradient(145deg, #e0edd8, #cde2c2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.case-img .emoji { font-size: 3rem; }
.case-img.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 50%); pointer-events: none; }
.case-img .card-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); color: var(--primary); padding: 4px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; z-index: 1; }
.news-thumb { width: 100%; height: 180px; background: linear-gradient(145deg, #e8f0ea, #d4e8d8); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.news-list-mode .news-thumb { width: 240px; height: auto; min-height: 160px; }
.news-thumb .card-cover { width: 100%; height: 100%; object-fit: cover; }
.news-thumb.no-img span { font-size: 2.5rem; opacity: 0.5; }
.news-body, .case-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.news-cat, .case-tag { display: inline-block; background: rgba(26,92,58,0.1); padding: 3px 10px; border-radius: 12px; font-size: 0.72rem; color: var(--primary); font-weight: 600; }
.case-content h4, .news-body h4 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; line-height: 1.4; }
.case-content p, .news-body p { font-size: 0.88rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; gap: 4px; }
.case-meta, .news-date, .card-date { font-size: 0.78rem; color: var(--muted); }
.read-more { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-top: 10px; }

/* ── FAQ ── */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 14px; margin-bottom: 12px; border: 1px solid #eee; overflow: hidden; transition: 0.2s; }
.faq-item[open] { border-color: rgba(26,92,58,0.25); box-shadow: 0 4px 16px rgba(26,92,58,0.08); }
.faq-item summary { padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { font-size: 0.8rem; color: var(--accent); font-weight: 700; min-width: 28px; }
.faq-q { flex: 1; font-size: 0.95rem; color: var(--primary-dark); }
.faq-cat { font-size: 0.7rem; background: rgba(15,118,110,0.1); color: var(--accent); padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.faq-answer { padding: 0 20px 18px 60px; color: var(--muted); font-size: 0.92rem; line-height: 1.7; border-top: 1px solid #f0f0f0; }
.faq-answer p { padding-top: 14px; }

/* ── 骨架屏 ── */
.grid-loading { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.skeleton { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #eee; }
.skeleton-card .skeleton-img { height: 200px; background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton-body { padding: 20px; }
.skeleton-line { height: 14px; background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; margin-bottom: 10px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-faq { height: 64px; background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 14px; margin-bottom: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty-state.error { color: #c0392b; }

/* ── 分页 ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 36px 0; flex-wrap: wrap; }
.pagination button { padding: 8px 16px; border: 1px solid #ddd; background: #fff; color: var(--text); border-radius: 8px; cursor: pointer; font-size: 0.88rem; transition: 0.2s; min-width: 40px; }
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.page-nums { display: flex; gap: 4px; }
.page-info { font-size: 0.82rem; color: var(--muted); margin-left: 8px; }

/* ── 其他 ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-list { margin-top: 16px; padding-left: 20px; }
.about-list li { margin-bottom: 8px; }
.about-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 12px; margin-bottom: 12px; font-family: inherit; transition: 0.2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,92,58,0.1); }
.contact-info h3 { margin-bottom: 16px; }
.view-more { text-align: center; margin-top: 28px; }
.view-more a { font-weight: 600; text-decoration: none; padding: 10px 24px; border: 1px solid var(--primary); border-radius: 24px; display: inline-block; transition: 0.2s; }
.view-more a:hover { background: var(--primary); color: #fff; }
footer { background: #0d1f12; color: #cfe2cf; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 24px; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: #a8c9aa; text-decoration: none; }
.copyright { text-align: center; font-size: 0.8rem; opacity: 0.7; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.copyright a { color: #a8c9aa; }
.float-tel { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; text-decoration: none; box-shadow: 0 4px 16px rgba(26,92,58,0.4); z-index: 99; }
.page-hero { text-align: center; padding: 32px 0 24px; }
.page-hero h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 8px; }
.page-hero p { color: var(--muted); }
.page-main { padding-bottom: 60px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 16px 0 0; color: var(--primary); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.back-link:hover { text-decoration: underline; }
.detail-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.detail-content { background: #fff; border-radius: 20px; padding: 32px; max-width: 860px; margin: 0 auto 40px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.detail-content h1 { color: var(--primary-dark); margin-bottom: 12px; }
.detail-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.detail-body { line-height: 1.8; white-space: pre-wrap; }

@media (max-width: 900px) {
    .news-list-mode .news-card { flex-direction: column; }
    .news-list-mode .news-thumb { width: 100%; height: 180px; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-wrap { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 8px 24px rgba(0,0,0,0.08); flex-direction: column; padding: 16px; display: none; }
    .nav-wrap.open { display: flex; }
    .nav-links { width: 100%; flex-direction: column; align-items: stretch; display: flex; }
    .nav-links a { padding: 12px 16px; }
    .nav-phone { width: 100%; text-align: center; margin-top: 8px; }
    .hero-grid, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero h2 { font-size: 1.5rem; }
    .faq-answer { padding-left: 20px; }
}
