/* ===================================================
   博妍装饰 - 全局样式规范
   高端商务公装风格：深蓝黑 + 暖白 + 雅金 + 深红点缀
   =================================================== */

/* CSS Variables */
:root {
  --primary:       #0F172A;  /* 深蓝黑 — 沉稳商务主色 */
  --primary-light: #1E293B;  /* 稍亮深蓝 */
  --wine:          #8B1E1E;  /* 深红 — 品牌强强调色 */
  --wine-light:    #A52A2A;  /* 稍亮深红 */
  --gold:          #C9A84C;  /* 雅金 — 低调奢华的品牌点缀 */
  --gold-dark:     #A88A3A;  /* 暗金 */
  --dark:          #0F172A;  /* 文字黑 */
  --mid:           #708090;  /* 中灰 — 辅助文字 */
  --light-bg:      #F8F6F1;  /* 暖白背景 — 有温度不冰冷 */
  --white:         #FFFFFF;
  --card-border:   #E8E4DD;  /* 暖灰卡片边框 */
  --font-main:     "Microsoft YaHei", "Source Han Sans CN", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --transition:    0.35s cubic-bezier(0.25, 0.1, 0.25, 1);  /* 更平滑过渡 */
  --radius-card:   22px;     /* 普通卡片圆角 */
  --radius-img:    28px;     /* 案例图片圆角 */
  --radius-btn:    999px;    /* 按钮胶囊圆角 */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===== 导航栏 — 纯白底 + 深蓝文字 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: background var(--transition);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-logo .logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-logo .logo-cn {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.navbar-logo .logo-en {
  font-size: 10px;
  color: var(--gold-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.navbar-logo .logo-divider {
  width: 1px;
  height: 28px;
  background: var(--card-border);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu li a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mid);
  position: relative;
  letter-spacing: 0.3px;
  transition: color var(--transition);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

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

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: calc(100% - 32px);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--light-bg);
  border: 2px solid var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  transition: all var(--transition);
}

.nav-phone:hover {
  background: var(--primary);
  color: var(--white);
}

.nav-phone svg { color: inherit; }

/* 汉堡菜单（移动端） */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

/* ===== 通用页面布局 ===== */
.section {
  padding: 96px 48px;
}

.section-fs {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title-underline {
  display: inline-block;
  position: relative;
}

.section-title-underline::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--gold);
}

.section-subtitle {
  font-size: 16px;
  color: var(--mid);
  max-width: 600px;
  margin: 28px auto 0;
  line-height: 1.7;
}

/* ===== Banner 通用 — 扁平深色 ===== */
.page-banner {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
  background: var(--primary);
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.page-banner-overlay {
  display: none; /* 扁平化 — 不需要渐变遮罩了 */
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.page-banner-label {
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-banner-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.page-banner-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
}

/* ===== 按钮 — 扁平纯色 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  text-align: center;
  justify-content: center;
  border-radius: var(--radius-btn);
}

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

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== 卡片 — 统一圆角系统 ===== */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(15,23,42,0.06);
}

/* ===== 底部 Footer — 深蓝 ===== */
footer {
  background: var(--primary);
  color: var(--white);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 48px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .brand-cn {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-brand .brand-en {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gold);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .phone-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: var(--gold); }

/* ===== 滚动动画 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 金色装饰分割线 ===== */
.gold-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 16px;
}

.gold-line-left { margin: 0 0 16px; }

/* ===== 数据统计卡片 ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 56px 24px;
  transition: all var(--transition);
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.stat-item:hover .stat-num { transform: scale(1.05); }

.stat-num {
  display: block;
  font-size: 64px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  transition: transform var(--transition);
  letter-spacing: -2px;
}

.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
}

/* ===== 资质徽章 ===== */
.quali-strip {
  background: var(--primary);
  padding: 32px 48px;
  text-align: center;
}

.quali-strip .quali-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.quali-strip .quali-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.quali-strip .gold-sep {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--card-border);
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

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

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

/* ===== 标签筛选 ===== */
.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--mid);
  border: 2px solid var(--card-border);
  font-weight: 600;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== 步骤流程 ===== */
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: rotate(45deg);
}

.step-item:last-child::after { display: none; }

.step-circle {
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  background: var(--light-bg);
  transition: all var(--transition);
}

.step-item:hover .step-circle {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--mid);
}

/* ===== 时间轴 ===== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--card-border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  transform: translateX(-50%);
  border: 2px solid var(--gold);
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--card-border);
  padding: 20px 24px;
  max-width: 380px;
}

.timeline-year {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
}

/* ===== 导航二级下拉菜单 ===== */
.nav-has-dropdown { position: relative; }

.nav-has-dropdown > a {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.nav-arrow {
  font-size: 10px;
  transition: transform var(--transition);
}

.nav-has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--card-border);
  padding: 8px 0;
  min-width: 140px;
  z-index: 1001;
}

.nav-has-dropdown:hover .nav-dropdown {
  display: block;
  animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown li a {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  color: var(--mid) !important;
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-dropdown li a::after { display: none !important; }

.nav-dropdown li a:hover {
  background: var(--light-bg);
  color: var(--primary) !important;
}

.nav-dropdown li a.active {
  color: var(--primary) !important;
  font-weight: 700;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-inner { padding: 0 20px; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-menu.open { display: flex; }

  .nav-menu li a {
    display: block;
    padding: 12px 30px;
    font-size: 15px;
    color: var(--dark);
  }

  .nav-menu li a::after { display: none; }

  .nav-phone { display: none; }
  .nav-hamburger { display: flex; }

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

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

  .stat-item {
    padding: 32px 16px;
  }

  .stat-item + .stat-item { border-left: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.08); }

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

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

  .step-item::after {
    content: '';
    top: auto;
    bottom: -16px;
    right: 50%;
    border: none;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    width: 8px;
    height: 8px;
    transform: translateX(50%) rotate(45deg);
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 48px 20px 32px;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 20px;
  }

  .timeline::before { left: 20px; }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-right: 0;
    padding-left: 56px;
    justify-content: flex-start;
  }

  .timeline-dot { left: 20px; }

  .page-banner { min-height: 40vh; }
  .page-banner-title { font-size: 32px; }
}

/* ===== 移动端下拉 ===== */
@media (max-width: 768px) {
  .nav-has-dropdown > a .nav-arrow { display: none; }

  .nav-dropdown {
    display: none;
    position: static;
    transform: none;
    background: var(--light-bg);
    border: none;
    padding: 0;
    min-width: auto;
    animation: none;
  }

  .nav-has-dropdown:hover .nav-dropdown { display: none; }
  .nav-has-dropdown.dropdown-open .nav-dropdown { display: block; }

  .nav-dropdown li a {
    padding: 8px 44px !important;
    font-size: 13px !important;
    color: var(--mid) !important;
  }
}
