/* 基础配色与排版（参考暗色科技风格） */
:root {
  --bg: #0b0f1a;
  --bg-2: #0f1526;
  --text: #e6f1ff;
  --muted: #9bb0c8;
  --accent: #7cfef3;
  --accent-2: #7c8cff;
  --card: #11182b;
  --border: #1b2540;
  --card-a: rgba(124, 254, 243, 0.10);
  --card-b: rgba(124, 140, 255, 0.12);
  --card-c: rgba(32, 48, 79, 0.22);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, #13203a 0%, var(--bg) 40%),
              radial-gradient(800px 400px at 90% 10%, #14243e 0%, var(--bg) 50%), var(--bg);
  padding-top: 64px; /* 固定导航占位 */
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航（固定显示） */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; background: rgba(11, 15, 26, 0.65); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { color: var(--text); font-weight: 700; text-decoration: none; letter-spacing: 0.6px; }

.hamburger { width: 44px; height: 36px; display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.hamburger span { display: block; height: 2px; width: 22px; background: var(--text); transition: transform 320ms ease, opacity 320ms ease; margin: 0 auto; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu { position: fixed; inset: 64px 0 0 0; background: var(--bg-2); backdrop-filter: none; border-top: 1px solid var(--border); display: none; flex-direction: column; align-items: center; padding-top: 24px; z-index: 1000; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.menu.open { display: flex; }
.menu-panel { width: min(92vw, 520px); border: 1px solid var(--border); background: rgba(17, 24, 43, 0.85); border-radius: 16px; padding: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.menu-header { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 8px 12px; }
.menu-title { font-weight: 700; letter-spacing: 0.4px; }
.menu-subtitle { color: var(--muted); font-size: 14px; }
.menu-list { list-style: none; margin: 0; padding: 8px 0; display: grid; gap: 8px; }
.menu-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; background: linear-gradient(180deg, rgba(124, 140, 255, 0.10), rgba(17, 24, 43, 0.62)); }
.menu-link:hover { border-color: rgba(124, 140, 255, 0.4); background: rgba(17, 24, 43, 0.82); }
.menu-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-2); }

/* 像素风动画首屏 */
.hero { position: relative; min-height: 64vh; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.pixel-hero { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, 1fr); grid-auto-rows: 12px; filter: saturate(120%); }
.pixel { width: 100%; height: 100%; background: rgba(124, 254, 243, 0.06); transition: background 400ms ease, box-shadow 400ms ease; }
.pixel.active { background: rgba(124, 254, 243, 0.35); box-shadow: 0 0 12px rgba(124, 254, 243, 0.4), inset 0 0 6px rgba(124, 254, 243, 0.25); }

.hero-content { position: relative; z-index: 2; text-align: center; padding: 48px 0; max-width: 760px; }
.hero h1 { font-size: clamp(24px, 4.6vw, 42px); margin: 0 0 12px; letter-spacing: 0.4px; }
.hero p { color: var(--muted); font-size: clamp(14px, 2.6vw, 18px); margin: 0 0 24px; }
.hero-cta { display: inline-flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); text-decoration: none; background: linear-gradient(180deg, rgba(124, 254, 243, 0.18), rgba(124, 254, 243, 0.06)); box-shadow: inset 0 0 12px rgba(124, 254, 243, 0.15); }
.btn:hover { border-color: rgba(124, 254, 243, 0.45); box-shadow: 0 0 16px rgba(124, 254, 243, 0.25), inset 0 0 12px rgba(124, 254, 243, 0.25); }
.btn-secondary { background: transparent; }

/* 公司与服务简介 */
.about { padding: 56px 0; }
.about h2 { font-size: 28px; margin: 0 0 12px; }
.services h2 { font-size: 24px; margin: 0 0 12px; }
.about p { color: var(--muted); line-height: 1.8; }

.services { padding: 20px 0 56px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { display: block; position: relative; background: linear-gradient(180deg, rgba(124, 140, 255, 0.10), rgba(17, 24, 43, 0.72)); border: 1px solid var(--border); border-radius: 14px; padding: 20px 18px; text-decoration: none; color: var(--text); overflow: hidden; }
.service-card::after { content: "→"; position: absolute; right: 16px; top: 16px; color: var(--accent-2); opacity: 0.8; transition: transform 200ms ease, opacity 200ms ease; }
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.service-card:hover { border-color: rgba(124, 140, 255, 0.4); box-shadow: 0 0 16px rgba(124, 140, 255, 0.22), inset 0 0 10px rgba(124, 140, 255, 0.12); }
.service-card:hover::after { transform: translateX(4px); opacity: 1; }

/* 联系我们 */
.contact { padding: 20px 0 56px; }
.contact-card { border: 1px solid var(--border); background: rgba(17, 24, 43, 0.6); border-radius: 14px; padding: 16px; }
.contact a { color: var(--accent); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* 页脚 */
.footer { border-top: 1px solid var(--border); background: rgba(11, 15, 26, 0.65); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.footer-right a { color: var(--muted); text-decoration: none; }
.footer-right a:hover { color: var(--text); }

/* 响应式适配 */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .pixel-hero { grid-template-columns: repeat(16, 1fr); grid-auto-rows: 10px; }
  .hero-content { text-align: center; padding: 36px 0; }
  .hero h1 { font-size: clamp(22px, 5.6vw, 34px); }
  .hero p { line-height: 1.9; }
  .about h1, .about h2, .contact h2, .message h2 { text-align: center; }
  .about { padding: 48px 0 56px; }
  .form { padding: 0 12px; }
  .label { padding-left: 6px; }
}

/* 关于我们强调卡片 */
.info-card { border: 1px solid var(--border); background: rgba(17, 24, 43, 0.6); border-radius: 14px; padding: 16px; margin-top: 12px; }

@media (min-width: 1024px) {
  .menu { inset: 64px 16px auto auto; width: 280px; height: auto; border: 1px solid var(--border); border-radius: 12px; }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-panel { width: 100%; background: rgba(17, 24, 43, 0.9); }
}

/* 留言板样式 */
.message { padding: 8px 0 56px; }
.form { display: grid; gap: 12px; max-width: 720px; }
.form-row { display: grid; gap: 8px; }
.label { font-weight: 600; color: var(--text); }
.input, .textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(17, 24, 43, 0.6); color: var(--text); }
.textarea { min-height: 120px; resize: vertical; }
.submit { width: fit-content; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); background: linear-gradient(180deg, rgba(124, 254, 243, 0.18), rgba(124, 254, 243, 0.06)); cursor: pointer; margin: 8px auto 0; display: inline-flex; justify-content: center; }
.submit:hover { border-color: rgba(124, 254, 243, 0.45); box-shadow: 0 0 16px rgba(124, 254, 243, 0.25), inset 0 0 12px rgba(124, 254, 243, 0.25); }
.notice { color: var(--accent); font-size: 14px; }

/* 详情页段落卡片（多色卡与线框） */
.section-stack { display: grid; gap: 16px; margin-top: 12px; }
.section-card { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 16px; color: var(--text); background: rgba(17, 24, 43, 0.66); overflow: hidden; }
.section-title { margin: 0 0 8px; font-weight: 700; font-size: 18px; letter-spacing: 0.3px; }
.section-card p { margin: 0; color: var(--muted); line-height: 1.8; }

/* 色卡变体（区分不同段落） */
.section-card.variant-a { background: linear-gradient(180deg, var(--card-a), rgba(17, 24, 43, 0.70)); }
.section-card.variant-b { background: linear-gradient(180deg, var(--card-b), rgba(17, 24, 43, 0.70)); }
.section-card.variant-c { background: linear-gradient(180deg, var(--card-c), rgba(17, 24, 43, 0.70)); }

/* 线框强调（凸显内容差异） */
.section-card.frame-1::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(124, 254, 243, 0.35); border-radius: 10px; pointer-events: none; }
.section-card.frame-2::before { content: ""; position: absolute; inset: 12px; border: 1px dotted rgba(124, 140, 255, 0.45); border-radius: 12px; pointer-events: none; }
.section-card.frame-3::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, rgba(124, 254, 243, 0.55), rgba(124, 140, 255, 0.55)); }

@media (max-width: 768px) {
  .section-title { font-size: 16px; }
  .section-card { padding: 14px; }
  .section-stack { gap: 12px; }
}