/* src/index.css */
/* 
 * 模块化注释：全局变量与基础重置
 * 遵循BEM规范，未使用Tailwind CSS
 */
:root {
  --color-primary: #124036;
  --color-primary-light: #1c5e50;
  --color-secondary: #e5efe9;
  --color-text-main: #333333;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-bg-light: #f5f7f6;
  --color-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, sans-serif;
  --font-family-serif: 'Playfair Display', 'Noto Serif SC', 'Times New Roman', serif;
  
  --container-width: 1200px;
  --transition-speed: 0.4s;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
  
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 20px 40px -10px rgba(18, 64, 54, 0.08);
  --shadow-lg: 0 30px 60px -15px rgba(18, 64, 54, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =========================================
   模块：布局公共类
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   模块：动画引擎
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* =========================================
   模块：顶部导航栏 (Header)
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: all 0.4s var(--ease-out-expo);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__list {
  display: flex;
  gap: 40px;
}

.nav__item {
  position: relative;
}

.nav__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 28px 0;
}

.nav__link:hover, .nav__link.is-active {
  color: var(--color-primary);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-main);
  transition: background 0.2s, color 0.2s;
  font-size: 14px;
}

.nav__dropdown-item a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__search-btn {
  color: var(--color-text-main);
  transition: color 0.3s;
}
.header__search-btn:hover {
  color: var(--color-primary);
}

.lang {
  position: relative;
}

.lang__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}

.lang__toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.lang:hover .lang__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(-5px);
}

.lang__item {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  color: var(--color-text-main);
}

.lang__item:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.mobile-toggle {
  display: none;
  color: var(--color-text-main);
}

/* =========================================
   模块：搜索弹窗 (Search Modal)
   ========================================= */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.search-modal__content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 600px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  z-index: 1;
  transform: translateY(20px);
  animation: modalIn 0.3s forwards;
}

@keyframes modalIn {
  to { transform: translateY(0); }
}

.search-modal__form {
  display: flex;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 10px;
}

.search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 20px;
  padding: 10px 0;
}

.search-modal__btn {
  color: var(--color-primary);
  padding: 0 10px;
}

.search-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--color-text-muted);
  transition: color 0.3s;
}
.search-modal__close:hover {
  color: var(--color-primary);
}

/* =========================================
   模块：首屏横幅 (Hero Section)
   ========================================= */
.hero {
  padding-top: var(--header-height);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__backgrounds {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 5s linear;
  transform: scale(1.05);
}

.hero__bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__dots {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 40px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(18, 64, 54, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero__dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-primary);
}

.hero__content {
  max-width: 600px;
}

.hero__tagline {
  font-family: var(--font-family-serif);
  color: var(--color-text-light);
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero__title {
  font-size: 38px;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 22px;
  color: var(--color-text-main);
  margin-bottom: 40px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.5s var(--ease-out-expo);
  letter-spacing: 1px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(18, 64, 54, 0.15);
}

.btn--primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(18, 64, 54, 0.25);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}

.btn--outline:hover {
  background: #fff;
  color: var(--color-primary);
}

/* =========================================
   模块：公共内容区块 (Common Sections)
   ========================================= */
.section {
  padding: 100px 0;
}

.section--light {
  background-color: var(--color-bg-light);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40' fill='%23124036' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.section__container {
  display: flex;
  gap: 80px;
}

.section__sidebar {
  width: 200px;
  flex-shrink: 0;
}

.section__main {
  flex: 1;
}

.section__title {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.section__title-en {
  font-family: var(--font-family-serif);
  font-size: 20px;
  color: var(--color-border);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 15px;
}

.section__link:hover {
  color: var(--color-primary);
}

/* =========================================
   模块：产品中心 (Products Section)
   ========================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  perspective: 1200px;
}

.product-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.6s var(--ease-out-expo);
  border: 1px solid var(--color-border);
  transform-style: preserve-3d;
  position: relative;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(18, 64, 54, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg);
  box-shadow: var(--shadow-lg);
  border-color: rgba(18, 64, 54, 0.15);
}

.product-card__image {
  overflow: hidden;
  position: relative;
  border-radius: 11px 11px 0 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__icon {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(18, 64, 54, 0.3);
  transform: translateZ(0px);
  transition: all 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card__icon {
  transform: translateZ(40px) translateY(-5px);
  box-shadow: 0 15px 30px rgba(18, 64, 54, 0.4);
}

.product-card__content {
  padding: 10px;
  transform-style: preserve-3d;
}

.product-card__title {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--color-primary);
  transform: translateZ(0px);
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card__title {
  transform: translateZ(30px);
}

.product-card__desc {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 6px;
  min-height: 44px;
  transform: translateZ(0px);
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card__desc {
  transform: translateZ(20px);
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform: translateZ(0px);
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card__tags {
  transform: translateZ(25px);
}

.product-tag {
  background: var(--color-bg-light);
  color: var(--color-text-muted);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--color-border);
}

/* =========================================
   模块：应用领域 (Applications Section)
   ========================================= */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.app-card {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--ease-out-expo);
}

.app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.app-card:hover img {
  transform: scale(1.08);
}

.app-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 64, 54, 0.95), rgba(18, 64, 54, 0.2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: background 0.3s;
}

