/* ==========================================================================
   国际组织数据服务平台 (IORGHUB) - 主样式表
   设计基调：专业、大气、数据平台感（深蓝 + 金色点缀）
   ========================================================================== */

:root {
  --primary: #1a4d8f;
  --primary-dark: #0d2b4e;
  --primary-light: #2a6db5;
  --primary-50: #eef4fb;
  --accent: #e8b44a;
  --accent-dark: #cf9a2e;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e9f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(13, 43, 78, .06);
  --shadow: 0 4px 16px rgba(13, 43, 78, .08);
  --shadow-lg: 0 16px 48px rgba(13, 43, 78, .16);
  --maxw: 1400px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 28px; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.gap-3 { gap: 24px; } .wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ---------------- 顶部信息条 ---------------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar .sep { margin: 0 10px; opacity: .4; }

/* ---------------- 头部导航 ---------------- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; height: 72px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 16px rgba(26, 77, 143, .35);
  flex-shrink: 0;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-text b { display: block; font-size: 19px; color: var(--primary-dark); letter-spacing: .5px; line-height: 1.2; }
.logo-text span { display: block; font-size: 11px; color: var(--text-muted); letter-spacing: .6px; text-transform: uppercase; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: #374151;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--primary); background: var(--primary-50); }
.nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; color: #374151; }
.nav .dropdown a:hover { background: var(--primary-50); color: var(--primary); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(26, 77, 143, .28); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #4a3407; box-shadow: 0 4px 12px rgba(232, 180, 74, .35); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { color: #374151; border-color: var(--border); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------- Hero（居中 + 动态背景）---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #0a2240, #143c73 45%, #1a4d8f 75%, #2a6db5);
  background-size: 200% 200%;
  animation: heroGradient 18s ease infinite;
}
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 260px 260px; } }

.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; animation: float 16s ease-in-out infinite; }
.hero-bg .orb-1 { width: 440px; height: 440px; background: rgba(42, 109, 181, .7); top: -150px; left: -90px; }
.hero-bg .orb-2 { width: 380px; height: 380px; background: rgba(232, 180, 74, .42); bottom: -170px; right: -70px; animation-delay: -5s; }
.hero-bg .orb-3 { width: 300px; height: 300px; background: rgba(16, 185, 129, .3); top: 38%; left: 56%; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(34px, -46px) scale(1.12); }
}
.hero-ring {
  position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; z-index: 1;
  animation: spin 60s linear infinite;
}
.hero-ring::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); top: -6px; left: 50%; box-shadow: 0 0 18px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero .container { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 100px; text-align: center; }
.hero h1 { font-size: 46px; line-height: 1.25; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lead { font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 780px; margin: 0 auto 34px; }

.search-box {
  background: #fff; border-radius: 14px; padding: 10px; display: flex; gap: 10px;
  max-width: 760px; margin: 0 auto; box-shadow: var(--shadow-lg);
}
.search-box input {
  flex: 1; border: none; outline: none; padding: 12px 16px; font-size: 15px; border-radius: 8px;
}
.search-box .btn { padding: 12px 28px; }

.hero-stats { display: flex; gap: 56px; margin-top: 46px; flex-wrap: wrap; justify-content: center; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.hero-stats .num small { font-size: 15px; font-weight: 600; color: var(--accent); margin-left: 4px; }
.hero-stats .label { font-size: 13px; color: rgba(255, 255, 255, .72); }

/* ---------------- 区块 ---------------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 16px; }
.section-head .title { font-size: 27px; font-weight: 800; color: var(--primary-dark); position: relative; padding-left: 16px; }
.section-head .title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px;
  border-radius: 3px; background: linear-gradient(var(--accent), var(--primary));
}
.section-head .subtitle { color: var(--text-muted); font-size: 14px; margin-top: 6px; padding-left: 16px; }
.section-head .more { color: var(--primary); font-weight: 600; font-size: 14px; }
.section-head .more:hover { color: var(--accent-dark); }

/* ---------------- 卡片 ---------------- */
.grid { display: grid; gap: 22px; }
.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(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: .2s; overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #d6e0ee; }
.card-pad { padding: 22px; }

/* 组织卡片 */
.org-card { display: flex; flex-direction: column; padding: 22px; }
.org-card .org-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.org-logo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #f7f9fc;
  border: 1px solid var(--border); padding: 6px; flex-shrink: 0;
}
.org-logo-fallback {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
}
/* Logo 容器：有 LogoUrl 显示图片，加载失败/为空则显示默认图标 */
.org-logo-wrap {
  position: relative; width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  overflow: hidden; border: 1px solid var(--border); background: #f4f7fb;
  display: flex; align-items: center; justify-content: center;
}
.org-logo-wrap .def { width: 30px; height: 30px; color: #9db4cc; }
.org-logo-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.en-name { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.org-card .en-name { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.org-card h3 { font-size: 16px; line-height: 1.4; color: var(--primary-dark); margin-bottom: 4px; }
.org-card h3:hover { color: var(--primary); }
.org-card .acr { font-size: 13px; color: var(--accent-dark); font-weight: 600; }
.org-card .desc { font-size: 13.5px; color: var(--text-muted); flex: 1; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.org-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.org-meta span { background: var(--bg); border-radius: 20px; padding: 3px 10px; }

/* 标签 */
.tag { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag-blue { background: var(--primary-50); color: var(--primary); }
.tag-gold { background: #fdf3dc; color: var(--accent-dark); }
.tag-green { background: #e7f7f1; color: #0f9d76; }
.tag-gray { background: #eef1f5; color: #5b6675; }
.tag-red { background: #fdecec; color: var(--danger); }

/* 列表条目（会议/新闻/出版物） */
.item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.item:last-child { border-bottom: none; }
.item-date {
  width: 78px; flex-shrink: 0; text-align: center; background: var(--primary-50);
  border-radius: var(--radius-sm); padding: 10px 4px; color: var(--primary);
}
.item-date .d { font-size: 22px; font-weight: 800; line-height: 1; }
.item-date .m { font-size: 12px; margin-top: 3px; }
.item-body h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; }
.item-body h3:hover { color: var(--primary); }
.item-body p { font-size: 13.5px; color: var(--text-muted); }
.item-body .meta { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.item-thumb { width: 150px; height: 100px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }

/* ---------------- 统计卡 ---------------- */
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 26px; display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow-sm); transition: .22s; position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--sc); opacity: .06; }
.stat-card .icon {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--sc-bg, rgba(26, 77, 143, .1)); color: var(--sc, var(--primary));
  border: 1px solid var(--sc-bd, rgba(26, 77, 143, .16));
}
.stat-card .icon svg { width: 28px; height: 28px; }
.stat-card .num { font-size: 29px; font-weight: 800; color: var(--primary-dark); letter-spacing: .5px; line-height: 1.15; }
.stat-card .num small { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-left: 2px; }
.stat-card .label { font-size: 14px; color: var(--text-muted); margin-top: 3px; }

/* ---------------- 领域标签云 ---------------- */
.subject-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.subject-chip {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); transition: .18s; min-width: 150px;
}
.subject-chip:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.subject-chip b { font-size: 15px; color: var(--primary-dark); }
.subject-chip span { font-size: 12px; color: var(--text-muted); }

/* ---------------- 会员套餐 ---------------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.plan {
  background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 30px 26px;
  position: relative; transition: .2s; display: flex; flex-direction: column;
}
.plan:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.plan.featured::after {
  content: "最受欢迎"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #4a3407; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
}
.plan h3 { font-size: 18px; color: var(--primary-dark); }
.plan .price { font-size: 38px; font-weight: 800; color: var(--primary); margin: 12px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.plan .period { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.plan ul { flex: 1; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.plan ul li { font-size: 14px; color: #374151; display: flex; gap: 9px; align-items: flex-start; }
.plan ul li svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ---------------- 表单 ---------------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: #374151; }
.form-group .hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: .16s; color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 77, 143, .12); }
.textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------------- 表格 ---------------- */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; padding: 13px 16px; background: #f8fafc; color: #475569;
  font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafcff; }
table.data .actions a { color: var(--primary); font-weight: 600; margin-right: 12px; }
table.data .actions a.danger { color: var(--danger); }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-size: 14px; color: #374151;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { font-size: 13.5px; color: var(--text-muted); padding: 18px 0; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* ---------------- 页面横幅 ---------------- */
.page-banner {
  background: linear-gradient(120deg, #0d2b4e, #1a4d8f 70%, #2a6db5);
  color: #fff; padding: 46px 0; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(232, 180, 74, .2), transparent 65%); border-radius: 50%;
}
.page-banner h1 { font-size: 30px; position: relative; z-index: 2; }
.page-banner p { color: rgba(255, 255, 255, .82); margin-top: 8px; position: relative; z-index: 2; }

/* ---------------- 筛选栏 ---------------- */
.filter-bar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.filter-bar .fg { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.filter-bar .fg label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.filter-bar .fg .input, .filter-bar .fg .select { padding: 9px 12px; }

/* ---------------- 用户中心布局 ---------------- */
.dash { display: grid; grid-template-columns: 248px 1fr; gap: 26px; align-items: start; }
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.sidebar .side-user { padding: 22px; text-align: center; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.sidebar .side-user .avatar { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 10px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; border: 2px solid rgba(255, 255, 255, .4); }
.sidebar .side-user b { display: block; font-size: 16px; }
.sidebar .side-user span { font-size: 12.5px; opacity: .85; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px; padding: 13px 22px; font-size: 14.5px;
  color: #374151; border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: var(--primary-50); color: var(--primary); }
.sidebar nav a.active { background: var(--primary-50); color: var(--primary); border-left-color: var(--primary); font-weight: 700; }
.sidebar nav a svg { width: 18px; height: 18px; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.panel-head h3 { font-size: 17px; color: var(--primary-dark); }
.panel-body { padding: 24px; }

/* 数据卡（仪表盘） */
.metric { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric .m {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm);
}
.metric .m .ic {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--ic-bg, rgba(26, 77, 143, .1)); color: var(--ic, var(--primary));
  border: 1px solid var(--ic-bd, rgba(26, 77, 143, .16));
}
.metric .m .ic svg { width: 24px; height: 24px; }
.metric .m .v { font-size: 24px; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.metric .m .l { font-size: 13px; color: var(--text-muted); }

/* ---------------- 支付方式 ---------------- */
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pay-method {
  border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center;
  cursor: pointer; transition: .16s; background: #fff;
}
.pay-method:hover { border-color: var(--primary-light); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-50); }
.pay-method .pm-ic { display: flex; justify-content: center; margin-bottom: 8px; }
.pay-method .pm-ic svg { width: 30px; height: 30px; }
.pay-method b { font-size: 14px; display: block; }
.pay-method span { font-size: 12px; color: var(--text-muted); }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--primary-dark); color: rgba(255, 255, 255, .72); padding: 56px 0 0; margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: rgba(255, 255, 255, .72); font-size: 13.5px; display: block; padding: 5px 0; }
.footer a:hover { color: var(--accent); }
.footer .about p { font-size: 13.5px; line-height: 1.8; margin-top: 14px; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer .logo-text b { color: #fff; } .footer .logo-text span { color: rgba(255, 255, 255, .6); }

/* ---------------- 认证页（新版：动态背景 + 双栏卡片）---------------- */
.auth-page {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 48px 24px;
  background: linear-gradient(135deg, #06182b, #0d2b4e 42%, #1a4d8f 78%, #2a6db5);
  background-size: 220% 220%; animation: heroGradient 20s ease infinite;
}
.auth-page .bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: float 18s ease-in-out infinite; }
.auth-page .o1 { width: 460px; height: 460px; background: rgba(42, 109, 181, .75); top: -160px; left: -120px; }
.auth-page .o2 { width: 400px; height: 400px; background: rgba(232, 180, 74, .4); bottom: -180px; right: -80px; animation-delay: -6s; }
.auth-page .o3 { width: 320px; height: 320px; background: rgba(16, 185, 129, .28); top: 45%; left: 60%; animation-delay: -11s; }
.auth-page .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.auth-shell {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr;
  width: 100%; max-width: 940px; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
}
.auth-side {
  background: linear-gradient(160deg, #0d2b4e, #1a4d8f 70%, #2a6db5); color: #fff;
  padding: 48px 44px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-side::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -140px; background: radial-gradient(circle, rgba(232, 180, 74, .28), transparent 65%); border-radius: 50%; }
.auth-side .logo-text b { color: #fff; }
.auth-side .logo-text span { color: rgba(255, 255, 255, .6); }
.auth-side h2 { font-size: 26px; line-height: 1.4; margin: 30px 0 14px; position: relative; z-index: 2; }
.auth-side p.desc { color: rgba(255, 255, 255, .82); font-size: 14.5px; position: relative; z-index: 2; }
.auth-side ul { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; position: relative; z-index: 2; }
.auth-side ul li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .92); }
.auth-side ul li .ck { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent); flex-shrink: 0; }
.auth-side .auth-stats { margin-top: auto; display: flex; gap: 26px; position: relative; z-index: 2; padding-top: 30px; }
.auth-side .auth-stats .s b { display: block; font-size: 22px; color: var(--accent); }
.auth-side .auth-stats .s span { font-size: 12px; color: rgba(255, 255, 255, .7); }

.auth-panel { padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.auth-panel h1 { font-size: 24px; color: var(--primary-dark); margin-bottom: 6px; }
.auth-panel .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 24px; background: var(--bg); padding: 4px; border-radius: 12px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.auth-tabs a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-input { position: relative; margin-bottom: 16px; }
.auth-input svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #9aa9bd; }
.auth-input .input { padding-left: 42px; height: 46px; }
.auth-social { display: flex; gap: 12px; margin-top: 20px; }
.auth-social a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; color: #374151; }
.auth-social a:hover { border-color: var(--primary); color: var(--primary); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12.5px; margin: 22px 0 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------------- 提示 ---------------- */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert-info { background: var(--primary-50); color: var(--primary); }
.alert-gold { background: #fdf6e6; color: #92610a; }
.alert-success { background: #e7f7f1; color: #0f7a5c; }

/* ---------------- 详情页 ---------------- */
.detail-head { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.detail-head .top { display: flex; gap: 22px; align-items: flex-start; }
.detail-head .logo-big { width: 92px; height: 92px; border-radius: 16px; border: 1px solid var(--border); background: #f7f9fc; padding: 10px; object-fit: contain; flex-shrink: 0; }
.detail-head h1 { font-size: 26px; color: var(--primary-dark); line-height: 1.3; }
.detail-head .en { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 26px 0 0; overflow-x: auto; }
.detail-tabs a { padding: 13px 20px; font-size: 14.5px; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.detail-tabs a.active, .detail-tabs a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--text-muted); } .kv dd { color: var(--text); }
.prose h3 { font-size: 17px; color: var(--primary-dark); margin: 22px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); }
.prose p { color: #374151; font-size: 14.5px; line-height: 1.9; }
.locked { position: relative; min-height: 104px; }
.locked > :not(.lock-overlay) { filter: blur(4px); opacity: .7; user-select: none; pointer-events: none; }
.locked .prose { filter: blur(4px); opacity: .7; user-select: none; pointer-events: none; }
.lock-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  gap: 6px; text-align: center; z-index: 3; padding: 14px;
  transition: background .25s ease;
}
.locked:hover .lock-overlay { background: rgba(255, 255, 255, .45); }
.lock-overlay .lock-ic { font-size: 22px; }
.lock-overlay b { font-size: 14px; }

/* ---------------- 详情页锚点导航（Tab 快捷菜单） ---------------- */
.anchor-nav {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 14px; margin-bottom: 20px; position: sticky; top: 80px; z-index: 20;
  box-shadow: var(--shadow-sm); display: flex; gap: 2px; overflow-x: auto;
}
.anchor-nav a {
  padding: 13px 15px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.anchor-nav a:hover, .anchor-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.sec { scroll-margin-top: 140px; }
.sec h4 {
  font-size: 16px; color: var(--primary-dark); margin: 20px 0 10px;
  padding-left: 11px; border-left: 4px solid var(--accent);
}
.sec h4:first-child { margin-top: 0; }

/* ---------------- 详情页增强 ---------------- */
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.detail-stats .ds { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow-sm); }
.detail-stats .ds b { display: block; font-size: 22px; color: var(--primary); font-weight: 800; }
.detail-stats .ds span { font-size: 12.5px; color: var(--text-muted); }
.unlock-card { background: linear-gradient(135deg, #fff8e8, #fdf1d4); border: 1px solid #f0dca6; border-radius: var(--radius); padding: 22px; }
.unlock-card .price { font-size: 32px; font-weight: 800; color: #b8860b; line-height: 1; }
.unlock-card .price small { font-size: 14px; font-weight: 600; }
.info-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.info-chips span { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; font-size: 13px; }
.modal-mask { position: fixed; inset: 0; background: rgba(13, 43, 78, .55); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 460px; max-width: 100%; padding: 28px; box-shadow: var(--shadow-lg); position: relative; }
.modal h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 6px; }
.modal .modal-close { position: absolute; top: 16px; right: 18px; cursor: pointer; color: var(--text-muted); font-size: 22px; line-height: 1; background: none; border: none; }

/* ---------------- 在线客服（知识库智能问答）---------------- */
.cs-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #2a6db5, #0d2b4e); color: #fff; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 12px 30px rgba(13, 43, 78, .42); cursor: pointer; border: none; transition: .18s;
}
.cs-fab:hover { transform: translateY(-3px); }
.cs-fab svg { width: 26px; height: 26px; }
.cs-fab .dot { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.cs-panel {
  position: fixed; right: 26px; bottom: 96px; z-index: 901; width: 372px; max-width: calc(100vw - 36px);
  height: 540px; max-height: calc(100vh - 130px); background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13, 43, 78, .34); display: none; flex-direction: column; overflow: hidden;
}
.cs-panel.show { display: flex; }
.cs-head { background: linear-gradient(135deg, #1a4d8f, #0d2b4e); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.cs-head b { font-size: 15px; display: block; }
.cs-head span { font-size: 12px; opacity: .8; }
.cs-head .x { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.cs-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.cs-msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.65; }
.cs-msg.bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-top-left-radius: 4px; }
.cs-msg.me { background: var(--primary); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.cs-msg a { color: var(--primary); font-weight: 600; }
.cs-msg.me a { color: #fff; text-decoration: underline; }
.cs-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; background: var(--bg); }
.cs-quick button { border: 1px solid var(--border); background: #fff; border-radius: 16px; padding: 5px 12px; font-size: 12.5px; color: #374151; cursor: pointer; }
.cs-quick button:hover { border-color: var(--primary); color: var(--primary); }
.cs-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fff; }
.cs-input input { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 9px 14px; outline: none; font-size: 13.5px; }
.cs-input input:focus { border-color: var(--primary); }
.cs-input button { border: none; background: var(--primary); color: #fff; border-radius: 20px; padding: 0 18px; cursor: pointer; font-size: 13.5px; }
@media (max-width: 560px) { .cs-panel { right: 12px; left: 12px; width: auto; bottom: 86px; } .cs-fab { right: 16px; bottom: 16px; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .grid-4, .plans, .metric, .pay-methods, .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .hero h1 { font-size: 32px; }
  .search-box { flex-direction: column; }
  .hero-stats { gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .plans, .metric, .pay-methods, .footer .cols { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .item { flex-direction: column; }
  .item-thumb { width: 100%; height: 160px; }
}

/* ---------------- 出版物列表卡片 ---------------- */
.pub-card { display: flex; gap: 14px; }
.pub-ic {
  width: 54px; height: 54px; border-radius: 12px; flex-shrink: 0; position: relative; overflow: hidden;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.pub-ic svg { width: 26px; height: 26px; }
.pub-ic img {
  position: absolute; top: 3px; left: 3px; width: calc(100% - 6px); height: calc(100% - 6px);
  object-fit: contain; background: #fff; border-radius: 8px;
}
.pub-main { flex: 1; min-width: 0; }
.pub-main h3 { font-size: 15.5px; line-height: 1.45; color: var(--primary-dark); margin-bottom: 4px; }
.pub-main h3 a:hover { color: var(--primary); }
.pub-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.mi { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; opacity: .7; }
.pub-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.pub-more { font-size: 13.5px; font-weight: 600; color: var(--primary); }
.pub-more:hover { color: var(--primary-light); }
.pub-dl { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--primary); border: 1px solid var(--primary); border-radius: 20px; padding: 4px 13px; }
.pub-dl svg { width: 14px; height: 14px; }
.pub-dl:hover { background: var(--primary); color: #fff; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------------- 出版物详情 ---------------- */
.lang-toggle { display: flex; gap: 4px; }
.lang-toggle button {
  border: 1px solid var(--border); background: #fff; border-radius: 6px;
  padding: 3px 12px; font-size: 12.5px; color: var(--text-muted); cursor: pointer;
}
.lang-toggle button.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.note-html { font-size: 14.5px; line-height: 1.85; color: #374151; }
.note-html p { margin: 0 0 10px; }
.note-html p:last-child { margin-bottom: 0; }
.rel-item { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.rel-item:last-child { border-bottom: none; }
.rel-item a { display: block; font-size: 14px; line-height: 1.5; color: var(--primary-dark); }
.rel-item a:hover { color: var(--primary); }
.rel-date { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.org-counts { display: flex; gap: 8px; margin-top: 14px; }
.org-counts a { flex: 1; text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 4px; font-size: 12.5px; color: var(--text-muted); }
.org-counts a:hover { border-color: var(--primary); color: var(--primary); }
.org-counts a b { display: block; font-size: 16px; color: var(--primary-dark); margin-top: 2px; }
