/* LONGXIN印务 - 主样式表 */

:root {
  --primary-color: #C62828;  /* 深红色 */
  --secondary-color: #D32F2F; /* 中红色 */
  --accent-color: #FF5252;   /* 亮红色 */
  --light-color: #FFEBEE;    /* 超浅红色背景 */
  --dark-color: #B71C1C;     /* 暗红色 */
  --text-color: #7F0000;     /* 深红褐色文字 */
  --spacing-unit: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-unit);
}

/* 头部样式 */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
}

.logo a {
  color: white;
  text-decoration: none;
}

/* 导航样式 */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

nav ul li a:hover:after {
  width: 100%;
}

/* 移动菜单按钮 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* 语言切换 */
.language-selector {
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
}

.language-btn {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 0.5rem;
}

.language-btn:hover, .language-btn.active {
  background-color: white;
  color: var(--primary-color);
}

/* 页面标题 */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* 主区域样式 */
.main-content {
  padding: 2rem 0;
}

/* 轮播图样式 */
.carousel {
  position: relative;
  overflow: hidden;
  height: 500px;
  margin-bottom: 2rem;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 2rem;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.carousel-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: white;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* 首页英雄区域 - 保留但不用于首页，可用于其他页面 */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #d35400;
}

/* 产品卡片 */
.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card-content {
  padding: 1.5rem;
}

.product-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-card p {
  color: #666;
  margin-bottom: 1rem;
}

/* 产品导航 */
.product-nav {
  margin-bottom: 2rem;
}

.product-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  gap: 1rem;
}

.product-nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.product-nav ul li a:hover {
  background-color: var(--accent-color);
}

/* 产品详情页 */
.product-section {
  margin-bottom: 4rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.product-image {
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-info > p {
  margin-bottom: 1.5rem;
}

.product-items, .product-features {
  margin: 1.5rem 0;
}

.product-items h3, .product-features h3 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin: 1rem 0;
}

.product-items ul, .product-features ul {
  list-style: none;
}

.product-items li, .product-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.product-features li {
  position: relative;
  padding-left: 1.5rem;
}

.product-features li:before {
  content: '✓';
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

/* 关于我们页面 */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
  margin: 0 auto;
  max-width: 90%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.about-content p {
  margin-bottom: 1rem;
  text-align: left;
}

/* 使命和价值观 */
.mission-values {
  margin: 4rem 0;
}

.mission-box {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-item {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.value-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.value-item h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* 新增样式 */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* 价值观部分 */
.values-section {
  margin: 4rem 0;
}

.values-section .section-title {
  margin-bottom: 2.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-item {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* 下单步骤部分 */
.order-steps-section {
  margin: 5rem 0;
}

.order-steps-section .section-title {
  margin-bottom: 1rem;
}

.order-steps-section p.text-center {
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.steps-container {
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-item:not(:last-child):after {
  content: '';
  position: absolute;
  top: 40px;
  left: 25px;
  height: calc(100% + 2.5rem);
  border-left: 2px dashed var(--primary-color);
  opacity: 0.5;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 1.5rem;
  z-index: 1;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
  padding-top: 0.5rem;
}

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 团队部分 */
.team-section, .equipment-section {
  margin: 4rem 0;
  text-align: center;
}

.team-section h2, .equipment-section h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.team-section p, .equipment-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.team-grid, .equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.team-member, .equipment-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-member img, .equipment-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.team-member h3, .equipment-item h3 {
  margin: 1rem 0 0.5rem;
  color: var(--primary-color);
}

.team-member p, .equipment-item p {
  padding: 0 1rem 1.5rem;
  margin: 0;
}

/* 联系表单 */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-info-container {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: 8px;
}

.contact-info {
  margin: 2rem 0;
}

.info-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--accent-color);
}

.info-item h3 {
  margin-bottom: 0.5rem;
}

.social-media {
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: var(--accent-color);
}

.contact-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* 地图容器 */
.map-container {
  margin-bottom: 4rem;
  text-align: center;
}

.map-container h2 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* FAQ 部分 */
.faq-container {
  margin-bottom: 4rem;
}

.faq-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.faq-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 号召性用语区域 */
.call-to-action {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 0;
  border-radius: 8px;
  margin: 3rem 0;
}

.call-to-action h2 {
  margin-bottom: 1rem;
}

.call-to-action p {
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* 页脚样式 */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  nav {
    width: 100%;
  }
  
  nav ul {
    margin-top: 1rem;
    justify-content: center;
    display: none;
  }
  
  nav ul.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  .language-selector {
    margin: 1rem 0;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .product-detail,
  .about-section {
    grid-template-columns: 1fr;
  }
  
  .about-content p {
    text-align: center;
    padding: 0 1rem;
  }
  
  .about-image {
    margin-bottom: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-number {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .step-item:not(:last-child):after {
    display: none;
  }
}

@media (max-width: 576px) {
  .product-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .product-nav ul li {
    width: 100%;
    text-align: center;
  }
}

/* 联系表单感谢信息 */
.thank-you-message {
  background-color: #f8f9fa;
  border-left: 4px solid #4CAF50;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.thank-you-message h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}

.thank-you-hidden {
  display: none;
}

.thank-you-visible {
  display: block;
} 