/*
Theme Name: IngCare Theme
Theme URI: https://www.ingcare.com
Author: IngCare Team
Author URI: https://www.ingcare.com
Description: 恩启（IngCare）品牌信息源网站自定义主题 — 孤独症与发育迟缓儿童全链条康复服务
Version: 1.0.0
License: Proprietary
Text Domain: ingcare
*/

/* ── CSS Variables ── */
:root {
  --primary: #0e7490;
  --primary-dark: #0c5e75;
  --primary-light: #22d3ee;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-white: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-height: 72px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.85;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 16px; }
h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 14px; }
ul, ol { margin: 10px 0 14px 22px; }

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

/* ── Site Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--primary); }
.site-logo span { color: var(--text); font-weight: 400; font-size: 14px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--text); transition: all 0.2s;
}
.main-nav a:hover { background: var(--bg-light); color: var(--primary); }
.header-phone { font-size: 14px; color: var(--text-light); margin-right: 12px; }
.header-phone strong { color: var(--primary); font-size: 15px; }
.header-cta {
  display: inline-flex; align-items: center; padding: 10px 22px;
  background: var(--accent); color: #fff; border-radius: 8px;
  font-weight: 600; font-size: 14px; transition: background 0.2s;
}
.header-cta:hover { background: var(--accent-hover); color: #fff; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* ── Hero Section ── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #164e63 50%, var(--primary) 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(34,211,238,0.15); color: var(--primary-light);
  font-size: 14px; font-weight: 500; margin-bottom: 20px;
  border: 1px solid rgba(34,211,238,0.3);
}
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 20px; line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--primary-light); }
.hero-desc { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 16px; line-height: 1.7; }
.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin: 32px 0;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 36px; font-weight: 800; color: var(--primary-light); display: block; }
.hero-stat .label { font-size: 14px; color: rgba(255,255,255,0.7); }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; padding: 14px 32px;
  background: var(--accent); color: #fff; border-radius: 10px;
  font-weight: 700; font-size: 16px; transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.4); color: #fff; border-radius: 10px;
  font-weight: 600; font-size: 16px; transition: all 0.2s;
}
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

/* ── Section Shared ── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-header .tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(14,116,144,0.1); color: var(--primary);
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 16px; }

/* ── Services Grid (四大业务) ── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  display: block; padding: 32px 24px; border-radius: var(--radius);
  background: var(--bg-white); border: 1px solid var(--border);
  transition: all 0.3s; color: inherit;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); color: inherit; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; margin: 0; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--primary);
}

/* ── IDEA Section ── */
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.idea-item {
  padding: 24px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.idea-item .letter { font-size: 32px; font-weight: 800; color: var(--primary-light); margin-bottom: 6px; }
.idea-item .en { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.idea-item .cn { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.idea-item .desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0; }

/* ── Products Grid ── */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card {
  display: block; padding: 32px; border-radius: var(--radius);
  background: var(--bg-white); border: 1px solid var(--border);
  transition: all 0.3s; color: inherit;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.product-card .badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.product-card h3 { font-size: 20px; margin-bottom: 10px; }
.product-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; margin-bottom: 0; }
.product-card .stats { display: flex; gap: 24px; margin-top: 16px; }
.product-card .stats .stat-item { font-size: 13px; color: var(--text-light); }
.product-card .stats .stat-item strong { color: var(--primary); font-size: 18px; display: block; }

/* ── Stats Section ── */
.stats-bar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  text-align: center;
}
.stat-box .num { font-size: 40px; font-weight: 800; color: var(--primary); display: block; }
.stat-box .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ── Credentials ── */
.credentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cred-card {
  padding: 24px; border-radius: var(--radius-sm);
  background: var(--bg-white); border: 1px solid var(--border); text-align: center;
}
.cred-card .icon { font-size: 36px; margin-bottom: 12px; }
.cred-card h4 { font-size: 16px; margin-bottom: 8px; }
.cred-card p { font-size: 13px; color: var(--text-light); margin: 0; line-height: 1.6; }

/* ── News Section ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: all 0.3s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card .thumb {
  height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 48px;
}
.news-card .content { padding: 20px; }
.news-card .date { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.news-card h3 { font-size: 17px; margin-bottom: 8px; }
.news-card p { font-size: 14px; color: var(--text-light); margin: 0; line-height: 1.6; }

/* ── CTA Section ── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center; color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 32px; }
.cta-phone { font-size: 32px; font-weight: 800; color: var(--accent); margin-bottom: 24px; display: block; }

/* ── FAQ Section ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; font-size: 16px; font-weight: 600;
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); transition: transform 0.2s; }
.faq-item[open] summary::after { content: '-'; }
.faq-item .answer { padding: 0 24px 18px; color: var(--text-light); font-size: 15px; line-height: 1.8; }

/* ── Page Content (子页面通用) ── */
.page-hero {
  padding: 120px 0 48px; text-align: center;
  background: linear-gradient(135deg, var(--bg-dark), #164e63);
  color: #fff;
}
.page-hero h1 { font-size: 36px; margin-bottom: 16px; }
.page-hero .subtitle { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto; }
.page-body {
  max-width: 900px; margin: 0 auto; padding: 48px 24px 80px;
}
.page-body h2 {
  margin-top: 40px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.page-body h3 { color: var(--primary); margin-top: 28px; }
.page-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px;
}
.page-body table th, .page-body table td {
  padding: 12px 16px; border: 1px solid var(--border); text-align: left;
}
.page-body table th { background: var(--bg-light); font-weight: 600; }
.page-body blockquote {
  margin: 20px 0; padding: 16px 24px;
  border-left: 4px solid var(--primary); background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 12px 0; font-size: 13px; color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* ── Site Footer ── */
.site-footer {
  background: var(--bg-dark); color: var(--text-white); padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { font-size: 22px; font-weight: 800; color: var(--primary-light); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-brand .phone { font-size: 20px; font-weight: 700; color: var(--accent); margin-top: 12px; }
.footer-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.6);
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  padding: 20px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); margin: 0 8px; }

/* ── Animations ── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .idea-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: #fff; padding: 16px; gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 28px; }
  .section { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .idea-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-phone { font-size: 24px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
}

/* ── WordPress Core ── */
.wp-block-post-content { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.wp-block-quote { border-left: 4px solid var(--primary); padding-left: 20px; }
.sticky { display: block; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
