﻿/**
 * 徐州市传人商贸有限公司 - 网站样式表
 * 原创设计
 * 主色调：工程橙 #FF6B35 + 深灰 #2C3E50 + 亮橙 #F7931E
 */

/* ==================== 基础重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --secondary: #2C3E50;
  --accent: #F7931E;
  --light: #F8F9FA;
  --dark: #1A1A2E;
  --gray: #6C757D;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--secondary);
  background: var(--white);
}

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

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

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

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

.btn-large {
  padding: 16px 48px;
  font-size: 18px;
}

/* ==================== 头部导航 ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #f5f5f5;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

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

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

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  font-weight: bold;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
}

.logo-text span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ==================== 首页Hero区 ==================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-left: 5%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/pattern.svg') repeat;
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: left;
  margin-left: 0;
}
.hero .container {
  max-width: none;
  margin-left: 0;
  padding-left: 176px;
  padding-right: 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,0.2);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-desc {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  background: rgba(255,255,255,0.1);
  padding: 20px 32px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.stat-item h3 {
  font-size: 42px;
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* ==================== 业务板块 ==================== */
.section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

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

/* 业务卡片 */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.business-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.business-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transition: var(--transition);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.business-card:hover::before {
  transform: scaleX(1);
}

.business-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(255,107,53,0.15) 0%, rgba(247,147,30,0.15) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.business-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.business-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ==================== 设备展示 ==================== */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.equipment-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.equipment-image {
  height: 380px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 60px;
}

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

.equipment-info {
  padding: 24px;
}

.equipment-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.equipment-info .model {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}

.equipment-info .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.equipment-info .price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray);
}

/* ==================== 关于我们 ==================== */
.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.about-feature {
  background: white;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-feature i {
  width: 56px;
  height: 56px;
  background: rgba(255,107,53,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--primary);
}

.about-feature h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.about-feature p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ==================== 联系方式 ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  background: #fff;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255,107,53,0.05);
}

.contact-item i {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1px;
  color: var(--gray);
}

.contact-item p {
  font-size: 16px;
  color: var(--secondary);
  font-weight: 500;
}

.contact-form {
  background: #fff;
  padding: 28px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 16px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* ==================== 页脚 ==================== */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
  padding: 50px 0 24px;
}

.footer-simple {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 30px;
  align-items: start;
}

.footer-left {
  border: none;
  max-width: 10cm;
}

.footer-left h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-left h3 span {
  color: var(--primary);
}

.footer-left p {
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  font-size: 14px;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-right h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list span {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-contact-list span:hover {
  color: var(--primary);
}

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

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-simple {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-left p {
    max-width: 100%;
  }

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }
  
  .nav.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-phone {
    display: none;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-simple {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left p {
    max-width: 100%;
  }

  .footer-right {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* ==================== 页面标题 ==================== */
.page-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  padding: 90px 0 30px;
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
}
