/* 齐齐哈尔安泰医药连锁有限公司 - 主样式文件 */

/* CSS变量定义 */
:root {
  --primary-green: #4CAF50;
  --primary-green-dark: #2E7D32;
  --primary-green-light: #81C784;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-gray: #F5F5F5;
  --bg-white: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  width: 100%;
}

/* 全局图片约束 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* 顶部导航栏 */
.top-nav {
  background: var(--bg-gray);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.top-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-name {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
}

.hotline-badge {
  background: var(--primary-green);
  color: white;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* 核心福利Banner区 */
.hero-banner {
  position: relative;
  background-image: url('../images/top.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  padding: 0;
  min-height: 0;
  aspect-ratio: 1080 / 510;
}

.hero-content {
  position: absolute;
  top: 20px;
  left: 16px;
  z-index: 1;
  text-align: left;
  max-width: 50%;
}

.hero-brand {
  font-size: 24px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 18px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
  margin-bottom: 24px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-phone {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6);
}

.phone-icon {
  font-size: 28px;
  color: #FFFFFF;
}

/* 通用区块标题 */
.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 我们的优势 */
.advantages {
  padding: 30px 0;
  background: linear-gradient(180deg, #f8fdf8 0%, #ffffff 100%);
}

.advantages-divider {
  display: none;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.advantage-item {
  text-align: center;
  padding: 20px 15px;
  background: #ffffff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.advantage-icon {
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 0;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon svg {
  width: 36px;
  height: 36px;
}

.advantage-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.advantage-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.8;
}

/* 多平台选择 */
.platforms {
  padding: 40px 0;
  background: var(--bg-gray);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.platform-card:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.platform-card.card-green {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.platform-card.card-green .platform-number,
.platform-card.card-green .platform-title,
.platform-card.card-green .platform-desc,
.platform-card.card-green .platform-qrcode {
  color: white;
}

.platform-card-wechat .platform-qrcode,
.platform-card .platform-qrcode {
  text-align: center;
}

.platform-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-number::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  border-radius: 2px;
  transform: rotate(45deg);
}

.platform-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.platform-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

.platform-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 8px;
}

.platform-qrcode {
  text-align: center;
  margin-top: 10px;
}

.platform-qrcode img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 团队展示 */
.team {
  padding: 25px 0;
  background: var(--bg-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}


.team-item:nth-child(6) {
  grid-column: 2 / 3;
}
.team-item:nth-child(7) {
  grid-column: 3 / 4;
}

.team-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-item:hover img {
  transform: scale(1.05);
}

/* 企业简介 */
/* 底部招聘栏 */
.footer {
  background: #1B5E20;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.recruit-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recruit-info strong {
  font-size: 16px;
  color: #ffffff;
}

.recruit-info span {
  font-size: 13px;
  color: #ffffff;
  opacity: 1;
}

.qr-code {
  text-align: center;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-placeholder span {
  font-size: 12px;
  opacity: 0.9;
}

.qr-box {
  width: 70px;
  height: 70px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 11px;
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  text-align: center;
}

.footer-bottom p {
  font-size: 11px;
  color: #ffffff;
  opacity: 1;
  margin-bottom: 4px;
}

/* ==================== 移动端适配 ==================== */

/* 平板适配 */
@media (max-width: 1024px) {
  .hero-banner {
    padding: 0;
    min-height: 0;
    aspect-ratio: 1080 / 510;
  }

  .hero-title {
    font-size: 40px;
  }

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

/* 手机适配 - 主要优化 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Banner - 手机端背景图片适配 */
  .hero-banner {
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    min-height: 0;
    padding-bottom: 47.22%; /* 图片实际比例 510/1080 */
    aspect-ratio: auto;
  }

  .hero-banner .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px 15px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-content {
    position: relative;
    max-width: 65%;
    z-index: 10;
    transform: none;
    top: auto;
    left: auto;
  }

  .hero-brand {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 14px;
    line-height: 1.4;
    color: #FFFFFF;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
  }

  .hero-phone {
    display: flex;
    align-items: flex-start;
    font-size: 18px;
    gap: 8px;
    line-height: 1.4;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }

  .phone-icon {
    font-size: 20px;
    color: #FFFFFF;
  }

  /* 区块标题 */
  .section-header {
    margin-bottom: 25px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 11px;
  }

  /* 优势区块 - 手机端卡片式设计 */
  .advantages {
    padding: 25px 0;
    background: linear-gradient(180deg, #f0f9f0 0%, #ffffff 100%);
  }

  .section-header {
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 20px;
    color: #2E7D32;
  }

  .advantages-divider {
    display: none;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .advantage-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 16px;
    gap: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf8 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.08);
  }

  .advantage-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .advantage-icon svg {
    width: 28px;
    height: 28px;
  }

  .advantage-title {
    font-size: 15px;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 4px;
  }

  .advantage-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
  }

  /* 多平台区块 - 手机端卡片优化 */
  .platforms {
    padding: 35px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9f5 100%);
  }

  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .platform-card {
    padding: 16px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  .platform-card.card-green {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.25);
  }

  /* 二维码卡片居中显示 */
  .platform-card .platform-qrcode,
  .platform-card-wechat .platform-qrcode {
    text-align: center;
  }

  .platform-qrcode img {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: block;
  }

  .platform-number {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .platform-number::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: 2px;
    transform: rotate(45deg);
  }

  .platform-title {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .platform-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .platform-phone {
    font-size: 12px;
  }

  /* 团队展示 - 手机端优化 */
  .team {
    padding: 20px 0;
    background: linear-gradient(180deg, #f8fdf8 0%, #ffffff 100%);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .team-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .team-item img {
    height: 100px;
    object-fit: cover;
  }

  /* 底部 - 手机端优化 */
  .footer-content {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    gap: 25px;
    background: transparent;
  }

  .recruit-info {
    align-items: center;
    gap: 8px;
  }

  .recruit-info strong {
    font-size: 16px;
    color: #2E7D32;
  }

  .recruit-info span {
    font-size: 13px;
    color: #666;
  }

  .qr-box {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .footer-bottom {
    padding: 15px;
    background: #14451a;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
    box-sizing: border-box;
  }

  .hero-banner {
    padding-bottom: 47.22%; /* 图片实际比例 510/1080 */
  }

  .hero-banner .container {
    padding: 10px 12px;
    align-items: flex-start;
  }

  .hero-content {
    max-width: 70%;
  }

  .hero-brand {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .hero-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .hero-phone {
    gap: 6px;
    font-size: 15px;
    line-height: 1.4;
  }

  .phone-icon {
    font-size: 18px;
    color: #FFFFFF;
  }

  .platform-qrcode img {
    width: 120px;
    height: 120px;
  }

  .advantage-item {
    padding: 15px 12px;
    gap: 12px;
  }

  .advantage-icon {
    width: 36px;
    height: 36px;
  }

  .advantage-icon svg {
    width: 22px;
    height: 22px;
  }

  .advantage-title {
    font-size: 14px;
  }

  .advantage-desc {
    font-size: 12px;
  }

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

  .team-item img {
    height: 140px;
  }

  .platform-card {
    padding: 15px;
  }

  .platform-number {
    font-size: 20px;
  }

  .platform-number::before {
    width: 6px;
    height: 6px;
  }
}

/* 触摸设备优化 */
@media (hover: none) {
  .platform-card:hover {
    transform: none;
  }

  .team-item:hover img {
    transform: none;
  }
  
  .advantage-item:hover {
    transform: none;
    box-shadow: none;
  }
}

/* 高分辨率手机 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
