/* ========================================
   四川江胜主题样式表
   基于桌面端 1920px 宽度标准
   ======================================== */

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

:root {
  --primary-color: #0a4b8e;
  --primary-light: #1a5fa8;
  --primary-dark: #073b6e;
  --secondary-color: #667eea;
  --accent-color: #764ba2;
  --text-dark: #1a202c;
  --text-body: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Han Sans SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

/* ========================================
   动画关键帧
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(10, 75, 142, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(10, 75, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 75, 142, 0); }
}

/* 滚动动画类 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  min-width: 140px;
  height: 44px;
  line-height: 44px;
  padding: 0 24px;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  min-width: 120px;
  height: 40px;
  line-height: 38px;
  padding: 0 20px;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-text {
  color: var(--primary-color);
  padding: 0;
  min-width: auto;
  height: auto;
  background: none;
}

.btn-text:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* ========================================
   头部导航
   ======================================== */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 50px;
  transition: transform var(--transition-normal);
}

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

.nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav ul li {
  position: relative;
}

.nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

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

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

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

/* ========================================
   英雄区域 (Hero)
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.5" fill="%23ffffff" fill-opacity="0.1"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.visual-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.3);
}

.visual-placeholder::after {
  content: '图片/视频占位区域';
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* ========================================
   板块通用样式
   ======================================== */
.section {
  padding: 100px 0;
}

.section-gray {
  background-color: var(--bg-light);
}

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

.section-title-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title-line {
  width: 3px;
  height: 24px;
  background-color: var(--primary-color);
}

.section-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.5;
}

.section-divider {
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 16px auto 0;
}

/* ========================================
   关于我们
   ======================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 20px;
}

.about-text .btn {
  margin-top: 16px;
}

.about-image .image-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(145deg, var(--bg-white) 0%, var(--bg-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 2px dashed var(--border-color);
}

.image-placeholder::after {
  content: '图片占位区域';
  color: var(--text-light);
  font-size: 14px;
}

/* ========================================
   产品卡片
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon i {
  font-size: 28px;
  color: #fff;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.products-more {
  text-align: center;
  margin-top: 40px;
}

/* ========================================
   新闻列表
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--bg-light) 0%, var(--border-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-image-placeholder::after {
  content: '新闻图片';
  color: var(--text-light);
  font-size: 13px;
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.read-more {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* ========================================
   联系我们
   ======================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 20px;
  color: #fff;
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  color: var(--text-body);
}

.contact-form {
  background-color: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(10, 75, 142, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background-color: var(--text-dark);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
  color: #fff;
}

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

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-contact ul li i {
  width: 16px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  opacity: 0.6;
}

/* ========================================
   回到顶部按钮
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.back-to-top i {
  font-size: 18px;
}

/* ========================================
   页面专用样式 - 关于我们
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero .page-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero .page-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

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

.about-detail-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.about-detail-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* ========================================
   页面专用样式 - 产品中心
   ======================================== */
.products-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.product-card-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(145deg, var(--bg-light) 0%, var(--border-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.product-card-image::after {
  content: '产品图片';
  color: var(--text-light);
  font-size: 14px;
}

.product-card-content {
  padding: 24px;
}

.product-card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.product-card-description {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-card-features {
  list-style: none;
  margin-bottom: 20px;
}

.product-card-features li {
  font-size: 14px;
  color: var(--text-light);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

/* ========================================
   页面专用样式 - 新闻列表
   ======================================== */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-list-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-list-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.news-list-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(145deg, var(--bg-light) 0%, var(--border-color) 100%);
}

.news-list-content {
  padding: 20px;
}

.news-list-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-list-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-list-title a:hover {
  color: var(--primary-color);
}

.news-list-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}

/* ========================================
   页面专用样式 - 文章详情
   ======================================== */
.article-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 14px;
  opacity: 0.8;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--bg-white);
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 32px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

/* 语言选择器 */
.language-selector {
  margin-left: 20px;
}

.language-selector select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.language-selector select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(10, 75, 142, 0.1);
}

.language-selector select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(10, 75, 142, 0.2);
}

/* 响应式语言选择器 */
@media (max-width: 768px) {
  .language-selector {
    margin-left: 0;
    margin-top: 10px;
  }
}
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .about-content,
  .contact-content,
  .about-detail-content {
    grid-template-columns: 1fr;
  }

  .products-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 36px;
  }

  .products-grid,
  .news-grid,
  .news-list {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

/* ========================================
   辅助类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
