/* 根元素变量定义 */
:root {
  --primary-color: #3498db;       /* 主色调（蓝色） */
  --secondary-color: #2c3e50;     /* 次要色调（深蓝灰） */
  --accent-color: #e74c3c;        /* 强调色（红色） */
  --light-bg: #f8f9fa;            /* 浅色背景 */
  --dark-text: #2c3e50;           /* 深色文字 */
}

/* 基础样式 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 字体设置 */
  color: var(--dark-text);        /* 文字颜色 */
  line-height: 1.6;               /* 行高 */
  scroll-behavior: smooth;        /* 平滑滚动 */
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 5px;                     /* 垂直滚动条宽度 */
  height: 1px;                    /* 水平滚动条高度 */
}

::-webkit-scrollbar-thumb {
  background-color: #3498db;       /* 滑块颜色改为绿色 */
  background-image: -webkit-linear-gradient(
    45deg, 
    rgba(52, 152, 219, 0.8) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(52, 152, 219, 0.8) 50%, 
    rgba(52, 152, 219, 0.8) 75%, 
    transparent 75%, 
    transparent
  );                             /* 滑块渐变条纹改为绿色系 */
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); /* 轨道阴影 */
  background: #f6f6f6;            /* 轨道背景色 */
}
/* 导航栏样式 */
.navbar {
  background-color: white;        /* 背景白色 */
  height: 70px;                  /* 固定高度 */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* 底部阴影 */
  position: sticky;              /* 粘性定位 */
  top: 0;                        /* 顶部固定 */
  z-index: 1020;                 /* 确保在最上层 */
}

.navbar-brand {
  font-weight: 700;              /* 加粗字体 */
  color: var(--secondary-color); /* 使用次要色调 */
}

.nav-link {
  font-weight: 500;              /* 中等字重 */
  position: relative;            /* 相对定位（用于下划线） */
}

/* 当前活动导航链接的下划线效果 */
.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color); /* 使用主色调 */
}

/* 英雄区域样式 */
.hero-section {
  background: 
    linear-gradient(rgba(0, 103, 184, 0.7), rgba(0, 161, 179, 0.7)), 
    url('../picture/202504261544091166.jpg'); /* 半透明渐变+背景图 */
  background-size: cover;        /* 背景图覆盖 */
  background-position: center;   /* 背景图居中 */
  padding: 5rem 0;              /* 上下内边距 */
  text-align: center;           /* 文字居中 */
}

.hero-title {
  font-weight: 700;             /* 加粗标题 */
  color: #fff;                  /* 白色文字 */
  margin-bottom: 1.5rem;        /* 底部外边距 */
}

.hero-subtitle {
  font-size: 1.2rem;            /* 副标题大小 */
  color: #fff;                  /* 白色文字 */
  opacity: 0.8;                 /* 轻微透明 */
  margin-bottom: 2rem;          /* 底部外边距 */
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color); /* 主色背景 */
  border-color: var(--primary-color);    /* 主色边框 */
  padding: 0.5rem 1.5rem;      /* 内边距 */
  font-weight: 500;            /* 中等字重 */
}

.btn-outline-primary {
  color: var(--primary-color);  /* 主色文字 */
  border-color: var(--primary-color); /* 主色边框 */
  padding: 0.5rem 1.5rem;      /* 内边距 */
  font-weight: 500;            /* 中等字重 */
}

.btn-submit {
  background-color: var(--primary-color); /* 主色背景 */
  border-color: var(--primary-color);    /* 主色边框 */
  width: 100%;                 /* 全宽 */
  padding: 10px;               /* 内边距 */
  font-weight: 500;            /* 中等字重 */
}

/* 卡片样式 */
.feature-card {
  border: none;                /* 无边框 */
  border-radius: 10px;         /* 圆角 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* 阴影效果 */
  transition: transform 0.3s ease; /* 悬浮动画 */
  height: 100%;                /* 高度100% */
}

.feature-card:hover {
  transform: translateY(-5px); /* 悬浮上移效果 */
}

.feature-icon {
  font-size: 2.5rem;           /* 图标大小 */
  color: var(--primary-color); /* 主色图标 */
  margin-bottom: 1rem;         /* 底部外边距 */
}

