/* ============================================================
   河北木登橙信息科技有限公司 - PC 端静态原型样式表
   作用范围：pc/index.html / pc/service.html / pc/order.html
   设计基调：B2B 企业服务官网，科技蓝渐变 + 白色内容区
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --color-primary: #1e5bff;
  --color-primary-dark: #0d47a1;
  --color-primary-light: #4a8bff;
  --color-gradient: linear-gradient(135deg, #1258d9 0%, #1e88e5 60%, #3fa0ff 100%);
  --color-bg: #f4f7fc;
  --color-card: #ffffff;
  --color-text: #1f2733;
  --color-text-sub: #6b7688;
  --color-border: #e7ecf5;
  --color-success: #22c55e;
  --color-danger: #ff4d4f;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 28px rgba(18, 88, 217, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(18, 88, 217, 0.16);
  --container-width: 1200px;
}

/* ---------- 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

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

/* ---------- 通用内容容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   顶部导航栏
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(15, 45, 100, 0.04);
}

.navbar.dark {
  background: linear-gradient(135deg, #0b4bc4 0%, #1258d9 100%);
  border-bottom: none;
  color: #ffffff;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* 品牌区：Logo 图片 + 公司名称 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  object-fit: contain;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(15, 45, 100, 0.12);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-menu .nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, background 0.18s ease;
}

.navbar.dark .nav-menu .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.nav-menu .nav-link:hover {
  color: var(--color-primary);
}

.navbar.dark .nav-menu .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* 当前页高亮：蓝色文字 + 下划线指示条 */
.nav-menu .nav-link.active {
  color: var(--color-primary);
}

.navbar.dark .nav-menu .nav-link.active {
  color: #ffffff;
}

.nav-menu .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
}

.navbar.dark .nav-menu .nav-link.active::after {
  background: #ffffff;
}

/* ============================================================
   Banner 横幅区（首页）
   ============================================================ */
.hero {
  position: relative;
  background: var(--color-gradient);
  color: #ffffff;
  overflow: hidden;
}

/* 科技点线网格底纹 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px),
    radial-gradient(circle at 72% 62%, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px, 34px 34px, 34px 34px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 88px 24px 96px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-text {
  flex: 1.2;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 480px;
  margin-bottom: 30px;
}

/* Banner 双按钮 */
.hero-actions {
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Banner 右侧插画：代码窗口 + 云节点 */
.hero-visual {
  flex: 0.9;
  position: relative;
  min-height: 260px;
}

.code-window {
  position: absolute;
  top: 12px;
  right: 40px;
  width: 320px;
  height: 210px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 代码窗口标题栏三点 */
.code-window::before {
  content: "● ● ●";
  color: #c9d6f2;
  letter-spacing: 4px;
  font-size: 10px;
  margin-bottom: 4px;
}

.code-line {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #8fb5ff 0 55%, #dbe6fb 55%);
}

.code-line.w50 { width: 50%; }
.code-line.w70 { width: 70%; }
.code-line.w85 { width: 85%; }

.cloud-node {
  position: absolute;
  left: 20px;
  bottom: 10px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
}

.db-node {
  position: absolute;
  right: 10px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

/* ============================================================
   区块通用
   ============================================================ */
.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-sub);
}

/* ============================================================
   服务卡片三列（首页）
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.service-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eaf1ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
  transition: transform 0.22s ease;
}

.service-card:hover .card-icon {
  transform: scale(1.1);
}

.service-card .card-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card .card-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* 卡片底部「了解详情 →」 */
.service-card .card-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.service-card:hover .card-more {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CTA 主按钮（居中）
   ============================================================ */
.cta-wrap {
  text-align: center;
  margin-top: 44px;
}

.cta-button {
  display: inline-block;
  padding: 16px 48px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-gradient);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(18, 88, 217, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
  box-shadow: 0 14px 34px rgba(18, 88, 217, 0.42);
}

.cta-button:active {
  transform: scale(0.98);
}

/* ============================================================
   服务项目页
   ============================================================ */
.page-header {
  background: var(--color-gradient);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.page-header .container {
  position: relative;
}

.page-header .page-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header .page-subtitle {
  font-size: 15px;
  opacity: 0.92;
}

/* 服务项目卡片列表（横向堆叠） */
.project-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.project-card .project-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #eaf1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.project-card .project-body {
  flex: 1;
}

.project-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-scope {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 10px;
}

/* 项目能力标签 */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tags .tag {
  font-size: 12px;
  color: var(--color-primary);
  background: #eaf1ff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.project-price {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 700;
}

.consult-button {
  flex-shrink: 0;
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-gradient);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(18, 88, 217, 0.3);
  transition: transform 0.18s ease;
}

.consult-button:hover {
  transform: translateY(-2px);
}

/* ============================================================
   服务流程
   ============================================================ */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.flow-step {
  flex: 1;
  text-align: center;
}

.flow-step .step-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #ffffff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.flow-step .step-label {
  font-size: 14px;
  color: var(--color-text-sub);
  font-weight: 600;
}

