:root {
  --red: #e53935;
  --red-dark: #c62828;
  --red-light: #ffebee;
  --ink: #1f2329;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --max: 1140px;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 导航 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 15px; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--red); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width 0.25s; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }

/* 首屏 */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #fff1f0 0%, #ffe3e0 45%, #ffd0cc 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(229,57,53,0.18), transparent 40%), radial-gradient(circle at 80% 70%, rgba(198,40,40,0.15), transparent 45%); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 { font-size: clamp(40px, 8vw, 76px); font-weight: 900; letter-spacing: 4px; color: var(--red-dark); text-shadow: 0 4px 20px rgba(229,57,53,0.2); }
.hero-slogan { font-size: clamp(16px, 3vw, 22px); color: var(--ink); margin-top: 16px; font-weight: 600; }
.hero-sub { color: var(--muted); margin-top: 8px; letter-spacing: 1px; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 80px; background: var(--bg); clip-path: polygon(0 60%, 25% 40%, 50% 60%, 75% 40%, 100% 60%, 100% 100%, 0 100%); z-index: 1; }

.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; border: none; transition: transform 0.15s, box-shadow 0.15s; }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 8px 22px rgba(229,57,53,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(229,57,53,0.45); }
.btn-ghost { background: #fff; color: var(--red-dark); border: 2px solid var(--red); }
.btn-ghost:hover { background: var(--red-light); }

/* 区块 */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(26px, 5vw, 36px); font-weight: 800; position: relative; padding-bottom: 14px; }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: var(--red); }
.section-title.light { color: #fff; }
.section-lead { text-align: center; color: var(--muted); margin: 18px auto 44px; max-width: 640px; }

/* 关于 */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card { background: #fff; border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); text-align: center; transition: transform 0.2s; }
.about-card:hover { transform: translateY(-6px); }
.about-icon { font-size: 40px; margin-bottom: 12px; }
.about-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--red-dark); }
.about-card p { color: var(--muted); font-size: 15px; }

/* 服务 */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--red); transition: transform 0.2s; }
.service-card:hover { transform: translateY(-6px); }
.service-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--red-light); color: var(--red); display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; }

/* 数据 */
.stats { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.stat-card { text-align: center; padding: 20px; }
.stat-num { font-size: clamp(30px, 6vw, 46px); font-weight: 900; line-height: 1.1; }
.stat-label { margin-top: 8px; opacity: 0.92; font-size: 15px; }

/* 新闻 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); }
.news-cover { height: 160px; background: linear-gradient(135deg, var(--red-light), #ffd0cc); display: grid; place-items: center; font-size: 44px; }
.news-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.news-date { color: var(--muted); font-size: 13px; }
.news-card h3 { font-size: 17px; margin: 8px 0; line-height: 1.4; }
.news-card p { color: var(--muted); font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { color: var(--red); font-weight: 700; font-size: 14px; margin-top: 10px; }

/* 联系 */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 20px 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); font-size: 16px; }
.contact-note { color: var(--muted); font-size: 14px; }
.contact-form { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.contact-form input, .contact-form textarea { padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 15px; font-family: inherit; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.form-tip { color: var(--muted); font-size: 12px; }

/* 页脚 */
.footer { background: #1f2329; color: #cfd3da; padding: 40px 0 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 18px; }
.footer-copy { font-size: 13px; opacity: 0.8; }
.beian-bar { background: rgba(0,0,0,0.35); color: #cfd3da; font-size: 12px; text-align: center; padding: 12px 10px; }
.beian-bar a { color: #cfd3da; display: inline-flex; align-items: center; gap: 4px; }
.beian-bar a:hover { color: #fff; }
.beian-bar .sep { margin: 0 10px; opacity: 0.5; }
.beian-icon { width: 14px; height: 14px; }

/* 弹层 */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-body { position: relative; z-index: 2; background: #fff; border-radius: var(--radius); max-width: 640px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 32px; }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body h3 { font-size: 22px; margin-bottom: 8px; color: var(--red-dark); padding-right: 30px; }
.modal-meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.modal-content { font-size: 15px; color: #374151; white-space: pre-wrap; }

.loading { color: var(--muted); text-align: center; padding: 30px; grid-column: 1 / -1; }

/* 响应式 */
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 58px; right: 0; background: #fff; flex-direction: column; width: 200px; padding: 16px; gap: 14px; box-shadow: var(--shadow); transform: translateX(120%); transition: transform 0.25s; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .about-grid, .services-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}
