/* ============================================================
 * index.css - 客户官网样式
 * 包含：导航/头图/首页服务卡片/子页面/底部版权
 * ============================================================ */

/* ====== 网站容器 ====== */
.site-page {
  min-height: 100vh;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ====== 顶部导航（固定） ====== */
.site-header {
  background: linear-gradient(135deg, #1565C0 0%, #2196F3 100%);
  color: white;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.site-header .logo-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.site-header .site-name { font-size: 20px; font-weight: 500; }
.site-header .site-nav { margin-left: auto; display: flex; gap: 32px; align-items: center; }
.site-header .site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none; font-size: 14px;
  cursor: pointer;
}
.site-header .site-nav a:hover { color: #fff; }
.site-header .site-nav a.active {
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

/* ====== Banner 头图（固定） ====== */
.site-hero {
  padding: 80px 48px 60px;
  background: linear-gradient(180deg, #E3F2FD 0%, #fff 100%);
  flex-shrink: 0;
}
.site-hero h1 { font-size: 36px; color: #1565C0; margin-bottom: 16px; }
.site-hero p { font-size: 18px; color: #666; line-height: 1.8; }

/* ====== 动态内容区 ====== */
.site-main {
  flex: 1;
  padding: 0 48px 60px;
  min-height: 300px;
}

/* ====== 首页服务卡片 ====== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 32px 24px;
  transition: all 0.3s;
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(33,150,243,0.15);
  transform: translateY(-2px);
}
.service-card .svc-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ====== 子页面通用样式 ====== */
.page-content {
  padding: 40px 0;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.page-body {
  color: var(--text);
}

/* ====== 内容区块 ====== */
.content-section {
  margin-bottom: 36px;
}
.content-section:last-child { margin-bottom: 0; }
.section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.section-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

/* ====== 服务介绍 - 信息卡片网格 ====== */
.info-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.info-card {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.info-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.info-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.info-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.info-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== 公司动态 - 案例卡片 ====== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-card {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.case-num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 36px;
  font-weight: 700;
  color: rgba(33,150,243,0.08);
  line-height: 1;
}
.case-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  padding-right: 40px;
}
.case-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ====== 公司动态 - 服务站点 ====== */
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.site-card {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all .2s;
}
.site-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.site-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.site-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ====== 联系我们 ====== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-card {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all .2s;
}
.contact-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.contact-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.contact-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ====== 我的订单 ====== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pagination-bar .pg-info {
  margin-right: 12px;
}
.pg-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  min-width: 32px;
}
.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ====== 底部版权（固定） ====== */
.site-footer {
  background: #263238;
  color: rgba(255,255,255,0.7);
  padding: 28px 48px 22px;
  text-align: center;
  flex-shrink: 0;
}
.site-footer .footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}
.site-footer .footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s;
}
.site-footer .footer-links a:hover {
  color: #fff;
}
.site-footer .footer-divider {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}
.site-footer .footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ====== 响应式适配 ====== */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .site-header .site-nav { gap: 16px; }
  .site-hero { padding: 48px 24px 36px; }
  .site-hero h1 { font-size: 26px; }
  .site-hero p { font-size: 15px; }
  .site-main { padding: 0 24px 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .info-grid-2 { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .site-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 24px 18px; }
}
