/* 全局浅色主题变量 官网Light Mode原版色值 */
:root {
  --bg-dark: #ffffff;
  --bg-light: #f7f8fc;
  --bg-card: #ffffff;
  --bg-card-dark: #f0f1f9;
  --primary: #7a5cf0;
  --primary-light: #9b84f7;
  --accent-orange: #ff5a3c;
  --text-white: #171723;
  --text-gray: #424259;
  --text-light-gray: #777791;
  --text-dark: #0f0f18;
  --border-gray: #e0e0ee;
  --border-dark: #d0d0e6;
  --shadow-card: 0 6px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 32px rgba(122, 92, 240, 0.12);
  --transition-base: all 0.28s ease-out;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container-max: 1440px;
  --gap-section: 120px;
  --gap-mobile-section: 64px;
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-gray);
  line-height: 1.6;
  overflow-x: hidden;
}
ul, li { list-style: none; }
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-base);
}
img {
  max-width: 100%;
  display: block;
}
input, textarea {
  font-family: inherit;
  outline: none;
}

/* 通用容器 */
.container {
  width: min(92%, var(--container-max));
  margin: 0 auto;
}
.section {
  padding: 80px 0;
  background: var(--bg-light);
}
.section-white {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.d-none-mobile { display: block; }
.d-block-mobile { display: none; }

/* 导航栏 吸顶样式 浅色适配 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition: var(--transition-base);
  background: transparent;
}
.header.sticky {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 14px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 140px;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-item {
  position: relative;
  font-size: 15px;
  color: var(--text-gray);
}
.nav-item:hover {
  color: var(--primary);
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-base);
}
.nav-item:hover::after {
  width: 100%;
}
.nav-cta {
  padding: 10px 22px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.nav-cta:hover {
  background: var(--primary-light);
  transform: scale(0.96);
}
/* 移动端汉堡菜单 */
.hamburger {
  width: 32px;
  height: 24px;
  position: relative;
  background: transparent;
  display: none;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition-base);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 11px;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 998;
  padding: 100px 30px;
  transition: right 0.32s ease;
}
.mobile-nav.active { right: 0; }
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: 22px;
  color: var(--text-dark);
}

/* 首屏Hero Banner 浅色重写 */
.hero {
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: 64px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  color: var(--text-gray);
}
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: scale(0.96);
}
.btn-outline {
  padding: 14px 32px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(122, 92, 240, 0.08);
  transform: scale(0.96);
}

/* 图片占位容器 浅色虚线 */
.img-placeholder {
  border: 2px dashed #c2c2da;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  padding: 40px;
  text-align: center;
  background: #fefefe;
}
.img-placeholder-light {
  border-color: #bbb;
  color: #555;
}

/* 通用区块标题 */
.section-head {
  margin-bottom: 60px;
}
.section-subtitle {
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title {
  font-size: 42px;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

/* 产品板块 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  border: 1px solid var(--border-gray);
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.card-img {
  height: 220px;
  width: 100%;
}
.card-body {
  padding: 28px;
}
.card-tag {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}
.card-title {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.card-price {
  font-size: 16px;
  margin: 16px 0 24px;
  color: var(--text-gray);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
}
.card-link:hover { gap: 12px; }

/* 资讯新闻板块 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card .card-img { height: 180px; }
.news-date {
  font-size: 13px;
  color: var(--text-light-gray);
  margin-bottom: 10px;
}

/* IP介绍板块 */
.ip-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ip-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}
.ip-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
/* PQC Products */
.pqc-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* 开发者TT-Forge板块 */
.dev-block {
  background: var(--bg-card-dark);
  border-radius: var(--radius-lg);
  padding: 60px;
  margin-top: 40px;
  border: 1px solid var(--border-gray);
}
.dev-block h3 {
  color: var(--text-dark);
}
.dev-buttons {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}

/* 表单区块 */
.form-wrap {
  margin-top: 32px;
  max-width: 600px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-full {
  grid-column: 1/-1;
}
.form-label {
  font-size: 14px;
  color: var(--text-dark);
}
.form-input, .form-textarea {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 15px;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
}

/* 页脚 */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-gray);
  background: var(--bg-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4,1fr);
  gap: 40px;
  margin-bottom: 60px;
}
.footer-logo {
  width: 130px;
  margin-bottom: 20px;
}
.footer-desc {
  max-width: 300px;
  font-size: 14px;
  margin-bottom: 24px;
  color: var(--text-gray);
}
.footer-col-title {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-link:hover {
  color: var(--primary);
  padding-left: 4px;
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-gray);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light-gray);
}

