/* ==========================================================================
   通义千问 QWEN - 【对角线句子风】能力视觉系统
   规范：
   - 风格：对角（一条句子，没有第二条；白底黑字，无引导线，其他区域大面积留白）
   - 场景：能力介绍（对角线舞台：句子从左下角走到右上角，字距拉开，含「千问」「qwen」「千问网页版」）
   - 字体：无衬线字体（Sans-Serif），字距随对角线拉伸，极简现代
   - 页面其他板块遵循黑白极简与精准网格排版，完全响应式
   ========================================================================== */

:root {
  --pure-black: #000000;
  --pure-white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-700: #404040;
  --gray-900: #171717;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--pure-white);
  color: var(--pure-black);
}

body {
  font-family: var(--font-sans);
  color: var(--pure-black);
  background-color: var(--pure-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.layout-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   顶栏：标志、七个锚点、登录、开始使用
-------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pure-black);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--pure-black);
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  text-transform: uppercase;
}

.nav-anchors {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--pure-black);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--pure-black);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

.btn-header-login {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pure-black);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--pure-black);
  background: var(--pure-white);
  transition: all 0.15s ease;
}

.btn-header-login:hover {
  background: var(--gray-100);
}

.btn-header-primary {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pure-white);
  background: var(--pure-black);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--pure-black);
  transition: all 0.15s ease;
}

.btn-header-primary:hover {
  background: var(--gray-700);
  border-color: var(--gray-700);
}

/* --------------------------------------------------------------------------
   首屏：状态标签、标题、一句说明、一条提问框
-------------------------------------------------------------------------- */
.hero-section {
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--pure-white);
}

.hero-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.hero-status-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pure-white);
  background: var(--pure-black);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-status-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.hero-spec-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-500);
  letter-spacing: 0.08em;
}

.hero-title-box {
  margin-bottom: 16px;
}

.hero-h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--pure-black);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--gray-700);
  line-height: 1.75;
  max-width: 920px;
  margin-bottom: 32px;
}

/* 首屏提问框 */
.hero-ask-form {
  display: flex;
  max-width: 860px;
  border: 1.5px solid var(--pure-black);
  background: var(--pure-white);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.08);
}

.hero-ask-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 1.02rem;
  font-family: var(--font-sans);
  color: var(--pure-black);
  background: transparent;
}

.hero-ask-input::placeholder {
  color: var(--gray-500);
}

.hero-ask-btn {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--pure-black);
  color: var(--pure-white);
  border: none;
  padding: 0 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.hero-ask-btn:hover {
  background: var(--gray-700);
}

/* --------------------------------------------------------------------------
   信任：客户名和四个数字
-------------------------------------------------------------------------- */
.trust-section {
  padding: 44px 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.trust-clients-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.trust-clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.trust-client-chip {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--pure-black);
  background: var(--pure-white);
  border: 1px solid var(--gray-300);
  padding: 6px 16px;
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-stat-card {
  background: var(--pure-white);
  border: 1px solid var(--gray-300);
  padding: 22px;
}

.trust-stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--pure-black);
  line-height: 1.1;
  margin-bottom: 6px;
}

.trust-stat-label {
  font-size: 0.86rem;
  color: var(--gray-700);
}

/* --------------------------------------------------------------------------
   通用章节头规范
-------------------------------------------------------------------------- */
.section-wrapper {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--pure-white);
}

.section-head {
  margin-bottom: 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.section-h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--pure-black);
  line-height: 1.25;
}

.section-h2-sub {
  font-size: 0.96rem;
  color: var(--gray-500);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   核心风格板块：对角线句子（能力介绍场景）
   规范：
   - 布局：唯一的句子沿对角线从左下到右上，其余区域禁止放字
   - 风格说明：对角：一条句子，没有第二条
   - 风格：句子是黑的，底是白的，没有引导线
   - 字体：无衬线，字距随对角线拉开
   - 句子含「千问」「qwen」「千问网页版」。不要水平重复这句话。
-------------------------------------------------------------------------- */
.diagonal-sentence-stage {
  position: relative;
  width: 100%;
  height: 440px;
  background-color: var(--pure-white);
  border: 1px solid var(--pure-black);
  overflow: hidden;
  margin-bottom: 48px;
  user-select: none;
}

.diagonal-sentence-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  transform: translate(-50%, -50%) rotate(-17deg);
  transform-origin: center center;
  color: var(--pure-black);
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: clamp(0.2em, 0.45vw, 0.55em);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   能力：4 列 × 2 行，只有图标、标题和两行字
-------------------------------------------------------------------------- */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cap-card {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 24px;
  transition: border-color 0.15s ease;
}

.cap-card:hover {
  border-color: var(--pure-black);
}

.cap-icon {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  background: var(--pure-black);
  color: var(--pure-white);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cap-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--pure-black);
}

.cap-line1, .cap-line2 {
  font-size: 0.86rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   目录：两组，每组 3 张卡，带状态和「试用 / 文档」
-------------------------------------------------------------------------- */
.catalog-group-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.catalog-card {
  border: 1px solid var(--gray-300);
  padding: 22px;
  background: var(--pure-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.catalog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pure-black);
}

.catalog-status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border: 1px solid var(--pure-black);
  background: var(--gray-100);
}

.catalog-card-desc {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 20px;
}

.catalog-card-actions {
  display: flex;
  gap: 10px;
}

.btn-catalog-try {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pure-white);
  background: var(--pure-black);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--pure-black);
}

.btn-catalog-doc {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pure-black);
  background: var(--pure-white);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--gray-300);
}

.btn-catalog-try:hover {
  background: var(--gray-700);
}

.btn-catalog-doc:hover {
  border-color: var(--pure-black);
}

