/* 1. 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. 设置全局样式 */
html, body {
  width: 100%;
  height: 100%;
}

/* 3. 布局容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* 4. 网格系统 */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
} 

/* 变量定义 */
:root {
  /* 颜色系统 */
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --text-color: #2d3436;
  --bg-color: #ffffff;
  
  /* 字体系统 */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-size-base: 16px;
  --line-height-base: 1.5;
  
  /* 间距系统 */
  --spacing-unit: 8px;
  --container-padding: 15px;
  
  /* 断点系统 */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

/* 精确的排版样式 */
.typography h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--spacing-unit);
}

.typography p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

/* 精确的组件样式 */
.button {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  border-radius: 4px;
  font-size: var(--font-size-base);
  line-height: 1;
  transition: all 0.3s ease;
}

/* 响应式布局 */
@media (max-width: 576px) {
  .container {
    padding: calc(var(--container-padding) / 2);
  }
  
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

/* 工具类 */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--spacing-unit);
}

.mb-1 {
  margin-bottom: var(--spacing-unit);
}

/* 浏览器兼容性处理 */
.flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 导航栏样式 */
.header {
  background-color: #E9967A;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 120px;
}

.logo img {
  width: 100%;
  height: auto;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 5px 0;
  position: relative;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
}

/* 响应式导航 */
@media (max-width: 768px) {
  .header {
    padding: 15px 0;
  }

  .main-nav {
    display: none; /* 移动端先隐藏,后续添加汉堡菜单 */
  }
  
  .logo {
    width: 100px;
  }
}

/* 添加新的工具类 */
.text-white {
  color: #ffffff;
}

.bg-primary {
  background-color: #E9967A;
}

/* 轮播图样式 */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 70px; /* 为固定导航栏留出空间 */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: #ffffff;
  top: 50%;
  transform: translateY(-50%);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: #E9967A;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-indicator.active {
  background: #ffffff;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* About Us 部分样式 */
.about {
  padding: 80px 0;
  background-color: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  color: #333333;
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* 装饰线条 */
.title-decoration {
  position: relative;
  width: 60px;
  height: 2px;
  background-color: #E9967A;
  margin: 0 auto;
}

.title-decoration::before,
.title-decoration::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #E9967A;
  border-radius: 50%;
  top: -2px;
}

.title-decoration::before {
  left: -10px;
}

.title-decoration::after {
  right: -10px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
  color: #666666;
}

.about-content p {
  margin-bottom: 20px;
}

/* 高亮文字 */
.text-highlight {
  color: #E9967A;
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .about {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .about-content {
    padding: 0 20px;
    font-size: 0.9rem;
  }
}

/* 添加动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Services 部分样式 */
.services {
    padding: 80px 0;
    background-color: #E9967A;
    color: #ffffff;
}

.services .section-title h2 {
    color: #ffffff;
}

.services .title-decoration {
    background-color: #ffffff;
}

.services .title-decoration::before,
.services .title-decoration::after {
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    text-align: center;
    padding: 20px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-icon i {
    font-size: 32px;
    color: #ffffff;
}

.service-item:hover .service-icon {
    transform: translateY(-10px);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
}

/* 博客部分样式 */
.blog {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: #E9967A;
}

.blog-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #E9967A;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #e87d5d;
}

/* 响应��调整 */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
}

/* 团队成员部分样式 */
.team {
    padding: 80px 0;
    background-color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-member:hover .member-image img {
    filter: grayscale(0%);
}

.member-name {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.member-position {
    font-size: 0.9rem;
    color: #E9967A;
    margin-bottom: 15px;
}

.member-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    color: #E9967A;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #e87d5d;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-description {
        padding: 0;
    }
}

/* Portfolio部分样式 */
.portfolio {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.filter-btn {
    border: none;
    background: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E9967A;
    transition: width 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #E9967A;
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(233, 150, 122, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.portfolio-category {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-filter {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filter {
        gap: 15px;
    }
    
    .filter-btn {
        font-size: 0.9rem;
    }
}

/* Contact部分样式 */
.contact {
    padding: 80px 0;
    background-color: #333333;
    color: #ffffff;
}

.contact .section-title h2 {
    color: #E9967A;
}

.contact .title-decoration {
    background-color: #E9967A;
}

.contact .title-decoration::before,
.contact .title-decoration::after {
    background-color: #E9967A;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #E9967A;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 15px;
}

.form-button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn {
    background-color: #E9967A;
    color: #ffffff;
}

.submit-btn:hover {
    background-color: #e87d5d;
}

.reset-btn {
    background-color: transparent;
    border: 1px solid #E9967A;
    color: #E9967A;
}

.reset-btn:hover {
    background-color: rgba(233, 150, 122, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(233, 150, 122, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E9967A;
}

.info-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .form-buttons {
        flex-direction: column;
    }
    
    .form-button {
        width: 100%;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Follow Us部分样式 */
.follow-us {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-media-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E9967A;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-media-link:hover {
    background-color: #E9967A;
    color: #ffffff;
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 576px) {
    .social-media-links {
        gap: 20px;
    }
    
    .social-media-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Footer部分样式 */
.footer {
    padding: 20px 0;
    background-color: #222222;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #E9967A;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-credit a {
    color: #E9967A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #e87d5d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}