/* =====================================================
   GET关务工具站 - 全局样式 v5 (重构版)
   架构：Reset → 变量 → 工具类 → 导航 → 首页门户 → 
         首页区块 → 通用页面 → 组件 → 辅助类 → 响应式
   ===================================================== */

/* ===== 1. CSS Reset（必须在最前面，确保所有元素盒模型一致） ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-gray);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===== 2. CSS 变量 ===== */
:root {
  --primary: #1e3a5f;
  --primary-light: #2c5282;
  --primary-dark: #152a45;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --success: #2563eb;
  --warning: #3b82f6;
  --bg-gray: #f5f7fa;
  --bg-white: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(30, 58, 95, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* ===== 3. 通用工具类 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 70px 0;
}

.section-white {
  background: var(--bg-white);
}

.section-gray {
  background: var(--bg-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 清除浮动 */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ===== 4. 顶部导航栏 ===== */
.navbar {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--primary);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.06);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item:hover {
  background: rgba(30, 58, 95, 0.06);
  color: var(--primary);
}

.dropdown-icon {
  font-size: 16px;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== 5. 首页门户三栏布局 ===== */
.portal-hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    linear-gradient(135deg, #152a45 0%, #1e3a5f 52%, #2c5282 100%);
  padding: 30px 0 42px;
  position: relative;
  overflow: hidden;
}

.portal-head {
  text-align: center;
  margin-bottom: 22px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.portal-badge-dot {
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.portal-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 8px;
}

.portal-highlight {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

/* 三栏网格：左3 + 中4(2×2) + 右3 */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  gap: 18px;
  align-items: stretch;
  width: 100%;
}

/* 左右服务列（3个卡片纵向排列） */
.portal-side {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 14px;
}

.portal-service-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.portal-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.portal-service-icon {
  font-size: 34px;
  margin-bottom: 10px;
  line-height: 1;
}

.portal-service-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.portal-service-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 中心功能列（2×2 卡片） */
.portal-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.portal-func-card {
  background: white;
  border-radius: 14px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.portal-func-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent, var(--primary));
}

.portal-func-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.portal-func-icon {
  font-size: 34px;
  margin-bottom: 12px;
  line-height: 1;
}

.portal-func-text {
  flex: 1;
}

.portal-func-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.portal-func-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.portal-func-arrow {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, var(--primary));
}

/* ===== 6. 首页其他区块 ===== */

/* ---- 资讯模块 ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.3);
}

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.news-body {
  padding: 20px;
}

.news-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* ---- CTA 区域 ---- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ---- Footer ---- */
.footer {
  background: #0f1d30;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

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

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, var(--primary-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-contact {
  font-size: 13px;
  line-height: 2;
}

.footer-contact strong {
  color: white;
  font-weight: 500;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

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

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

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: white;
}

/* 简化版 Footer（子页面用，只有底部版权行） */
.footer-simple {
  background: #0f1d30;
  color: rgba(255, 255, 255, 0.7);
  padding: 24px 0;
}

.footer-simple .footer-bottom {
  border-top: none;
  padding-top: 0;
}

/* ===== 7. 通用页面样式 ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: white;
  padding: 46px 0;
}

.page-header h1 {
  font-size: 30px;
  margin-bottom: 8px;
  font-weight: 700;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

/* 大尺寸页头（服务类页面用） */
.page-header-lg {
  padding: 60px 0;
}

.page-header-lg h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-header-lg p {
  font-size: 16px;
}

.page-content {
  padding: 40px 0;
  background: #f8fafc;
  min-height: 600px;
}

/* 通用卡片 */
.generic-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* 通用提示框 */
.notice {
  background: #eff6ff;
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.notice strong {
  color: #1d4ed8;
}

.notice-info {
  background: #f0f7ff;
  border-left: 4px solid var(--primary);
  color: var(--text-secondary);
}

.notice-info strong {
  color: var(--primary);
}

.notice-success {
  background: #eff6ff;
  border-left: 4px solid var(--success);
}

.notice-success strong {
  color: var(--success);
}

.notice-danger {
  background: #eff6ff;
  border-left: 4px solid var(--accent);
}

.notice-danger strong {
  color: var(--accent);
}

/* 官方标签 */
.official-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #3b82f6;
  color: white;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

/* 即将上线/占位标记 */
.placeholder-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
}

.coming-soon {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.coming-soon::after {
  content: '即将上线';
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--warning);
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* ===== 8. 通用组件 ===== */

/* ---- 按钮 ---- */
.btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

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

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ---- 表单 ---- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--accent);
  margin-right: 2px;
}

.form-label .unit {
  font-weight: 400;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  background: white;
  font-family: inherit;
  color: var(--text-primary);
  box-sizing: border-box;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---- 标签页 ---- */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.news-tab {
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-gray);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.news-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.news-tab.active {
  background: var(--primary);
  color: white;
}

/* ===== 9. 响应式断点（集中管理） ===== */

/* 平板（≤1024px） */
@media (max-width: 1024px) {
  /* 门户三栏 → 单列 */
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .portal-center {
    order: -1;
  }

  /* 资讯网格 3→2 */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer 5→3 */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手机横屏（≤768px） */
@media (max-width: 768px) {
  /* 导航菜单隐藏 */
  .nav-menu {
    display: none;
  }

  .navbar-inner {
    height: 60px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  /* 区块间距 */
  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 24px;
  }

  /* 资讯网格 → 单列 */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Footer → 2列 */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer {
    padding: 40px 0 24px;
  }

  /* CTA */
  .cta-section {
    padding: 56px 0;
  }

  .cta-title {
    font-size: 26px;
  }

  .cta-desc {
    font-size: 15px;
  }

  /* 表单行 → 单列 */
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* 手机竖屏（≤640px） */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  /* 门户标题 */
  .portal-title {
    font-size: 26px;
  }

  /* 门户中心 2×2 → 单列 */
  .portal-center {
    grid-template-columns: 1fr;
  }

  /* 左右服务列 → 单列 */
  .portal-side {
    grid-template-columns: 1fr;
  }

  /* Footer → 单列 */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* 页脚底部 */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* ===== 会员福利横幅 ===== */
.member-banner {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e3a5f 100%);
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.member-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.member-banner::after {
  content: '';
  position: absolute;
  left: 10%; bottom: -100px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.member-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.member-left { flex-shrink: 0; }
.member-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.member-left h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.member-left p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.member-benefits {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}
.benefit-item { text-align: center; }
.benefit-num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.benefit-label {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}
.benefit-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.2);
}
.member-btn {
  flex-shrink: 0;
  padding: 14px 32px;
  background: #fff;
  color: #2563eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.member-banner a.member-btn {
  text-decoration: none;
  display: inline-block;
}
.member-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .member-banner-inner { flex-direction: column; text-align: center; gap: 24px; }
  .benefit-num { font-size: 28px; }
  .member-left h2 { font-size: 22px; }
}

/* ===== 移动端导航抽屉 2026-10-28 明惠补 =====
   原 style.css 在 @media(max-width:768px) 只写了一句 .nav-menu{display:none}，
   没有任何替代入口，768/375 下 19 个内页全部点不进去。这里补一个汉堡 + 抽屉。
   工具站 17 个页面共用本文件，改一处全站生效。 */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1e3a5f;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  /* 布局：.nav-menu 隐藏后剩 logo / toggle / actions 三项，
     原 justify-content:space-between 会把 toggle 摆到正中间。
     这里改成 logo 吃满剩余空间，toggle 紧贴右侧按钮组。 */
  .navbar-inner { justify-content: flex-end; }
  .logo { margin-right: auto; }

  /* 抽屉：绝对定位挂在 .navbar 下（sticky 本身就是定位元素，不需要改） */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid #e6ecf4;
    box-shadow: 0 10px 26px rgba(15, 35, 65, .14);
    padding: 6px 12px 12px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.is-open { display: flex; }

  /* 关键：.nav-item 在桌面版是「链接 + 绝对定位下拉」的横排容器（flex row）。
     下拉改成 position:static 后它回归正常流，但父级仍是 row 方向 → .nav-link 和
     .nav-dropdown 会被摆成左右两栏各占一半（实测 375 是 12-190 / 190-363）。
     这里强制竖排，两个子项才上下堆叠、都能吃满宽度。 */
  .nav-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link {
    width: 100%;
    padding: 12px 10px;
    font-size: 15px;
    justify-content: space-between;
    border-radius: 8px;
  }

  /* 手机没有 hover，下拉在抽屉里直接静态展开 */
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: #f6f8fb;
    min-width: 0;
    width: 100%;
    padding: 4px 6px;
    margin: 2px 0 6px;
    border-radius: 8px;
  }
  .nav-item:hover .nav-dropdown { transform: none; }
  .dropdown-item { padding: 9px 10px; }
}
