/* 港药集团优化样式表 - 统一代码规范 */
@charset "utf-8";

/* 重置样式和基础变量 */
:root {
  --primary-color: #e60011;
  --secondary-color: #f33d4a;
  --light-red: #f36d77;
  --dark-gray: #434141;
  --medium-gray: #666666;
  --light-gray: #f6f6f6;
  --white: #ffffff;
  --black: #000000;
  --transition: all 0.3s ease;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  transition: var(--transition);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

body {
  background-color: var(--light-gray);
  color: var(--dark-gray);
  min-width: 1280px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--black);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* 通用容器 */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
}

/* 标签行样式 */
.tab-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
}

.tab {
  flex: 1;
  background-color: var(--secondary-color);
  color: var(--white);
  text-align: center;
  padding: 25px 0;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.tab.active {
  background-color: #b01e2a;
  transform: translateY(-5px);
}

.tab h2 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.tab span {
  font-size: 16px;
  font-weight: normal;
  opacity: 0.9;
}

/* 公司介绍区域 */
.company-intro {
  display: flex;
  gap: 40px;
  margin: 60px 0;
  align-items: center;
}

.image-placeholder {
  width: 400px;
  height: 250px;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-content {
  flex: 1;
}

.section-title {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 25px;
  font-size: 22px;
  display: inline-block;
  margin-bottom: 25px;
  border-radius: 4px;
  font-weight: 600;
}

.content-text {
  font-size: 18px;
  color: var(--dark-gray);
  line-height: 1.8;
  text-align: justify;
}

/* 愿景使命区域 */
.vision-mission {
  display: flex;
  gap: 40px;
  margin: 60px 0;
}

.image-column {
  width: 400px;
}

.mission-content {
  flex: 1;
  background-color: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.mission-title {
  color: var(--secondary-color);
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* 价值观盒子 */
.values-box {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}

.values-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.values-box h3 i {
  margin-right: 10px;
}

.values-box p {
  color: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  display: flex;
  align-items: flex-start;
}

.value-icon {
  background-color: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.value-text {
  flex: 1;
}

.value-text strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.value-text p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

/* LOGO区域 */
.logo-section {
  display: flex;
  gap: 50px;
  align-items: center;
  margin: 60px 0;
}

.logo-container {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-placeholder {
  width: 300px;
  height: 300px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.logo-description {
  flex: 1;
  font-size: 18px;
  color: var(--dark-gray);
  line-height: 1.8;
  text-align: justify;
}

/* 标题样式优化 */
.title {
  max-width: 1280px;
  margin: 40px auto;
  text-align: center;
}

.title h3 {
  color: var(--secondary-color);
  font-size: 30px;
  margin-bottom: 16px;
  font-weight: 600;
}

.title h4 {
  color: var(--medium-gray);
  font-size: 16px;
  margin-bottom: 16px;
}

.title_rectangle {
  width: 48px;
  height: 4px;
  background-color: var(--medium-gray);
  display: block;
  margin: 14px auto 0;
}

.title:hover .title_rectangle {
  width: 100px;
}

/* 附属公司样式优化 */
.Affiliated_companies {
  max-width: 1280px;
  margin: 40px auto;
  padding: 40px 0;
}

.Affiliated_companies h1 {
  text-align: center;
  display: block;
  width: 214px;
  height: 58px;
  background-color: var(--primary-color);
  border-radius: 10px;
  font-size: 26px;
  line-height: 58px;
  color: var(--white);
  margin: 0 auto 30px;
  font-weight: 600;
}

.Affiliated_companies h2 {
  width: 234px;
  height: 118px;
  display: inline-block;
  background-color: var(--secondary-color);
  border-radius: 10px;
  color: var(--white);
  text-align: center;
  line-height: 1.4;
  padding: 20px 10px;
  margin: 0 10px 20px 0;
  vertical-align: top;
  font-weight: 600;
}

.Affiliated_companies h3 {
  width: 124px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 10px;
  color: var(--white);
  display: block;
  text-align: center;
  line-height: 60px;
  margin: 40px 0 20px;
  font-weight: 600;
}

.Affiliated_companies h4 {
  width: 48%;
  height: auto;
  background-color: var(--light-red);
  color: var(--white);
  display: inline-block;
  font-size: 20px;
  text-align: left;
  border-radius: 10px;
  height: 60px;
  line-height: 60px;
  margin: 0 1.5% 20px 0;
  padding-left: 30px;
  font-weight: 500;
}

/* 底部样式优化 */
.bottom {
  max-width: 100%;
  background-color: var(--light-gray);
  margin: 160px auto 0;
}

.bottom_center {
  width: 1280px;
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bottom_center > img {
  width: 200px;
  height: auto;
  margin-right: 40px;
}

.Bottom_Text {
  flex: 1;
  margin: 0 20px;
}

.Bottom_Text h3 {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.Bottom_Text h4 {
  font-size: 16px;
  color: var(--medium-gray);
  margin-bottom: 20px;
}

.Bottom_Text_left,
.Bottom_Text_right {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.Bottom_Text_left img,
.Bottom_Text_right img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.Bottom_Text span {
  font-size: 16px;
  line-height: 24px;
}

.Bottom_Text_right {
  display: inline-flex;
  margin-right: 20px;
}

.Bottom_Text_right img {
  width: 40px;
  height: 40px;
}

/* 页脚导航 */
.footer-nav {
  background-color: var(--primary-color);
  padding: 6px 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  list-style: none;
}

.footer-links li {
  padding: 0 15px;
  position: relative;
}

.footer-links li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
}

.footer-links li:first-child {
  padding-left: 0;
}

.footer-links li a {
  color: var(--white);
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.5px;
  padding: 4px 5px;
  border-radius: 3px;
}

.footer-links li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-friend-links {
  display: flex;
  align-items: center;
}

.footer-friend-links label {
  color: var(--white);
  font-size: 14px;
  margin-right: 12px;
}

.footer-friend-links select {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  color: var(--white);
  padding: 7px 12px;
  font-size: 13px;
  width: 180px;
  outline: none;
  cursor: pointer;
}

.footer-friend-links select:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.footer-friend-links select:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: var(--white);
}

.footer-friend-links option {
  background-color: var(--white);
  color: #333;
  padding: 8px 12px;
}

/* 版权信息 */
.copyright {
  width: 100%;
  background-color: var(--light-gray);
  height: 42px;
  margin: 0 auto;
}

.copyright span {
  display: block;
  text-align: center;
  font-size: 14px;
  line-height: 42px;
  color: var(--medium-gray);
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    min-width: auto;
  }
  
  /* 移动端导航布局 - 左边logo，中间汉堡按钮，右边logo2 */
  .header_center {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    flex-wrap: nowrap;
  }
  
  .logo_left, .logo_right {
    flex: 0 0 auto;
  }
  
  .logo_left img, .logo_right img {
    max-width: 200px;
    height: auto;
  }
  
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
  }
  
  .hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  .top {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px;
    margin-top: 0;
  }
  
  .top.active {
    display: flex;
  }
  
  .top a {
    width: 100% !important;
    text-align: center;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px !important;
  }
  
  .top a:last-child {
    margin-bottom: 0;
  }
  
  .tab-row {
    flex-direction: column;
  }
  
  .company-intro, .vision-mission, .logo-section {
    flex-direction: column;
  }
  
  .image-placeholder, .image-column {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
  }
  
  .logo-container {
    margin-bottom: 30px;
  }
  
  .bottom_center {
    flex-direction: column;
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 15px;
  }
  
  .bottom_center > img {
    width: 150px !important;
    margin: 0 auto 20px !important;
  }
  
  .Bottom_Text {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
  }
  
  .Bottom_Text h3 {
    font-size: 20px !important;
    margin-bottom: 8px;
  }
  
  .Bottom_Text h4 {
    font-size: 14px !important;
    margin-bottom: 15px;
  }
  
  .Bottom_Text_left,
  .Bottom_Text_right {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
  }
  
  .Bottom_Text_left img,
  .Bottom_Text_right img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  
  .Bottom_Text span {
    font-size: 14px !important;
    text-align: left;
    flex: 1;
  }
  
  .Bottom_Text_right {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }
  
  .Bottom_Text_right img {
    margin-right: 0;
    width: 30px;
    height: 30px;
  }
  
  .footer-nav-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-friend-links {
    margin-top: 15px;
  }
  
  .Affiliated_companies h4 {
    width: 100%;
    margin-right: 0;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* 悬停效果优化 */
.tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.image-placeholder:hover,
.logo-placeholder:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.values-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.value-item:hover .value-icon {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.3);
}

.Affiliated_companies h2:hover,
.Affiliated_companies h4:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* 辅助类 */
.clearfix {
  clear: both;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

.p-20 {
  padding: 20px;
}