.team-card {
  border: none;                /* 无边框 */
  border-radius: 10px;         /* 圆角 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* 阴影效果 */
  transition: transform 0.3s ease; /* 悬浮动画 */
  margin-bottom: 30px;         /* 底部外边距 */
  text-align: center;          /* 文字居中 */
  padding-top: 85px;           /* 顶部内边距（为图片留空间） */
  position: relative;          /* 相对定位 */
  background: white;           /* 白色背景 */
  overflow: visible;           /* 允许内容溢出 */
}
    .gender-badge {
        font-size: 0.75rem;
        padding: 0.35em 0.65em;
        border-radius: 50rem;
    }
    
    .gender-male {
        background-color: rgba(13, 110, 253, 0.1);
        color: #0d6efd;
    }
    
    .gender-female {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }
    
    .gender-other {
        background-color: rgba(108, 117, 125, 0.1);
        color: #6c757d;
    }
    
.team-card:hover {
  transform: translateY(-10px); /* 悬浮上移效果 */
}

/* 区块标题样式 */
.section-title {
  font-weight: 700;            /* 加粗 */
  color: var(--secondary-color); /* 使用次要色调 */
  margin-bottom: 3rem;         /* 底部外边距 */
  position: relative;          /* 相对定位（用于下划线） */
}

/* 标题下方的装饰线 */
.section-title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color); /* 主色调 */
}

.divider {
  border-top: 1px solid #eee;  /* 浅灰色分割线 */
  margin: 3rem 0;              /* 上下外边距 */
}

/* 流程步骤样式 */
.process-step {
  text-align: center;          /* 内容居中 */
  padding: 1.5rem;             /* 内边距 */
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;          /* 圆形 */
  background-color: var(--primary-color); /* 主色背景 */
  color: white;                /* 白色文字 */
  font-weight: bold;           /* 加粗 */
  margin-bottom: 1rem;         /* 底部外边距 */
}

/* 作品集样式 */
.portfolio-item {
  position: relative;          /* 相对定位 */
  overflow: hidden;            /* 隐藏溢出 */
  border-radius: 10px;         /* 圆角 */
  margin-bottom: 30px;         /* 底部外边距 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* 阴影效果 */
}

.portfolio-img {
  transition: transform 0.5s ease; /* 图片变换动画 */
  height: 250px;               /* 固定高度 */
  object-fit: cover;           /* 图片填充方式 */
  width: 100%;                 /* 宽度100% */
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(52, 152, 219, 0.9); /* 半透明蓝色背景 */
  color: white;                /* 白色文字 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;                  /* 默认透明 */
  transition: opacity 0.5s ease; /* 透明度动画 */
  padding: 20px;
  text-align: center;
}

/* 悬浮时显示覆盖层 */
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;                  /* 完全不透明 */
}

/* 悬浮时图片放大 */
.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);       /* 缩放效果 */
}

/* 作品角标样式 */
.portfolio-badge {
  position: absolute;
  top: 10px;
  right: -35px;
  background: linear-gradient(135deg, #FF0033, #CC0033); /* 渐变背景 */
  color: white;                /* 白色文字 */
  padding: 5px 40px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(45deg) translateX(3%);    /* 旋转45度 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 阴影 */
  z-index: 1;                  /* 确保在上层 */
  text-transform: uppercase;   /* 大写字母 */
  letter-spacing: 1px;         /* 字间距 */
  border: 1px solid rgba(255,255,255,0.3); /* 半透明边框 */
}
/* 项目类型角标样式（左上角版本） */
.portfolio-leixing {
  position: absolute;
  top: 25px;
  left: 10px;                  /* 从right改为left定位到左上角 */
  background: linear-gradient(135deg, #3366CC, #0066CC); /* 渐变背景 */
  color: white;                /* 白色文字 */
  padding: 5px 40px;           /* 调整左右内边距（原40px） */
  font-size: 12px;
  font-weight: bold;
  transform: rotate(-45deg) translateX(-42%); /* 改为-45度旋转并左移 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 阴影 */
  z-index: 1;                  /* 确保在上层 */
  text-transform: uppercase;   /* 大写字母 */
  letter-spacing: 1px;         /* 字间距 */
  border: 1px solid rgba(255,255,255,0.3); /* 半透明边框 */
  transform-origin: 0 0;       /* 设置旋转原点为左上角 */
  width: auto;                /* 自动宽度适应内容 */
  text-align: center;          /* 文字居中 */
}
/* 团队成员图片样式 */
.team-img {
  width: 100%;
  height: 250px;
  margin: -75px auto 20px;     /* 负边距实现突出效果 */
  position: relative;
  z-index: 1;                  /* 确保在上层 */
  border-radius: 10px 10px 0 0; /* 仅上方圆角 */
  overflow: hidden;            /* 隐藏溢出 */
}

/* 团队成员社交图标 */
.team-social {
  list-style: none;            /* 去除列表样式 */
  padding: 0;
  display: flex;
  justify-content: center;     /* 水平居中 */
  margin-top: 15px;
}

.team-social li {
  margin: 0 5px;              /* 左右外边距 */
}

.team-social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  border-radius: 50%;          /* 圆形 */
  background-color: var(--primary-color); /* 主色背景 */
  color: white;                /* 白色图标 */
  transition: all 0.3s;        /* 过渡效果 */
}

.team-social a:hover {
  background-color: var(--secondary-color); /* 悬浮时次要色 */
  transform: rotate(360deg);   /* 旋转效果 */
}

/* 授权查询结果样式 */
#authResult {
  transition: all 0.3s ease;   /* 过渡效果 */
}

