/* 首页特有样式 - 主文件 */

/* 导入桌面端和移动端样式 */
@import url('./index-desktop.css') screen and (min-width: 769px);
@import url('./index-mobile.css') screen and (max-width: 768px);

/* 基础颜色和变量定义 */
/* 这些变量已经在common-base.css中定义，所以这里不需要重复 */

/* 共通布局和基础结构 */
/* 主页 Banner 基础结构 */
.home {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../../img/background/home-bg.webp");
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  display: flex;
  align-items: center;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.home-container-area {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: visible;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.home-reasons {
  width: 100%;
  display: flex;
  overflow: visible;
}

.reasons-content {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

/* reasons 共通样式 */
.reasons-title {
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  letter-spacing: 0.05em;
  position: relative;
}

.reasons-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  background: linear-gradient(to right, #10b981, rgba(16, 185, 129, 0.3));
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.reasons-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.reasons-list p {
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* 产品展示部分 - 共通结构 */
.products {
  background-color: var(--neutral-light);
}

/* 产品图片网格容器 - 确保是grid布局 */
.product-area-image {
  display: grid;
  width: 100%;
  box-sizing: border-box;
}

.product-content h4 {
  position: relative;
  padding-bottom: 1rem;
}

.product-content h4::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

/* 产品图片共通样式 */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;  /* 恢复为原来的4:3比例 */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
}

.product-image a {
  position: absolute;
  z-index: 2;
  color: var(--white);
  font-weight: 600;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 1rem;
}

.product-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image:hover img {
  transform: scale(1.1);
}

.product-image:hover::before {
  background-color: rgba(0, 0, 0, 0.7);
}

/* 新闻部分 - 共通结构 */
.news {
  background-image: url("../../img/background/news-bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 245, 245, 0.85);
  z-index: 0;
}

.news-container {
  position: relative;
  z-index: 1;
}

.news-container-title {
  text-align: center;
}

.news-container-title h4 {
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.news-container-title h4::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* 新闻卡片样式 - 与屏幕尺寸无关的部分 */
.news-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 10px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.news-item-link {
  text-decoration: none;
  color: inherit;
}

.news-item-link:hover {
  text-decoration: none;
  color: inherit;
}

.news-content {
  padding: 0;
  margin-top: 8px;
}

.news-date {
  font-size: 0.85rem;
  color: #666;
  margin-right: 10px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.news-category {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  display: inline-block;
}

.news-category.event {
  background-color: #4d7c8a;
}

.news-category.product {
  background-color: #e57373;
}

.news-category.update {
  background-color: #7c6c1a;
}

.news-content h3 {
  font-size: 1.05rem;
  margin: 0 0 5px 0;
  color: #333;
  line-height: 1.4;
  font-weight: 600;
}

.news-content p {
  color: #666;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.news-more {
  text-align: center;
}

/* 首页按钮特定样式 */
.news .btn-outline {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.news .btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 联系部分 - 共通结构 */
.contact {
  background-color: var(--neutral-dark);
  color: #ffffff;
}

.contact-header {
  text-align: center;
}

.contact-header h4 {
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
}

.contact-header h4::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-info-label {
  color: rgba(255, 255, 255, 0.9);
}

.contact-info-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.contact-info-box:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.phone-number {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-number:hover {
  color: var(--primary-color);
}

.contact-hours {
  color: rgba(255, 255, 255, 0.85);
}

.contact-action-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-action-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-action-item:hover::before {
  transform: scaleX(1);
}

.contact-action-item:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.action-description {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  display: flex;
  align-items: center;
}

.action-note {
  color: rgba(255, 255, 255, 0.7);
}

/* 招聘部分 - 共通结构 */
.recruit {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../../img/recruit/31944039_m.jpg");
  background-size: cover;
  background-position: center;
}

.recruit-content h4 {
  position: relative;
  padding-bottom: 1rem;
}

.recruit-content h4::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.recruit-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.recruit-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.recruit-image h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  text-align: center;
  z-index: 1;
  width: 100%;
  padding: 0 1rem;
}

.recruit-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

.recruit-image:hover {
  transform: translateY(-10px);
}

.recruit-image:hover img {
  transform: scale(1.1);
}

.recruit-image:hover::before {
  background-color: rgba(0, 0, 0, 0.7);
}