/* =============================================
   北京国又科技有限公司 - 全站样式表
   TokenHub | www.guoyoucloud.com
   ============================================= */

/* --- 变量定义 --- */
:root {
  --primary: #0052d9;
  --dark: #003d99;
  --light: #f5f7ff;
  --text: #333;
  --white: #fff;
  --gray: #666;
  --border: #ddd;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-deep: rgba(0, 0, 0, 0.15);
}

/* --- Reset & 全局 --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- 容器 --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.header .logo {
  float: left;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
  line-height: 72px;
  white-space: nowrap;
}

.header .logo span {
  color: var(--dark);
  font-weight: 500;
  font-size: 14px;
}

.header nav {
  float: right;
  display: flex;
  align-items: center;
  height: 72px;
}

.header nav a {
  display: inline-block;
  color: var(--text);
  padding: 0 18px;
  font-weight: 500;
  font-size: 15px;
  height: 72px;
  line-height: 72px;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
}

.header nav a:hover,
.header nav a.active {
  color: var(--primary);
}

.header nav a.active {
  border-bottom-color: var(--primary);
}

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  float: right;
  width: 40px;
  height: 40px;
  margin-top: 16px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

#menu-check {
  display: none;
}

/* --- Section 通用 --- */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: bold;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 0;
}

/* --- 按钮 --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: bold;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
}

.btn:hover {
  background: var(--dark);
}

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 72px;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 80, 0.65), rgba(0, 60, 120, 0.5));
  z-index: 1;
}

.hero-banner > * {
  position: relative;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
}

.hero-slide:first-child {
  display: block;
}

.hero-banner h1 {
  font-size: 52px;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-banner p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.hero-dot.active-dot {
  background: var(--primary);
}

/* --- 服务项目卡片 --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.svc-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-deep);
}

.svc-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.svc-card h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
}

.svc-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
}

/* --- 关于我们 --- */
.about-section {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
}

.about-img {
  flex: 1;
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow-deep);
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: auto;
}

/* --- 云计算一站式中心 --- */
.center-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.center-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}

.center-card:hover {
  box-shadow: 0 8px 30px var(--shadow-deep);
  transform: translateY(-4px);
}

.center-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.center-card .desc {
  padding: 20px;
}

.center-card .desc h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.center-card .desc p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* --- 数据指标 --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 16px;
  color: var(--gray);
  display: block;
  margin-top: 8px;
}

/* --- 合作伙伴 --- */
.partner-section {
  background: #f8f9ff;
  padding: 80px 0;
  text-align: center;
}

.partner-section h2 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 0;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.partner-badge {
  background: var(--white);
  border-radius: 8px;
  padding: 16px 28px;
  box-shadow: 0 2px 8px var(--shadow);
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  transition: box-shadow 0.3s, transform 0.3s;
}

.partner-badge:hover {
  box-shadow: 0 6px 20px var(--shadow-deep);
  transform: translateY(-2px);
}

/* --- CTA Banner --- */
.pop-banner {
  background: var(--primary);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.pop-banner h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
}

.pop-banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.pop-banner .btn {
  background: var(--white);
  color: var(--primary);
}

.pop-banner .btn:hover {
  background: #e8eeff;
}

/* --- 地图 --- */
.map-wrap {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* --- 联系表单 --- */
.contact-icons-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-icon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
}

.contact-icon-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.contact-icon-item span {
  font-weight: 500;
}

form.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form.contact-form label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  border-color: var(--primary);
}

form.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

form.contact-form button {
  align-self: flex-end;
  margin-top: 8px;
}

/* --- 内页 Banner --- */
.page-banner {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 72px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 80, 0.6);
  z-index: 1;
}

.page-banner > * {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-banner p {
  font-size: 18px;
  opacity: 0.9;
}

.page-banner.tall {
  height: 500px;
}

/* --- SD-WAN 架构图区域 --- */
.sdwan-layout {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.sdwan-layout .sdwan-text {
  flex: 1;
}

.sdwan-layout .sdwan-text h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
}

.sdwan-layout .sdwan-text p {
  color: var(--gray);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
}

.sdwan-layout .sdwan-img {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-deep);
}

.sdwan-layout .sdwan-img img {
  width: 100%;
  height: auto;
}

/* --- 对比表格 --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  box-shadow: 0 4px 16px var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
}

.comparison-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: bold;
  font-size: 16px;
}

.comparison-table tr:nth-child(even) td {
  background: var(--light);
}

.comparison-table tr:hover td {
  background: #eef2ff;
}

.comparison-table td:first-child {
  font-weight: 500;
  text-align: left;
  background: #f0f4ff;
  color: var(--dark);
}

/* --- 步骤流程 --- */
.steps-row {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  justify-content: center;
}

.step-item {
  text-align: center;
  flex: 1;
  max-width: 220px;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: Arial, sans-serif;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.step-item h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* --- 解决方案网格 --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.solution-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 30px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid var(--primary);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px var(--shadow-deep);
}

.solution-card .card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
}

.solution-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
}

/* --- 行业场景 --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.industry-card {
  background: var(--light);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-deep);
  background: var(--white);
}

.industry-card .ind-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.industry-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* --- 案例卡片 --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.case-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 30px;
  box-shadow: 0 4px 16px var(--shadow);
  border-top: 4px solid var(--primary);
}

.case-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

.case-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
}

/* --- Footer --- */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 60px 0 30px;
  text-align: center;
}

.footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer .footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 20px;
}

.footer .footer-logo span {
  color: var(--primary);
}

.footer .footer-info {
  font-size: 14px;
  line-height: 2.2;
  color: #aaa;
  margin-bottom: 24px;
}

.footer .footer-info a {
  color: #aaa;
  transition: color 0.3s;
}

.footer .footer-info a:hover {
  color: var(--primary);
}

.footer .footer-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 20px 0;
}

.footer .footer-copy {
  font-size: 13px;
  color: #666;
}

/* --- 响应式 --- */
@media (max-width: 992px) {
  .header {
    padding: 0 20px;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 16px var(--shadow);
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    padding: 14px 24px;
    height: auto;
    line-height: 1;
    border-bottom: 1px solid #f0f0f0;
    border-left: none;
    width: 100%;
    text-align: left;
  }

  .header nav a.active {
    border-left: 3px solid var(--primary);
    border-bottom-color: #f0f0f0;
  }

  .menu-toggle {
    display: flex;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .center-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section {
    flex-direction: column;
  }

  .hero-banner {
    height: 400px;
  }

  .hero-banner h1 {
    font-size: 36px;
  }

  .page-banner {
    height: 300px;
  }

  .page-banner h1 {
    font-size: 32px;
  }

  .page-banner.tall {
    height: 350px;
  }

  .sdwan-layout {
    flex-direction: column;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .steps-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-banner {
    height: 300px;
  }

  .hero-banner h1 {
    font-size: 28px;
  }

  .hero-banner p {
    font-size: 16px;
  }

  .center-cards {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 38px;
  }

  .service-cards {
    gap: 20px;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-item {
    max-width: 280px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .contact-icons-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer .footer-info {
    font-size: 13px;
  }
}