#authDetails {
  padding: 15px;
  background-color: #f8f9fa;   /* 浅灰色背景 */
  border-radius: 8px;          /* 圆角 */
}

#authDetails p {
  margin-bottom: 10px;         /* 段落间距 */
}

#authDetails hr {
  margin: 15px 0;
  border-top: 1px solid #eee;  /* 浅灰色分割线 */
}

/* 页脚样式 */
footer {
  background-color: var(--secondary-color); /* 次要色背景 */
  color: white;                /* 白色文字 */
  padding: 3rem 0 1.5rem;      /* 内边距 */
}

.footer-links a {
  color: rgba(255,255,255,0.7); /* 半透明白色 */
  text-decoration: none;       /* 无下划线 */
  transition: color 0.3s;      /* 颜色过渡 */
}

.footer-links a:hover {
  color: white;                /* 悬浮时白色 */
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1); /* 顶部边框线 */
  padding-top: 1.5rem;         /* 顶部内边距 */
  margin-top: 2rem;            /* 顶部外边距 */
  font-size: 0.9rem;           /* 较小字号 */
  color: rgba(255,255,255,0.5); /* 半透明文字 */
}

/* 工具类样式 */
.alert-warning {
  background-color: #fff3cd;   /* 警告背景色 */
  border-left: 4px solid #ffc107; /* 左侧边框 */
  border-radius: 0;            /* 无圆角 */
}

.friend-link-section a {
  color: #495057;              /* 深灰色链接 */
  text-decoration: underline;  /* 下划线 */
}

.friend-link-section a:hover {
  color: #0d6efd;              /* 悬浮时蓝色 */
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;             /* 固定定位 */
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: var(--primary-color); /* 主色背景 */
  color: white;                /* 白色图标 */
  border-radius: 50%;          /* 圆形 */
  display: none;               /* 默认隐藏 */
  z-index: 999;                /* 确保在最上层 */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* 阴影 */
}

.back-to-top:hover {
  background-color: var(--secondary-color); /* 悬浮时次要色 */
  color: white;
}

/* 咨询表单区域 */
.consultation-section {
  background-color: #f8f9fa;   /* 浅灰色背景 */
  padding: 5rem 0;             /* 上下内边距 */
}

.consultation-form {
  max-width: 1320px;           /* 最大宽度 */
  margin: 0 auto;              /* 水平居中 */
  padding: 30px;
  background: white;           /* 白色背景 */
  border-radius: 10px;         /* 圆角 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* 阴影 */
}

.form-title {
  text-align: center;          /* 文字居中 */
  margin-bottom: 30px;         /* 底部外边距 */
  color: var(--secondary-color); /* 使用次要色调 */
}

.form-row {
  margin-bottom: 20px;         /* 底部外边距 */
}
/* 移动端导航完整修复 */
@media (max-width: 992px) {
  .navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
  }
  
  .navbar-collapse {
    background: white;
    padding: 20px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .nav-link.active {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
  }
}