/* ========== 全局 CSS 变量 ========== */
:root {
  --color-primary: #0a3d62; /* 深海蓝 - 主色调 */
  --color-primary-light: #1e5f9e; /* 浅科技蓝 - 点缀色 */
  --color-secondary: #7ab326; /* 辅助色 */
  --color-text: #2c3e50; /* 主要文字色 */
  --color-text-light: #5a6c7d; /* 次要文字色 */
  --color-bg-light: #f8f9fa; /* 浅色背景 */
  --color-bg-warm: #fffbf5; /* 暖白背景 */
  --color-border: #e1e8ed; /* 边框色 */
  --color-white: #ffffff; /* 纯白 */
  --font-family: "Source Han Sans CN", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --transition-base: all 0.3s ease;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ========== 全局重置与基础样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  margin: 0 auto;
  padding: 0 20px;
}

.logo{
  max-width: 100%;
  max-height: 32px;
}

/* ========== 按钮样式 ========== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn.btn-secondary {
  background-color: var(--color-primary-light);
  color: var(--color-white);
}

.btn.btn-secondary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn.btn-ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn.btn-ghost:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ========== 头部导航 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-header .brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  padding-left: 58px;
  background: url('./assets/logo.png') no-repeat left center ;
  background-size: contain;
}

.site-header .menu-btn {
  display: none;
  padding: 8px 16px;
  font-size: 16px;
  background-color: transparent;
  border: 2px solid var(--color-white);
  border-radius: 6px;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-base);
}

.site-header .menu-btn:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.site-header .main-nav {
  display: flex;
  gap: 32px;
}

.site-header .main-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
  color: var(--color-white);
  opacity: 0.8;
}

.site-header .main-nav a:hover::after,
.site-header .main-nav a.active::after {
  width: 100%;
}

.site-header .main-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-base);
}

.nav-cta .btn-primary {
  background-color: transparent;
  border: 0;
  color: var(--color-white);
}

.nav-cta .btn-primary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ========== 通用区域样式 ========== */
.section {
}

.section.section-muted {
  background-color: var(--color-bg-light);
}

/* 成功案例区背景 */
#cases {
  background: url("./assets/48598200-b2d1-48a6-9233-1c42a56c52ed.png") center/cover no-repeat;
}

#cases .section-title h2 {
  color: var(--color-white);
}

#cases .section-title p {
  color: rgba(var(--color-white), 0.9);
}

#cases .section-title svg {
  fill: var(--color-white);
  stroke: var(--color-white);
}

#cases .book-item .book-cover:hover .book-title {
  color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  width: 42px;
  height: 42px;
  transform: translateY(-5px);
}

.section-title h2 {
  display: inline-block;
  vertical-align: middle;
  font-size: 42px;
  font-weight: 700;
  color: var(--color-primary);
}

/* ========== Hero 区样式 ========== */
.hero {
  position: relative;
  height: 548px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a3d62 0%, #1e5f9e 100%);
  color: var(--color-white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  background-image: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url('./assets/library.jpg');
  background-size: contain;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero .eyebrow {
  font-size: 18px;
  margin-bottom: 16px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== 核心服务样式 ========== */
.service-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

.service-grid-stacked {
  grid-template-columns: 1fr;
}

.service-card-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  padding: 30px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.service-card-row:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.service-card-main h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-card-main .card-icon {
  flex-shrink: 0;
  color: var(--color-primary-light);
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text);
}

.service-features li {
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.service-card-deliverable {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-deliverable-label {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.service-deliverable-desc {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.service-deliverable-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.service-deliverable-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: var(--transition-base);
}

.service-deliverable-img:hover {
  transform: scale(1.05);
}

.service-cta {
  text-align: center;
  margin-top: 20px;
}

/* ========== 核心优势样式 ========== */
.advantage-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 30px;
}

.highlight-cards {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 40px;
}

.advantage-grid:not(.highlight-cards) {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.card-highlight {
  border: 2px solid #b8860b;
  background: var(--color-bg-warm);
}

.card-sale-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  z-index: 1;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.card .card-icon {
  flex-shrink: 0;
}

.advantage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: var(--color-text);
  position: relative;
  z-index: 2;
}

.advantage-list li {
  position: relative;
  padding-left: 20px;
}

.advantage-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* ========== 成功案例样式 ========== */
.cases-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-item-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.case-content-item {
  color: var(--color-white);
  padding: 20px;
}

.case-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--color-white);
}

.case-content-item p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(var(--color-white), 0.9);
}

.case-single-image-wrap {
  border-radius: 12px;
  overflow: hidden;
}

.book-item {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

.book-item img {
  width: 100%;
  height: auto;
  transition: var(--transition-base);
}

.book-item img:hover {
  transform: scale(1.05);
}

/* ========== 联系我们样式 ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 16px;
  font-family: var(--font-family);
  transition: var(--transition-base);
}

.contact-form input:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(30, 95, 158, 0.1);
}

.form-tip {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text-light);
  text-align: center;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  background: var(--color-bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-light);
  text-align: center;
  padding: 10px;
}

/* ========== 页脚样式 ========== */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 40px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition-base);
}

.footer-nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========== 媒体模态框 ========== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.video-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  width: 100%;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition-base);
}

.video-modal-close:hover {
  color: var(--color-primary-light);
  transform: scale(1.1);
}

.video-modal-player {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
}

.video-modal-image {
  max-height: 80vh;
  object-fit: contain;
}

/* ========== 渐显动画 ========== */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
}

/* ========== 响应式样式 ========== */
@media (max-width: 1024px) {
  .service-card-row {
    grid-template-columns: 1fr;
  }

  .advantage-grid:not(.highlight-cards) {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-item-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .site-header .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
  }

  .site-header .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .site-header .menu-btn {
    display: block;
  }

  .highlight-cards {
    grid-template-columns: 1fr;
  }

  .advantage-grid:not(.highlight-cards) {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .service-card-row {
    padding: 20px;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

  .service-card-main h3 {
    font-size: 20px;
  }
}