/* ==========================================================================
   广州牛人会官网 · UI 核心规范样式表 (site.css)
   设计原则：编辑杂志风、极简克制、文字为主、自然留白
   ========================================================================== */

/* 1. 三档主题变量定义 */
:root,
html.theme-light {
  --bg: #FFFFFF;
  --bg-subtle: #FAFAF9;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --text: #1C1917;
  --text-2: #57534E;
  --text-3: #A8A29E;
  --accent: #D7263D;
  --accent-hover: #B91C32;
  --on-accent: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html.theme-gray {
  --bg: #2A2C30;
  --bg-subtle: #313338;
  --border: #3D4046;
  --border-strong: #4E5258;
  --text: #F2F2F2;
  --text-2: #B8BBC1;
  --text-3: #878B93;
  --accent: #F0475A;
  --accent-hover: #FF5C6E;
  --on-accent: #FFFFFF;
  --nav-bg: rgba(42, 44, 48, 0.85);
}

html.theme-dark {
  --bg: #0A0A0A;
  --bg-subtle: #111111;
  --border: #1F1F1F;
  --border-strong: #2E2E2E;
  --text: #EDEDED;
  --text-2: #A1A1A1;
  --text-3: #6B6B6B;
  --accent: #F0475A;
  --accent-hover: #FF5C6E;
  --on-accent: #FFFFFF;
  --nav-bg: rgba(10, 10, 10, 0.8);
}

/* 2. 基础重置与排版规范 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
  min-height: 100vh;
}

/* 链接全局规范 */
a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

/* 全局按钮重置 */
button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* 3. 字体阶梯 (全站严格 6 档) */
.text-display {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.text-h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}

.text-body {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

.text-small {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

.text-meta {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 640px) {
  .text-display {
    font-size: 28px;
    line-height: 1.35;
  }
  .br-desktop {
    display: none;
  }
  .text-h2 {
    font-size: 20px;
    line-height: 1.4;
  }
}

/* 辅助颜色类 */
.color-text { color: var(--text); }
.color-text-2 { color: var(--text-2); }
.color-text-3 { color: var(--text-3); }
.color-accent { color: var(--accent); }
.font-mono { font-family: var(--font-mono); }

/* 4. 容器与网格留白规范 */
.site-container {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.section-gap {
  margin-bottom: 112px;
}

@media (max-width: 640px) {
  .section-gap {
    margin-bottom: 72px;
  }
}

/* 5. 顶部导航规范 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 200ms ease, border-color 200ms ease;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.header-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.header-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-2);
  position: relative;
  padding-top: 6px;
  padding-bottom: 6px;
  line-height: 1;
}

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

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  height: 1.5px;
  background-color: var(--accent);
}

/* 6. 单按钮循环主题切换器 (Light → Gray → Dark) */
.theme-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.theme-icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, opacity 200ms ease;
}

.theme-toggle-btn.is-animating .theme-icon-slot {
  transform: rotate(90deg);
  opacity: 0;
}

/* 7. 按钮与链接规范 (全站严格 3 种) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  background-color: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, opacity 150ms ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  background-color: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease;
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn-secondary-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.link-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.link-text:hover {
  color: var(--accent);
}

/* 8. 区块标题规范 */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

.section-header-link {
  font-size: 13px;
  color: var(--text-2);
}

.section-header-link:hover {
  color: var(--accent);
}

/* 9. 联系弹窗规范 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 360px;
  background-color: var(--bg);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  position: relative;
  text-align: center;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 150ms ease;
}

.modal-close:hover {
  color: var(--text);
}

.qr-box {
  width: 200px;
  height: 200px;
  margin: 18px auto;
  border-radius: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-box-fallback {
  font-size: 13px;
  color: var(--text-3);
}

/* 10. 页脚规范 */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  padding-bottom: 48px;
  margin-top: 96px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

.footer-line-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--text);
}

.footer-line-2 {
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-line-2 a:hover {
  color: var(--text);
}

/* 11. 手机端全屏汉堡导航 */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 6px;
  cursor: pointer;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: 64px;
  background-color: var(--bg);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  border-top: 1px solid var(--border);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--accent);
}

.header-contact-btn {
  display: inline-flex;
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
  .site-header .btn-secondary-sm,
  .site-header .header-contact-btn {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 12. 首页 (index.html) 专用结构样式 */
.hero-section {
  padding-top: 120px;
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 64px;
  }
}

.hero-desc {
  max-width: 560px;
  margin-top: 16px;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* 我们做的软件 3 栏网格 */
.software-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.software-col {
  padding: 0 24px;
  border-left: 1px solid var(--border);
}

.software-col:first-child {
  padding-left: 0;
  border-left: none;
}

.software-col:last-child {
  padding-right: 0;
}

.software-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-top: 8px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .software-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .software-col {
    padding: 0 0 32px 0;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
  .software-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* 在线工具区块 */
.tool-card {
  background-color: var(--bg-subtle);
  border-radius: 10px;
  padding: 48px;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .tool-card {
    padding: 24px;
  }
}

.tool-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .tool-form {
    flex-direction: column;
  }
}

.tool-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease;
}

.tool-input:focus {
  border-color: var(--text);
}

.tool-result {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  display: none;
}

.tool-result.is-visible {
  display: block;
}

.tool-result-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  word-break: break-word;
}

