/* ========== AGIENTS导航门户 - 样式 ========== */
:root {
  --primary: #6C5CE7;
  --primary-dark: #5B4BDB;
  --primary-light: #A29BFE;
  --success: #00CEC9;
  --warning: #FF7675;
  --info: #00B894;
  --bg: #f5f6fa;
  --bg-2: #f8f9fa;
  --bg-3: #ffffff;
  --text: #2d3436;
  --text-2: #636e72;
  --text-3: #b2bec3;
  --border: #dfe6e9;
  --border-2: #e8edf2;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-2);
  cursor: pointer;
  padding: 8px;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  justify-content: center;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--bg-2);
  color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ========== 容器 ========== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== 导航页面 ========== */
.navigator-page {
  padding: 80px 0;
}

.navigator-header {
  text-align: center;
  margin-bottom: 64px;
}

.navigator-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.navigator-header p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 700px;
  margin: 0 auto;
}

.section-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-tab {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.section-tab:hover {
  background: var(--bg-3);
  color: var(--text);
  transform: translateY(-2px);
}

.section-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

/* ========== 平台网格 ========== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

..platform-card {
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.platform-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow);
  margin: 0 auto 16px;
}

.platform-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  text-align: center;
}

.platform-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}

.platform-tag {
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-2);
}

.platform-description {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}

.platform-resources {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-resources a {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.platform-resources a:hover {
  background: var(--primary);
  color: white;
}

.platform-details {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.platform-details:hover {
  background: var(--primary);
  color: white;
}

/* ========== 详情页面 ========== */
.platform-detail {
  padding: 80px 0;
  background: var(--bg-3);
  min-height: 100vh;
}

.detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.detail-header {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.detail-logo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.detail-info {
  flex: 1;
}

.detail-info h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-tag {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-2);
}

.detail-description {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-content {
  margin-bottom: 48px;
}

.detail-section {
  margin-bottom: 32px;
}

.detail-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.detail-section p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.detail-links {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
}

.detail-link:hover {
  background: var(--primary);
  color: white;
  transform: translateX(8px);
}

.detail-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.detail-link-content {
  flex: 1;
}

.detail-link-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-link-url {
  font-size: 12px;
  color: var(--text-3);
}

/* ========== 关于页面 ========== */
.about-page {
  padding: 80px 0;
  background: var(--bg-3);
  min-height: 100vh;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-section {
  margin-bottom: 48px;
}

.about-section h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}

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

.about-section p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ========== 页脚 ========== */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
}

.footer p {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* ========== v2 新增：徽章 / Badge ========== */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: white;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-info {
  background: var(--info);
}

/* ========== v2 新增：导航 Logo 图标 ========== */
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
  color: white;
  font-size: 18px;
}

/* ========== v2 新增：Hero 区域 ========== */
.v2-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  color: white;
  text-align: center;
  isolation: isolate;
}
.hero-float {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(40px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.1); }
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content .badge {
  background: rgba(255,255,255,0.2);
  color: white;
  backdrop-filter: blur(6px);
  margin-bottom: 16px;
}
.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-content h1 span {
  background: linear-gradient(90deg, #ffeaa7, #fdcb6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== v2 新增：统计条 ========== */
.stats-bar {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 28px 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  text-align: center;
}
.stat-item {
  padding: 8px;
}
.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ========== v2 新增：通用区块 ========== */
.section {
  padding: 64px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header .badge {
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== v2 新增：网格布局 ========== */
.v2-grid {
  display: grid;
  gap: 24px;
}
.v2-grid.two { grid-template-columns: 1fr 1fr; }
.v2-grid.three { grid-template-columns: repeat(3, 1fr); }
.v2-grid.four { grid-template-columns: repeat(4, 1fr); }

/* ========== v2 新增：角色卡片 ========== */
.v2-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}
.v2-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.v2-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.v2-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.v2-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.v2-card span {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ========== v2 新增：模块卡片 ========== */
.v2-module {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.v2-module:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.v2-module > b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.v2-module > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ========== v2 新增：信任卡片 ========== */
.v2-trust {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.v2-trust b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0 6px;
  color: var(--text);
}
.v2-trust p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

/* ========== v2 新增：OpenClaw 条幅 ========== */
.v2-openclaw-band {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 100%);
  color: white;
}
.v2-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.v2-band-inner .badge {
  background: rgba(108,92,231,0.3);
  color: var(--primary-light);
  margin-bottom: 12px;
}
.v2-band-inner h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}
.v2-band-inner p {
  font-size: 15px;
  opacity: 0.8;
  max-width: 500px;
  line-height: 1.6;
}
.v2-band-inner .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.v2-band-inner .btn-outline:hover {
  background: white;
  color: #0a0a1a;
}

/* ========== v2 新增：页面 Hero（子页面） ========== */
.v2-page-hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  color: white;
  text-align: center;
}
.v2-page-hero.openclaw {
  background: linear-gradient(135deg, #0a0a1a 0%, #2d1b69 100%);
}
.v2-page-hero .badge {
  background: rgba(255,255,255,0.2);
  color: white;
  backdrop-filter: blur(6px);
  margin-bottom: 12px;
}
.v2-page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto 12px;
  line-height: 1.2;
}
.v2-page-hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== v2 新增：筛选器 ========== */
.v2-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  justify-content: center;
}
.v2-filter span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-right: 4px;
}
.v2-filter button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.v2-filter button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== v2 新增：智能体卡片 ========== */
.v2-agent-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s;
}
.v2-agent-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.v2-agent-card .badge {
  margin-bottom: 8px;
}
.v2-agent-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.v2-agent-card > div > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.v2-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.v2-tags span {
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-2);
}
.v2-agent-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.v2-agent-bottom b {
  font-size: 18px;
  color: var(--primary);
}

