/* ===================================
   日照知创信息科技官网 - 全局样式
   =================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --color-primary: #165DFF;
  --color-primary-light: #4080FF;
  --color-primary-dark: #0D3B8C;
  --color-primary-bg: #E8F0FE;
  --color-dark: #1D2129;
  --color-gray: #4E5969;
  --color-gray-light: #86909C;
  --color-gray-lighter: #C9CDD4;
  --color-gray-bg: #F5F7FA;
  --color-accent: #FF7D00;
  --color-accent-light: #FF9A2E;
  --color-accent-bg: #FFF3E8;
  --color-success: #00B42A;
  --color-success-bg: #E8F8EE;
  --color-white: #FFFFFF;
  --color-border: #E5E6EB;
  --max-width: 1200px;
  --header-height: 72px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 标题 ---------- */
.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-gray);
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  transition: all 250ms var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-lg {
  padding: 14px 40px;
  font-size: 18px;
}

/* ---------- 页头导航 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: transparent;
  transition: background 300ms var(--transition), box-shadow 300ms var(--transition);
}

/* 顶部透明态：文字和图标为白色 */
.header:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
}

.header:not(.scrolled) .nav-list a {
  color: rgba(255,255,255,0.85);
}

.header:not(.scrolled) .nav-list a:hover,
.header:not(.scrolled) .nav-list a.active {
  color: var(--color-white);
}

.header:not(.scrolled) .nav-list a::after {
  background: var(--color-white);
}

.header:not(.scrolled) .hamburger span {
  background: var(--color-white);
}

.header:not(.scrolled) .header-cta .btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

/* 滚动后白色背景态 */
.header.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .logo img {
  filter: none;
}

.header.scrolled .nav-list a {
  color: var(--color-gray);
}

.header.scrolled .nav-list a:hover,
.header.scrolled .nav-list a.active {
  color: var(--color-primary);
}

.header.scrolled .nav-list a::after {
  background: var(--color-primary);
}

.header.scrolled .hamburger span {
  background: var(--color-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  transition: filter 300ms var(--transition);
}

.logo img {
  height: 42px;
  width: auto;
  transition: filter 300ms var(--transition);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list a {
  font-size: 15px;
  font-weight: 500;
  transition: color 200ms var(--transition);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  transition: width 300ms var(--transition), background 300ms var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  transition: all 300ms var(--transition), background 300ms var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端导航 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  padding-top: var(--header-height);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  padding: 12px 0;
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

/* ---------- Hero 区 ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2E7A 0%, #165DFF 50%, #0D3B8C 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 122, 0.5);
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 24px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-content .hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 内页 Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, #0A2E7A 0%, #165DFF 50%, #0D3B8C 100%);
  padding: 120px 0 60px;
  text-align: center;
  color: var(--color-white);
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* ---------- 板块通用 ---------- */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--color-gray-bg);
}

/* ---------- 核心优势区 ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 300ms var(--transition);
}

.advantage-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.advantage-card .adv-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.advantage-card p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.6;
}

/* ---------- 产品卡片 ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 300ms var(--transition);
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-gray-bg);
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-card-body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.tag-accent {
  background: var(--color-accent-bg);
  color: var(--color-accent);
}

.tag-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

/* ---------- 方案卡片 ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 300ms var(--transition);
}

.solution-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.solution-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-gray-bg);
}

.solution-card-body {
  padding: 24px;
}

.solution-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.solution-card-body p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---------- 案例卡片 ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 300ms var(--transition);
}

.case-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.case-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--color-gray-bg);
}

.case-card-body {
  padding: 20px;
}

.case-card-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-card-body p {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.5;
}

/* ---------- CTA 区域 ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--color-white);
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 16px;
}

.cta-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.cta-form input:focus {
  background: rgba(255,255,255,0.25);
  border-color: var(--color-white);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  transition: color 200ms var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---------- 表单通用 ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 200ms var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22,93,255,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: 13px;
  color: #F53F3F;
  margin-top: 4px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #F53F3F;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.active {
  display: block;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 14px;
  color: var(--color-gray-light);
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb a {
  color: var(--color-gray);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .sep {
  margin: 0 8px;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-gray);
  transition: all 200ms var(--transition);
}

.pagination a:hover,
.pagination span.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ---------- 时间轴 ---------- */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  width: 45%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 300ms var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
}

.timeline-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--color-gray);
}

/* ---------- 统计数字 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 15px;
  color: var(--color-gray);
  margin-top: 8px;
}

/* ---------- 筛选标签 ---------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  border: 1px solid var(--color-border);
  transition: all 200ms var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ---------- 详情页内容区 ---------- */
.detail-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.detail-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
}