.tool-result-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* AI资讯列表纯文字单行 */
.news-list {
  border-top: 1px solid var(--border);
}

.news-item {
  display: flex;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.news-date {
  width: 96px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
}

.news-title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 16px;
  transition: color 150ms ease;
}

.news-item:hover .news-title {
  color: var(--accent);
}

.news-source {
  font-size: 13px;
  color: var(--text-3);
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .news-item {
    height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .news-title {
    padding-right: 0;
    white-space: normal;
    line-height: 1.5;
  }
  .news-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-3);
  }
}

/* 合作入口区块 */
.collab-section {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

@media (max-width: 640px) {
  .collab-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

.collab-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 轻量复制提示 Toast */
.site-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background-color: var(--text);
  color: var(--bg);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.site-toast.is-visible {
  opacity: 1;
}

/* 13. 资讯列表 (articles.html) 专用样式 */
.search-container {
  position: relative;
  margin-top: 32px;
}

.search-input {
  width: 100%;
  height: 44px;
  padding-left: 40px;
  padding-right: 40px;
  font-size: 14px;
  font-family: var(--font-sans);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease;
}

.search-input:focus {
  border-color: var(--text);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--text-3);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px;
  display: none;
}

.search-clear-btn:hover {
  color: var(--text);
}

/* 分类纯文字 Tab */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-top: 24px;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  font-size: 14px;
  color: var(--text-3);
  background: transparent;
  border: none;
  padding-bottom: 12px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: color 150ms ease;
}

.category-tab:hover {
  color: var(--text-2);
}

.category-tab.active {
  color: var(--text);
}

.category-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background-color: var(--accent);
}

/* 资讯列表卡片 */
.article-row-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.article-row-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-row-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  transition: color 150ms ease;
}

.article-row-item:hover .article-row-title {
  color: var(--accent);
}

.article-row-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-row-meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
  margin-top: 4px;
}

.article-row-thumb {
  width: 160px;
  height: 100px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-subtle);
}

.article-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .article-row-item {
    flex-direction: column-reverse;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .article-row-thumb {
    width: 100%;
    height: 180px;
  }
  .article-row-summary {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* 14. 文章详情页 (article.html) 专用样式 */
.article-detail-container {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 48px;
  width: 100%;
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-breadcrumb a:hover {
  color: var(--text);
}

.article-detail-title {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .article-detail-title {
    font-size: 28px;
  }
}

.article-original-title {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  margin-top: 8px;
  font-style: normal;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta-info {
  font-size: 13px;
  color: var(--text-3);
}

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

/* 语言切换分段控制器 */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 3px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  user-select: none;
}

.lang-switcher-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 26px;
  border-radius: 999px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.lang-btn {
  position: relative;
  z-index: 2;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 150ms ease;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--text-2);
}

.lang-btn.active {
  color: var(--text);
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* 核心要点区块 */
.key-points-section {
  margin-top: 32px;
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.key-points-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.key-points-list {
  list-style: decimal inside;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}

.key-points-list li {
  margin-bottom: 8px;
}

/* 文章头图 */
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 32px;
}

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

/* 正文排版 */
.article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body .en-text {
  color: var(--text-2);
  margin-bottom: 1.4em;
}

.article-body .zh-text {
  color: var(--text);
  margin-bottom: 1.4em;
}

.article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text);
}

.article-body a:hover {
  color: var(--accent);
}

/* 独家看法区块 */
.analysis-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.analysis-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

/* 字体大小微调类 */
.font-size-sm { font-size: 15px !important; line-height: 1.8 !important; }
.font-size-base { font-size: 17px !important; line-height: 1.85 !important; }
.font-size-lg { font-size: 19px !important; line-height: 1.9 !important; }

/* 15. 产品页 (products.html) 专用样式 */
.product-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 48px;
}

.product-block:last-child {
  border-bottom: none;
}

.product-left {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.product-right {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-status {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-sans);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-3);
}

@media (max-width: 768px) {
  .product-block {
    flex-direction: column;
    padding: 48px 0;
    gap: 32px;
  }
  .product-left, .product-right {
    width: 100%;
  }
}

/* 16. 业务合作页 (services.html) 专用样式 */
.service-item {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.service-item:first-of-type {
  padding-top: 32px;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.service-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
  position: relative;
}

.step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
}

@media (max-width: 768px) {
  .step-flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 17. 关于页 (about.html) 专用样式 */
.about-story {
  max-width: 640px;
  margin-top: 24px;
  margin-bottom: 48px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.about-story p {
  margin-bottom: 1.4em;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  margin-top: 32px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  display: flex;
  gap: 32px;
}

.timeline-year {
  width: 96px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  padding-top: 2px;
}

.timeline-content {
  flex: 1;
}

@media (max-width: 640px) {
  .timeline-item {
    flex-direction: column;
    gap: 6px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  position: relative;
}

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

.gallery-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-3);
}

.brand-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .brand-showcase {
    grid-template-columns: 1fr;
  }
}

