/* 
 * 臻远品牌策划公司官网
 * 主要样式表
 */

/* ===== 基础样式 ===== */
:root {
  /* 主色调 */
  --primary-blue: #0B2342;
  --primary-gold: #D4AF37;
  
  /* 辅助色 */
  --light-gray: #F5F5F5;
  --dark-gray: #333333;
  --white: #FFFFFF;
  
  /* 强调色 */
  --accent-blue: #1E90FF;
  --accent-coral: #FF6B6B;
  
  /* 字体 */
  --font-sans: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--dark-gray);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-gold);
}

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

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin-bottom: 40px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 按钮样式 ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: var(--primary-gold);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--light-gray);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
}

.btn-special {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-gold));
  color: var(--white);
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-special:hover {
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ===== 导航栏 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-blue);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(11, 35, 66, 0.95);
}

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

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

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

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

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

.nav-links a {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover {
  color: var(--primary-gold);
}

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

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

.nav-contact {
  background-color: var(--primary-gold);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-contact:hover {
  background-color: var(--white);
  color: var(--primary-gold);
}

.hamburger {
  display: none;
  cursor: pointer;
}

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

/* ===== 首页Banner ===== */
.hero {
  height: 100vh;
  min-height: 600px;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light-gray);
  margin-bottom: 30px;
}

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

/* ===== 关于我们 ===== */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-title {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.about-description {
  margin-bottom: 30px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  color: var(--primary-gold);
  font-size: 1.5rem;
}

.feature-text h4 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

/* ===== 服务内容 ===== */
.services {
  background-color: var(--light-gray);
}

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

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

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

.service-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
}

.service-icon img {
  height: 50px;
}

.service-content {
  padding: 25px;
}

.service-title {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

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

/* ===== 案例展示 ===== */
.cases {
  background-color: var(--white);
}

.cases-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  margin: 0 5px;
  background-color: transparent;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

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

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

.case-image {
  height: 250px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.case-content {
  padding: 25px;
}

.case-category {
  font-size: 0.9rem;
  color: var(--primary-gold);
  margin-bottom: 10px;
}

.case-title {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.case-description {
  margin-bottom: 20px;
}

/* ===== 联系我们 ===== */
.contact {
  background-color: var(--light-gray);
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-title {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.contact-description {
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

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

.contact-icon {
  color: var(--primary-gold);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-text h4 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

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

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

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

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

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

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
}

.footer-about {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-gold);
}

.footer-links {
  list-style: none;
}

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

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

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

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

.footer-contact-icon {
  color: var(--primary-gold);
  margin-right: 10px;
  margin-top: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-link:hover {
  background-color: var(--primary-gold);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-blue);
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .cases-filter {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .filter-btn {
    margin-bottom: 10px;
  }
}

