/* --- 1. 全局变量与基础样式 (科技风核心配色) --- */
:root {
  /* 主色调：深空蓝 (专业、稳重) */
  --primary-color: #0F172A;
  /* 辅助色：天青蓝 (科技、活力) */
  --secondary-color: #38BDF8;
  /* 强调色：翡翠绿 (交互、高亮) */
  --accent-color: #10B981;
  /* 深色：炭灰 (文本/背景) */
  --dark-color: #1E293B;
  /* 浅色：浅灰 (背景/边框) */
  --light-color: #F8FAFC;
  /* 文本主色：深灰 */
  --text-primary: #1E293B;
  /* 文本次色：中灰 */
  --text-secondary: #64748B;
  /* 边框色：超浅灰 */
  --border-color: #E2E8F0;
  /* 白色：纯净白 */
  --white-color: #FFFFFF;
  /* 科技感阴影 */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.16);
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --gradient-secondary: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  --gradient-accent: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* 全局重置与基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--light-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.02) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.02) 0%, transparent 20%);
}

main {
  flex: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 标题样式 (科技感层级) */
h1, h2, h3, h4 {
  color: var(--dark-color);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  letter-spacing: -0.5px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-secondary);
  border-radius: 3px;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  margin-bottom: 0.8rem;
}

/* 段落与链接 */
p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: clamp(1rem, 1vw, 1.1rem);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 按钮样式 (科技感交互) */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: var(--white-color);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-secondary);
}

.btn:hover::after {
  left: 100%;
}

/* 区块通用样式 */
section {
  padding: clamp(60px, 10vw, 100px) 0;
}

section:nth-of-type(even) {
  background-color: var(--white-color);
}

section:nth-of-type(odd) {
  background-color: var(--light-color);
}

/* --- 2. 头部导航 (科技感固定导航) --- */
.main-header {
  background-color: var(--white-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: '';
  width: 8px;
  height: 24px;
  background: var(--gradient-secondary);
  border-radius: 4px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
}

.main-nav ul li a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  width: 100%;
}

.main-nav ul li a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* --- 3. 英雄区域 (科技感视觉核心) --- */
#hero {
  background: var(--gradient-primary);
  color: var(--white-color);
  min-height: clamp(500px, 80vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

#hero h1 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

#hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* --- 4. 解决方案 (科技感卡片布局) --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.solution-card {
  background-color: var(--white-color);
  padding: 40px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-secondary);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.solution-card:hover::before {
  transform: translateX(0);
}

.solution-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 16px rgba(56, 189, 248, 0.2);
}

/* 科技感图标样式 */
.solution-icon::before,
.solution-icon::after {
  content: '';
  position: absolute;
  background-color: var(--white-color);
}

.icon-cloud::before {
  width: 36px;
  height: 24px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  top: 30px;
  left: 12px;
}
.icon-cloud::after {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 24px;
  left: 36px;
}

.icon-data::before {
  width: 12px;
  height: 36px;
  background: #fff;
  left: 18px;
  bottom: 12px;
}
.icon-data::after {
  width: 12px;
  height: 24px;
  background: #fff;
  left: 36px;
  bottom: 12px;
}
.icon-data span {
  width: 12px;
  height: 48px;
  background: #fff;
  left: 54px;
  bottom: 12px;
  position: absolute;
}

.icon-security::before {
  width: 36px;
  height: 36px;
  border: 4px solid #fff;
  border-top: none;
  border-radius: 0 0 18px 18px;
}
.icon-security::after {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 24px;
}

.icon-ai {
  background: var(--gradient-accent);
}
.icon-ai::before {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.icon-ai::after {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: 12px;
}

.icon-iot::before {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
}
.icon-iot::after {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  left: 12px;
}

.icon-consult::before {
  width: 36px;
  height: 24px;
  background: #fff;
}
.icon-consult::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 12px solid #fff;
  position: absolute;
  top: 24px;
  left: 18px;
}

.solution-card h3 {
  color: var(--primary-color);
  margin-bottom: 16px;
}

.solution-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- 5. 关于我们 (科技感分栏) --- */
#about .about-content {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-visual {
  flex: 1;
  min-width: 300px;
  height: 400px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: move-dots 25s linear infinite;
}

@keyframes move-dots {
  from { transform: translate(0, 0); }
  to { transform: translate(-50%, -50%); }
}

.about-visual span {
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.about-action {
  margin-top: 2.5rem;
}

/* --- 6. 最新动态/内容区域 (科技感卡片) --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.news-card {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

/* 图片容器 */
.news-cover {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--gradient-secondary);
}

.news-card:nth-child(2n) .news-cover {
  background: var(--gradient-accent);
}

.news-card:nth-child(3n) .news-cover {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
}

/* 图片样式 */
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.news-card:hover .news-cover img {
  transform: scale(1.08);
}

.news-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h4 a {
  color: var(--primary-color);
  font-weight: 600;
}

.news-content h4 a:hover {
  color: var(--secondary-color);
}

