/* ================================================================
   GlobalLink 主题主样式 · 按 traneasy.com.cn 版式
   ================================================================ */
:root {
    --brand: #084aff;
    --brand-2: #2563eb;
    --orange: #f97316;
    --ink: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --navy: #090d1b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
.container { width: min(1200px, calc(100% - 60px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 18px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 132px; padding: 12px 24px; border-radius: 6px; border: 0;
    font-size: 16px; font-weight: 600; line-height: 1.5; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--brand); color: #fff; box-shadow: 0 12px 30px rgba(8, 74, 255, .2); }
.btn-blue:hover { background: #033ee0; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 12px 30px rgba(249, 115, 22, .2); }
.btn-orange:hover { background: #ea680a; }
.text-link { color: var(--brand); font-weight: 600; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 头部 */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, .7);
    transition: background .28s ease, border-color .28s ease, box-shadow .28s ease, backdrop-filter .28s ease;
}
.gl-front .site-header {
    background: #eaf1ff;
    border-bottom-color: rgba(234, 241, 255, 0);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.gl-front .site-header.is-scrolled {
    background: rgba(255, 255, 255, .96);
    border-bottom-color: rgba(226, 232, 240, .7);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.gl-blog .site-header { background: #eaf1ff; border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.gl-blog .site-header.is-scrolled { background: rgba(255,255,255,.96); border-bottom-color: rgba(226,232,240,.7); box-shadow: 0 8px 28px rgba(15,23,42,.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .container { width: min(1440px, calc(100% - 40px)); }
.nav-wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center; gap: 20px; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; min-width: 0; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(145deg, #4f9bff, #1462f3); color: #fff; font-size: 20px; line-height: 1;
    box-shadow: 0 6px 16px rgba(20, 98, 243, .25);
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.brand-logo { height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 2px; justify-self: center; margin: 0; }
.nav-item {
    display: inline-flex; align-items: center; gap: 3px; padding: 7px 11px;
    border: 0; background: transparent; color: #475569; font-size: 14px; font-weight: 500;
    white-space: nowrap; cursor: pointer; transition: color .2s;
}
.nav-item:first-child { color: var(--brand); }
.nav-item:hover { color: var(--brand); }
.nav-dropdown { position: relative; }
.dropdown-toggle svg { transition: transform .2s; }
.nav-dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-panel {
    position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%) translateY(8px);
    width: 720px; padding: 16px; border: 1px solid #e8eefc; border-radius: 18px; background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown-panel::before { content: ""; position: absolute; inset: -14px -10px; }
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.dropdown-item { padding: 12px 10px; border-radius: 10px; font-size: 14px; color: #334155; line-height: 1.5; }
.dropdown-item::before { content: "✦"; display: block; color: var(--brand); font-size: 15px; margin-bottom: 4px; }
.dropdown-item:hover { background: #f2f6ff; color: var(--brand); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 14px; flex-shrink: 0; }
.header-lang { font-size: 13px; color: #475569; }
.header-login { font-size: 13px; color: #475569; white-space: nowrap; }
.header-login:hover, .header-lang:hover { color: var(--brand); }
.header-auth-stack { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.header-cta-wrap { position: relative; }
.header-cta {
    display: inline-block; padding: 8px 14px; border-radius: 999px;
    background: linear-gradient(90deg, #ffb347, #ff8a1f); color: #fff;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(249, 115, 22, .45);
}
.menu-toggle { display: none; width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* 语言切换 */
.language-switcher { position: relative; }
.header-lang {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px;
    border: 0; border-radius: 0; background: transparent;
    color: #3f5c85; font-size: 13px; font-weight: 600; letter-spacing: .2px;
    cursor: pointer; white-space: nowrap; transition: color .2s;
}
.lang-caret {
    width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor; transform: translateY(1px); transition: transform .2s;
}
.header-lang:hover { color: var(--brand); }
.language-switcher.is-open .lang-caret { transform: translateY(1px) rotate(180deg); }
.language-panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 130;
    width: 214px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
    border: 1px solid #e8eefc; border-radius: 14px; background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.language-switcher.is-open .language-panel { opacity: 1; visibility: visible; transform: none; }
.language-option { padding: 8px 6px; border-radius: 8px; font-size: 12px; color: #334155; text-align: center; white-space: nowrap; }
.language-option:hover { background: #f2f6ff; color: var(--brand); }
.language-option.is-current { background: var(--brand); color: #fff; font-weight: 600; }

/* 顶部登录 / 免费试用按钮（上下堆叠，按截图样式） */
.header-auth-stack .header-login {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 96px; min-height: 34px; padding: 7px 22px;
    border: 1px solid #d7e0ee; border-radius: 999px;
    background: #fff; color: #4b5563; font-size: 14px; font-weight: 500; line-height: 1;
    white-space: nowrap; box-shadow: 0 2px 10px rgba(15, 23, 42, .03);
    transition: color .2s, border-color .2s, box-shadow .2s;
}
.header-auth-stack .header-login:hover { color: var(--brand); border-color: #9db9ff; box-shadow: 0 4px 14px rgba(8, 74, 255, .1); }
.header-auth-stack .header-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 26px; padding: 5px 13px; border-radius: 999px;
    background: linear-gradient(90deg, #ffb43f, #ff7a00); color: #fff;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255, 122, 0, .5), 0 0 0 4px rgba(255, 168, 56, .12);
    transition: transform .2s, box-shadow .2s;
}
.header-auth-stack .header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 122, 0, .6), 0 0 0 5px rgba(255, 168, 56, .18);
}

/* 阿拉伯文 RTL */
html[dir="rtl"] body { text-align: right; font-family: Tahoma, Arial, "Microsoft YaHei", sans-serif; }
html[dir="rtl"] .dropdown-panel { left: auto; right: 50%; transform: translateX(50%) translateY(8px); }
html[dir="rtl"] .nav-dropdown:hover .dropdown-panel,
html[dir="rtl"] .nav-dropdown:focus-within .dropdown-panel { transform: translateX(50%) translateY(0); }
html[dir="rtl"] .app-icon-track { animation-name: appScrollRtl; }
@keyframes appScrollRtl { to { transform: translateX(33.333%); } }
html[dir="rtl"] .floating-service { right: auto; left: 22px; align-items: flex-start; }
html[dir="rtl"] .stat-item { border-left: 0; border-right: 1px solid #e6ebf4; padding-left: 24px; padding-right: 24px; }
html[dir="rtl"] .stat-item:first-child { border-right: 0; padding-right: 0; }
html[dir="rtl"] .language-panel { right: auto; left: 0; }
html[dir="rtl"] .gl-lightbox button { right: auto; left: 28px; }
html[dir="rtl"] .hero h1, html[dir="rtl"] .hero-desc, html[dir="rtl"] .feature-copy h2,
html[dir="rtl"] .cta-text h2, html[dir="rtl"] .section-head h2, html[dir="rtl"] .article-content { letter-spacing: 0; }

/* ---------------------------------------------------------------- 首屏 */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #eaf1ff 0%, #f3f7ff 55%, #fff 100%);
    background-size: cover; background-position: center;
}
.hero-grid-bg {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(8, 74, 255, .12) .8px, transparent .8px);
    background-size: 8px 8px;
    mask-image: linear-gradient(180deg, #000, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.hero-center { position: relative; z-index: 1; text-align: center; padding: 116px 0 72px; }
.hero-brand { font-size: 46px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 30px; }
.hero h1 {
    font-size: clamp(40px, 5vw, 62px); line-height: 1.3; font-weight: 800;
    letter-spacing: -1.5px; margin-bottom: 32px; overflow-wrap: anywhere;
}
.hero-desc { font-size: clamp(18px, 1.8vw, 22px); color: #475569; margin-bottom: 38px; }
.hero-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-caption { margin: 30px 0 0; font-size: 14px; color: var(--muted); }
.app-icon-strip {
    position: relative; z-index: 1; overflow: hidden; padding: 6px 0 40px;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.app-icon-track { display: flex; gap: 10px; width: max-content; animation: appScroll 42s linear infinite; }
.app-icon-strip:hover .app-icon-track { animation-play-state: paused; }
@keyframes appScroll { to { transform: translateX(-33.333%); } }
.app-icon {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px;
    display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 700;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .12);
}

/* ---------------------------------------------------------------- 亮点区 */
.highlight-section { padding: 46px 0 76px; background: #fff; }
.highlight-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 60px; align-items: center; }
.highlight-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid #e6ebf4; }
.highlight-item:last-child { border-bottom: 1px solid #e6ebf4; }
.highlight-icon {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%;
    display: grid; place-items: center; border: 1px solid #cbd5e1;
    color: #64748b; font-size: 22px; background: #fff;
}
.highlight-item h3 { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.highlight-item p { font-size: 15px; color: var(--muted); line-height: 1.8; margin: 0; }
.highlight-visual { min-width: 0; }
.highlight-image { width: 100%; border-radius: 18px; }
.laptop { width: 100%; max-width: 640px; margin: 0 auto; }
.laptop-screen { padding: 10px 10px 12px; border-radius: 16px 16px 6px 6px; background: linear-gradient(160deg, #3a3f4a, #161a22); box-shadow: 0 24px 50px rgba(15, 23, 42, .16); }
.laptop-screen-inner { border-radius: 7px; overflow: hidden; background: #fff; }
.laptop-screen-inner .mock-app { height: 300px; border: 0; border-radius: 0; }
.laptop-base {
    height: 20px; margin: 0 -18px; border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #c9cdd5, #8e949e); position: relative;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
}
.laptop-base i { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 90px; height: 7px; border-radius: 0 0 8px 8px; background: #a9aeb7; }

/* ---------------------------------------------------------------- 内置界面图 */
.mock-app { display: flex; height: 360px; border: 1px solid #eef2f7; border-radius: 16px; overflow: hidden; background: #fff; font-size: 12px; }
.mock-side { width: 30%; flex: 0 0 30%; background: #f8fafc; border-right: 1px solid #eef2f7; padding: 14px 10px; }
.mock-logo-dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #4f9bff, var(--brand)); margin-bottom: 14px; }
.mock-side-line { height: 6px; border-radius: 6px; background: #e6edf7; margin-bottom: 10px; }
.mock-side-line.short { width: 55%; }
.mock-search { height: 24px; border-radius: 7px; background: #eef2f8; margin-bottom: 12px; }
.mock-contact { display: flex; gap: 8px; align-items: center; padding: 8px 6px; border-radius: 9px; margin-bottom: 4px; }
.mock-contact.active { background: #eaf1ff; }
.mock-contact b { display: block; font-size: 11px; line-height: 1.4; }
.mock-contact small { font-size: 9px; color: #94a3b8; }
.avatar { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: inline-block; background: #cbd5e1; }
.avatar.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.avatar.orange { background: linear-gradient(135deg, #fbbf24, #f97316); }
.avatar.purple { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.avatar.cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.mock-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mock-topbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid #eef2f7; font-weight: 600; font-size: 11px; }
.mock-topbar em { font-style: normal; color: var(--brand); font-size: 9px; font-weight: 500; margin-left: 6px; }
.mock-topbar i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #e8f8ee; }
.mock-chat-body { flex: 1; padding: 14px; background: #fbfcfe; overflow: hidden; }
.bubble { max-width: 78%; padding: 8px 11px; border-radius: 10px; margin-bottom: 10px; line-height: 1.5; font-size: 10px; }
.bubble small { display: block; font-size: 8px; opacity: .65; margin-bottom: 2px; }
.bubble.left { background: #fff; border: 1px solid #eef2f7; border-bottom-left-radius: 3px; }
.bubble.right { margin-left: auto; background: #e6efff; color: #1e40af; border-bottom-right-radius: 3px; }
.mock-typing { display: flex; gap: 4px; padding: 4px 0; }
.mock-typing i { width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
.mock-input { display: flex; align-items: center; justify-content: space-between; margin: 8px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; color: #94a3b8; font-size: 9px; }
.mock-input b { background: var(--brand); color: #fff; border-radius: 5px; padding: 4px 10px; font-size: 9px; }
.mock-body-pad { flex: 1; padding: 14px; background: #fbfcfe; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mini-stat { background: #fff; border: 1px solid #eef2f7; border-radius: 9px; padding: 10px; }
.mini-stat b { display: block; font-size: 16px; color: var(--brand); line-height: 1.3; }
.mini-stat span { color: #94a3b8; font-size: 9px; }
.mock-table { background: #fff; border: 1px solid #eef2f7; border-radius: 9px; overflow: hidden; }
.mock-tr { display: grid; grid-template-columns: 1.4fr 1fr .8fr; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #f1f5f9; font-size: 9px; }
.mock-tr:last-child { border-bottom: 0; }
.mock-tr.head { background: #f8fafc; color: #94a3b8; font-weight: 600; }
.mock-tr span { display: flex; align-items: center; gap: 6px; }
.mock-tr .avatar { width: 18px; height: 18px; flex-basis: 18px; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 7px; font-size: 8px; font-weight: 600; }
.tag.green { background: #e9f9ef; color: #16a34a; }
.tag.gray { background: #f1f5f9; color: #64748b; }
.tag.blue { background: #eaf1ff; color: var(--brand); }
.mock-main.full { width: 100%; }
.mock-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 11px; }
.mock-chart-head span { color: #94a3b8; font-size: 9px; }
.mock-chart { display: flex; align-items: end; gap: 8px; height: 100px; padding: 10px; background: #fff; border: 1px solid #eef2f7; border-radius: 9px; margin-bottom: 12px; }
.mock-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5b8cff, #cfe0ff); }

/* ---------------------------------------------------------------- 功能区 */
.feature-section { padding: 72px 0; background: #fff; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.feature-section.is-reverse .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(27px, 2.6vw, 35px); line-height: 1.45; font-weight: 800; letter-spacing: -.8px; margin-bottom: 26px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.feature-list li:last-child { margin-bottom: 0; }
.feature-check { color: #0f172a; font-size: 17px; font-weight: 700; line-height: 1.7; }
.feature-list h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.feature-list p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0; }
.feature-visual { min-width: 0; }
.mock-frame { border-radius: 26px; overflow: hidden; box-shadow: 0 20px 60px rgba(15, 23, 42, .1); background: #fff; }
.mock-image { width: 100%; }

/* ---------------------------------------------------------------- 数据区 */
.cta-section { padding: 70px 0 90px; background: #fff; }
.cta-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 38px; }
.cta-text h2 { font-size: clamp(28px, 2.8vw, 37px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 10px; }
.cta-text p { color: #475569; font-size: 16px; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #e6ebf4; }
.stat-item { padding: 28px 24px 0; border-left: 1px solid #e6ebf4; }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-item h4 { color: var(--brand); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.stat-big { font-size: 38px; font-weight: 800; line-height: 1.3; letter-spacing: -1px; margin-bottom: 12px; }
.stat-item p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }

/* ---------------------------------------------------------------- 文章与图片 */
.news-section { padding: 76px 0; background: #f7faff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { font-size: 31px; font-weight: 800; margin-bottom: 6px; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid #e8eefc; border-radius: 16px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15, 23, 42, .1); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9f0ff; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #a9c0f5; font-size: 40px; }
.post-body { padding: 20px 22px 24px; }
.post-meta { color: #94a3b8; font-size: 13px; }
.post-body h3 { font-size: 19px; line-height: 1.5; margin: 7px 0 8px; }
.post-body h3 a:hover { color: var(--brand); }
.post-body p { color: var(--muted); font-size: 15px; line-height: 1.8; min-height: 46px; margin-bottom: 12px; }
.read-more { color: var(--brand); font-size: 14px; font-weight: 600; }
.empty-state { text-align: center; padding: 64px 20px; border: 1px dashed #cbd9f5; border-radius: 16px; background: #fff; }
.empty-state span { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: #eaf1ff; color: var(--brand); font-size: 26px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 14px; margin: 0; }
.gallery-section { padding: 76px 0; background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #eef4ff; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 22px 12px 10px; color: #fff; font-size: 12px; font-weight: 600; background: linear-gradient(transparent, rgba(4, 7, 22, .8)); }

/* ---------------------------------------------------------------- 页脚 */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .68); padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 48px; padding-bottom: 56px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 22px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.footer-col a { font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-brand-logo .brand-logo {
    height: 58px; max-width: 230px;
    filter: invert(1) hue-rotate(180deg);
}
.footer-tagline { font-size: 15px; font-weight: 600; color: #fff; margin: 20px 0 18px; }
.footer-socials { display: flex; gap: 10px; margin-bottom: 24px; }
.footer-socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; color: #fff; font-size: 16px; }
.footer-socials a:hover { background: rgba(255, 255, 255, .1); }
.footer-contact { display: grid; gap: 6px; font-size: 13px; }
.footer-contact span { color: rgba(255, 255, 255, .45); }
.footer-contact a { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: rgba(255, 255, 255, .4); }

/* ---------------------------------------------------------------- 悬浮客服 */
.floating-service { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: flex; flex-direction: column; align-items: end; gap: 10px; }
.service-bubble { width: 54px; height: 54px; border: 0; border-radius: 18px; background: linear-gradient(145deg, #4f9bff, var(--brand)); color: #fff; font-size: 25px; cursor: pointer; box-shadow: 0 12px 30px rgba(8, 74, 255, .35); }
.service-panel { width: 230px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #e8eefc; box-shadow: 0 20px 50px rgba(15, 23, 42, .18); color: var(--ink); text-align: center; }
.service-panel-head { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.service-panel img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 8px; }
.service-panel p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.service-links { display: grid; gap: 6px; }
.service-links a, .service-links button { display: block; padding: 8px; border: 0; border-radius: 8px; background: #f2f6ff; color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---------------------------------------------------------------- 博客页（参考 traneasy.com.cn/zh/blog） */
.blog-main {
    min-height: 70vh; padding-bottom: 84px;
    background: linear-gradient(180deg, #eaf1ff 0%, #f2f7ff 45%, #fff 100%);
}
.blog-hero { padding: 44px 0 12px; text-align: center; }
.blog-hero h1 { font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 8px; }
.blog-hero p { color: #64748b; font-size: 15px; margin: 0; }
.blog-cats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 34px;
    padding: 16px 0 18px; margin-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
}
.blog-cat { position: relative; color: #2563eb; font-size: 14px; font-weight: 600; padding-bottom: 8px; white-space: nowrap; }
.blog-cat:hover { color: #084aff; }
.blog-cat.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px; background: #2563eb; }
.blog-featured { margin-bottom: 46px; }
.blog-featured-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.feature-card {
    position: relative; display: flex; align-items: flex-end; overflow: hidden;
    min-height: 216px; padding: 22px; border-radius: 14px; color: #fff;
    background-color: #0f172a; background-size: cover; background-position: center;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .12);
}
.feature-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(4,7,22,.88) 100%); }
.feature-card:hover { transform: translateY(-2px); transition: transform .25s; }
.feature-card-content { position: relative; z-index: 1; }
.feature-tag { display: inline-block; padding: 3px 9px; border-radius: 4px; background: #084aff; font-size: 11px; font-weight: 600; margin-bottom: 12px; }
.feature-card-large h2 { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; font-weight: 700; margin-bottom: 10px; }
.feature-date { font-size: 12px; color: rgba(255,255,255,.8); }
.feature-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.feature-card-small { min-height: 0; padding: 16px; }
.feature-card-small h3 { font-size: 15px; line-height: 1.5; font-weight: 700; margin: 0; }
.feature-card-small .feature-tag { margin-bottom: 8px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.blog-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 18px 0; border-bottom: 1px solid rgba(148, 163, 184, .25); }
.blog-row-thumb { display: block; width: 150px; height: 104px; border-radius: 12px; overflow: hidden; background: #e6edf7; }
.blog-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #9dc0ff; font-size: 30px; }
.blog-row-body h3 { font-size: 20px; line-height: 1.5; font-weight: 700; margin: 0 0 6px; }
.blog-row-body h3 a:hover { color: var(--brand); }
.blog-row-meta { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 12px; margin-bottom: 8px; }
.blog-tag { padding: 2px 8px; border-radius: 4px; background: #eaf1ff; color: #2563eb; font-weight: 600; }
.blog-row-body p { color: #64748b; font-size: 14px; line-height: 1.8; margin: 0; }
.blog-pagination { margin: 34px 0 0; }
.blog-pagination ul { list-style: none; display: inline-flex; gap: 6px; padding: 0; margin: 0; }
.blog-pagination a, .blog-pagination span { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 9px; border: 1px solid #dbe5f5; background: #fff; color: #475569; }
.blog-pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.blog-sidebar { position: sticky; top: 92px; }
.blog-search { position: relative; margin-bottom: 28px; }
.blog-search input {
    width: 100%; padding: 12px 42px 12px 14px; border: 1px solid #dbe5f5; border-radius: 10px;
    background: #fff; color: var(--ink); font-size: 14px; outline: none;
}
.blog-search input:focus { border-color: #9db9ff; box-shadow: 0 0 0 3px rgba(8,74,255,.08); }
.blog-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: 20px; cursor: pointer; }
.blog-promo { padding: 18px; margin-bottom: 30px; border-radius: 16px; background: rgba(255,255,255,.76); text-align: center; }
.blog-promo img { width: 100%; border-radius: 10px; }
.blog-promo-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 8px 20px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px rgba(22,163,74,.28); }
.blog-promo-btn:hover { background: #12833c; }
.sidebar-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.sidebar-post { display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(148,163,184,.22); }
.sidebar-post-body h4 { font-size: 14px; line-height: 1.5; font-weight: 600; margin: 0 0 6px; }
.sidebar-post-body span { color: #94a3b8; font-size: 11px; }
.sidebar-post img, .sidebar-thumb-placeholder { width: 62px; height: 48px; border-radius: 8px; object-fit: cover; background: #e6edf7; display: grid; place-items: center; color: #9dc0ff; }

/* ---------------------------------------------------------------- 内页 */
.inner-main { padding-top: 40px; }
.inner-hero { padding: 58px 0 28px; background: linear-gradient(180deg, #eaf1ff, #fff); border-bottom: 1px solid #e8eefc; }
.inner-hero h1 { font-size: clamp(31px, 3.5vw, 46px); margin-bottom: 10px; }
.inner-hero p { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.inner-news { background: #fff; }
.article-wrap { width: min(860px, calc(100% - 60px)); margin: 0 auto; padding: 56px 0 76px; }
.article-header { text-align: center; margin-bottom: 32px; }
.article-header h1 { font-size: clamp(30px, 3.5vw, 44px); margin-bottom: 10px; }
.article-meta { color: #94a3b8; font-size: 14px; }
.article-thumb { border-radius: 16px; overflow: hidden; margin-bottom: 32px; }
.article-thumb img { width: 100%; }
.article-content { font-size: 17px; color: #334155; line-height: 2; }
.article-content h2 { font-size: 28px; margin: 34px 0 12px; }
.article-content h3 { font-size: 21px; margin: 26px 0 10px; }
.article-content img { border-radius: 12px; margin: 18px 0; }
.article-content blockquote { margin: 22px 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: #f7faff; }
.article-content pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 10px; overflow: auto; }
.article-tags { margin-top: 32px; color: var(--muted); font-size: 14px; }
.article-tags a { display: inline-block; background: #f1f5f9; border-radius: 999px; padding: 4px 12px; margin-right: 6px; }
.page-links, .pagination { margin: 36px 0; text-align: center; }
.pagination ul { list-style: none; display: inline-flex; gap: 6px; padding: 0; margin: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.error-page { text-align: center; padding: 100px 20px 130px; }
.error-code { font-size: 100px; font-weight: 800; line-height: 1; color: #dbe8ff; letter-spacing: -5px; }
.error-page h1 { font-size: 33px; margin: 10px 0; }
.error-page p { color: var(--muted); margin-bottom: 24px; }
.inner-hero .search-form { max-width: 520px; display: flex; gap: 8px; margin-top: 18px; }
.inner-hero .search-field { flex: 1; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; }
.inner-hero .search-submit { padding: 9px 20px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; }

/* ---------------------------------------------------------------- 动画与灯箱 */
.reveal { opacity: 1; }
.reveal.is-visible { animation: glFade .6s ease both; }
.reveal.delay-1.is-visible { animation-delay: .12s; }
@keyframes glFade { from { opacity: .7; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gl-lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(4, 7, 22, .9); display: grid; place-items: center; padding: 40px; }
.gl-lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.gl-lightbox button { position: absolute; right: 28px; top: 22px; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.gl-lightbox-caption { position: absolute; bottom: 24px; color: rgba(255, 255, 255, .8); font-size: 15px; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
    .nav-wrap { grid-template-columns: minmax(0, 1fr) auto; }
    .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(15, 23, 42, .08); padding: 12px 24px 18px; flex-direction: column; align-items: stretch; }
    .main-nav.is-open { display: flex; }
    .nav-item { justify-content: space-between; width: 100%; }
    .nav-dropdown { width: 100%; }
    .dropdown-toggle { width: 100%; }
    .dropdown-panel { position: static; width: 100%; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 4px 0 0; }
    .dropdown-grid { grid-template-columns: repeat(2, 1fr); }
    .menu-toggle { display: block; }
    .header-login { display: none; }
    .highlight-grid, .feature-grid { grid-template-columns: 1fr; gap: 34px; }
    .feature-section.is-reverse .feature-copy { order: 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-featured-grid { grid-template-columns: 1fr; }
    .feature-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .blog-layout { grid-template-columns: 1fr; gap: 40px; }
    .blog-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .blog-latest { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 32px); }
    .site-header .container { width: calc(100% - 24px); }
    .site-header .brand-logo { height: 36px; }
    .header-actions { gap: 10px; }
    .header-auth-stack .header-login { min-width: 84px; min-height: 32px; padding: 6px 16px; font-size: 13px; }
    .header-auth-stack .header-cta { min-height: 24px; padding: 4px 10px; font-size: 11px; }
    .footer-brand-logo .brand-logo { height: 48px; }
    .hero-center { padding: 52px 0 40px; }
    .hero-brand { font-size: 34px; margin-bottom: 14px; }
    .hero h1 { font-size: 31px; letter-spacing: -1px; word-break: break-all; }
    .hero-desc { font-size: 15px; line-height: 1.75; word-break: break-word; }
    .btn { min-width: 0; padding: 10px 18px; font-size: 15px; }
    .app-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; font-size: 15px; }
    .highlight-section, .feature-section, .news-section, .gallery-section { padding: 52px 0; }
    .post-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .stat-big { font-size: 29px; }
    .cta-head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .laptop-base { margin: 0 -10px; }
    .article-wrap { width: calc(100% - 32px); }
    .blog-hero { padding: 32px 0 8px; }
    .blog-cats { gap: 18px; }
    .feature-side { grid-template-columns: 1fr; }
    .blog-row { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
    .blog-row-thumb { width: 110px; height: 82px; }
    .blog-sidebar { display: block; }
}
@media (max-width: 480px) {
    .post-grid, .gallery-grid { grid-template-columns: 1fr; }
}
