/* ===========================================================
   北京阳弘科技 · 全站样式（科技蓝）
   所有脚本外置，事件用 addEventListener
   =========================================================== */

:root {
  --blue-900: #062a63;
  --blue-800: #0b3d91;
  --blue-700: #1155c9;
  --blue-600: #1a6fe8;
  --blue-500: #3d8bff;
  --blue-100: #e8f0fe;
  --blue-50:  #f4f8ff;

  --ink-900: #0f1c33;
  --ink-700: #2c3e56;
  --ink-500: #5b6b82;
  --ink-400: #8494a8;
  --ink-300: #b6c1d1;

  --line:    #e3e9f2;
  --bg:      #f7f9fc;
  --white:   #fff;

  --red:     #d92929;
  --shadow-sm: 0 1px 3px rgba(15, 28, 51, .06);
  --shadow:    0 4px 16px rgba(15, 28, 51, .08);
  --shadow-lg: 0 12px 40px rgba(11, 61, 145, .14);

  --radius:    10px;
  --radius-lg: 16px;
  --maxw:      1200px;
  --ease:      cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink-700);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.container {
  width: 92%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ================= 顶部栏 ================= */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand img { height: 52px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand-slogan {
  font-family: "华文行楷", "STXingkai", cursive;
  font-size: 20px;
  color: var(--red);
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: -2px;
  white-space: nowrap;
}

/* ================= 导航 ================= */
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-700);
  transition: all .25s var(--ease);
  position: relative;
  white-space: nowrap;
}
.nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav a.active { color: var(--blue-800); background: var(--blue-100); font-weight: 600; }

/* 导航栏会员入口（位于 .nav 内部，桌面端排在导航项之后） */
.nav-member {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-member:empty { display: none; }
.nav-login-btn {
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--blue-200);
  background: var(--white);
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.nav-login-btn:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-800);
}
.nav-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-800);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-600);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s var(--ease);
}
.nav-user-btn:hover { border-color: var(--blue-300); color: var(--blue-700); background: var(--blue-50); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink-700); border-radius: 2px;
  transition: all .25s var(--ease);
}

/* ================= 通用区块 ================= */
.section { padding: 68px 0; }
.section-alt { background: var(--white); }

.section-head { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: .5px;
  line-height: 1.3;
}
.section-title::after {
  content: "";
  display: block;
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-500));
  border-radius: 2px;
  margin: 16px auto 0;
}
.section-desc {
  margin-top: 16px;
  color: var(--ink-500);
  font-size: 15.5px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff;
  box-shadow: 0 4px 16px rgba(11, 61, 145, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(11, 61, 145, .4); }
.btn-outline {
  background: transparent;
  color: var(--blue-800);
  border: 1.5px solid var(--blue-800);
}
.btn-outline:hover { background: var(--blue-800); color: #fff; }
.btn-ghost {
  background: var(--white);
  color: var(--ink-700);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-700); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ================= 首页 Hero ================= */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(61, 139, 255, .28), transparent 60%),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 45%, #0d4fb8 100%);
  color: #fff;
  overflow: hidden;
  padding: 76px 0 88px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #7fc4ff, #c9e6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  font-size: 16.5px;
  line-height: 1.95;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--blue-800); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stat-num {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.hero-stat-num small { font-size: 15px; font-weight: 500; margin-left: 2px; }
.hero-stat-label { font-size: 13.5px; color: rgba(255,255,255,.62); margin-top: 4px; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-visual img { width: 100%; height: 420px; object-fit: cover; }
.hero-dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.hero-dots button {
  width: 26px; height: 4px;
  border: none; border-radius: 2px;
  background: rgba(255,255,255,.42);
  transition: all .3s var(--ease);
  padding: 0;
}
.hero-dots button.active { background: #fff; width: 40px; }

/* ================= 卡片网格 ================= */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c9dcfb; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 17px; font-weight: 700; color: var(--ink-900); margin-bottom: 9px; }
.card-text { font-size: 14.5px; color: var(--ink-500); line-height: 1.8; flex: 1; }
.card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-400);
}

/* 服务能力卡 */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue-800), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c9dcfb; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-100), #d4e6ff);
  color: var(--blue-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.service-title { font-size: 17.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; }
.service-text { font-size: 14.5px; color: var(--ink-500); line-height: 1.85; }

/* ================= 数据条 ================= */
.stat-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item { text-align: center; padding: 8px 0; }
.stat-num {
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.25;
}
.stat-label { font-size: 14px; color: var(--ink-500); margin-top: 4px; }

/* ================= 页面头 ================= */
.page-hero {
  background:
    radial-gradient(900px 400px at 80% 20%, rgba(61, 139, 255, .22), transparent 60%),
    linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: #fff;
  padding: 54px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: .5px; }
.page-hero p { margin-top: 12px; color: rgba(255,255,255,.75); font-size: 15.5px; max-width: 760px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: rgba(255,255,255,.55);
  margin-top: 14px;
}
.breadcrumb a:hover { color: #fff; }

/* ================= 面包屑/筛选栏 ================= */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 14.5px;
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-700); }
.chip.active { background: var(--blue-800); border-color: var(--blue-800); color: #fff; font-weight: 600; }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
}
.search-box input {
  width: 100%;
  padding: 11px 40px 11px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  outline: none;
  transition: all .22s var(--ease);
}
.search-box input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(61,139,255,.13); }
.search-box button {
  position: absolute; right: 5px;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--ink-400);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.search-box button:hover { color: var(--blue-700); }

