/* =============== 全局基础样式 =============== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #111827;
  background-color: #f5f7fb;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============== 布局容器 =============== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =============== 顶部工具条 =============== */
.topbar {
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.875rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 36px;
}

.topbar a {
  opacity: 0.9;
}

.topbar a:hover {
  opacity: 1;
  text-decoration: underline;
}

.topbar .divider {
  opacity: 0.5;
}

/* =============== 头部导航 =============== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 新 LOGO 图片样式 */
.logo img,
.logo-img {
  height: 96px;       /* 你可以根据效果改成 32/36/48 等 */
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 1rem;
  color: #0f172a;
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
  color: #374151;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: #111827;
  font-weight: 600;
}

.main-nav a.active::after {
  width: 100%;
}

/* 移动端导航（简单处理，后面可以再加汉堡菜单） */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 0.9rem;
  }
}

/* =============== Hero BANNER =============== */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 50%, #020617 100%);
  color: #f9fafb;
  padding: 72px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle at 20% 20%, #22d3ee 0, transparent 55%),
    radial-gradient(circle at 80% 0%, #60a5fa 0, transparent 60%),
    radial-gradient(circle at 100% 80%, #1d4ed8 0, transparent 55%);
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.8), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-banner h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.hero-subtitle {
  font-size: 0.95rem;
  max-width: 36em;
  color: #e5e7eb;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* BANNER 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-secondary:hover {
  border-color: #e5e7eb;
  background: rgba(15, 23, 42, 0.6);
}

/* 移动端 BANNER 调整 */
@media (max-width: 768px) {
  .hero-banner {
    padding: 56px 0 64px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 12px;
  }

  .btn {
    width: auto;
  }
}

/* =============== 通用区块样式 =============== */
.section {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 32px;
  text-align: left;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 48em;
}

/* =============== 公司简介区块 =============== */
.about-section {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-item {
  padding: 20px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.about-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #111827;
}

.about-item p {
  font-size: 0.92rem;
  color: #4b5563;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* =============== 代理品牌区块 =============== */
.brands-section {
  background: #f3f4f6;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.brand-card {
  padding: 18px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
  border-color: #2563eb;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: #111827;
}

.brand-desc {
  font-size: 0.9rem;
  color: #4b5563;
}

@media (max-width: 992px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}

/* =============== 应用场景区块 =============== */
.scenarios-section {
  background: #ffffff;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scenario-card {
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.18s ease;
}

.scenario-card:hover {
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.scenario-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #111827;
}

.scenario-card p {
  font-size: 0.9rem;
  color: #4b5563;
}

@media (max-width: 768px) {
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
}

/* =============== 新闻列表区块 =============== */
.news-section {
  background: #f3f4f6;
}

.news-list {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.93rem;
  border-bottom: 1px solid #e5e7eb;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list a {
  color: #1f2933;
}

.news-list a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.news-date {
  font-size: 0.82rem;
  color: #6b7280;
  margin-left: 16px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .news-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .news-date {
    margin-left: 0;
  }
}

/* =============== 页脚 =============== */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr;
  gap: 24px;
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #f9fafb;
}

.footer-col p {
  color: #9ca3af;
  margin-bottom: 4px;
}

.footer-col ul li + li {
  margin-top: 4px;
}

.footer-col a {
  color: #9ca3af;
}

.footer-col a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid #111827;
  padding: 12px 0 16px;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* =============== 小的通用微调 =============== */
.section + .section {
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 24px;
  }
}