.app-card:hover .app-card__overlay {
  background: linear-gradient(to top, rgba(18, 64, 54, 0.95), rgba(18, 64, 54, 0.5));
}

.app-card__icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card__title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 10px;
}

/* =========================================
   模块：关于我们 (About Section)
   ========================================= */
.about-section {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.about__image {
  height: 100%;
  position: relative;
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18, 64, 54, 0.2), rgba(18, 64, 54, 0.8));
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content {
  padding: 120px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__title {
  font-size: 28px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 20px;
}

.about__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-secondary);
}

.about__subtitle {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
}

.about__desc {
  color: rgba(255,255,255,0.8);
  margin-bottom: 48px;
  font-size: 15px;
  line-height: 1.8;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.about-feature__icon {
  margin-bottom: 16px;
  color: var(--color-secondary);
}

.about-feature__title {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 500;
}

.about-feature__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* =========================================
   模块：新闻资讯 (News Section)
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--ease-out-expo);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: rgba(18, 64, 54, 0.15);
}

.news-card__image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.news-card:hover .news-card__image-wrap img {
  transform: scale(1.08);
}

.news-card__date {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.news-card__date span {
  display: block;
  font-size: 13px;
  font-weight: normal;
  opacity: 0.8;
  margin-top: 2px;
}

.news-card__content {
  padding: 30px;
}

.news-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.5;
  color: var(--color-primary);
}

.news-card__desc {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__link {
  color: var(--color-text-main);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: color 0.3s;
}

.news-card:hover .news-card__link {
  color: var(--color-primary);
}

/* =========================================
   模块：页脚 (Footer Section)
   ========================================= */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 100px 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr 1.5fr 2fr;
  gap: 50px;
  margin-bottom: 80px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer__desc {
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer__title {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 30px;
}

.footer__links li {
  margin-bottom: 16px;
}

.footer__links a {
  font-size: 14px;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__qrs {
  display: flex;
  gap: 24px;
}

.qr-box {
  text-align: center;
  font-size: 13px;
}

.qr-box img {
  width: 120px;
  height: 120px;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.footer__friends {
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__friends-label {
  white-space: nowrap;
  margin-right: 16px;
}

.footer__friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__friends-list a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-speed) var(--ease-out-expo);
}

.footer__friends-list a:hover {
  color: var(--color-white);
}

.footer__bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   模块：响应式适配 (Responsive Media Queries)
   ========================================= */
@media (max-width: 1024px) {
  .section__container {
    flex-direction: column;
    gap: 40px;
  }
  
  .section__sidebar {
    width: 100%;
  }

  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
  }
  
  .about__image {
    height: 400px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   Inner Pages Styles
   ========================================= */
.page-banner {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 64, 54, 0.7);
  z-index: 1;
}

.page-banner__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-banner__title {
  font-family: var(--font-family-serif);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.page-banner__desc {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
}

.inner-layout {
  padding: 80px 0;
}

.inner-layout__container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}

.inner-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.inner-sidebar__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-primary);
}

.inner-menu {
  list-style: none;
}

.inner-menu__item {
  margin-bottom: 10px;
}

.inner-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-bg-light);
  color: var(--color-text-main);
  border-radius: 8px;
  transition: all var(--transition-speed) var(--ease-out-expo);
  font-weight: 500;
}

.inner-menu__link:hover, .inner-menu__link.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}

.inner-content__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.inner-content__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
}

/* Products Grid Inner */
.products-grid--inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-info__icon {
  width: 50px;
  height: 50px;
  background: var(--color-bg-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-info__content h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.contact-info__content p {
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-light);
  transition: all 0.3s;
  font-family: inherit;
  font-size: 15px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 64, 54, 0.1);
}

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

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-year {
  font-size: 24px;
  font-family: var(--font-family-serif);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.timeline-content {
  background: var(--color-bg-light);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}

.pagination__item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  font-family: inherit;
  font-size: 15px;
}