/* ================= 产品 ================= */
.product-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-50);
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.card:hover .product-card-img img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(11, 61, 145, .92);
  color: #fff;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.product-link {
  color: var(--blue-700);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
}
.product-link:hover { color: var(--blue-500); gap: 4px; }

/* 产品详情 */
.detail-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.detail-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.detail-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.detail-thumb {
  width: 84px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
  background: var(--blue-50);
}
.detail-thumb.active { border-color: var(--blue-700); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.detail-title { font-size: 26px; font-weight: 700; color: var(--ink-900); margin-bottom: 12px; }
.detail-summary { color: var(--ink-500); font-size: 15px; margin-bottom: 22px; }
.detail-block-title {
  font-size: 15px; font-weight: 700; color: var(--ink-900);
  padding-left: 12px; border-left: 3px solid var(--blue-700);
  margin: 26px 0 14px;
}
.detail-desc { color: var(--ink-700); font-size: 15px; line-height: 2; white-space: pre-wrap; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 11px 4px; }
.spec-table td:first-child { color: var(--ink-500); width: 34%; }
.spec-table td:last-child { color: var(--ink-900); font-weight: 500; }

/* ================= 新闻 ================= */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  transition: all .28s var(--ease);
}
.news-row:hover { transform: translateX(5px); border-color: #c9dcfb; box-shadow: var(--shadow); }
.news-date {
  text-align: center;
  padding: 10px 0;
  background: var(--blue-50);
  border-radius: var(--radius);
}
.news-date-d { font-size: 25px; font-weight: 700; color: var(--blue-800); line-height: 1.1; }
.news-date-m { font-size: 12.5px; color: var(--ink-400); margin-top: 3px; }
.news-main { min-width: 0; }
.news-title {
  font-size: 17.5px; font-weight: 700; color: var(--ink-900);
  margin-bottom: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-summary {
  font-size: 14px; color: var(--ink-500);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-meta { display: flex; gap: 10px; align-items: center; }
.news-cat {
  font-size: 12.5px;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
}
.news-top-flag {
  font-size: 11.5px; color: #fff;
  background: var(--red);
  padding: 3px 9px; border-radius: 100px;
  font-weight: 600;
}

.news-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.news-detail h1 { font-size: 28px; color: var(--ink-900); line-height: 1.4; margin-bottom: 14px; }
.news-detail-meta {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-400);
}
.news-detail-content { font-size: 15.5px; line-height: 2.05; color: var(--ink-700); }
.news-detail-content p { margin-bottom: 16px; }
.news-detail-content h3 { font-size: 19px; color: var(--ink-900); margin: 26px 0 12px; }

/* ================= 资料下载 ================= */
.download-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }

.download-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: 104px;
}
.download-side-title {
  font-size: 15px; font-weight: 700; color: var(--ink-900);
  padding-bottom: 13px; margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.cat-list { display: flex; flex-direction: column; gap: 3px; }
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-700);
  transition: all .2s var(--ease);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.cat-item:hover { background: var(--blue-50); color: var(--blue-700); }
.cat-item.active { background: var(--blue-800); color: #fff; font-weight: 600; }
.cat-count {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 100px;
  background: var(--blue-100);
  color: var(--blue-700);
}
.cat-item.active .cat-count { background: rgba(255,255,255,.22); color: #fff; }

.download-main { min-width: 0; }

.file-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 13px;
  transition: all .25s var(--ease);
}
.file-row:hover { border-color: #c9dcfb; box-shadow: var(--shadow); }
.file-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-100), #d4e6ff);
  color: var(--blue-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
}
.file-main { min-width: 0; }
.file-title {
  font-size: 16px; font-weight: 600; color: var(--ink-900);
  margin-bottom: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-desc {
  font-size: 13.5px; color: var(--ink-500);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-400); margin-top: 6px; }
.file-actions { display: flex; align-items: center; gap: 10px; }
.file-lock {
  font-size: 12px;
  color: #b7791f;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ================= 登录 / 注册弹窗 ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 44, .58);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  position: relative;
  animation: modalIn .28s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  padding: 26px 30px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-title { font-size: 21px; font-weight: 700; color: var(--ink-900); }
.modal-sub { font-size: 13.5px; color: var(--ink-400); margin-top: 5px; }
.modal-close {
  width: 32px; height: 32px;
  border: none; border-radius: 8px;
  background: var(--bg);
  color: var(--ink-500);
  font-size: 19px; line-height: 1;
  flex-shrink: 0;
  transition: all .2s;
}
.modal-close:hover { background: #fee2e2; color: var(--red); }
.modal-body { padding: 24px 30px 30px; }

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 22px;
}
.mode-switch button {
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 100px;
  font-size: 14.5px;
  color: var(--ink-500);
  font-weight: 600;
  transition: all .22s var(--ease);
}
.mode-switch button.active { background: var(--white); color: var(--blue-800); box-shadow: var(--shadow-sm); }

.form-row { margin-bottom: 15px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 7px;
}
.form-row label .req { color: var(--red); }
.form-row input, .form-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--white);
  transition: all .2s var(--ease);
}
.form-row input:focus, .form-row select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(61,139,255,.13);
}
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row button {
  flex-shrink: 0;
  padding: 0 16px;
  border: 1px solid var(--blue-800);
  background: var(--blue-800);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s;
}
.code-row button:hover:not(:disabled) { background: var(--blue-700); }
.code-row button:disabled { opacity: .55; cursor: not-allowed; }

