/* ============================================================
   app.css — 统一品牌风格 · Professional Navy 深蓝高密度体系
   ------------------------------------------------------------
   设计基调：专业、克制、信息密度优先
   主色：深海军蓝 #0B2545 → 品牌蓝 #1D4ED8
   圆角：锐利（4–8px），不使用大圆角与柔和渐变
   密度：13–14px 基准字号，紧凑间距，多列网格
   ============================================================ */

/* ===== CSS 变量 ===== */
:root {
    /* 品牌色 —— 深蓝体系 */
    --navy:         #0B2545;   /* 深海军蓝：页头/首屏/页脚 */
    --navy-800:     #10305A;
    --navy-700:     #163C6E;
    --brand:        #1D4ED8;   /* 品牌蓝 */
    --brand-dark:   #1E40AF;
    --brand-light:  #3B82F6;
    --brand-soft:   #EFF6FF;   /* 品牌浅底 */
    --accent:       #0EA5E9;   /* 天蓝点缀（少量使用） */
    --accent-2:     #0891B2;

    /* 中性色 */
    --bg-primary:   #ffffff;
    --bg-secondary: #F8FAFC;
    --bg-tertiary:  #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary:#475569;
    --text-muted:   #94A3B8;
    --border:       #E2E8F0;
    --border-strong:#CBD5E1;
    --border-hover: #93C5FD;

    /* 语义色 */
    --ok:           #059669;
    --ok-soft:      #ECFDF5;
    --warn:         #D97706;
    --warn-soft:    #FFFBEB;
    --danger:       #DC2626;
    --danger-soft:  #FEF2F2;

    /* 阴影 —— 克制的硬边阴影，替代柔和光晕 */
    --shadow-xs:    0 1px 2px rgba(15,23,42,0.05);
    --shadow-sm:    0 1px 3px rgba(15,23,42,0.08);
    --shadow-md:    0 2px 8px rgba(15,23,42,0.08);
    --shadow-lg:    0 8px 24px rgba(15,23,42,0.10);
    --shadow-brand: 0 2px 8px rgba(29,78,216,0.16);

    /* 圆角 —— 锐利 */
    --radius-xs:    3px;
    --radius-sm:    5px;
    --radius:       7px;
    --radius-lg:    10px;

    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:  cubic-bezier(0.34, 1.4, 0.64, 1);

    /* 密度令牌 */
    --density-pad:  14px;
    --density-gap:  12px;
}

/* ===== 全局 ===== */
* { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease); }

/* ===== 页头 =====
   注意：基础 .glass 保持中性白，避免影响后台（admin.php）布局；
   前台页头通过 .xgj-header 显式覆盖为深蓝色实底。 */
.glass {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
header.xgj-header {
    background: var(--navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* 页头内的文字与控件统一为浅色 */
.xgj-header .xgj-brand-name { color: #fff; letter-spacing: -.01em; }
.xgj-brand-mark {
    width: 30px; height: 30px; border-radius: var(--radius-sm);
    background: linear-gradient(160deg, #2563EB, #1E3A8A);
    color: #fff; font-weight: 800; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform .2s var(--ease);
}
.xgj-header a.group:hover .xgj-brand-mark { transform: translateY(-1px); }

/* ===== 导航栏 ===== */
.nav-link {
    position: relative;
    padding: 0.45rem 0.75rem;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all .15s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1.2;
}
.nav-icon { font-size: 0.9rem; line-height: 1; }

.nav-badge {
    font-size: 10px; font-weight: 700; line-height: 1;
    padding: 0.15rem 0.4rem; border-radius: var(--radius-xs);
    background: rgba(255,255,255,0.16);
    color: #DBEAFE;
    min-width: 1.15rem; text-align: center;
    border: 1px solid rgba(255,255,255,0.14);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.10); }
.nav-link.active { color: #fff; font-weight: 600; background: rgba(255,255,255,0.13); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0.75rem; right: 0.75rem;
    height: 2px; background: #60A5FA;
}

/* ===== CTA 按钮（锐利方角） ===== */
.btn-cta {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.45rem 0.9rem; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    transition: all .15s var(--ease);
    text-decoration: none; cursor: pointer; border: none;
    line-height: 1.3;
}
.btn-cta-primary { background: #2563EB; color: #fff; border: 1px solid #1D4ED8; }
.btn-cta-primary:hover { background: #1D4ED8; border-color: #1E40AF; }
.btn-cta-secondary {
    background: rgba(255,255,255,0.08); color: #E2E8F0;
    border: 1px solid rgba(255,255,255,0.20);
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.34); }

/* ===== 语言切换 ===== */
.lang-btn {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.35rem 0.55rem; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.08);
    font-size: 13px; cursor: pointer; transition: all .15s var(--ease);
    color: #E2E8F0;
}
.lang-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.34); }

.lang-dropdown {
    position: absolute; top: calc(100% + 0.4rem); right: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 0.25rem; min-width: 10rem; z-index: 60;
    animation: dropIn .15s var(--ease) forwards;
}
.lang-dropdown a {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.6rem; border-radius: var(--radius-xs);
    font-size: 13px; color: var(--text-secondary);
    text-decoration: none;
}
.lang-dropdown a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.lang-dropdown a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

/* ===== 移动菜单 ===== */
.mobile-menu-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: #E2E8F0;
    text-decoration: none; transition: all .15s;
}
.mobile-menu-link:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* ===== 渐变文字（改为纯色品牌蓝，去掉彩虹渐变） ===== */
.gradient-text { color: var(--brand); }

/* ===== 卡片系统（锐利、紧凑） ===== */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: var(--density-pad);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

/* ===== 工具卡片（高密度） ===== */
.tool-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 13px;
    transition: all .15s var(--ease);
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
}
.tool-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
}

