/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* 导航栏样式 */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.main-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-menu a:hover {
  color: #4CAF50;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 30px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  min-width: 900px;
}

.dropdown:hover .dropdown-content {
  display: grid;
}

.submenu h4 {
  color: #4CAF50;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.submenu ul {
  list-style: none;
}

.submenu li {
  margin-bottom: 8px;
}

.submenu a {
  color: #666;
  font-size: 0.95em;
}

.submenu a:hover {
  color: #4CAF50;
}

.divider {
  width: 1px;
  background: #e0e0e0;
}

/* 封面样式 */
.page-content {
  padding-top: 70px;
}

.cover-container {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  font-size: 3.5em;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* 文章内容样式 */
.news-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

/* 文章头部信息 */
.news-header-info {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.news-category-tag {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
}

.news-date {
  color: #666;
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

.news-date::before {
  content: "📅";
  margin-right: 6px;
}

/* 文章标题 */
.news-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.3;
}

/* 文章摘要 */
.news-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-radius: 12px;
  border-left: 5px solid #4CAF50;
  margin-bottom: 40px;
}

.news-summary p {
  margin-bottom: 0;
  font-size: 1.1em;
  font-weight: 500;
  color: #2c3e50;
}

/* 文章正文 */
.news-body {
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
}

.news-body p {
  margin-bottom: 25px;
  text-align: justify;
  text-indent: 2em;
}

/* 介绍部分 */
.intro-section {
  font-size: 1.1em;
  margin-bottom: 40px;
}

.intro-section p {
  font-weight: 500;
  color: #555;
}

/* 技术展示卡片 */
.tech-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.tech-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tech-card h3 {
  font-size: 1.4em;
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-specs {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-weight: 600;
  color: #555;
}

.spec-value {
  font-weight: 700;
  color: #4CAF50;
}

/* 图片样式 */
.news-image {
  margin: 30px 0;
  text-align: center;
}

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight-image .content-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.image-caption {
  margin-top: 12px;
  color: #666;
  font-size: 0.95em;
  font-style: italic;
}

/* 核心特点 */
.key-features {
  margin: 50px 0;
  padding: 30px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
}

.key-features h3 {
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 30px;
  color: #1565c0;
}

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

.feature-item {
  background: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2em;
  display: block;
  margin-bottom: 10px;
}

.feature-text {
  font-weight: 600;
  color: #2c3e50;
}

/* 应用场景部分 */
.application-section {
  margin: 50px 0;
}

.application-section h3 {
  font-size: 1.6em;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid #4CAF50;
}

.comparison-container {
  margin: 30px 0;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comparison-container h4 {
  font-size: 1.3em;
  color: #34495e;
  margin-bottom: 20px;
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.comparison-table th {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 18px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 1.05em;
}

.comparison-table td {
  padding: 16px 15px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.comparison-table tr:nth-child(even) {
  background: #f8f9fa;
}

.comparison-table tr:hover {
  background: #e8f5e8;
  transition: background 0.3s ease;
}

.comparison-table strong {
  color: #2c3e50;
}

.domain-tag {
  font-weight: 600;
  color: #4CAF50;
}

/* 案例研究 */
.case-studies {
  margin: 40px 0;
}

.case-studies h4 {
  font-size: 1.3em;
  color: #34495e;
  margin-bottom: 25px;
}

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

.case-item {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #4CAF50;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.case-location {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1em;
}

.case-improvement {
  background: #4CAF50;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: 500;
}

/* 行业影响 */
.industry-impact {
  margin: 60px 0;
}

.industry-impact h3 {
  font-size: 1.6em;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #4CAF50;
}

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

.impact-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-card h4 {
  font-size: 1.2em;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 技术演变 */
.tech-evolution {
  margin: 60px 0;
}

.tech-evolution h3 {
  font-size: 1.6em;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}

.tech-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.tech-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 5px solid #2196F3;
}

.tech-section h4 {
  font-size: 1.3em;
  color: #2196F3;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.expert-quote {
  background: #f0f7ff;
  border-left: 4px solid #2196F3;
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.expert-quote p {
  font-style: italic;
  color: #333;
  margin-bottom: 10px;
  text-indent: 0 !important;
}

.expert-quote cite {
  color: #666;
  font-size: 0.9em;
  font-weight: 600;
}

.highlight-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  position: relative;
}

.highlight-box h5 {
  color: #856404;
  margin-bottom: 15px;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 结论部分 */
.conclusion {
  margin: 60px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.conclusion h3 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 30px;
}

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

.key-takeaway {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
  font-size: 1.1em;
}

.conclusion-image {
  margin: 30px 0;
}

.conclusion-image .content-image {
  max-height: 400px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
}

/* 免责声明 */
.disclaimer {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
  font-size: 0.95em;
  color: #666;
  border: 1px solid #e9ecef;
}

.disclaimer p {
  margin-bottom: 0;
  text-indent: 0 !important;
}

/* 技术特点列表样式 */
.tech-features {
  margin: 30px 0;
}

.tech-features h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.4em;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 10px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  background: white;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-list strong {
  color: #4CAF50;
  font-size: 1.1em;
  display: block;
  margin-bottom: 8px;
}

/* 重点内容强调 */
.highlight-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  position: relative;
}

.highlight-box::before {
  content: "💡";
  position: absolute;
  top: -10px;
  left: 20px;
  background: #ffc107;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.highlight-box h4 {
  color: #856404;
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 1.2em;
}

/* 图片展示样式 */
.image-showcase {
  margin: 40px 0;
  text-align: center;
}

.image-showcase h3 {
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 1.4em;
}

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

.showcase-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.showcase-item:hover {
  transform: translateY(-5px);
}

.showcase-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.showcase-item h4 {
  padding: 15px;
  margin: 0;
  color: #2c3e50;
  font-size: 1.1em;
  background: #f8f9fa;
}

/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #4CAF50 0%, #2196F3 100%);
  z-index: 9999;
  width: 0%;
  transition: width 0.2s ease;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .news-content {
    padding: 0 2rem;
  }
  
  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) {
  .news-content {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .news-header {
    padding: 2rem 1rem;
  }
  
  .news-content {
    padding: 0 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .news-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .card {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tech-card {
    margin-bottom: 1.5rem;
  }
  
  /* 表格响应式调整 */
  .comparison-container {
    overflow-x: auto;
  }
  
  .comparison-table {
    width: 100%;
    min-width: 600px;
    font-size: 0.8rem;
  }
  
  /* 响应式导航栏调整 */
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  nav ul li a {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
  
  /* 图片响应式 */
  .content-image {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .news-header {
    padding: 1.5rem 0.8rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  p, li {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .card {
    padding: 1rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
  }
  
  .content-image {
    max-height: 250px;
    border-radius: 6px;
  }
  
  .qr-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .qr-image {
    width: 120px;
    height: 120px;
  }
  
  /* 移动端优化滚动体验 */
  html {
    scroll-behavior: smooth;
  }
  
  /* 阅读进度条在移动端更细 */
  .reading-progress {
    height: 3px;
  }
}

/* 打印样式优化 */
@media print {
  .reading-progress, nav, .share-buttons, .qr-container {
    display: none;
  }
  
  .news-content {
    max-width: 100%;
    padding: 0;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  .card, .tech-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  p, li {
    orphans: 3;
    widows: 3;
  }
}

/* 标题层级样式优化 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #2c3e50;
}

h2 {
  font-size: 2.2em;
  background: linear-gradient(to right, #4CAF50, #2196F3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 10px;
}

h3 {
  font-size: 1.6em;
  position: relative;
  padding-bottom: 10px;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50 0%, #2196F3 100%);
  border-radius: 2px;
}

h4 {
  font-size: 1.3em;
  color: #34495e;
}

h5 {
  font-size: 1.1em;
  color: #34495e;
}

/* 段落样式优化 */
.news-body p {
  margin-bottom: 25px;
  text-align: justify;
  text-indent: 2em;
  transition: color 0.3s ease;
}

.news-body p:hover {
  color: #2c3e50;
}

/* 强调文本 */
.news-body strong {
  color: #4CAF50;
  font-weight: 700;
  padding: 0 2px;
}

/* 列表样式 */
.news-body ul, .news-body ol {
  margin: 25px 0;
  padding-left: 2em;
}

.news-body li {
  margin-bottom: 12px;
  line-height: 1.7;
  position: relative;
}

.news-body ul li::before {
  content: '•';
  color: #4CAF50;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* 链接样式 */
.news-body a {
  color: #2196F3;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.news-body a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #2196F3;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.news-body a:hover {
  color: #1565c0;
}

.news-body a:hover::after {
  transform-origin: bottom left;
  transform: scaleX(1);
}

/* 代码块样式 */
.news-body pre, .news-body code {
  font-family: 'Courier New', Courier, monospace;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
}

.news-body pre {
  padding: 15px;
  overflow-x: auto;
  margin: 25px 0;
  border-left: 4px solid #4CAF50;
}

.news-body pre code {
  background: none;
  padding: 0;
}

/* 引用样式增强 */
blockquote {
  border-left: 4px solid #4CAF50;
  padding-left: 20px;
  margin: 25px 0;
  color: #666;
  font-style: italic;
}

blockquote p {
  text-indent: 0 !important;
}

/* 表格样式优化 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

table th, table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

table th {
  background-color: #4CAF50;
  color: white;
  font-weight: 600;
}

table tr:nth-child(even) {
  background-color: #f8f9fa;
}

table tr:hover {
  background-color: #e8f5e9;
  transition: background-color 0.3s ease;
}

/* 打印样式 */
@media print {
  .news-content {
    box-shadow: none;
    margin-top: 0;
    max-width: 100%;
  }
  
  nav, .footer {
    display: none;
  }
  
  .reading-progress {
    display: none;
  }
  
  .news-image img {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
  }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .news-title {
    font-size: 2em;
  }
  
  .news-meta {
    flex-direction: column;
    gap: 15px;
  }
  
  .comparison-table {
    font-size: 0.9em;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .conclusion {
    padding: 25px;
  }
}