/* ========== v2 新增：价格 ========== */
.price-original {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: line-through;
  margin-left: 6px;
}
.price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

/* ========== v2 新增：时间线 ========== */
.v2-timeline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.v2-timeline > div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-2);
  border-radius: var(--radius);
  font-size: 13px;
}
.v2-timeline > div span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.v2-timeline > div b {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

/* ========== v2 新增：文章列表 ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.article-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}
.article-cover {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}
.article-category {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  color: white;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.article-body {
  padding: 16px;
}
.article-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-summary {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
}

/* ========== v2 新增：空状态 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 15px;
}

/* ========== v2 新增：文章详情 ========== */
.article-detail {
  padding: 90px 0 60px;
}
.article-detail-header {
  margin-bottom: 32px;
}
.article-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}
.article-detail-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.article-detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.article-detail-content p {
  margin-bottom: 16px;
}
.article-detail-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}

/* ========== v2 新增：评论区 ========== */
.comment-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}
.comment-form textarea:focus {
  border-color: var(--primary);
}
.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-2);
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-right: 8px;
}
.comment-time {
  font-size: 12px;
  color: var(--text-3);
}
.comment-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ========== v2 新增：产品列表 ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}
.product-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.product-body {
  padding: 16px;
}
.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.product-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  display: flex;
  align-items: center;
}

/* ========== v2 新增：认证/登录页面 ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, #e8e5f5 100%);
  padding: 20px;
}
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
}
.auth-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 4px;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 24px;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: white;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active {
  background: var(--primary);
  color: white;
}
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-2);
}
.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* ========== v2 新增：表单控件 ========== */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: white;
  color: var(--text);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}
.form-input:disabled {
  background: var(--bg-2);
  color: var(--text-2);
}

/* ========== v2 新增：Toast 消息提示 ========== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: toastIn 0.3s ease;
  max-width: 90vw;
  text-align: center;
}
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast { pointer-events: auto; }
.toast.toast-info { background: var(--primary); color: white; }
.toast.toast-success { background: var(--success); color: white; }
.toast.toast-error { background: var(--warning); color: white; }
.toast.toast-warning { background: #fdcb6e; color: #2d3436; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========== v2 新增：v2 响应式补丁 ========== */
@media (max-width: 768px) {
  .v2-grid.two,
  .v2-grid.three,
  .v2-grid.four { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 28px; }
  .v2-hero { padding: 100px 0 60px; }
  .v2-page-hero h1 { font-size: 24px; }
  .v2-band-inner { flex-direction: column; text-align: center; }
  .v2-band-inner p { max-width: 100%; }
  .v2-filter { flex-direction: column; align-items: stretch; }
  .v2-timeline { flex-direction: column; align-items: center; }
  .v2-timeline > div b { white-space: normal; }
  .section-header h2 { font-size: 24px; }
  .auth-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}



