/* 本地化简洁 UI —— 无 CDN。包含基础布局、卡片、按钮与轮播样式 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #0f172a; background: #ffffff; }

:root{
  --primary: #155EEF;
  --primary-600: #1D4ED8;
  --primary-50: #EFF6FF;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --bg-alt: #f8fafc;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.8); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.logo img { width: 28px; height: 28px; }
.logo span { font-weight: 800; letter-spacing: .3px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--primary); }
.nav a.is-active { color: var(--primary); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; }
.nav-toggle span { width: 22px; height: 2px; background: #0f172a; display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; background: white; }
.btn:hover { background: var(--bg-alt); }
.btn-primary { background: var(--primary); color: white; border-color: transparent; }
.btn-primary:hover { background: var(--primary-600); }

/* Hero + Carousel */
.hero { background: linear-gradient(180deg, var(--primary-50), #ffffff 60%); padding: 48px 0 24px; }
.hero-text { max-width: 680px; padding: 32px 0; }
.hero h1 { margin: 0 0 12px; font-size: 40px; line-height: 1.2; }
.hero p { color: var(--muted); margin: 0 0 20px; }
.hero-actions { display: flex; gap: 12px; }

.carousel { position: relative; max-width: 1120px; margin: 24px auto 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.slides { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 360px; object-fit: cover; display: block; background: #eef2ff; }
.slide .caption { position: absolute; left: 20px; bottom: 16px; background: rgba(0,0,0,.55); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.9); cursor: pointer; }
.carousel-control:hover { background: #fff; }
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }
.indicators { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.indicators button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #cbd5e1; }
.indicators button.active { background: var(--primary); }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 28px; }
.section-head .link { color: var(--primary); text-decoration: none; }
/* Centered section head */
.section-head.center { justify-content: center; flex-direction: column; align-items: center; gap: 8px; }
.section-head.center .link { margin-top: 4px; }

.grid { display: grid; gap: 16px; }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.case-grid { grid-template-columns: repeat(3, 1fr); }

.card { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.card .thumb { width: 100%; height: 220px; overflow: hidden; background: #f1f5f9; display:flex; align-items:center; justify-content:center; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.case-card .thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.news-card .thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

/* Article content */
.prose { line-height: 1.8; color: var(--text); font-size: 16px; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { margin: 1.2em 0 .6em; line-height: 1.4; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose img { max-width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); margin: 12px 0; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card-title { margin: 0; font-size: 18px; line-height: 1.35; }
.card-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 12px; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.about-ill img { width: 100%; height: auto; }
.features { margin: 0 0 18px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.features li { display: flex; align-items: center; gap: 8px; }

/* Metrics */
.metrics-grid { grid-template-columns: repeat(3, 1fr); justify-items: center; }
.metric { border: 1px solid var(--border); border-radius: 14px; background:#fff; padding: 18px; text-align: center; width: 100%; }
.metric .num { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.metric .label { color: #0f172a; font-size: 14px; margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; }
.links { display: flex; gap: 12px; }
.links a { text-decoration: none; color: var(--text); }
.links a:hover { color: var(--primary); }
.legal { color: #64748b; font-size: 12px; }

/* Icon images */
.icon { width: 14px; height: 14px; display: inline-block; vertical-align: -1px; opacity: .9; }
.card-meta .icon { flex: 0 0 14px; }
.features .icon { width: 14px; height: 14px; }

/* Responsive */
@media (max-width: 992px) {
  .news-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { height: 56px; }
  .nav { display: none; position: absolute; right: 16px; top: 56px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; flex-direction: column; gap: 10px; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 28px; }
  .slide img { height: 220px; }
  .news-grid, .case-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric .num { font-size: 28px; }
  .metric .label { font-size: 13px; }
  /* Mobile cards: smaller thumbs and tighter text */
  .card .thumb { height: 120px; }
  .card-title { font-size: 16px; }
  .card-desc { -webkit-line-clamp: 2; }
}


