/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 全局链接样式 */
a {
  text-decoration: none; /* 移除下划线 */
  color: #3B5F9E;
  transition: color 0.3s ease;
  outline: none; /* 移除焦点时的轮廓 */
}

a:hover {
  color: #7B68EE;
  /* 移除悬停时的下划线样式 */
}

/* 确保所有状态下都没有虚线 */
a:focus, a:active {
  outline: none;
  text-decoration: none;
}

body {
  background-color: #F5F7FA;
  color: #333;
  line-height: 1.6;
  padding-top: 50px; /* 为导航栏预留高度 */
}

/* 导航栏 - 关键调整：确保整体有基础留白容器 */
.navbar {
  background-color: #3B5F9E;
  display: flex;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  height: 50px;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

/* 添加加载状态处理 */
body.loading .navbar {
  transform: translateY(-10px);
  opacity: 0;
}

body.loaded .navbar {
  transform: translateY(0);
  opacity: 1;
}

/* Logo容器：仅负责对齐，不额外加间距 */
.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  /* 关键：去掉左右padding，避免干扰整体留白 */
  padding: 0; 
}

/* Logo图片：仅保留与右侧导航项的间距，左侧由容器控制 */
.navbar-logo {
  height: 38px;
  width: auto;
  margin-right: 20px; /* 恢复最初与导航项的间距 */
  margin-left: 0; /* 左侧不留额外间距，由外层容器控制 */
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: middle;
}

/* 导航栏内容容器：核心控制左右留白，与页面主体同步 */
.nav-container {
  /* 与页面主体容器保持一致的最大宽度 */
  max-width: 1200px; 
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; 
  margin: 0 auto; 
}

/* 导航按钮单行显示 */
.nav-container a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-logo {
  height: 38px;
  width: auto;
  margin-right: 70px; /* 增加50px间距(原20px+50px) */
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: middle;
}

/* 页面主体容器：作为留白参考标准 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px; /* 与导航栏容器的padding完全一致 */
}

/* 以下为其他原有样式（保持不变） */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex: 1;
  height: 100%;
}
.nav-list-right {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-shrink: 0;
  height: 100%;
}
.nav-item {
  position: relative;
  margin: 0 5px;
}
.nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -5px;
  right: -5px;
  z-index: -1;
  transition: background-color 0.2s;
}
.nav-item:hover::before {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}
.nav-item a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  height: 100%;
  position: relative;
}
.nav-item:not(.dropdown) a:hover {
  background-color: #4A6FB1;
}
/* 当前活动页面的导航项样式 */
.nav-item a.active {
  background-color: #F5F7FA; /* 与页面背景色相同 */
  color: #3B5F9E; /* 与导航栏背景色相同，形成对比 */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
/* 确保下拉菜单中的活动项保持原样式 */
.dropdown-menu a.active {
  background-color: #F0EDFF;
  color: #3B5F9E;
  border-radius: 0;
}
.nav-item.dropdown > a {
  transition: background-color 0.3s ease;
}
.nav-item.dropdown:hover > a {
  background-color: #4A6FB1;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}
.nav-item.dropdown .dropdown-menu:hover ~ a {
  background-color: rgba(74, 111, 177, 0.5);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  z-index: 9999;
  margin: 0;
  padding: 0;
}
.dropdown-menu li {
  display: block;
}
.dropdown-menu a {
  color: #3B5F9E;
  padding: 12px 16px;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid #F0EDFF;
  transition: all 0.3s ease;
}
.dropdown-menu a span {
  display: inline-block;
  transition: transform 0.3s ease;
}
.dropdown-menu a:hover {
  background-color: #F0EDFF;
  color: #3B5F9E;
}
.dropdown-menu a:hover span {
  transform: translateX(6px);
}
h1 {
  color: #2D4A7F;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 600;
  border-bottom: 2px solid #7B68EE;
  padding-bottom: 10px;
  display: inline-block;
}
h2 {
  color: #2c3e50;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

/* 板块标题样式 */
.section-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

/* 为所有section中的直接子元素h2添加蓝色底线 */
section > h2 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.section-content {
  padding: 0 10px;
}
.diary-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.diary-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.diary-title {
  font-size: 20px;
  font-weight: 600;
  color: #3B5F9E;
  margin-bottom: 8px;
  border-left: 3px solid #7B68EE;
  padding-left: 10px;
}
.diary-date {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}
.diary-content {
  color: #555;
  line-height: 1.8;
}
section {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* 移除位移过渡效果 */
  /* transition: transform 0.3s ease; */
  transform: none !important; /* 强制禁止位移 */
}
section:hover {
  /* 移除鼠标悬停时的位移效果 */
  /* transform: translateX(5px); */
  transform: none !important; /* 强制禁止位移 */
}
section p {
  color: #555;
  line-height: 1.8;
}
.login-container {
  max-width: 400px;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}
.form-group input:focus {
  border-color: #3B5F9E;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 95, 158, 0.2);
}
button {
  background-color: #3B5F9E;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover {
  background-color: #2D4A7F;
}
.error {
  color: #E53935;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #FFF8F8;
  border-radius: 4px;
}
.success {
  color: #43A047;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #F1F8E9;
  border-radius: 4px;
}
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 60px;
}

/*以下是承接Spine动画页面的样式表*/
/* 内容板块样式 */
.content-section {
  margin-bottom: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transform: none !important;
  scroll-margin-top: 70px; /* 添加滚动边距，解决被导航栏遮挡的问题 */
}
.content-section:hover {
  transform: none !important;
}
.section-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}
.section-header h2 {
  margin: 0;
  color: #2c3e50;
}
.section-content {
  padding: 0 10px;
}

/* 价格表格样式 */
.price-table {
  margin: 20px 0;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* 交易流程样式 */
.process-steps {
  margin: 30px 0;
}
.step {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
}
.step-number {
  width: 40px;
  height: 40px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-weight: bold;
}
.step-content {
  flex: 1;
}

/* 联系方式样式 */
.contact-methods {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.contact-card {
  width: calc(33.33% - 15px);
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}
.contact-card h3 {
  margin: 15px 0 10px;
  color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .contact-methods {
    flex-direction: column;
    gap: 15px;
  }
  .contact-card {
    width: 100%;
  }
  .step {
    flex-direction: column;
    align-items: flex-start;
  }
  .step-number {
    margin-bottom: 10px;
    margin-right: 0;
  }
}