/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

/* 标题样式 */
h1, h2, h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

/* 段落样式 */
p {
  margin-bottom: 1.2rem;
  color: #555;
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.button:hover {
  background-color: #025186;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 头部导航样式 */
.header {
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-menu li.active a::after {
  width: 100%;
}

/* 主横幅样式 */
.hero {
  padding: 8rem 0 4rem;
  background: var(--text-light);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #666;
}

/* 关于我们部分 */
.about-section {
  padding: 4rem 0;
  background: white;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 200px;
  height: 200px;
  background: var(--light-blue);
  opacity: 0.5;
  border-radius: 0 0 0 100%;
  z-index: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border: 1px solid #eee;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.feature-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
}

/* 产品展示部分 */
.products-section {
  padding: 4rem 0;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.products-section::after {
  content: '';
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  background: var(--light-blue);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-blue);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 联系表单部分 */
.contact-section {
  padding: 4rem 0;
  background: white;
  position: relative;
  background: linear-gradient(135deg, white 50%, var(--light-blue) 50%);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 68, 129, 0.1);
}

/* 页脚样式 */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0;
}

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

.company-info h3 {
  margin-bottom: 1rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* 添加一些微妙的装饰元素 */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

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

/* 公司标题样式 */
.company-title {
  color: #004481 !important;  /* 使用 !important 确保颜色优先级 */
}

/* 更具体的选择器 */
.hero .company-title {
  color: #004481;
}

:root {
    --primary-blue: #004481;
    --secondary-blue: #025186;
    --light-blue: #e8f1f8;
    --dark-blue: #002d54;
}

/* 产品介绍文字样式 */
.products-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.products-intro a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.products-intro a:hover {
    text-decoration: underline;
}

/* 查看更多按钮样式 */
.view-more {
    text-align: center;
    margin-top: 3rem;
}

.button-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

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

/* 产品目录页面样式 */
.products-catalog {
    padding: 8rem 0 4rem;
}

.category {
    margin-bottom: 4rem;
}

.category h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
}

.product-details {
    list-style: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 4px;
}

.product-details li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* 当前页面导航项样式 */
.nav-menu a.active {
    color: var(--primary-blue);
}

.nav-menu a.active::after {
    width: 100%;
} 