.pagination__item:hover:not(:disabled), .pagination__item.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination__item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-bg-light);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 400px;
  background: #e9ecef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  margin-top: 60px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.category-tab {
  padding: 8px 24px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-weight: 500;
}

.category-tab:hover, .category-tab.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* News Card */
.news-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-card__image {
  width: 300px;
  flex-shrink: 0;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.news-card__category {
  background: rgba(18, 64, 54, 0.1);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.news-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-light);
  font-size: 14px;
}

.news-card__title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.news-card__title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

.news-card__desc {
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
}

.news-card__action {
  margin-top: 20px;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.news-card__link:hover {
  text-decoration: underline;
}

/* App Card */
.app-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .app-card__grid--reverse .app-card__text-col {
    order: 2;
  }
  .app-card__grid--reverse .app-card__img-col {
    order: 1;
  }
}

.app-card__img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 991px) {
  .inner-layout__container {
    grid-template-columns: 1fr;
  }
  
  .inner-sidebar {
    position: static;
  }
  
  .products-grid--inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    flex-direction: column;
  }
  
  .news-card__image {
    width: 100%;
    height: 200px;
  }

  .app-card__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .app-card__img {
    height: 200px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #fff;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__item {
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link {
    justify-content: space-between;
    padding: 20px 0;
    font-size: 18px;
  }

  .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    display: none;
    padding: 0 0 20px 20px;
  }

  .nav__item.is-active .nav__dropdown {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 40px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__friends {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .footer__friends-label {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__top {
    grid-template-columns: 1fr;
  }
  
  .hero__features {
    flex-direction: column;
  }
}


/* ==== 静态化追加：条件渲染组件默认态（常驻 DOM + .is-open 显示） ==== */
.search-modal { display: none; }
.search-modal.is-open { display: flex; }

/* ==== 静态化追加：lucide → Font Awesome 尺寸映射（lucide size → font-size） ==== */
.header__logo-icon i { font-size: 36px; }
.nav__link i { font-size: 16px; }
.header__search-btn i { font-size: 22px; }
.lang__toggle i { font-size: 16px; }
.lang__toggle i.fa-chevron-down { font-size: 14px; }
.mobile-toggle i { font-size: 26px; }
.search-modal__btn i { font-size: 24px; }
.search-modal__close i { font-size: 30px; }
.footer__logo i { font-size: 32px; }
.footer__contact-item i { font-size: 16px; }
.feature-tag i { font-size: 16px; }
.hero__content .btn i { font-size: 18px; }
.section__link i { font-size: 16px; }
.product-card__icon i { font-size: 28px; }
.app-card__icon i { font-size: 28px; }
.about-feature__icon i { font-size: 32px; }
.about__content .btn i { font-size: 18px; }
.news-card__link i { font-size: 16px; }
.inner-menu__link i { font-size: 18px; }
.pagination__item i { font-size: 18px; }
.breadcrumb-section i { font-size: 14px; }
.product-detail__back i { font-size: 18px; }
.product-detail__features li i { font-size: 20px; }
.news-card__date i { font-size: 16px; }
.news-detail__meta i { font-size: 16px; }
.news-detail__tags > i { font-size: 18px; }
.contact-info__icon i { font-size: 24px; }
.map-placeholder i { font-size: 48px; }

/* ==========================================
   CMS 适配段：logo 限高 / 幻灯片显隐 / 分页结构映射 / 内页补齐
   （适配讯睿CMS模板 xr0085，注释供维护参考）
   ========================================== */

/* 一、Logo 图片限高（header 高 80px，原设计无 img 规则防溢出） */
.header__logo img { height: 44px; width: auto; object-fit: contain; }
.footer__logo img { height: 36px; width: auto; object-fit: contain; }

/* 二、首页幻灯片显隐 + 文字动效（配 main.js initHeroSlider 切换 .is-active） */
.hero__bg-slide {
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease-in-out, transform 5s linear, visibility 0s linear 1s;
}
.hero__bg-slide.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 1s ease-in-out, transform 5s linear, visibility 0s;
}
/* 每张幻灯片自带文字层（CMS 每张图配独立文案），覆盖在背景之上 */
.hero__slide-text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero__slide-text .container { width: 100%; }
.hero__slide-btns { display: flex; flex-wrap: wrap; gap: 16px; }
/* 激活幻灯片内文字逐行上浮进入 */
.hero__slide-text .hero__content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease .25s, transform .7s ease .25s; }
.hero__bg-slide.is-active .hero__content > *:nth-child(2) { transition-delay: .35s; }
.hero__bg-slide.is-active .hero__content > *:nth-child(3) { transition-delay: .45s; }
.hero__bg-slide.is-active .hero__content > *:nth-child(4) { transition-delay: .55s; }
.hero__bg-slide.is-active .hero__content > * { opacity: 1; transform: none; }
/* 指示点固定在首屏底部居中（原样式为文档流内 margin-top 定位） */
.hero__dots { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; justify-content: center; margin-top: 0; }

