/* 田讯科技工作室 - 主样式 */

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #1976D2;
  --accent: #00B0FF;
  --accent2: #29B6F6;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #f0f4ff;
  --bg-section: #f8faff;
}

/* 全局 */
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text-dark); }
a { text-decoration: none; transition: all .3s; }

/* 导航 */
#mainNav {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 2px 20px rgba(21,101,192,.3);
  transition: all .3s;
  padding: 12px 0;
}
#mainNav.scrolled {
  padding: 8px 0;
  background: rgba(13,71,161,.97) !important;
  backdrop-filter: blur(10px);
}
.navbar-brand { font-size: 1.3rem; letter-spacing: 1px; }
.nav-link { font-size: .95rem; padding: .5rem 1rem !important; border-radius: 6px; transition: all .3s; }
.nav-link:hover { background: rgba(255,255,255,.15); }

/* Hero Banner */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #1976D2 70%, #0288D1 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,176,255,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41,182,246,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-subtitle { font-size: 1.3rem; color: rgba(255,255,255,.85); }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: .85rem; margin-bottom: 20px; backdrop-filter: blur(10px); }
.hero-btn { padding: 14px 36px; border-radius: 50px; font-size: 1rem; font-weight: 600; transition: all .3s; }
.hero-btn-primary { background: #fff; color: var(--primary); border: none; }
.hero-btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,176,255,.4); }
.hero-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.hero-btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* 浮动卡片 */
.hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  transition: transform .3s;
}
.hero-card:hover { transform: translateY(-5px); }
.hero-card .icon { width: 50px; height: 50px; background: rgba(255,255,255,.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 12px; }

/* 统计数字 */
.stats-section { background: var(--primary); padding: 60px 0; }
.stat-item { text-align: center; color: #fff; }
.stat-number { font-size: 3rem; font-weight: 800; color: #fff; }
.stat-number span { font-size: 1.5rem; }
.stat-label { color: rgba(255,255,255,.8); font-size: .95rem; }

/* 服务卡片 */
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--text-dark); }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; margin: 16px auto; }

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(21,101,192,.08);
  border: 1px solid rgba(21,101,192,.08);
  transition: all .3s;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(21,101,192,.15);
  border-color: var(--primary-light);
}
.service-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  margin-bottom: 20px;
}
.service-card h5 { font-weight: 700; color: var(--text-dark); }
.service-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

/* 商品卡片 */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(21,101,192,.08);
  border: 1px solid rgba(21,101,192,.06);
  transition: all .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(21,101,192,.15); }
.product-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.8);
}
.product-body { padding: 20px; }
.product-price { font-size: 1.6rem; font-weight: 800; color: #e53935; }
.product-price-original { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }
.btn-buy { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; border-radius: 50px; padding: 10px 28px; font-weight: 600; transition: all .3s; }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,101,192,.4); color: #fff; }

/* 新闻卡片 */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(21,101,192,.07);
  border: 1px solid rgba(21,101,192,.06);
  transition: all .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(21,101,192,.12); }
.news-date { font-size: .8rem; color: var(--text-muted); }
.news-title { font-weight: 600; color: var(--text-dark); font-size: 1rem; }
.news-title:hover { color: var(--primary); }

/* 联系区域 */
.contact-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.contact-card { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 28px; color: #fff; }
.contact-icon { width: 50px; height: 50px; background: rgba(255,255,255,.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* 表单 */
.form-control, .form-select {
  border: 1.5px solid #e0e8ff;
  border-radius: 10px;
  padding: 12px 16px;
  transition: all .3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; border-radius: 50px;
  padding: 14px 40px; font-weight: 600; font-size: 1rem;
  transition: all .3s;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(21,101,192,.4); color: #fff; }

/* 页脚 */
.footer-section { background: #0a1628; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #8899aa; font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }

/* 滚动动画 */
.fade-up { opacity: 0; transform: translateY(30px); transition: all .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.7rem; }
  .stat-number { font-size: 2rem; }
}

/* 页面顶部间距 */
.page-top { padding-top: 80px; }

/* 面包屑 */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0 50px;
  color: #fff;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 700; }

/* 支付弹窗 */
.pay-qr { width: 200px; height: 200px; background: #f5f5f5; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.pay-tab { cursor: pointer; padding: 12px 24px; border-radius: 10px; border: 2px solid #e0e8ff; transition: all .3s; }
.pay-tab.active { border-color: var(--primary); background: var(--bg-light); }
.pay-tab.alipay.active { border-color: #1677ff; background: #e8f0ff; }
.pay-tab.wechat.active { border-color: #07c160; background: #e8f8ee; }