/* 滚动渐入动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式适配 320px~1920px */
@media screen and (max-width: 1200px) {
  .product-grid, .news-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(3,1fr); }
}
@media screen and (max-width: 992px) {
  .hero-title { font-size: 48px; }
  .section-title { font-size: 36px; }
  .ip-wrap { grid-template-columns: 1fr; gap: 40px; }
  .d-none-mobile { display: none; }
  .d-block-mobile { display: block; }
  .hamburger { display: block; }
  .nav-desktop { display: none; }
}
@media screen and (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .section-title { font-size: 32px; }
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .dev-block { padding: 32px 24px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}
@media screen and (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 48px 0; }
  .hero { padding-top: 120px; }
}
/* 容器：文字+图片横向排列，移动端自动换行 */
.text-img-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px; /* 图文间距 */
}
/* 文字区域自适应占满剩余宽度 */
.text-img-row .text-box {
  flex: 1;
  min-width: 220px; /* 小屏防止文字过窄 */
}
/* PNG图片限制最大宽度，防止溢出 */
.text-img-row .side-png {
  max-width: 100px;
  width: 100%;
  height: auto;
}
/* TT-Deploy 行业资讯独立样式，不污染全局main.css */
#news-pqc {
  padding: 80px 0;
}
#news-pqc .article-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 12px 0 40px;
  font-size: 14px;
  color: var(--text-gray, #4b5563);
}
#news-pqc .article-content {
  max-width: 900px;
  margin: 0 auto;
}
#news-pqc .article-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark, #111827);
  margin: 48px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
#news-pqc .article-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-gray, #333);
  margin-bottom: 18px;
}
#news-pqc .article-list {
  padding-left: 20px;
  margin: 16px 0 24px;
}
#news-pqc .article-list li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--text-gray, #333);
}
#news-pqc .article-quote {
  background: rgba(122, 92, 240, 0.06);
  border-left: 4px solid var(--primary, #7a5cf0);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--primary, #7a5cf0);
}
/* 移动端适配 */
@media (max-width: 768px) {
  #news-pqc {
    padding: 48px 0;
  }
  #news-pqc .article-subtitle {
    font-size: 20px;
  }
  #news-pqc .article-content p,
  #news-pqc .article-list li {
    font-size: 16px;
  }
}
    /* 仅补充solutions页面专属布局适配，主体样式仍托管main.css */
    .support-wrap {padding: 60px 0;}
    .support-title {font-size: 42px; font-weight: 700; margin-bottom: 24px; color: #111;}
    .support-desc {font-size: 18px; color: #555; max-width: 900px; margin-bottom: 48px; line-height: 1.7;}
    .support-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-bottom: 60px;}
    .support-card {border: 1px solid #eee; border-radius: 12px; padding: 32px; transition: 0.25s ease;}
    .support-card:hover {border-color: #7a5cf0; transform: translateY(-4px);}
    .support-card h3 {font-size: 22px; margin: 12px 0 16px; color: #111;}
    .support-card p {color: #666; line-height: 1.6; margin-bottom: 20px;}
    .support-card a {color: #7a5cf0; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;}
    .support-card a:hover {text-decoration: underline;}
    .support-faq {margin-top: 80px;}
    .faq-item {border-bottom: 1px solid #eee; padding: 20px 0;}
    .faq-question {font-size: 18px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center;}
    .faq-answer {margin-top: 12px; color: #555; line-height: 1.7; display: none;}
    .faq-item.active .faq-answer {display: block;}
    .support-contact-block {background: #f7f5ff; border-radius: 16px; padding: 48px; margin-top: 80px; text-align: center;}
    .support-contact-block h3 {font-size: 28px; margin-bottom: 16px; color: #111;}
    .support-contact-block p {max-width: 700px; margin: 0 auto 32px; color: #555; font-size: 17px;}