/* 三、CMS 分页结构映射：ul.pagination > li > a 复用 .pagination__item 按钮样式 */
ul.pagination { flex-wrap: wrap; }
ul.pagination li { display: flex; }
ul.pagination li a {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-main);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
}
ul.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
ul.pagination li.active a { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* 四、内页 banner 背景图与面包屑（page-banner 原设计仅纯色底，无 img/面包屑规则） */
.page-banner__bg { position: absolute; inset: 0; z-index: 0; }
.page-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner__breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.page-banner__breadcrumbs a { color: rgba(255, 255, 255, 0.8); transition: color 0.3s; }
.page-banner__breadcrumbs a:hover { color: #fff; }
.page-banner__breadcrumbs i { font-size: 12px; opacity: 0.7; }

/* 五、详情/富文本正文排版（$content 输出，原设计无正文样式） */
.detail-body { line-height: 1.9; font-size: 15px; color: var(--color-text-main); }
.detail-body p { margin-bottom: 16px; }
.detail-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.detail-body h2, .detail-body h3, .detail-body h4 { color: var(--color-primary); margin: 28px 0 12px; font-size: 20px; }
.detail-body ul, .detail-body ol { padding-left: 22px; margin-bottom: 16px; }
.detail-body ul { list-style: disc; }
.detail-body ol { list-style: decimal; }
.detail-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-body table td, .detail-body table th { border: 1px solid var(--color-border); padding: 10px 12px; }
.detail-body blockquote { border-left: 3px solid var(--color-primary); background: var(--color-bg-light); padding: 12px 16px; margin: 16px 0; color: var(--color-text-muted); }

/* 六、详情页上下篇导航 */
.detail-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.detail-nav .is-disabled { color: var(--color-text-light); pointer-events: none; }

/* 6.1 详情页 meta 行：.news-card__date 首段定义是首页卡片角标（absolute 贴图），
   在 meta 行内必须还原为行内元素，否则日期/作者/阅读数会被甩出标题下方 */
.news-card__meta .news-card__date {
  position: static;
  background: none;
  color: var(--color-text-light);
  padding: 0;
  font-weight: 400;
  text-align: left;
}

/* 七、横向 news-card 纵向堆叠间距 */
.news-card + .news-card { margin-top: 24px; }

/* 八、卡片整卡为 <a> 时的块级化（原生样式按 div 设计） */
a.product-card { display: block; color: inherit; }
a.app-card { display: block; }

/* 九、图文行/合作伙伴 logo 墙间距与样式 */
.app-card__grid + .app-card__grid { margin-top: 60px; }

/* 9.1 交错修正：主题原版 reverse 写反了（img order:1 / text order:2，与默认 0,0 视觉相同）。
   正确逻辑：reverse 时文字 order:1 排前、图片 order:2 排后，图片才落到右侧 */
@media (min-width: 992px) {
  .app-card__grid--reverse .app-card__text-col { order: 1; }
  .app-card__grid--reverse .app-card__img-col { order: 2; }
}
.partner-logo { height: 110px; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 16px; transition: all 0.3s; }
.partner-logo:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.partner-logo img { max-height: 100%; width: auto; object-fit: contain; }

/* 十、"查看全部/返回"链接与后续内容的间距 */
.section__link { margin-bottom: 32px; }

/* 十一、联系页地图图片（复用 map-placeholder 容器，图片铺满） */
.map-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* 十二、搜索页表单与结果的间距 */
.search-modal__form { margin-bottom: 40px; }

/* 十三、移动端产品网格降为单列 */
@media (max-width: 768px) {
  .products-grid--inner { grid-template-columns: 1fr; }
}

/* 十四、footer 扩展：CMS 模板含 4 组分类链接列（原设计 3 组，5 列 → 6 列），
   并为 footer__bottom 内的 a 链接补配色 */
@media (min-width: 1024px) {
  .footer__top { grid-template-columns: 3fr 1.1fr 1.1fr 1.1fr 1.1fr 2.2fr; }
}
/* footer 联系方式栏目（最右列，含二维码） */
.footer__col .footer__qrs { margin-top: 20px; gap: 16px; }
.footer__col .qr-box img { width: 96px; height: 96px; }
.footer__bottom a { color: rgba(255, 255, 255, 0.4); margin: 0 6px; }
.footer__bottom a:hover { color: #fff; }

/* 十五、移动端取消 header 毛玻璃：backdrop-filter 会把 header 变成后代 fixed 的包含块，
   导致移动端侧滑菜单 .nav（fixed）被劫持为相对 header 定位而错位；桌面端不受影响保留毛玻璃 */
@media (max-width: 991px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ==========================================
   CMS 适配段：FAQ 手风琴（默认全收起，单开）
   ========================================== */
.faq-page-title { font-size: 32px; font-weight: 700; color: var(--color-text-main); text-align: center; margin-bottom: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color var(--transition-speed); }
.faq-item--active { border-color: var(--color-primary); }
.faq-item__header { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left; font-size: 16px; font-weight: 500; color: var(--color-text-main); font-family: inherit; }
.faq-item__icon { flex-shrink: 0; color: var(--color-text-muted); transition: transform var(--transition-speed); }
.faq-item--active .faq-item__icon { transform: rotate(45deg); color: var(--color-primary); }
.faq-item__content { max-height: 0; overflow: hidden; transition: max-height var(--transition-speed); }
.faq-item--active .faq-item__content { max-height: 400px; }
.faq-item__text { padding: 0 22px; color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }
.faq-item__details-btn { display: inline-flex; align-items: center; gap: 6px; margin: 14px 22px 18px; font-size: 14px; font-weight: 500; color: var(--color-primary); }
.faq-item__details-btn:hover { color: var(--color-primary-light); }

/* ==========================================
   CMS 适配段：首页 news-grid 内 news-card 恢复竖版布局
   （适配段的左图右文横向卡仅供新闻列表页堆叠使用；
     首页三列网格内恢复上图下文，卡片一行三个）
   ========================================== */
.news-grid .news-card { display: block; }
.news-grid .news-card + .news-card { margin-top: 0; }
.news-grid .news-card__image { width: 100%; height: 200px; }
.news-grid .news-card__content { padding: 24px; }

/* ==========================================
   CMS 适配段：产品列表卡片等高
   （图片固定比例裁剪 + 描述两行截断 + 卡片 flex 等高）
   ========================================== */
.products-grid--inner .product-card { height: 100%; display: flex; flex-direction: column; }
.products-grid--inner .product-card__image { flex-shrink: 0; }
.products-grid--inner .product-card__content { flex: 1; display: flex; flex-direction: column; }
.products-grid--inner .product-card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 栅格等宽：子项默认 min-width:auto 会被大图固有宽度撑破 1fr 轨道，强制归零 */
.products-grid--inner > .product-card,
.products-grid > .product-card { min-width: 0; }
.product-card__image img { display: block; }

/* ==========================================
   CMS 适配段：侧栏分类树形展开（三级子分类）
   ========================================== */
.inner-menu__sublist { list-style: none; margin: 4px 0 6px; padding: 0 0 0 16px; border-left: 2px solid rgba(18, 64, 54, 0.15); }
.inner-menu__sublist li + li { margin-top: 2px; }
.inner-menu__sublink { display: block; padding: 8px 10px; font-size: 14px; color: var(--color-text-muted); border-radius: 6px; transition: color 0.2s ease, background 0.2s ease; }
.inner-menu__sublink:hover { color: var(--color-primary); background: rgba(18, 64, 54, 0.05); }
.inner-menu__sublink.is-active { color: var(--color-primary); font-weight: 600; background: rgba(18, 64, 54, 0.07); }

/* fix: card image / whole-card clickable links */
a.img-link { display: block; width: 100%; height: 100%; }
a.img-link > img { display: block; }
a.card-link { display: block; }

/* ==========================================
   友情链接独立内页（links.html）样式
   ========================================== */
.links-page { padding: 60px 0 100px; }
.links-page__title { font-size: 32px; font-weight: 700; color: var(--color-text-main); margin-bottom: 12px; }
.links-page__desc { font-size: 15px; color: var(--color-text-muted); margin-bottom: 40px; }
.links-page__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.links-page__item { display: flex; align-items: center; justify-content: center; padding: 16px 20px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 8px; font-size: 15px; color: var(--color-text-main); text-decoration: none; transition: all 0.3s; }
.links-page__item:hover { border-color: var(--color-primary); color: var(--color-primary); }
.links-page__empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--color-text-muted); font-size: 16px; }
/* footer "更多友情链接" 入口（继承友链区配色，深色底上保持可读） */
.footer__friends-more { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer__friends-more:hover { opacity: 0.75; }