.detail-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.detail-content p {
  font-size: 16px;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.detail-content img {
  margin: 24px 0;
  border-radius: var(--radius-md);
}

/* ---------- 联系页面 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--color-gray);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 700px;
  margin: 40px auto 0;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  background: var(--color-white);
  transition: background 200ms var(--transition);
}

.faq-question:hover {
  background: var(--color-gray-bg);
}

.faq-question .faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 300ms var(--transition);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 300ms var(--transition);
  color: var(--color-gray);
  font-size: 14px;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 300px;
}

/* ---------- 关于页 ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-intro-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-intro-text p {
  font-size: 16px;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* 资质荣誉 */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.honor-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 300ms var(--transition);
}

.honor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.honor-card .honor-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.honor-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.honor-card p {
  font-size: 13px;
  color: var(--color-gray-light);
}

/* 合作伙伴 */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 300ms var(--transition);
}

.partner-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.partner-item img {
  max-height: 40px;
  opacity: 0.6;
  transition: opacity 300ms;
}

.partner-item:hover img {
  opacity: 1;
}

/* ---------- 新闻卡片 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 300ms var(--transition);
}

.news-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-gray-bg);
}

.news-card-body {
  padding: 20px;
}

.news-card-meta {
  font-size: 13px;
  color: var(--color-gray-light);
  margin-bottom: 8px;
}

.news-card-body h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-card-body p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
}

/* ---------- Toast 提示 ---------- */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 15px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 300ms var(--transition);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

.toast-success {
  background: var(--color-success);
}

.toast-error {
  background: #F53F3F;
}

/* ---------- 加载动画 ---------- */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 淡入动画 ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms var(--transition), transform 600ms var(--transition);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 交错延迟 */
.delay-1 { transition-delay: 0ms; }
.delay-2 { transition-delay: 80ms; }
.delay-3 { transition-delay: 160ms; }
.delay-4 { transition-delay: 240ms; }
.delay-5 { transition-delay: 320ms; }

/* ---------- 新闻详情页 ---------- */
.news-detail-header {
  margin-bottom: 32px;
}

.news-detail-header .meta {
  font-size: 14px;
  color: var(--color-gray-light);
  margin-bottom: 16px;
}

.news-detail-header h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.news-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-dark);
}

.news-body p {
  margin-bottom: 20px;
  color: var(--color-gray);
}

.news-body h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--color-dark);
}

/* ---------- 产品详情 ---------- */
.product-hero {
  padding: 100px 0 60px;
  background: var(--color-gray-bg);
}

.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.product-hero-text h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-hero-text .slogan {
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 24px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-item-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item-text p {
  font-size: 14px;
  color: var(--color-gray);
}

/* 价格方案 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 300ms var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  border-radius: 20px;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-card .price {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gray-light);
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-gray);
  border-bottom: 1px solid var(--color-border);
}

.pricing-features li::before {
  content: '✓ ';
  color: var(--color-success);
  font-weight: 700;
}

/* 客户评价 */
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial-card .quote {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card .author {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.testimonial-card .company {
  font-size: 13px;
  color: var(--color-gray-light);
}

/* ---------- 实施流程 ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: var(--color-border);
}

.process-step:last-child::after {
  display: none;
}

.process-step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.process-step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.process-step p {
  font-size: 13px;
  color: var(--color-gray-light);
}

/* ---------- 复制按钮 ---------- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 4px;
  transition: background 200ms;
}

.copy-btn:hover {
  background: var(--color-primary-bg);
}

/* ===================================
   响应式设计
   =================================== */

/* 平板断点: 768px - 1023px */
@media (max-width: 1023px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  /* 网格调整 */
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .product-hero-inner {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .honors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-step::after {
    display: none;
  }

  /* 导航栏 */
  .nav-list {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta .btn {
    display: none;
  }

  /* 时间轴 */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 40px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    width: 100%;
  }
}

/* 移动端断点: < 768px */
@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content .hero-subtitle {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  /* 网格全变单列 */
  .advantages-grid,
  .products-grid,
  .solutions-grid,
  .cases-grid,
  .news-grid,
  .stats-grid,
  .footer-grid,
  .honors-grid,
  .partners-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form input {
    min-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .detail-content {
    padding: 20px 0;
  }

  .detail-content h2 {
    font-size: 24px;
  }

  .news-detail-header h1 {
    font-size: 24px;
  }

  .product-hero {
    padding: 80px 0 40px;
  }

  .product-hero-text h1 {
    font-size: 28px;
  }

  .pricing-card {
    padding: 24px;
  }

  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    padding: 6px 16px;
    font-size: 13px;
  }

  .timeline-item {
    padding-left: 28px;
  }

  .stat-number {
    font-size: 36px;
  }
}
