/* 国台官网样式 */
:root {
  --primary-color: #c3261d;
  --primary-light: #e64a42;
  --primary-dark: #9e1c15;
  --text-color: #333333;
  --light-color: #ffffff;
  --dark-color: #222222;
  --gray-color: #f5f5f5;
  --gray-dark: #dddddd;
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* 导航栏样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
}

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

.nav-menu a {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

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

.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

/* 首页横幅区域 */
.hero {
  padding-top: 100px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--light-color);
  text-align: center;
}

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

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--light-color);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn:hover {
  background-color: transparent;
  border-color: var(--light-color);
  color: var(--light-color);
}

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

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

/* 核心优势区域 */
.features {
  padding: 80px 0;
  background-color: var(--light-color);
}

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

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-title p {
  font-size: 18px;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: var(--light-color);
  text-align: center;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 30px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.feature-card p {
  color: #666;
}

/* 产品介绍区域 */
.products {
  padding: 80px 0;
  background-color: var(--gray-color);
}

.product-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

.product-item:last-child {
  margin-bottom: 0;
}

.product-item:nth-child(even) {
  flex-direction: row-reverse;
}

.product-image {
  flex: 1;
  padding: 20px;
}

.product-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-content {
  flex: 1;
  padding: 20px;
}

.product-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.product-content p {
  margin-bottom: 25px;
  font-size: 16px;
  color: #555;
}

/* 数据展示区域 */
.stats {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--light-color);
  text-align: center;
}

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

.stat-item h3 {
  font-size: 40px;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 16px;
  opacity: 0.8;
}

/* 联系我们区域 */
.contact {
  padding: 80px 0;
  background-color: var(--light-color);
}

.contact-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 15px;
  color: #555;
}

.contact-form {
  flex: 1;
}

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

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

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

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

/* 页脚区域 */
.footer {
  padding: 40px 0;
  background-color: var(--dark-color);
  color: var(--light-color);
}

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

.footer-logo {
  font-size: 24px;
  font-weight: bold;
}

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

.footer-links {
  display: flex;
}

.footer-links li {
  margin-left: 20px;
}

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

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

/* 内页样式 */
.page-header {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--light-color);
  text-align: center;
}

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

.page-header p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

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

.content-section:nth-child(even) {
  background-color: var(--gray-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 40px;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
  
  .product-item {
    flex-direction: column;
  }
  
  .product-item:nth-child(even) {
    flex-direction: column;
  }
  
  .product-image, .product-content {
    width: 100%;
  }
  
  .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--light-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: left 0.3s;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu 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(7px, -7px);
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .features-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    margin-top: 20px;
    justify-content: center;
  }
  
  .footer-links li:first-child {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .feature-card, .stat-item {
    padding: 20px;
  }
}
