/* 成都盘古之星信息科技有限公司 — 官网样式 */
:root {
  --primary: #1a56db;
  --primary-dark: #1241a8;
  --primary-light: #e8effc;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(26, 86, 219, 0.08);
  --radius: 12px;
  --max-width: 1140px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶栏导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.logo span {
  max-width: 200px;
  line-height: 1.3;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: 0.3s;
}

/* ========== 英雄区 ========== */
.hero {
  background: linear-gradient(135deg, #0f2d6e 0%, var(--primary) 50%, #3b82f6 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.92;
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ========== 页面标题条 ========== */
.page-banner {
  background: linear-gradient(135deg, #0f2d6e, var(--primary));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-banner p {
  opacity: 0.85;
  font-size: 16px;
}

/* ========== 通用区块 ========== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== 特色卡片 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ========== 数据概览 ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-item span {
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== 关于页 ========== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-info-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.about-info-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  flex: 0 0 100px;
  color: var(--text-muted);
}

.info-list .value {
  flex: 1;
}

/* ========== 业务范围页 ========== */
.scope-block {
  margin-bottom: 40px;
}

.scope-block h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scope-block h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.scope-block p,
.scope-block ul {
  color: var(--text-muted);
  font-size: 15px;
}

.scope-block ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.scope-block ul li {
  background: var(--bg-alt);
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.service-detail-card h4 {
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-detail-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ========== 联系页 ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item-text span,
.contact-item-text a {
  font-size: 16px;
  color: var(--text);
}

.contact-map-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 32px;
}

.contact-map-placeholder .pin {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 28px;
}

/* ========== 页脚 ========== */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 56px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #374151;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #9ca3af;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  line-height: 2;
}

.footer-bottom a {
  color: #9ca3af;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-list.open {
    display: flex;
  }

  .about-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 56px 0;
  }

  .logo span {
    font-size: 15px;
    max-width: 160px;
  }
}