/* ===== 统计卡片 ===== */
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}

/* ===== 侧边栏 ===== */
.sidebar-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); text-decoration: none;
    transition: all .15s; font-size: 13px;
}
.sidebar-link:hover, .sidebar-link.active { background: var(--brand-soft); color: var(--brand-dark); }

/* ===== 按钮系统 ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: 0.6rem 1.2rem;
    background: var(--brand);
    color: #fff; font-weight: 600; border-radius: var(--radius-sm);
    transition: all .15s var(--ease); text-decoration: none;
    border: 1px solid var(--brand-dark); cursor: pointer; font-size: 13.5px;
    line-height: 1.3;
}
.btn-primary:hover { background: var(--brand-dark); border-color: #1E3A8A; }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: 0.6rem 1.2rem;
    background: #fff; color: var(--brand-dark);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 13.5px;
    transition: all .15s var(--ease); cursor: pointer;
    text-decoration: none; line-height: 1.3;
}
.btn-secondary:hover { border-color: var(--brand-light); color: var(--brand); background: var(--brand-soft); }

/* ===== 徽章 ===== */
.badge {
    display: inline-block;
    padding: 3px 8px; border-radius: var(--radius-xs);
    font-size: 11px; font-weight: 600;
    background: var(--brand-soft); color: var(--brand-dark);
    border: 1px solid #DBEAFE;
}
.pro-badge {
    background: var(--warn-soft); color: #B45309;
    border: 1px solid #FDE68A;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: var(--radius-xs); text-transform: uppercase;
}
.ai-badge {
    background: #F0F9FF; color: #0369A1;
    border: 1px solid #BAE6FD;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: var(--radius-xs); text-transform: uppercase;
}
.free-badge {
    background: var(--ok-soft); color: var(--ok);
    border: 1px solid #A7F3D0;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: var(--radius-xs); text-transform: uppercase;
}

/* ===== 输入框 ===== */
.input-field {
    width: 100%; padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text-primary);
    font-size: 13.5px;
    transition: all .15s var(--ease);
    outline: none;
}
.input-field:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-size: 13.5px;
    transition: all .15s var(--ease);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
}

/* ===== 搜索框 ===== */
.search-glow:focus-within {
    box-shadow: 0 0 0 3px rgba(29,78,216,0.12), var(--shadow-md);
}

/* ===== 列表 ===== */
.list-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: all .15s var(--ease);
}
.list-item:hover { background-color: var(--brand-soft); }
.list-item:last-child { border-bottom: none; }

/* ===== 表格 ===== */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
thead th {
    padding: 11px 14px; text-align: left;
    font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-strong);
}
tbody td {
    padding: 11px 14px; color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    transition: background-color .15s ease;
}
tbody tr:hover td { background-color: var(--brand-soft); }