/* ========== AI 智能对话输入框 ========== */
.ai-chat-section {
  margin-top: -20px;
  position: relative;
  z-index: 3;
  padding-bottom: 10px;
}
.ai-chat-box {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(108,92,231,0.12);
  padding: 24px 24px 18px;
  position: relative;
  border: 1px solid rgba(108,92,231,0.08);
}
.ai-chat-icon {
  font-size: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-chat-icon::after {
  content: '有什么我可以帮你的？';
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.ai-chat-input-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.ai-chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
  max-height: 120px;
  line-height: 1.5;
  background: var(--bg-2);
}
.ai-chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.08);
  background: white;
}
.ai-chat-input::placeholder {
  color: var(--text-3);
}
.ai-chat-send {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), #8B7BF7);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  height: 48px;
}
.ai-chat-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108,92,231,0.3);
}
.ai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ai-chat-examples {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ai-chat-example {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.ai-chat-example:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.ai-chat-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 8px;
  justify-content: center;
  color: var(--text-2);
  font-size: 13px;
}
.ai-chat-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: chatPulse 1.2s ease-in-out infinite;
}
.ai-chat-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}
.ai-chat-result {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.ai-chat-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.ai-chat-result-close {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}
.ai-chat-result-close:hover {
  background: var(--bg-2);
  color: var(--text);
}
.ai-chat-result-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: var(--radius);
  max-height: 300px;
  overflow-y: auto;
}
.ai-chat-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.ai-chat-model-info {
  font-size: 11px;
  color: var(--text-3);
}
.ai-chat-retry {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}
.ai-chat-retry:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .ai-chat-box { padding: 16px; }
  .ai-chat-input-wrap { flex-direction: column; align-items: stretch; }
  .ai-chat-send { width: 100%; height: 42px; padding: 10px; }
  .ai-chat-icon::after { font-size: 14px; }
}
@media (max-width: 480px) {
  .ai-chat-examples { gap: 6px; }
  .ai-chat-example { font-size: 11px; padding: 4px 10px; }
}
/* ========== 导航门户 v2：顶部栏 ========== */
.ntopbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.ntopbar-scrolled { box-shadow: var(--shadow-lg); }
.ntopbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ntopbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.ntopbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}
.ntopbar-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.ntopbar-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  position: relative;
}
.ntopbar-search-input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: var(--bg-2);
  transition: all 0.2s;
}
.ntopbar-search-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.08);
}
.ntopbar-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
}
.ntopbar-search-btn:hover { background: var(--bg); }
.ntopbar-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.ntopbar-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.2s;
}
.ntopbar-links a:hover { color: var(--primary); }

