/* 
 * 法国优码 - 专业外贸网站SEO优化服务
 * faguoym.com
 * 创建于2025年
 */

/* 基础样式 */
:root {
  --primary-color: #e64c3c;
  --secondary-color: #3498db;
  --accent-color: #2ecc71;
  --dark-color: #2c3e50;
  --light-color: #f0f4f8;
  --gray-color: #95a5a6;
  --white-color: #ffffff;
  --black-color: #222222;
  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  color: var(--dark-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #d44637;
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 76, 60, 0.2);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--white-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 76, 60, 0.2);
}

/* 头部样式 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

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

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 25px;
  position: relative;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--dark-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
  top: 0px;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 20px;
}

/* 英雄区域样式 */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0f4f8 0%, #e3eaf3 100%);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image svg {
  max-width: 100%;
  height: auto;
}

/* 服务部分样式 */
.services {
  padding: 100px 0;
  background-color: var(--white-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: var(--white-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-bottom: 5px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom: 5px solid var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-card p {
  color: var(--gray-color);
}

/* 优势部分样式 */
.advantages {
  padding: 100px 0;
  background-color: var(--light-color);
}

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

.advantage-item {
  position: relative;
  padding: 30px;
  background-color: var(--white-color);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(230, 76, 60, 0.1);
  z-index: -1;
}

.advantage-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.advantage-item p {
  color: var(--gray-color);
}

/* 案例部分样式 */
.cases {
  padding: 100px 0;
  background-color: var(--white-color);
}

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

.case-card {
  background-color: var(--white-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding: 30px;
  border-left: 5px solid var(--primary-color);
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.case-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.case-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.case-card p {
  color: var(--gray-color);
}

/* 关于我们部分样式 */
.about {
  padding: 100px 0;
  background-color: var(--light-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-item .stat-label {
  font-size: 1.1rem;
  color: var(--dark-color);
  font-weight: 500;
}

/* 联系我们部分样式 */
.contact {
  padding: 100px 0;
  background-color: var(--white-color);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: start;
}

.contact-info p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

.contact-form {
  background-color: var(--white-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 76, 60, 0.2);
}

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

.btn-submit {
  width: 100%;
}

/* 页脚样式 */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo p {
  margin-top: 15px;
  color: var(--gray-color);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.footer-links-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white-color);
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

.footer-links-column a {
  color: var(--gray-color);
  transition: color 0.3s ease;
}

.footer-links-column a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.footer-icon {
  width: 30px;
  height: 30px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-icon:hover {
  opacity: 1;
}

/* 响应式样式 */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content {
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
  }
  
  .main-nav.active ul {
    display: flex;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .services,
  .advantages,
  .cases,
  .about,
  .contact {
    padding: 60px 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* 动画效果 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.advantage-item,
.case-card {
  animation: fadeUp 0.6s ease forwards;
}

.service-card:nth-child(2),
.advantage-item:nth-child(2),
.case-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3),
.advantage-item:nth-child(3),
.case-card:nth-child(3) {
  animation-delay: 0.4s;
}

.service-card:nth-child(4),
.advantage-item:nth-child(4) {
  animation-delay: 0.6s;
}

/* 无障碍优化 */
:focus {
  outline: 3px solid rgba(230, 76, 60, 0.5);
  outline-offset: 3px;
}

.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;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
