/* 天琛国际文化传媒（北京）有限公司 网站样式 */
:root {
  --primary-color: #0d3b66;
  --secondary-color: #f4d35e;
  --accent-color: #ee964b;
  --light-color: #fafafa;
  --dark-color: #333333;
  --text-color: #444444;
  --font-main: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-title: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden;
}

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

/* 头部样式 */
header {
  background: linear-gradient(135deg, var(--primary-color), #1a6baa);
  color: white;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

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

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

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

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

/* 首页横幅 */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(13, 59, 102, 0.8), rgba(13, 59, 102, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230d3b66"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20 Z" fill="none" stroke="%23f4d35e" stroke-width="0.5"/></svg>');
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 0;
}

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

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

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

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
  margin: 10px;
}

.btn:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-color);
}

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

/* 内容区域通用样式 */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  display: inline-block;
  padding-bottom: 15px;
}

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

/* 网站简介 */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 15px;
  text-align: justify;
}

.about-image {
  flex: 1;
  min-width: 300px;
  height: 400px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
}

/* 宣传文案 */
.tagline {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  padding: 60px 0;
  text-align: center;
  color: var(--primary-color);
}

.tagline-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.tagline-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.news-date {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: center;
}

.news-date .day {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.news-date .month {
  font-size: 1.2rem;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.news-content p {
  color: var(--text-color);
  margin-bottom: 15px;
}

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.read-more i {
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* 业务范围 */
.services {
  background-color: #f8f9fa;
}

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

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

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

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

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* 成功案例 */
.portfolio {
  position: relative;
  overflow: hidden;
}

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

.portfolio-item {
  position: relative;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 59, 102, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
  color: white;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

/* 人才发展 */
.careers-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.careers-text {
  flex: 1;
  min-width: 300px;
}

.careers-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.careers-text ul {
  list-style-type: none;
  margin: 20px 0;
}

.careers-text ul li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  position: relative;
  padding-left: 25px;
}

.careers-text ul li:before {
  content: "✓";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.careers-image {
  flex: 1;
  min-width: 300px;
  height: 400px;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
  font-weight: bold;
}

/* 联系方式 */
.contact-section {
  background-color: #f8f9fa;
}

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

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

.department {
  margin-bottom: 20px;
}

.department:last-child {
  margin-bottom: 0;
}

.department h4 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.department p {
  margin: 5px 0;
}

.email-link {
  color: var(--primary-color);
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

/* 页脚 */
footer {
  background: var(--primary-color);
  color: white;
  padding: 40px 0 20px;
}

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

.footer-column h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-column ul {
  list-style: none;
}

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

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* 子页面样式 */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), #1a6baa);
  color: white;
  padding: 100px 0 50px;
  text-align: center;
  margin-top: 70px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-content {
  padding: 50px 0;
}

/* 新闻列表 */
.news-list {
  display: grid;
  gap: 30px;
}

.news-item {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-item-header {
  display: flex;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
}

.news-date-sm {
  flex: 0 0 80px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding-right: 15px;
}

.news-date-sm .day {
  font-size: 1.8rem;
  font-weight: bold;
  display: block;
}

.news-meta {
  flex: 1;
  padding-left: 15px;
}

.news-meta h3 {
  margin-bottom: 5px;
}

.news-item-content {
  padding: 25px;
}

.news-item-content p {
  margin-bottom: 15px;
}

/* 产品中心 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

.product-img {
  height: 200px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-info p {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 0.95rem;
}

/* 服务中心 */
.service-detail {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 30px;
}

.service-detail h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

/* 常见问题 */
.faq-item {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-item.active .faq-question::after {
  content: '-';
}

/* 知识库 */
.knowledge-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

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

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

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

.category-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.articles-list {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.articles-list ul {
  list-style: none;
}

.articles-list ul li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.articles-list ul li:last-child {
  border-bottom: none;
}

.article-date {
  flex: 0 0 100px;
  color: var(--accent-color);
  font-weight: 500;
}

.article-title {
  flex: 1;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.article-title:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }

  .about-content,
  .careers-content,
  .contact-container {
    flex-direction: column;
  }
}