/* ===== 文本截断 ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 按钮点击 ===== */
button:active { transform: translateY(1px); }

/* ============================================================
   Professional Navy 新增组件
   ============================================================ */

/* —— 首屏（深蓝实底 + 细网格纹理） —— */
.xgj-hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    border-bottom: 1px solid var(--navy-700);
    overflow: hidden;
}
.xgj-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.xgj-hero::after {
    content: '';
    position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 68%);
    pointer-events: none;
}
.xgj-hero > * { position: relative; z-index: 1; }
.xgj-hero h1, .xgj-hero h2 { color: #fff; }
.xgj-hero p { color: rgba(226,232,240,0.86); }

/* —— 页面区块 —— */
.xgj-section { padding: 34px 0; }
.xgj-section--tight { padding: 24px 0; }
.xgj-section--alt { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* —— 区块标题（左侧竖条 + 右侧「查看全部」） —— */
.xgj-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.xgj-head h2 {
    display: flex; align-items: center; gap: 9px;
    font-size: 17px; font-weight: 700; color: var(--text-primary);
    line-height: 1.3; margin: 0;
}
.xgj-head h2::before {
    content: ''; width: 3px; height: 16px; border-radius: 2px;
    background: var(--brand); flex-shrink: 0;
}
.xgj-head p { font-size: 12.5px; color: var(--text-muted); margin: 3px 0 0 12px; }
.xgj-head .xgj-head-more {
    font-size: 12.5px; font-weight: 600; color: var(--brand);
    display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
    padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff;
}
.xgj-head .xgj-head-more:hover { border-color: var(--brand-light); background: var(--brand-soft); }

/* —— 紧凑工具网格 —— */
.xgj-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (min-width: 640px)  { .xgj-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 900px)  { .xgj-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1200px) { .xgj-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (min-width: 1500px) { .xgj-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }

/* 工具条目 */
.xgj-tool {
    display: flex; flex-direction: column; gap: 7px;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .15s var(--ease);
    position: relative;
    min-height: 96px;
}
.xgj-tool:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
}
.xgj-tool-top { display: flex; align-items: center; gap: 8px; }
.xgj-tool-icon {
    width: 28px; height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    border: 1px solid #DBEAFE;
    font-size: 14px; line-height: 1;
}
.xgj-tool-name {
    font-size: 13.5px; font-weight: 600; color: var(--text-primary);
    line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.xgj-tool:hover .xgj-tool-name { color: var(--brand-dark); }
.xgj-tool-desc {
    font-size: 12px; color: var(--text-muted); line-height: 1.55; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.xgj-tool-meta {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
    padding-top: 7px; border-top: 1px solid var(--bg-tertiary);
}
.xgj-chip {
    font-size: 10.5px; font-weight: 600; line-height: 1;
    padding: 3px 6px; border-radius: var(--radius-xs);
    background: var(--bg-tertiary); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.xgj-chip--brand { background: var(--brand-soft); color: var(--brand-dark); border-color: #DBEAFE; }
.xgj-chip--ok    { background: var(--ok-soft);    color: var(--ok);          border-color: #A7F3D0; }
.xgj-chip--warn  { background: var(--warn-soft);  color: #B45309;            border-color: #FDE68A; }
.xgj-chip--sky   { background: #F0F9FF;           color: #0369A1;            border-color: #BAE6FD; }

/* —— 分类筛选条（吸顶，横向滚动） —— */
.xgj-filterbar {
    position: sticky; top: 57px; z-index: 40;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.xgj-filterbar-inner {
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; scrollbar-width: none;
}
.xgj-filterbar-inner::-webkit-scrollbar { display: none; }
.xgj-filter {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px; border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
    color: var(--text-secondary); background: #fff;
    border: 1px solid var(--border);
    transition: all .15s var(--ease); flex-shrink: 0;
}
.xgj-filter:hover { border-color: var(--brand-light); color: var(--brand-dark); background: var(--brand-soft); }
.xgj-filter.active { background: var(--brand); border-color: var(--brand-dark); color: #fff; }
.xgj-filter .xgj-filter-count {
    font-size: 10.5px; opacity: .72; font-weight: 600;
}

/* —— 数据条（首屏统计） —— */
.xgj-stats {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1px; background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 768px) { .xgj-stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.xgj-stat { background: rgba(11,37,69,0.72); padding: 12px 14px; }
.xgj-stat b { display: block; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -.02em; }
.xgj-stat span { display: block; font-size: 11.5px; color: rgba(148,163,184,0.95); margin-top: 2px; }

/* —— 面包屑 —— */
.xgj-crumbs {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--text-muted);
}
.xgj-crumbs a { color: var(--text-secondary); }
.xgj-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.xgj-crumbs .sep { color: var(--border-strong); font-size: 10px; }
.xgj-crumbs .cur { color: var(--text-primary); font-weight: 600; }

/* —— 文章列表条目（高密度，左侧日期块） —— */
.xgj-post {
    display: flex; gap: 13px; align-items: flex-start;
    padding: 13px 14px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: all .15s var(--ease);
}
.xgj-post:hover { border-color: var(--brand-light); box-shadow: var(--shadow-md); }
.xgj-post-date {
    flex-shrink: 0; width: 46px; text-align: center;
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px 0 5px;
}
.xgj-post-date b { display: block; font-size: 17px; font-weight: 800; color: var(--brand-dark); line-height: 1; }
.xgj-post-date span { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.xgj-post-body { min-width: 0; flex: 1; }
.xgj-post-title {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
    line-height: 1.45; margin: 0 0 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.xgj-post:hover .xgj-post-title { color: var(--brand-dark); }
.xgj-post-excerpt {
    font-size: 12.5px; color: var(--text-muted); line-height: 1.65; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.xgj-post-foot {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bg-tertiary);
}

/* —— 侧栏卡片 —— */
.xgj-aside-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 13px 14px;
}
.xgj-aside-card h3 {
    font-size: 13px; font-weight: 700; color: var(--text-primary);
    margin: 0 0 10px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 7px;
}
.xgj-aside-card h3::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--brand); }
.xgj-aside-link {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 6px 0; font-size: 12.5px; color: var(--text-secondary);
    border-bottom: 1px dashed var(--border);
}
.xgj-aside-link:last-child { border-bottom: none; }
.xgj-aside-link:hover { color: var(--brand-dark); }
.xgj-aside-link em { font-style: normal; font-size: 11px; color: var(--text-muted); }

/* —— 正文排版 —— */
.xgj-prose { font-size: 15.5px; line-height: 1.85; color: #334155; }
.xgj-prose > p { margin: 15px 0; }
.xgj-prose h2 { font-size: 19px; font-weight: 700; color: var(--text-primary); margin: 30px 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--brand-soft); }
.xgj-prose h3 { font-size: 16.5px; font-weight: 700; color: var(--text-primary); margin: 24px 0 10px; }
.xgj-prose ul, .xgj-prose ol { margin: 14px 0; padding-left: 20px; }
.xgj-prose li { margin: 6px 0; }
.xgj-prose blockquote {
    border-left: 3px solid var(--brand); background: var(--brand-soft);
    padding: 11px 15px; margin: 18px 0; color: var(--text-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.xgj-prose code { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; padding: 1px 5px; border-radius: var(--radius-xs); font-size: 13px; }
.xgj-prose pre { background: var(--navy); color: #E2E8F0; padding: 15px 17px; border-radius: var(--radius); overflow-x: auto; font-size: 12.5px; line-height: 1.7; margin: 18px 0; }
.xgj-prose pre code { background: none; border: none; color: inherit; padding: 0; }
.xgj-prose a { color: var(--brand); text-decoration: underline; text-decoration-color: #BFDBFE; }
.xgj-prose a:hover { color: var(--brand-dark); text-decoration-color: var(--brand); }
.xgj-prose img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.xgj-prose table { margin: 18px 0; font-size: 13px; }

/* —— 目录 / 要点块 —— */
.xgj-toc { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; }
.xgj-toc ol { margin: 0; padding-left: 18px; }
.xgj-toc li { font-size: 13px; margin: 4px 0; }
.xgj-toc a { color: var(--text-secondary); }
.xgj-toc a:hover { color: var(--brand); text-decoration: underline; }
.xgj-takeaway { background: var(--brand-soft); border: 1px solid #DBEAFE; border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 13px 15px; }

/* —— 正文页三栏布局 —— */
.xgj-article-layout { display: grid; gap: 26px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 1024px) {
    .xgj-article-layout { grid-template-columns: 190px minmax(0,1fr); }
    .xgj-article-layout--full { grid-template-columns: 190px minmax(0,1fr) 240px; }
}
.xgj-article-side { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; }
@media (max-width: 1023px) { .xgj-article-side { position: static; max-height: none; } }

/* —— 深蓝色 CTA 条（替代原彩虹渐变块） —— */
.xgj-cta {
    position: relative; overflow: hidden;
    background: var(--navy);
    border: 1px solid var(--navy-700);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    color: #fff;
}
.xgj-cta::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px; pointer-events: none;
}
.xgj-cta > * { position: relative; z-index: 1; }
.xgj-cta h2 { color: #fff; font-size: 21px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.xgj-cta p { color: rgba(203,213,225,0.92); font-size: 13.5px; margin: 0 0 18px; }
.xgj-btn-light {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: var(--radius-sm);
    background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 700;
    border: 1px solid #fff;
}
.xgj-btn-light:hover { background: #EFF6FF; color: var(--brand-dark); }
.xgj-btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.10); color: #fff; font-size: 13.5px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.24);
}
.xgj-btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }

/* —— 页脚（深蓝） —— */
.xgj-footer { background: var(--navy); color: #94A3B8; border-top: 1px solid var(--navy-700); }
.xgj-footer h3 { color: #fff; font-size: 12.5px; font-weight: 700; margin: 0 0 11px; letter-spacing: .02em; text-transform: uppercase; }
.xgj-footer a { color: #94A3B8; font-size: 12.5px; }
.xgj-footer a:hover { color: #fff; }
.xgj-footer .xgj-footer-brand { color: #fff; font-weight: 800; font-size: 15px; }
.xgj-footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); }
.xgj-flink {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 9px; border-radius: var(--radius-xs);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    font-size: 11.5px; color: #94A3B8;
}
.xgj-flink:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }

/* ============================================================
   动画（保留原有，降低强度）
   ============================================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp .45s var(--ease) forwards; opacity: 0; }

@keyframes dropIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal-scale.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.stagger-item { opacity: 0; animation: fadeInUp .35s ease-out forwards; }
.stagger-item:nth-child(1) { animation-delay: .03s; }
.stagger-item:nth-child(2) { animation-delay: .06s; }
.stagger-item:nth-child(3) { animation-delay: .09s; }
.stagger-item:nth-child(4) { animation-delay: .12s; }
.stagger-item:nth-child(5) { animation-delay: .15s; }
.stagger-item:nth-child(6) { animation-delay: .18s; }
.stagger-item:nth-child(7) { animation-delay: .21s; }
.stagger-item:nth-child(8) { animation-delay: .24s; }

@keyframes pulseGlow { 0%,100% { opacity: .2; } 50% { opacity: .32; } }
.animate-pulse-glow { animation: pulseGlow 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.animate-float { animation: float 16s ease-in-out infinite; }
@keyframes countUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.animate-count-up { animation: countUp .5s ease-out forwards; }
@keyframes textFadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-text-fade { animation: textFadeIn .5s ease-out forwards; }

.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .12; pointer-events: none; }
.decorative-link { position: relative; }
.decorative-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1.5px; background: var(--brand); transition: width .2s ease;
}
.decorative-link:hover::after { width: 100%; }

/* ============================================================
   工具卡片收藏星标（由 public/js/toolbox.js 注入）
   ------------------------------------------------------------
   原先内联写死 color:#cbd5e1（slate-300）的描边星，
   放在白底卡片上几乎看不见 —— 改成有描边、有底色、能看出是个按钮。
   ============================================================ */
.xgj-fav-star {
    position: absolute; bottom: 10px; right: 10px; z-index: 20;
    width: 30px; height: 30px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 1;
    color: #64748b;                      /* slate-500，未收藏时也清晰可见 */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .10);
    cursor: pointer;
    transition: color .18s var(--ease), background .18s var(--ease),
                border-color .18s var(--ease), transform .18s var(--ease),
                box-shadow .18s var(--ease);
}
.xgj-fav-star:hover {
    color: #d97706;                      /* amber-600 */
    background: #fffbeb;
    border-color: #fcd34d;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, .14);
}
.xgj-fav-star:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
/* 已收藏 */
.xgj-fav-star.is-on {
    color: #f59e0b;                      /* amber-500 实心星 */
    background: #fffbeb;
    border-color: #fcd34d;
}
.xgj-fav-star.is-on:hover { color: #b45309; }
.xgj-fav-star.is-bump { transform: scale(1.25); }

/* 详情页右上角的收藏 / 反馈 / 分享浮动按钮（同样由 JS 注入） */
.xgj-float-btn {
    position: fixed; z-index: 60;
    padding: 8px 14px; border-radius: var(--radius-md);
    border: 1px solid #e2e8f0; background: #fff;
    color: #475569;                      /* slate-600，比原先的 #94a3b8 明显 */
    font-size: 13px; font-weight: 600; line-height: 1.3;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .10);
    cursor: pointer;
    transition: color .18s var(--ease), background .18s var(--ease),
                border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.xgj-float-btn:hover {
    color: #1d4ed8; background: #f8fafc; border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .14);
}
.xgj-float-btn.is-on { color: #d97706; border-color: #fcd34d; background: #fffbeb; }

/* ============================================================
   后台命令面板 + 快捷键帮助（由 public/js/admin-shortcuts.js 注入）
   结构：全屏遮罩 .xgj-cmd-wrap，内部面板 .xgj-cmd
   ============================================================ */
.xgj-cmd-wrap {
    position: fixed; inset: 0; z-index: 9000;
    display: none; align-items: flex-start; justify-content: center;
    padding: 12vh 16px 16px;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(3px);
}
.xgj-cmd-wrap.is-open { display: flex; }

.xgj-cmd {
    width: 100%; max-width: 620px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    overflow: hidden;
    animation: xgjCmdIn .16s var(--ease);
}
@keyframes xgjCmdIn {
    from { opacity: 0; transform: translateY(-8px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

.xgj-cmd-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    color: #94a3b8;
}
.xgj-cmd-head input {
    flex: 1; min-width: 0;
    border: 0; outline: 0; background: transparent;
    font-size: 14px; color: #0f172a;
}
.xgj-cmd-head input::placeholder { color: #94a3b8; }
.xgj-cmd-head strong { color: #0f172a; font-size: 14px; }

.xgj-cmd-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.xgj-cmd-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    text-decoration: none; color: #334155;
    font-size: 13.5px;
}
.xgj-cmd-item.is-active { background: #eff6ff; color: #1d4ed8; }
.xgj-cmd-group {
    flex-shrink: 0; width: 68px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
    color: #94a3b8;
}
.xgj-cmd-item.is-active .xgj-cmd-group { color: #60a5fa; }
.xgj-cmd-label { flex-shrink: 0; font-weight: 600; }
.xgj-cmd-url {
    margin-left: auto; font-size: 11px;
    color: #cbd5e1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.xgj-cmd-empty { padding: 28px 12px; text-align: center; font-size: 13px; color: #94a3b8; }

.xgj-cmd-foot {
    display: flex; align-items: center; gap: 14px;
    padding: 9px 14px;
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
    font-size: 11px; color: #94a3b8;
}
.xgj-cmd-foot .ml-auto { margin-left: auto; }

kbd, .xgj-kbd {
    display: inline-block;
    padding: 2px 6px; margin-right: 3px;
    border: 1px solid #e2e8f0; border-bottom-width: 2px;
    border-radius: 4px;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px; line-height: 1.5; color: #475569;
}

/* 快捷键帮助层：沿用同一套面板外观，宽度略大 */
.xgj-help { max-width: 780px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 640px) {
    body { font-size: 13.5px; }
    .card { padding: 12px; }
    .xgj-section { padding: 24px 0; }
    .xgj-cta { padding: 22px 18px; }
    .xgj-cta h2 { font-size: 18px; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .xgj-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
    .xgj-tool { padding: 9px 10px; min-height: 88px; }
    .xgj-tool-name { font-size: 12.5px; }
    .xgj-tool-desc { font-size: 11.5px; -webkit-line-clamp: 2; }
}

@media (min-width: 1536px) {
    .max-w-7xl { max-width: 1360px; }
}

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* 打印：去掉导航与侧栏，只留正文 */
@media print {
    header, footer, .xgj-article-side, #back-to-top, #scroll-progress, #reading-progress { display: none !important; }
    .xgj-prose { font-size: 12pt; }
}
