/* 
 * 外贸网站SEO优化服务 - slxyyimin.com
 * 全站样式表
 */

/* 基础样式重置 */
:root {
  --primary-color: #005b9f;
  --secondary-color: #3a95d0;
  --accent-color: #ffd04c;
  --text-color: #333333;
  --text-light: #666666;
  --background-light: #f5f9fc;
  --background-dark: #16324f;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --border-radius: 6px;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

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

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

ul, ol {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
}

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

.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.section-title {
  font-size: 32px;
  margin-bottom: 15px;
  text-align: center;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
}

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

.section-description {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.section-title.light, .section-description.light, .light {
  color: var(--white);
}

.section-title.light::after {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--background-light);
}

.bg-dark {
  background-color: var(--background-dark);
  color: var(--white);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

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

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

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.full-width {
  width: 100%;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-list li a {
  font-weight: 500;
  color: var(--text-color);
}

.nav-list li a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    transform: translateY(-150%);
    transition: var(--transition);
  }
  
  .nav-list.active {
    transform: translateY(0);
  }
  
  .nav-list li {
    width: 100%;
    text-align: center;
  }
  
  .nav-list li a {
    display: block;
    padding: 10px 0;
  }
}

/* 英雄区域 */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 50%;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.hero-image {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 45%;
}

@media (max-width: 992px) {
  .hero-content {
    width: 100%;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
}

/* 服务区域 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.service-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-10px);
}

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

.service-item h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* 优势区域 */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.advantage-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow);
}

.advantage-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  font-weight: 700;
  color: rgba(0, 91, 159, 0.1);
}

.advantage-item h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* 案例区域 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.case-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.case-item:hover {
  transform: translateY(-5px);
}

.case-image {
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

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

.case-content {
  padding: 20px;
}

.case-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

/* 联系区域 */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.contact-info {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: var(--border-radius);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-text h3 {
  margin-bottom: 5px;
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: var(--border-radius);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

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

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

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

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

.footer-nav ul {
  display: flex;
  gap: 20px;
}

.footer-nav ul li a {
  color: var(--white);
  opacity: 0.8;
}

.footer-nav ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  opacity: 0.7;
}

.social-link {
  display: flex;
  align-items: center;
  color: var(--white);
  opacity: 0.8;
}

.social-link svg {
  margin-right: 8px;
}

.social-link:hover {
  opacity: 1;
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
