/* 通用样式设置 */
:root {
  --primary-color: #0066cc;
  --secondary-color: #004080;
  --accent-color: #ff6600;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --medium-gray: #cccccc;
  --dark-gray: #666666;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 15px;
  font-weight: 700;
}

p {
  margin-bottom: 15px;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 10px;
  margin-top: 10px;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--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: var(--white);
}

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

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

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
}

.section-header p {
  color: var(--dark-gray);
  font-size: 1.1rem;
}

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

/* 导航栏样式 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
}

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

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
}

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

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

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

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* 主横幅样式 */
.hero {
  height: 100vh;
  min-height: 600px;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 创建动态背景效果 */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 50%, #001a33 50%);
  z-index: -2;
}

/* 几何图形背景 */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 5%, transparent 5%),
    radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 3%, transparent 3%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 4%, transparent 4%),
    radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 3%, transparent 3%),
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.03) 48%, rgba(255, 255, 255, 0.03) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.03) 48%, rgba(255, 255, 255, 0.03) 52%, transparent 52%);
  background-size: 300px 300px, 200px 200px, 250px 250px, 150px 150px, 60px 60px, 60px 60px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  opacity: 0.3;
  z-index: -1;
  animation: patternMove 60s linear infinite;
}

/* 浮动几何元素 */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  top: 10%;
  left: 10%;
  animation-duration: 25s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  top: 60%;
  left: 80%;
  transform: rotate(45deg);
  animation-duration: 30s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  top: 30%;
  left: 70%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation-duration: 22s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  top: 70%;
  left: 20%;
  animation-duration: 28s;
}

.shape-5 {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  top: 20%;
  left: 30%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-duration: 20s;
}

@keyframes patternMove {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 300px 300px, -200px 200px, 250px -250px, -150px 150px, 60px 60px, -60px -60px;
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(10px, 10px) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translate(0, 20px) rotate(10deg) scale(1);
  }
  75% {
    transform: translate(-10px, 10px) rotate(5deg) scale(0.95);
  }
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.cta-buttons {
  animation: fadeIn 1s ease 0.6s;
  animation-fill-mode: both;
}

/* 服务部分样式 */
.services {
  background-color: var(--light-gray);
}

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

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

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

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

/* 关于我们预览样式 */
.about-preview {
  padding: 100px 0;
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
}

.about-image::after {
  content: '上海倾清情科技';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.about-image .tech-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 60px 30px;
  opacity: 0.15;
}

.about-image .tech-icon {
  font-size: 2.5rem;
  color: white;
  margin: 10px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--dark-gray);
  line-height: 1.8;
}

/* 案例研究样式 */
.case-studies {
  background-color: var(--light-gray);
  padding: 100px 0;
}

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

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

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

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

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

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

.case-content {
  padding: 20px;
}

.case-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* 新闻动态样式 */
.news {
  padding: 100px 0;
}

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

.news-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-date {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px;
  text-align: center;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date .day {
  font-size: 1.8rem;
  font-weight: 700;
}

.news-date .month,
.news-date .year {
  font-size: 0.9rem;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
  color: var(--primary-color);
}

.read-more:hover {
  color: var(--secondary-color);
}

/* 联系预览样式 */
.contact-preview {
  position: relative;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.contact-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary-color), #003366);
  z-index: -2;
}

.contact-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px);
  background-size: 20px 20px;
  z-index: -1;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

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

.contact-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 50px;
  transition: var(--transition);
}

.contact-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: 10px;
  color: var(--accent-color);
}

/* 页脚样式 */
footer {
  position: relative;
  color: var(--white);
  padding: 60px 0 0;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #222, #333);
  z-index: -2;
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.01) 30%, transparent 30%);
  background-size: 60% 60%, 40% 40%;
  background-repeat: no-repeat;
  z-index: -1;
}

.footer-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 30px;
}

.footer-logo h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.footer-logo h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-logo p {
  color: var(--medium-gray);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
}

.footer-nav a {
  color: var(--medium-gray);
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.footer-nav a:hover {
  color: var(--white);
}

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

.footer-nav a:hover::after {
  width: 100%;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--medium-gray);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* 动画 */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

@media screen and (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    flex-basis: 100%;
    display: none;
    margin-top: 20px;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin-left: 0;
    margin-bottom: 15px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .footer-content,
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 15px;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
}
