/* 基础变量定义 */
:root {
  /* 颜色变量 */
  --color-bg-main: #ffffff;
  --color-bg-header: #1e40af;
  --color-bg-banner: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --color-text-primary: #000000;
  --color-text-secondary: #666666;
  --color-text-light: #ffffff;
  --color-border: #e5e7eb;
  --color-border-light: #f0f0f0;
  --color-accent: #244ffa;
  --color-accent-dark: #1e40af;
  --color-hover: #2563eb;
  --color-active: #1e40af;
  --secondary-text: #666666;

  --secondary-color: #1890ff;
  /* 占位符颜色 */
  --placeholder-bg: #f0f0f0;
  --placeholder-border: #dddddd;

  /* 字体变量 */
  --font-family-primary: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
  --font-family-secondary: "Arial", "Helvetica", "Roboto", sans-serif;
  --font-family-mono: "Consolas", "Monaco", "Courier New", monospace;

  --h1: 28px;
  --h2: 24px;
  --h3: 18px;
  --spacing-xs: 8px;
  --body: 16px;
  --caption: 14px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* 尺寸变量 */
  --container-width: 1200px;
  --header-height: 120px;
  --nav-height: 50px;
  --banner-height: 200px;
  --breadcrumb-height: 40px;
  --item-width: 285px;
  --item-height: 290px;
  --image-height: 180px;
  --border-radius: 4px;
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family-primary);
  background: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* 辅助类 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


























































.outter-header {
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

/* 页面横幅样式 */
.page-banner {
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-container {
  width: 100%;
  max-width: 1440px;
  padding: 0 40px;
}

.banner-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.banner-logo .logo-placeholder {
  width: 64px;
  height: 64px;
  margin-right: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-text {
  text-align: left;
}

.banner-title {
  font-size: var(--h1);
  font-weight: var(--weight-bold);
  color: var(--color-text-light);
}

.banner-subtitle {
  font-family: var(--font-family-secondary);
  font-size: var(--body);
  color: var(--color-text-light);
  opacity: 0.9;
}


/* 主内容区域样式 */
.main-content {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* 页面标题样式 */
.page-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: var(--h2);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-family-secondary);
  font-size: var(--caption);
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.title-divider {
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto;
}

/* 分类标签样式 */
.category-tabs {
  margin-bottom: 32px;
  text-align: center;
}

.tabs-container {
  display: inline-flex;
  gap: 16px;
}

.tab-button {
  padding: 8px 24px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-main);
  color: var(--color-text-primary);
  font-size: var(--body);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
}

.tab-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.tab-button.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-light);
}

/* 成果展示网格样式 */
.achievements-grid {
  margin: 40px auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
    justify-items: center;
  
}


.achievement-item {
  width: var(--item-width);
  height: var(--item-height);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: rgba(196, 196, 196, 1);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  align-items: center;
}



.achievement-item:hover {
  border-bottom-color: rgba(21, 38, 119, 0.88);
}

.item-title {
  font-size: var(--h3);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: 5px;
}

.item-description {
  font-size: var(--caption);
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-image {
  height: var(--image-height);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.item-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(59, 130, 246, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image:hover::after {
  opacity: 1;
}

.item-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background-image: url('../img/fenxiang.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.item-image:hover::before {
  opacity: 1;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  /* 实际应用中替换为真实图片 */
}
















/* 操作按钮区域样式 */
.action-buttons {
  margin-bottom: var(--spacing-xl);
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.example {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 40px 0 40px;
}

/*==== 长方形--开始 ====*/


/* 关于我们组件 */
.about-us {
  position: relative;
  width: 128px;
  height: 52px;
  border: 1px solid #3498db;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  box-sizing: border-box;
  color: #2c3e50;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 调整后的左侧横线 */
.about-us::before {
  content: "";
  position: absolute;
  left: -11px; /* 调整后的位置：向右移动10px */
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 1px;
  background-color: #3498db;
  transition: all 0.3s ease;
}

/* 悬停效果 */
.about-us:hover {
  background-color: #e1f0fa;
  color: #2980b9;
  cursor: pointer;
  border-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.about-us:hover::before {
  background-color: #2980b9;
}

.about-us.active {
  background-color: #e1f0fa;
  color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/*==== 长方形--结束 ====*/





































/* 响应式设计 */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-item {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }


}


@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .tabs-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-button {
        padding: 6px 16px;
        font-size: var(--caption);
    }

    .header-logo {
        gap: 8px;
    }

    .logo-text {
        font-size: var(--body);
    }
}