/* ========== 导航门户 v2：Hero ========== */
.nhero {
  padding: 100px 0 50px;
  background: linear-gradient(135deg, #2d1b69 0%, #6C5CE7 40%, #00CEC9 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.nhero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(162,155,254,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(0,206,201,0.15) 0%, transparent 60%);
}
.nhero-content {
  position: relative;
  z-index: 1;
}
.nhero-title {
  font-size: 40px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.nhero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* ========== 导航门户 v2：主容器 ========== */
.navigator-main {
  padding: 30px 0 60px;
  background: var(--bg);
  min-height: 60vh;
}
.ncontainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 导航门户 v2：Tab 按钮 ========== */
.ntab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.ntab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.ntab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(108,92,231,0.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.ntab-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(108,92,231,0.3);
}
.ntab-active:hover {
  background: var(--primary-dark);
  color: white;
}
.ntab-icon { font-size: 16px; }
.ntab-label { white-space: nowrap; }

/* ========== 导航门户 v2：板块头部 ========== */
.nsection-header {
  text-align: center;
  margin-bottom: 28px;
}
.nsection-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.nsection-subtitle {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.nsection-count {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}

/* ========== 导航门户 v2：分组 ========== */
.pg-container { }
.pg-group {
  margin-bottom: 36px;
}
.pg-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.pg-group-icon {
  font-size: 14px;
  color: var(--text-3);
}
.pg-group-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.pg-group-count {
  font-size: 12px;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 2px 10px;
  border-radius: 10px;
}

/* ========== 导航门户 v2：平台网格 ========== */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.pg-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  padding: 20px 16px;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pg-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(108,92,231,0.1);
  transform: translateY(-3px);
}
.pg-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
}
.pg-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.pg-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pg-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.pg-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pg-tag {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-3);
  line-height: 1.5;
}
.pg-card-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.pg-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}
.pg-card-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.pg-card-link:hover { text-decoration: underline; }
.pg-card-detail-btn {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.pg-card-detail-btn:hover { opacity: 1; }

/* ========== 导航门户 v2：详情 Modal ========== */
.dt-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s;
}
.dt-open { opacity: 1; }
.dt-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.dt-panel {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.dt-open .dt-panel {
  transform: translateY(0) scale(1);
}
.dt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}
.dt-close:hover { background: var(--primary); color: white; }
.dt-header {
  display: flex;
  gap: 20px;
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.dt-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
}
.dt-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.dt-header-info { flex: 1; }
.dt-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.dt-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dt-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-2);
}
.dt-body {
  padding: 24px 32px 32px;
}
.dt-section {
  margin-bottom: 24px;
}
.dt-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dt-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}
.dt-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dt-resource-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg-2);
  text-decoration: none;
  transition: all 0.2s;
}
.dt-resource-link:hover {
  background: var(--primary);
  color: white;
  transform: translateX(4px);
}
.dt-resource-link:hover .dt-resource-title { color: white; }
.dt-resource-link:hover .dt-resource-arrow { color: white; }
.dt-primary-link {
  background: rgba(108,92,231,0.08);
  border: 1px solid var(--primary-light);
}
.dt-primary-link:hover { background: var(--primary); }
.dt-resource-icon { font-size: 14px; flex-shrink: 0; }
.dt-resource-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.dt-resource-arrow {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.2s;
}

/* ========== 导航门户 v2：页脚 ========== */
.nfooter {
  background: #1a1a2e;
  color: white;
  padding: 48px 0 20px;
}
.nfooter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.nfooter-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.nfooter-brand p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}
.nfooter-tagline {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.5;
}
.nfooter-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.9;
}
.nfooter-links a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.nfooter-links a:hover { color: white; }
.nfooter-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  opacity: 0.5;
}

/* ========== 导航门户 v2：响应式 ========== */
@media (max-width: 768px) {
  .ntopbar-inner { gap: 10px; }
  .ntopbar-name { display: none; }
  .ntopbar-search { max-width: none; flex: 1; }
  .ntopbar-links { display: none; }
  .nhero-title { font-size: 28px; }
  .pg-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .pg-card { padding: 14px; }
  .nfooter-grid { grid-template-columns: 1fr; gap: 24px; }
  .dt-panel { margin: 10px; max-height: 90vh; }
  .dt-header { padding: 20px 20px 16px; flex-direction: column; text-align: center; }
  .dt-body { padding: 16px 20px 24px; }
  .dt-name { font-size: 20px; }
}
@media (max-width: 480px) {
  .ntab { padding: 8px 12px; font-size: 12px; }
  .ntab-label { font-size: 11px; }
  .pg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pg-card-logo { width: 40px; height: 40px; }
}

/* ========== 模态框 ========== */
.platform-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.platform-detail-section {
  margin-bottom: 32px;
}

.platform-detail-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.platform-detail-section p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-tags .tag {
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-2);
}

.detail-links {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
}

.detail-link:hover {
  background: var(--primary);
  color: white;
  transform: translateX(8px);
}

.detail-link .link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .platform-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .detail-header {
    flex-direction: column;
  }

  .detail-logo {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }

  .modal-content {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

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