/* ============================================================
   TongdaAI Theme Override - aipipo.com 风格适配
   ============================================================ */

/* === 字体 === */
:root {
  --font-family-base: -apple-system, BlinkMacSystemFont, Inter, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --color-bg: #ffffff;
  --color-text: #0a0e1a;
  --color-text-secondary: #5f6572;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-border: #e5e7eb;
  --color-surface: #f9fafb;
  --color-surface-hover: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body, html {
  font-family: var(--font-family-base) !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Header / 导航栏 毛玻璃效果 === */
.pc-header,
[class*="pc-header"],
[class*="navbar"],
[class*="header"][class*="pc"] {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: none !important;
}

.mobile-header,
[class*="mobile-header"] {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* === 导航链接 === */
.nav-item a,
.nav-item span,
[class*="nav-item"] a,
[class*="nav-item"] span {
  color: var(--color-text) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
}

.nav-item a:hover,
.nav-item span:hover,
[class*="nav-item"] a:hover,
[class*="nav-item"] span:hover {
  color: var(--color-primary) !important;
}

/* === Logo 设为静态不可点击 === */
.pc-header .logo a,
.pc-header [class*="logo"] a,
.pc-header a:first-child,
[class*="pc-header"] .logo a,
[class*="pc-header"] .logo,
[class*="pc-header"] a[class*="logo"] {
  pointer-events: none !important;
  cursor: default !important;
}

/* === 按钮 === */
button,
.el-button,
[class*="el-button"] {
  border-radius: var(--radius-md) !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.el-button--primary,
button.primary,
[class*="primary"] {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

.el-button--default,
button.default {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
}

/* === Hero 区域 === */
.hero,
[class*="hero"],
.hero-section {
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%) !important;
  padding: 80px 0 60px !important;
}

.hero h1,
[class*="hero"] h1 {
  font-size: 56px !important;
  font-weight: 700 !important;
  color: var(--color-text) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

.hero p,
.hero .subtitle,
[class*="hero"] p,
[class*="hero"] .subtitle {
  font-size: 18px !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.6 !important;
  max-width: 640px !important;
}

/* === 标题 === */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text) !important;
  font-weight: 600 !important;
}

h2 { font-size: 40px !important; letter-spacing: -0.02em !important; }
h3 { font-size: 28px !important; }
h4 { font-size: 20px !important; }

/* === 卡片 === */
[class*="card"],
[class*="Card"],
.el-card {
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

[class*="card"]:hover,
[class*="Card"]:hover,
.el-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px) !important;
}

/* === 文本颜色 === */
p, span, li, div {
  color: inherit;
}

.text-secondary,
[class*="text-secondary"],
[class*="description"],
[class*="desc"] {
  color: var(--color-text-secondary) !important;
}

/* === 分割线 === */
.divider,
[class*="divider"],
.el-divider {
  border-color: var(--color-border) !important;
}

/* === Footer === */
.footer,
[class*="footer"],
.pc-footer {
  background: var(--color-surface) !important;
  border-top: 1px solid var(--color-border) !important;
  padding: 48px 0 !important;
}

.footer-title,
[class*="footer-title"] {
  color: var(--color-text) !important;
  font-weight: 600 !important;
}

.footer-desc,
[class*="footer-desc"] {
  color: var(--color-text-secondary) !important;
}

.footer-item a,
[class*="footer-item"] a {
  color: var(--color-text-secondary) !important;
  transition: color 0.2s ease !important;
}

.footer-item a:hover,
[class*="footer-item"] a:hover {
  color: var(--color-primary) !important;
}

/* === 链接 === */
a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

a:hover {
  color: var(--color-primary-hover) !important;
}

/* === 输入框 === */
input,
textarea,
[class*="input"],
.el-input__inner {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input:focus,
textarea:focus,
[class*="input"]:focus,
.el-input__inner:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
  outline: none !important;
}

/* === 功能特性 / 展示区 === */
.feature-card,
[class*="feature"],
.showcase-item {
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
}

/* === 标签 / Badge === */
.tag,
[class*="tag"],
.el-tag {
  border-radius: 20px !important;
  font-weight: 500 !important;
  padding: 4px 12px !important;
}

/* === 间距调整 === */
.section,
[class*="section"] {
  padding: 80px 0 !important;
}

/* === FAQ === */
.faq-item,
[class*="faq-item"] {
  border-bottom: 1px solid var(--color-border) !important;
}

/* === 对比度/可读性提升 === */
::selection {
  background: rgba(59, 130, 246, 0.15) !important;
  color: var(--color-text) !important;
}

/* === 滚动条 === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

/* === 图片圆角 === */
img {
  border-radius: var(--radius-md);
}

/* === 移动端适配 === */
@media (max-width: 768px) {
  .hero h1,
  [class*="hero"] h1 {
    font-size: 36px !important;
  }

  .hero p,
  [class*="hero"] p {
    font-size: 16px !important;
  }

  h2 { font-size: 30px !important; }
  h3 { font-size: 22px !important; }
}