.news-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  gap: 12px;
  align-items: center;
}

.news-meta a {
  color: var(--secondary-color); /* 默认使用天青蓝，突出分类属性 */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-meta a:hover {
  color: var(--primary-color);   /* 悬停变深空蓝，增加交互感 */
  text-decoration: underline;    /* 添加下划线明确链接属性 */
}

.news-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.read-more-link {
  color: var(--secondary-color);
  font-weight: 600;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more-link::after {
  content: '→';
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.read-more-link:hover {
  color: var(--primary-color);
}

.read-more-link:hover::after {
  transform: translateX(4px);
}

/* --- 7. FAQ (科技感手风琴) --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--secondary-color);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
}

.faq-question::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--secondary-color);
  font-weight: 300;
  transition: all 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  padding: 0 24px 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- 8. 页脚 (科技感深色布局) --- */
.main-footer {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 80px 0 32px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 20%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h4 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-column ul li a::before {
  content: '→';
  color: var(--secondary-color);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-8px);
}

.footer-column ul li a:hover {
  color: var(--white-color);
  padding-left: 8px;
}

.footer-column ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
}

.footer-bottom a {
  color: var(--secondary-color);
}

.footer-bottom a:hover {
  color: var(--white-color);
  text-decoration: underline;
}

/* --- 9. CMS 页面样式 (科技感适配) --- */
.breadcrumb {
  padding: 24px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--text-primary);
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb span {
  margin: 0 12px;
  color: var(--text-secondary);
}

.page-container {
  padding: clamp(60px, 8vw, 80px) 0;
}

.page-header {
  text-align: left;
  margin-bottom: 40px;
}

/* 修正：增加居中对齐样式，匹配 PHP 中的 .center-header */
.center-header {
  text-align: center;
}

.center-header .page-meta {
  justify-content: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary-color);
  font-weight: 600;
}

.page-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-meta a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-meta a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-btn:hover {
  background: var(--gradient-secondary);
  color: #fff;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-current {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--light-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Markdown 内容主体样式 */
.markdown-body {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 100%;
  overflow-x: hidden;
  padding: 8px 0;
}

.markdown-body h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.markdown-body h2::after {
  display: none;
}

.markdown-body h3 {
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.markdown-body p {
  margin-bottom: 1.8rem;
  color: var(--text-primary);
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 24px;
  margin-bottom: 1.8rem;
}

.markdown-body li {
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

/* 修正：增加 Markdown 表格样式 (原 CSS 缺失) */
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.8rem;
  display: block;
  overflow-x: auto;
}

.markdown-body th, 
.markdown-body td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.markdown-body th {
  background-color: var(--light-color);
  font-weight: 600;
  color: var(--primary-color);
}

/* 修正：增加行内代码样式 (原 CSS 缺失) */
.markdown-body code:not(pre code) {
  background: rgba(15, 23, 42, 0.05);
  color: var(--primary-color); /* 或者使用 accent-color 增加对比 */
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.markdown-body blockquote {
  border-left: 4px solid var(--secondary-color);
  background-color: rgba(56, 189, 248, 0.05);
  padding: 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.markdown-body a {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--secondary-color);
}

.markdown-body a:hover {
  border-bottom-style: solid;
  color: var(--primary-color);
}

.markdown-body hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 48px 0;
}

.markdown-body pre {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* 修正：增加视频/Iframe 的响应式支持 */
.markdown-body iframe {
  max-width: 100%;
  border-radius: 8px;
}

.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.tag-pill {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  padding: 8px 20px;
  border-radius: 24px;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.tag-pill:hover {
  background: var(--gradient-secondary);
  color: #fff;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  gap: 24px;
}

.nav-next,
.nav-prev {
  max-width: 45%;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
}

.nav-next:hover,
.nav-prev:hover {
  color: var(--secondary-color);
}

.nav-next span,
.nav-prev span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: normal;
  margin-bottom: 8px;
}

.error-page {
  text-align: center;
  padding: clamp(80px, 15vw, 120px) 0;
}

.error-page h1 {
  font-size: clamp(6rem, 10vw, 8rem);
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1;
}

.error-page p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.no-content {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

/* --- 响应式适配 (移动端科技感优化) --- */
@media (max-width: 992px) {
  h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
  }
  
  #hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
  }
  
  #about .about-content {
    gap: 40px;
  }
  
  .about-visual {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  
  .main-nav.active {
    max-height: 500px;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  
  .main-nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
  }
  
  .main-nav ul li a::after {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: left;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-next,
  .nav-prev {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #hero {
    min-height: 500px;
  }
  
  #hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }
  
  #hero p {
    font-size: 1rem;
  }
  
  section {
    padding: clamp(40px, 8vw, 60px) 0;
  }
  
  h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 2rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .solutions-grid {
    gap: 24px;
  }
  
  .solution-card {
    padding: 32px 16px;
  }
  
  .news-grid {
    gap: 24px;
  }
  
  .news-cover {
    height: 180px;
  }
}