.brand-visual {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 16px;
}

.brand-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px 24px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 24px;
}

.contact-dl dt {
  color: var(--text-3);
}

.contact-dl dd {
  color: var(--text);
}

/* 18. 在线工具页 (tools.html) 专用样式 */
.tool-full-input {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  font-size: 16px;
  line-height: 1.6;
  font-family: var(--font-sans);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 150ms ease;
}

.tool-full-input:focus {
  border-color: var(--text);
}

.tool-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.tool-quick-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-quick-links button {
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  padding: 0;
  transition: color 150ms ease;
}

.tool-quick-links button:hover {
  color: var(--text);
}

/* 19. 增强文章排版与双语段落 (规范第 2.8.1 节) */
.article-source-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.article-source-bar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.article-source-bar a:hover {
  color: var(--accent);
}

.article-cover-credit {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
  margin-top: 6px;
  margin-bottom: 24px;
}

.block-paragraph {
  margin-bottom: 32px;
}

.block-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 6px;
  display: block;
}

.block-en {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  border-left: 1px solid var(--border);
  padding-left: 16px;
  margin-bottom: 12px;
}

.block-zh {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}

.block-heading {
  margin-top: 48px;
  margin-bottom: 20px;
}

.block-heading h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.block-heading .heading-en {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 4px;
}

.block-figure {
  margin: 36px 0;
}

.block-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.block-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
  padding: 0 4px;
}

.block-quote {
  margin: 32px 0;
  padding: 16px 20px;
  background-color: var(--bg-subtle);
  border-left: 2px solid var(--border-strong);
  border-radius: 0 8px 8px 0;
}

.block-quote .quote-en {
  font-size: 15px;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 8px;
}

.block-quote .quote-zh {
  font-size: 16px;
  color: var(--text);
}

/* 广州牛人会 · 观点 区块 */
.nrh-analysis-card {
  background-color: var(--bg-subtle);
  border-radius: 10px;
  padding: 32px;
  margin-top: 56px;
  margin-bottom: 40px;
}

.nrh-analysis-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.nrh-analysis-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.nrh-analysis-body p:last-child {
  margin-bottom: 0;
}

.nrh-analysis-author {
  margin-top: 20px;
  text-align: right;
  font-size: 13px;
  color: var(--text-3);
}

/* 来源与版权区块 */
.article-copyright-section {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.8;
}

.article-copyright-section a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-copyright-section a:hover {
  color: var(--accent);
}

/* 品牌原图（黑色线稿 + 透明底）在中灰/深黑主题下需要浅色底，否则看不见 */
html.theme-gray .header-logo-img,
html.theme-dark .header-logo-img,
html.theme-gray .login-logo,
html.theme-dark .login-logo {
  background-color: #F2F2F2;
  border-radius: 6px;
  padding: 2px;
}

.brand-visual {
  width: 160px;
  height: 160px;
}

html.theme-gray .brand-visual,
html.theme-dark .brand-visual {
  background-color: #F2F2F2;
  border-color: transparent;
}

/* ===== 关于页 ===== */
.about-section {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* 关键数字 */
.about-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.about-stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.about-stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}
@media (max-width: 768px) {
  .about-stats { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .about-stat-num { font-size: 26px; }
}

/* 服务 / 团队小卡片 */
.about-cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.about-cards-3 { grid-template-columns: repeat(3, 1fr); }
.about-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--bg);
  transition: border-color 150ms ease;
}
.about-card:hover { border-color: var(--border-strong); }
.about-card h3 { font-size: 16px; }
.about-card p { margin-top: 6px; line-height: 1.6; }
@media (max-width: 768px) {
  .about-cards-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .about-cards-3 { grid-template-columns: 1fr; }
}

/* 现场：照片与视频同一网格，统一 16:9 小图 */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.scene-item { margin: 0; min-width: 0; }
.scene-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
}
.scene-media img,
.scene-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
}
.scene-item figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 品牌：两个小方块 */
.about-brand {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}
.about-brand figure { margin: 0; }
.about-brand .brand-visual { width: 112px; height: 112px; margin-bottom: 8px; }
.about-brand figcaption { font-size: 13px; color: var(--text-2); }

/* ==========================================================================
   20. 手机端底部悬浮「加微信咨询」条 (规范第 7 章第 1 项)
   ========================================================================== */
.mobile-floating-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 56px !important;
  }

  .mobile-floating-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 90;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  }

  .mobile-floating-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    max-width: 1040px;
    margin: 0 auto;
  }

  .mobile-floating-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
  }

  .mobile-floating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    display: inline-block;
  }

  .mobile-floating-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
  }
}

/* 联系弹窗：二维码图片不存在时整块隐藏（img onerror 设置 hidden） */
.qr-box[hidden] { display: none; }
.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.btn-copy {
  height: 28px;
  padding: 0 12px;
  margin-left: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