.flow-arrow {
  flex-shrink: 0;
  color: #c3cde3;
  font-size: 22px;
  margin-top: 12px;
}

/* ============================================================
   案例作品区块
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.case-card .case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: #eaf1ff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.case-card .case-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.case-card .case-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ============================================================
   订单支付页
   ============================================================ */
.pay-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
}

.pay-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
  align-items: start;
}

/* 订单摘要卡片（左） */
.order-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-gradient);
  color: #ffffff;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 700;
}

.close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-fields {
  padding: 10px 22px;
}

.order-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 15px;
}

.order-field:last-child {
  border-bottom: none;
}

.order-field .field-label {
  color: var(--color-text-sub);
}

.order-field .field-value {
  font-weight: 700;
  text-align: right;
}

.amount-value {
  color: var(--color-danger);
  font-size: 22px;
  font-weight: 800;
}

/* 支付表单卡片（右） */
.pay-form-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 32px;
}

.pay-form-card .form-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.form-row:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.form-row .row-label {
  font-size: 15px;
  color: var(--color-text-sub);
  white-space: nowrap;
}

.form-row .row-input {
  text-align: right;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
  min-width: 200px;
  padding: 6px 10px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.form-row .row-input:focus {
  border-bottom-color: var(--color-primary);
}

.form-row .row-value {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

/* 支付方式单选 */
.pay-methods {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.pay-method {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.pay-method.active {
  border-color: var(--color-primary);
  background: #f0f5ff;
  color: var(--color-primary);
}

.pay-method input {
  accent-color: var(--color-primary);
}

/* 支付须知 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  padding: 14px 16px;
  background: #eaf4ff;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-primary);
  line-height: 1.7;
}

.notice .notice-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* 确认支付按钮 */
.confirm-button {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-gradient);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(18, 88, 217, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.confirm-button:hover {
  box-shadow: 0 14px 34px rgba(18, 88, 217, 0.42);
}

.confirm-button:active {
  transform: scale(0.99);
}

/* ============================================================
   页脚
   ============================================================ */
.page-footer {
  border-top: 1px solid var(--color-border);
  background: #ffffff;
  padding: 64px 0 40px;
  text-align: center;
}

.page-footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-footer .footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.page-footer .footer-name {
  font-size: 16px;
  font-weight: 800;
}

.page-footer .footer-verified {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

.page-footer .footer-verified .verified {
  color: var(--color-success);
  font-weight: 600;
}

.page-footer .footer-copy {
  font-size: 12px;
  color: #a4adbd;
}

/* ============================================================
   支付成功弹层
   ============================================================ */
.pay-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 45, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.pay-mask.show {
  display: flex;
}

.pay-modal {
  width: 360px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  animation: pop-in 0.25s ease;
}

@keyframes pop-in {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pay-modal .success-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e6f9ee;
  color: var(--color-success);
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pay-modal .success-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pay-modal .success-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

.pay-modal .success-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   响应式（窄屏降级为单栏）
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    padding: 48px 24px 64px;
  }
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }
  .pay-layout {
    grid-template-columns: 1fr;
  }
  .brand-name {
    font-size: 15px;
  }
  .nav-menu .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }
}