/* --------------------------------------------------------------------------
   场景：3 列 × 2 行（合理插入 1.webp-4.webp）
-------------------------------------------------------------------------- */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scene-card {
  border: 1px solid var(--gray-300);
  background: var(--pure-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scene-img-box {
  width: 100%;
  height: 175px;
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-img-stamp {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--pure-black);
  color: var(--pure-white);
  padding: 2px 6px;
}

.scene-content {
  padding: 20px;
  flex: 1;
}

.scene-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pure-black);
  margin-bottom: 8px;
}

.scene-desc {
  font-size: 0.86rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   演示：左边任务，右边结果
-------------------------------------------------------------------------- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.demo-panel {
  border: 1px solid var(--pure-black);
  padding: 24px;
  background: var(--pure-white);
  box-shadow: 3px 3px 0px rgba(0,0,0,0.06);
}

.demo-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.demo-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.demo-stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--pure-black);
  color: var(--pure-white);
  padding: 2px 8px;
}

.demo-input-card {
  background: var(--gray-50);
  padding: 16px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-900);
}

.demo-output-card {
  background: var(--gray-900);
  color: var(--pure-white);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* --------------------------------------------------------------------------
   开发者：左边卖点，右边可切换的代码
-------------------------------------------------------------------------- */
.dev-grid {
  display: grid;
  grid-template-columns: 4.8fr 7.2fr;
  gap: 24px;
}

.dev-points-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dev-point-item {
  border: 1px solid var(--gray-300);
  padding: 18px;
  background: var(--gray-50);
}

.dev-point-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dev-point-desc {
  font-size: 0.86rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.dev-code-box {
  border: 1px solid var(--pure-black);
  background: var(--gray-900);
  color: var(--pure-white);
}

.code-tabs-nav {
  display: flex;
  background: #000000;
  border-bottom: 1px solid #333333;
}

.code-tab-button {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  background: transparent;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.code-tab-button.active {
  color: var(--pure-white);
  border-bottom-color: var(--pure-white);
  background: var(--gray-900);
}

.code-view-pre {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #e5e5e5;
}

/* --------------------------------------------------------------------------
   企业：3 列 × 2 行
-------------------------------------------------------------------------- */
.ent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ent-card {
  border: 1px solid var(--gray-300);
  padding: 24px;
  background: var(--pure-white);
}

.ent-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ent-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pure-black);
  margin-bottom: 8px;
}

.ent-desc {
  font-size: 0.86rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   下载和帮助：各 5 列
-------------------------------------------------------------------------- */
.five-col-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.five-col-item {
  border: 1px solid var(--gray-300);
  padding: 18px 14px;
  background: var(--pure-white);
  text-decoration: none;
  color: var(--pure-black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.five-col-item:hover {
  background: var(--pure-black);
  color: var(--pure-white);
  border-color: var(--pure-black);
}

.five-col-item:hover .five-sub,
.five-col-item:hover .five-desc {
  color: var(--gray-300);
}

.five-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.five-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.five-desc {
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   问答：默认折叠，点开才看步骤
-------------------------------------------------------------------------- */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.faq-detail-block {
  border: 1px solid var(--gray-300);
  background: var(--pure-white);
}

.faq-detail-block[open] {
  border-color: var(--pure-black);
}

.faq-summary-block {
  list-style: none;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary-block::-webkit-details-marker {
  display: none;
}

.faq-summary-block::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
}

.faq-detail-block[open] .faq-summary-block::after {
  content: "−";
}

.faq-body-block {
  padding: 0 22px 20px;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.faq-steps-ol {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-steps-ol li {
  position: relative;
  padding-left: 24px;
}

.faq-steps-ol li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--pure-black);
}

/* --------------------------------------------------------------------------
   页脚：品牌说明加四列链接
-------------------------------------------------------------------------- */
.site-footer {
  background: var(--pure-black);
  color: var(--pure-white);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 4fr repeat(4, 2fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #333333;
}

.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.86rem;
  color: var(--gray-300);
  line-height: 1.7;
}

.footer-col-h {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--pure-white);
}

.footer-links-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-a {
  text-decoration: none;
  font-size: 0.86rem;
  color: var(--gray-300);
  transition: color 0.15s ease;
}

.footer-a:hover {
  color: var(--pure-white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   网页版与帮助中心工作台
-------------------------------------------------------------------------- */
.app-stage-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 68px);
  border-top: 1px solid var(--pure-black);
}

.app-side-panel {
  border-right: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-chat-column {
  display: flex;
  flex-direction: column;
  background: var(--pure-white);
}

.app-chat-messages {
  flex: 1;
  padding: 32px 44px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.block-bubble {
  max-width: 840px;
  border: 1px solid var(--gray-300);
  padding: 20px;
  background: var(--pure-white);
}

.block-bubble.assistant {
  border-left: 5px solid var(--pure-black);
}

.block-bubble.user {
  align-self: flex-end;
  background: var(--gray-50);
}

.app-input-dock {
  border-top: 1px solid var(--gray-200);
  padding: 18px 44px 26px;
  background: var(--pure-white);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .caps-grid,
  .trust-stats-grid,
  .scenes-grid,
  .ent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .five-col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .demo-grid,
  .dev-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-anchors {
    display: none;
  }
  .diagonal-sentence-stage {
    height: 320px;
  }
  .diagonal-sentence-text {
    width: 200%;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
  }
  .caps-grid,
  .trust-stats-grid,
  .catalog-cards-row,
  .scenes-grid,
  .ent-grid,
  .five-col-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .app-stage-layout {
    grid-template-columns: 1fr;
  }
  .app-side-panel {
    display: none;
  }
  .app-chat-messages,
  .app-input-dock {
    padding-left: 16px;
    padding-right: 16px;
  }
}
