/* 
 * 黑山羊SEO - 主样式表
 * 网站: heishanym.com
 * 创建日期: 2025-09-03
 */

/* ===== 基础设置 ===== */
:root {
  --primary-color: #0066cc;
  --secondary-color: #005bb5;
  --accent-color: #ff6600;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f5f9fd;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "SimHei", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--bg-color);
}

/* ===== 布局容器 ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* ===== 排版样式 ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 20px;
}

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

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

ul, ol {
  list-style-position: inside;
}

/* ===== 按钮样式 ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  transition: all 0.3s ease;
}

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

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

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

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

/* ===== 头部导航 ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  height: 50px;
}

.logo-svg {
  height: 100%;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  font-weight: 600;
  color: var(--text-color);
  position: relative;
}

.main-nav ul li 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 ul li a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ===== Hero部分 ===== */
.hero {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 91, 181, 0.8) 100%), url('../img/hero-bg.svg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 180px 0 100px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ===== 章节头部 ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* ===== 服务部分 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

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

/* ===== 案例研究部分 ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.case-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-content {
  padding: 25px;
}

.case-stats {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* ===== 优势部分 ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.advantage-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

/* ===== 流程部分 ===== */
.process-steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-steps:before {
  content: '';
  position: absolute;
  top: 0;
  left: 35px;
  height: 100%;
  width: 2px;
  background-color: var(--primary-color);
  z-index: 0;
}

.process-step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  z-index: 1;
}

.step-content {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== 联系部分 ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

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

.contact-info h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.contact-info h3:first-child {
  margin-top: 0;
}

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

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

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 16px;
}

.form-group textarea {
  resize: vertical;
}

/* ===== 页脚 ===== */
footer {
  background-color: #002244;
  color: white;
  padding-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  max-width: 350px;
}

.footer-logo p {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-link-group h4 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-link-group h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-link-group ul {
  list-style: none;
}

.footer-link-group ul li {
  margin-bottom: 10px;
}

.footer-link-group ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-bottom: 40px;
    max-width: none;
  }
  
  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .main-nav ul {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero {
    padding: 150px 0 80px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .process-steps:before {
    display: none;
  }
  
  .process-step {
    padding-left: 0;
    margin-bottom: 30px;
  }
  
  .step-number {
    position: relative;
    margin-bottom: 20px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .hero {
    padding: 140px 0 70px;
  }
  
  .hero p {
    font-size: 1rem;
  }
}
