/* ========================================
   健岩医药 jyyy.top 全站公共样式
   风格：现代科技感 · 深色背景 · 蓝绿配色
   ======================================== */

:root {
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-card2: #1a2235;
  --accent-blue: #00b4d8;
  --accent-green: #00e5a0;
  --accent-glow: rgba(0, 180, 216, 0.15);
  --text-primary: #e8f0fe;
  --text-secondary: #8fa3c8;
  --text-muted: #4a5878;
  --border: rgba(0, 180, 216, 0.2);
  --border-light: rgba(255,255,255,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(0, 180, 216, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-green); }

img { max-width: 100%; height: auto; display: block; }

/* ---- 导航栏 ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: .05em;
}
.nav-logo span { color: var(--accent-blue); }
.nav-logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary); font-size: .92rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  color: #0a0e1a !important;
  font-weight: 600;
  padding: 8px 20px !important;
  border-radius: 24px;
  border: none !important;
  transition: opacity .2s, transform .2s !important;
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); color: #0a0e1a !important; }

.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); margin: 5px 0;
  transition: all .3s;
}

/* ---- 通用 section ---- */
.section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  color: var(--accent-blue);
  background: rgba(0,180,216,.1);
  border: 1px solid rgba(0,180,216,.3);
  padding: 4px 14px;
  border-radius: 24px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc { color: var(--text-secondary); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ---- 卡片 ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  color: #0a0e1a;
}
.btn-primary:hover { opacity: .85; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,180,216,.3); color: #0a0e1a; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-blue);
  color: var(--accent-blue);
}
.btn-outline:hover { background: rgba(0,180,216,.1); transform: translateY(-2px); color: var(--accent-blue); }

/* ---- 页脚 ---- */
.footer {
  background: #070b16;
  border-top: 1px solid var(--border-light);
  padding: 48px 5% 28px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--text-secondary); font-size: .9rem; margin-top: 12px; line-height: 1.8; }
.footer-col h4 { font-size: .88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; letter-spacing: .05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: .88rem; }
.footer-col a:hover { color: var(--accent-blue); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: .82rem;
}
.footer-shortlinks { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-shortlinks a { color: var(--accent-blue); font-size: .82rem; }
.footer-shortlinks a:hover { color: var(--accent-green); }

/* ---- 渐变线 ---- */
.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  margin: 0;
}

/* ---- 标签徽章 ---- */
.badge {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(0,229,160,.1);
  color: var(--accent-green);
  border: 1px solid rgba(0,229,160,.25);
}
.badge-blue {
  background: rgba(0,180,216,.1);
  color: var(--accent-blue);
  border-color: rgba(0,180,216,.25);
}

/* ---- 网格 ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---- 动效 ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- 分隔线 ---- */
.divider { height: 1px; background: var(--border-light); margin: 0; }

/* ---- 页面顶部间距补偿 ---- */
.page-top { padding-top: 64px; }

/* ---- 表单 ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .88rem; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0,180,216,.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--bg-card); }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(10,14,26,.97);
    padding: 20px 5% 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 60px 5%; }
}
