/* ===== 深化设计增强样式 v3.0 ===== */

/* ===== 1. 留白与间距深化 ===== */
.section { padding: 100px 0; }
.section-header { margin-bottom: 64px; }
.section-title { margin-bottom: 16px; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.1rem; line-height: 1.8; max-width: 560px; margin: 0 auto; }

.grid-2 { gap: 40px; }
.grid-3 { gap: 36px; }
.grid-4 { gap: 28px; }

.hero { padding: 140px 0 100px; }
.hero-inner { gap: 80px; }
.hero h1 { font-size: 3.4rem; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.hero-subtitle { font-size: 1.6rem; margin-bottom: 24px; }
.hero-desc { font-size: 1.1rem; line-height: 1.9; margin-bottom: 36px; }
.hero-btns { gap: 16px; }
.hero-stats { gap: 48px; padding-top: 40px; margin-top: 40px; }

.product-card { padding: 36px 32px; }
.feature-card { padding: 36px 32px; }
.partner-card { padding: 36px 32px; }
.case-content { padding: 24px; }
.contact-form { padding: 48px; }

/* ===== 2. 字体层级规范 ===== */
body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 标题层级 */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: 2.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
h4 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; }

.section-title { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; }
.page-header h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; }

/* 正文层级 */
p { font-size: 1rem; line-height: 1.8; color: var(--text-light); }
.lead { font-size: 1.15rem; line-height: 1.8; }
small, .small { font-size: 0.875rem; }
.caption { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }

/* 按钮字体 */
.btn { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; }
.btn-lg { font-size: 1.05rem; padding: 14px 32px; }
.btn-sm { font-size: 0.85rem; padding: 8px 18px; }

/* 导航字体 */
.nav a { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; }
.logo-text { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }

/* 卡片字体 */
.product-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.product-card p { font-size: 0.95rem; line-height: 1.75; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.case-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.news-card-title { font-size: 1.05rem; font-weight: 600; line-height: 1.5; }

/* ===== 3. 交互反馈深化 ===== */

/* 按钮交互 */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: translateY(0) scale(0.98) !important; }
.btn:focus-visible {
  outline: 3px solid rgba(37,99,235,0.4);
  outline-offset: 2px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px -5px rgba(37,99,235,0.45);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #EFF6FF;
  transform: translateY(-2px);
}
.btn-white:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 导航链接交互 */
.nav a {
  position: relative;
  transition: all 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav a:hover::after,
.nav a.active::after { left: 12px; right: 12px; }

/* 卡片交互 */
.product-card,
.feature-card,
.partner-card,
.case-card,
.news-card,
.cred-card,
.cred-mini-card,
.honor-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  cursor: pointer;
}
.product-card:hover,
.feature-card:hover,
.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.2);
}
.case-card:hover,
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.12);
  border-color: rgba(37,99,235,0.2);
}

/* 链接交互 */
a { transition: color 0.2s ease, opacity 0.2s ease; }
.footer-links a:hover { color: var(--light); padding-left: 8px; }
.learn-more { transition: gap 0.2s ease, color 0.2s ease; }
.learn-more:hover { gap: 12px; color: var(--primary-dark); }
.news-link:hover { gap: 12px; }

/* 表单交互 */
.form-group input,
.form-group textarea,
.form-group select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-group input:hover,
.form-group textarea:hover { border-color: #94A3B8; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
  background: #FAFCFF;
}

/* 图片悬停 */
.case-card img,
.news-card-img,
.news-image img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-card:hover img,
.news-card:hover .news-card-img,
.news-card:hover .news-image img { transform: scale(1.06); }

/* 手机号按钮 */
.phone {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(37,99,235,0.4);
}

/* ===== 4. 视觉风格深化 ===== */

/* 渐变增强 */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 40%, #F8FAFC 100%);
}
.hero::before {
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 65%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* 卡片阴影层次 */
.product-card,
.feature-card,
.partner-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}
.case-card,
.news-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
}

/* 图标渐变增强 */
.product-icon,
.partner-icon,
.cred-icon,
.cred-mini-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 50%, var(--secondary) 100%);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* 标签样式 */
.tag {
  background: linear-gradient(135deg, #EFF6FF, #E0F2FE);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.case-tag {
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Hero 数字统计 */
.stat-num {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 页面头部增强 */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 50%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

/* CTA 区域增强 */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 50%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* 分割线美化 */
.hero-stats { border-top: 1px solid rgba(37,99,235,0.12); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* 选中文字颜色 */
::selection { background: rgba(37,99,235,0.15); color: var(--primary-dark); }

/* 图片加载占位 */
img { background: linear-gradient(135deg, #F1F5F9, #E2E8F0); }

/* 响应式间距补充 */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 100px 0 72px; }
  .hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .product-card, .feature-card { padding: 28px 24px; }
  .contact-form { padding: 32px 24px; }
}

/* ===== section-badge 字号调大 ===== */
.section-badge {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 9px 18px;
    gap: 9px;
}

/* ===== Logo 样式 ===== */
.logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    background: transparent;
}
.logo img:hover {
    transform: none;
    box-shadow: none;
}
.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a2744;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.logo-en {
    font-size: 0.62rem;
    color: #2a5298;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-top: 2px;
    opacity: 0.85;
}
.logo:hover .logo-text { color: #2a5298; }

/* Footer Logo */
#footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    object-fit: contain;
    background: transparent;
}