.form-hint {
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.form-hint.info { background: var(--blue-50); color: var(--blue-800); border: 1px solid #d4e6ff; }
.form-hint.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-hint.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.form-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--blue-700); font-size: 14px; font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

/* 会员状态条 */
.member-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
}
.member-bar .who { color: var(--ink-900); font-weight: 600; }
.member-bar .pill {
  font-size: 12px; padding: 2px 9px; border-radius: 100px;
  background: var(--blue-100); color: var(--blue-700);
}

/* ================= 关于我们 ================= */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text p { margin-bottom: 16px; font-size: 15.5px; line-height: 2.05; color: var(--ink-700); }
.about-text p strong { color: var(--ink-900); }
.about-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.about-visual img { width: 100%; height: 400px; object-fit: cover; }

.value-list { display: grid; gap: 14px; }
.value-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-700);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all .25s var(--ease);
}
.value-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.value-title { font-size: 16px; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.value-text { font-size: 14.5px; color: var(--ink-500); line-height: 1.8; }

/* ================= 联系 ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all .25s var(--ease);
}
.contact-item:hover { box-shadow: var(--shadow); border-color: #c9dcfb; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-100), #d4e6ff);
  color: var(--blue-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-label { font-size: 13.5px; color: var(--ink-400); margin-bottom: 3px; }
.contact-value { font-size: 16px; color: var(--ink-900); font-weight: 600; word-break: break-all; }
.contact-value a:hover { color: var(--blue-700); }

/* ================= 表单（咨询） ================= */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-panel textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
  min-height: 150px;
  transition: all .2s var(--ease);
  font-size: 15px;
  line-height: 1.7;
}
.form-panel textarea:focus, .form-panel input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(61,139,255,.13);
}

/* ================= 空状态 / 加载 ================= */
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-400);
}
.empty-icon { font-size: 46px; margin-bottom: 14px; opacity: .5; }
.empty-text { font-size: 15px; }

.loading {
  text-align: center;
  padding: 50px;
  color: var(--ink-400);
  font-size: 14.5px;
}
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--blue-700);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 提示条 */
.toast-wrap {
  position: fixed;
  top: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink-900);
  color: #fff;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14.5px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .28s var(--ease);
  max-width: 90vw;
}
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

/* ================= 页脚 ================= */
.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.62);
  padding: 56px 0 26px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 46px; margin-bottom: 16px; }
.footer-brand-name { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-text { font-size: 14px; line-height: 1.9; max-width: 340px; }
.footer-title {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ================= 响应式 ================= */
@media (max-width: 1200px) {
  .nav a { padding: 9px 10px; font-size: 14.5px; }
  .brand-name { font-size: 19px; }
  .brand-slogan { font-size: 18px; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { height: 320px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .download-layout { grid-template-columns: 1fr; }
  .download-side { position: static; }
  .cat-list { flex-direction: row; flex-wrap: wrap; }
  .cat-item { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 27px; }
  .hero { padding: 52px 0 60px; }
  .hero-title { font-size: 31px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }

  .brand-text { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }

  /* 移动端：会员入口移入折叠菜单底部 */
  .nav-member {
    margin-left: 0;
    padding-left: 0;
    padding-top: 10px;
    margin-top: 8px;
    border-left: none;
    border-top: 1px solid var(--line);
    justify-content: flex-end;
  }
  .nav-member .nav-login-btn,
  .nav-member .nav-user-btn { padding: 9px 16px; }
  .nav-member .nav-login-btn { flex: 1; }

  .news-row { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .news-date { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: fit-content; padding: 6px 14px; }
  .news-date-d { font-size: 20px; }
  .news-meta { justify-content: flex-start; }
  .news-title, .news-summary { white-space: normal; }

  .file-row { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-end; }

  .news-detail { padding: 24px; }
  .news-detail h1 { font-size: 22px; }
  .form-panel { padding: 22px; }
  .modal-body, .modal-head { padding-left: 22px; padding-right: 22px; }
  .form-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
