/* ==================== 科新咨询官网样式 ==================== */

/* ===== footer 公众号二维码卡（2026.07.01 加）===== */
.footer-qr {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: inline-block;
}
.footer-qr-img {
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  background: #fff;
  padding: 4px;
}
.footer-qr-tip {
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.55;
  text-align: center;
  letter-spacing: 0.2px;
}

:root {
  /* 科新品牌色 - 深蓝色系 */
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0f2440;
  --accent: #c8a96e;
  --accent-light: #e0c99a;
  
  /* 功能色 */
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #999;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-light: #f0f4f8;
  --border: #e0e4e8;
  --border-light: #eef1f5;
  --success: #28a745;
  --warning: #e6a817;
  --danger: #dc3545;
  --info: #17a2b8;
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

/* ==================== 重置 & 基础 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  height: 72px;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  transition: opacity 0.3s;
}
.nav-logo:hover {
  opacity: 0.85;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: #E67E22;
  letter-spacing: 1px;
  margin-left: 0;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
  border-radius: 4px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 32px;
}

.navbar-nav a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  width: 100%;
}

/* ==================== 首页 - Hero区 ==================== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(200,169,110,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(200,169,110,0.2);
  color: var(--accent-light);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(200,169,110,0.3);
}

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

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,169,110,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* FAQ 筛选按钮 - 深色边框+深色文字，白底白字看不见 */
.btn-faq-outline {
  background: #fff;
  color: #1a3a5c;
  border: 1.5px solid #1a3a5c;
}
.btn-faq-outline:hover {
  background: #1a3a5c;
  color: #fff;
  transform: translateY(-2px);
}

/* ==================== 首页 - 数据统计 ==================== */
.stats {
  padding: 60px 0;
  background: var(--bg-secondary);
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ==================== 首页 - 服务预览 ==================== */
.services-preview {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== 首页 - 最新动态 ==================== */
.news-preview {
  padding: 80px 0;
  background: var(--bg-light);
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.news-item:last-child { border-bottom: none; }

.news-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.news-date .day {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.news-date .month {
  font-size: 12px;
  color: var(--text-muted);
}

.news-content { flex: 1; }

.news-content h4 a {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.5;
}

.news-content h4 a:hover { color: var(--primary-light); }

.news-content .summary {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

/* Hero 区"科"和"新"高亮 - 亮橙色 */
.hero-kexin {
  color: #ff8c00;
  font-weight: 700;
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-brand h3 span { color: var(--accent); }

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
}

/* V2.9 footer 左下角 slogan（统一 19 页） */
.footer-brand .footer-slogan {
  color: #F59E0B;
  font-weight: 600;
  font-size: 16px;
  margin: 12px 0 0;
  letter-spacing: 1px;
}
.footer-brand .footer-slogan .highlight {
  color: #FCD34D;
  font-weight: 700;
  font-size: 18px;
}

.footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer h4 a {
  color: white;
  text-decoration: none;
}

.footer h4 a:hover {
  color: var(--accent);
}

.footer ul {
  list-style: none;
}

.footer ul li { margin-bottom: 12px; }

.footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer ul li a:hover {
  color: var(--accent);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}
/* 备案号链接颜色与左侧版权字一致（2026.7.3 贾老师反馈：浅蓝看不清） */
.footer-bottom a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-bottom a:hover {
  color: rgba(255,255,255,1);
  text-decoration: underline;
}

/* ==================== 内页通用 ==================== */
.page-hero {
  background: linear-gradient(135deg, #0f2440 0%, #1a3a5c 50%, #2a5a8c 100%);
  color: white;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.page-hero .container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  padding: 100px 0 60px 0;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  color: white;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ==================== 服务项目页 ==================== */
.services-page .service-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}

.service-section:last-child { border-bottom: none; }

.service-section h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.service-grid-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-detail-card {
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.service-detail-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.service-detail-card h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-detail-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== 成功案例页 ==================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.case-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.case-card .industry-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-light);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.case-card ul {
  list-style: none;
  padding: 0;
}

.case-card ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.case-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
}

/* ==================== 关于我们页 ==================== */
.about-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-intro h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
}

.about-intro p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.about-feature {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.about-feature .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.about-feature h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
}

.about-feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== 联系我们页 ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-sans);
  margin-bottom: 16px;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .navbar-nav {
    display: none; /* 移动端考虑汉堡菜单 */
  }

  .hero { padding: 140px 0 60px; }
  .hero h1 { font-size: 32px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-grid-detail { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}

/* ==================== 后台管理 ==================== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.admin-login-box {
  background: white;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 400px;
  max-width: 90%;
}

.admin-login-box h1 {
  font-size: 24px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 32px;
}

.admin-login-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 16px;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--primary-dark);
  color: white;
  padding: 20px;
}

.admin-sidebar h2 {
  font-size: 18px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar nav a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 14px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-main {
  flex: 1;
  padding: 32px;
  background: var(--bg-secondary);
}

.admin-main h1 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.admin-table th {
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
}

.import-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.import-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.import-form .btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-danger {
  background: var(--danger);
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

/* ==================== 申报计算器浮动入口 ==================== */
.calc-float-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 14px 18px;
  background: linear-gradient(135deg, #1a3a5c, #2a5a8c);
  color: #fff;
  border-radius: 56px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(26,58,92,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}
.calc-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(26,58,92,0.45);
  color: #fff;
}
.calc-float-wheel {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  animation: wheelSpin 8s linear infinite;
}
@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.calc-float-segment {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
}
.calc-float-segment:nth-child(1) { background: conic-gradient(#1a3a5c 0deg 45deg, transparent 45deg 360deg); }
.calc-float-segment:nth-child(2) { background: conic-gradient(transparent 45deg 90deg, #2a5a8c 90deg 135deg, transparent 135deg 360deg); }
.calc-float-segment:nth-child(3) { background: conic-gradient(transparent 90deg 135deg, #E67E22 135deg 180deg, transparent 180deg 360deg); }
.calc-float-segment:nth-child(4) { background: conic-gradient(transparent 135deg 180deg, #27ae60 180deg 225deg, transparent 225deg 360deg); }
.calc-float-segment:nth-child(5) { background: conic-gradient(transparent 180deg 225deg, #e74c3c 225deg 270deg, transparent 270deg 360deg); }
.calc-float-segment:nth-child(6) { background: conic-gradient(transparent 225deg 270deg, #9b59b6 270deg 315deg, transparent 315deg 360deg); }
.calc-float-segment:nth-child(7) { background: conic-gradient(transparent 270deg 315deg, #3498db 315deg 360deg, transparent 0deg 0deg); }
.calc-float-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.calc-float-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .calc-float-btn {
    bottom: 20px;
    right: 16px;
    padding: 10px 16px 10px 12px;
    gap: 8px;
  }
  .calc-float-wheel {
    width: 44px;
    height: 44px;
  }
  .calc-float-label {
    font-size: 13px;
  }
}

/* ==================== 下拉菜单修复 2026.6.18 ==================== */
/* 覆盖全站 EJS 内联的破损 dropdown CSS — 用 !important 单点修复全站 */
.navbar-nav li.dropdown { position: relative !important; }
.dropdown-menu {
  display: block !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  border-radius: 8px !important;
  padding: 8px 0 !important;
  min-width: 180px !important;
  z-index: 1000 !important;
  list-style: none !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-4px) !important;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s !important;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.dropdown-menu li { padding: 0 !important; list-style: none !important; }
.dropdown-menu a {
  display: block !important;
  padding: 8px 16px !important;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  background: #fff !important;
  transition: background 0.15s !important;
}
.dropdown-menu a:hover { background: #f5f5f5 !important; color: #d4af37 !important; }
