/* ============================================================
   企业品牌官网 - 前台样式
   设计：Muji 极简 + 品牌红 #E60012 点睛
   字体：Inter + Noto Sans SC
   ============================================================ */

/* ---------- 1. 设计令牌（色彩 / 字体 / 间距） ---------- */
:root {
    --background: #f5f5f5;
    --card: #ffffff;
    --foreground: #333333;
    --muted: #737373;
    --primary: #E60012;
    --primary-foreground: #ffffff;
    --accent: #fef2f3;
    --accent-foreground: #a30911;
    --border: #e0e0e0;

    /* 平台标签固定五色 */
    --platform-windows: #2196F3;
    --platform-macos:   #616161;
    --platform-linux:   #FF9800;
    --platform-ios:     #9E9E9E;
    --platform-android: #4CAF50;
    --platform-none:    #9E9E9E;

    --radius: 2px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .10);

    --container: 1152px;        /* 6xl */
    --topbar-h: 64px;

    --font-sans: Inter, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover { color: var(--primary); }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    color: var(--foreground);
}

p { margin: 0; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 数字场景对齐 */
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 3. 通用容器 / 工具类 ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }

/* ---------- 4. 顶部导航 Topbar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    height: var(--topbar-h);
}

.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--foreground);
    flex-shrink: 0;
}

.brand-mark {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-name { white-space: nowrap; }

/* Logo 图片样式（后台系统设置上传的站点 Logo） */
.brand-logo {
    height: 28px;
    width: auto;
    display: inline-block;
    object-fit: contain;
}

/* 主菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 15px;
    color: var(--foreground);
    transition: color .2s ease;
}

.nav-item:hover { color: var(--primary); background: var(--accent); }

.nav-item.is-active {
    color: var(--primary);
    font-weight: 600;
}

.nav-item.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    background: var(--primary);
    transition: width .2s ease;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
}

.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- 5. 移动端折叠菜单 ---------- */
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }

    .nav-menu {
        position: fixed;
        top: var(--topbar-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--card);
        /* 覆盖桌面端 height:100%，否则 fixed 定位下 height:100% 会撑满视口，
           导致 max-height 之外仍残留空白 */
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        z-index: 99;
    }

    /* 展开时才显示边框与阴影，避免关闭态在顶栏下方出现多余线条 */
    .nav-menu.is-open {
        max-height: 80vh;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-item {
        height: 48px;
        padding: 0 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-item.is-active::after {
        left: 0;
        right: auto;
        width: 4px;
        height: 100%;
        bottom: 0;
    }
}

/* 移动端菜单展开时的背景遮罩（点击可关闭菜单）*/
.nav-mask {
    display: none;
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 98;
    opacity: 0;
    transition: opacity .3s ease;
}
.nav-mask.is-show { display: block; opacity: 1; }
@media (min-width: 901px) { .nav-mask { display: none !important; } }

/* ---------- 6. 通用页头（列表页 banner 头） ---------- */
.page-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.page-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.page-header-title-block { min-width: 0; }

.page-header-bar {
    width: 48px;
    height: 4px;
    background: var(--primary);
    margin-bottom: 16px;
}

.page-header-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--foreground);
}

.page-header-subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
}

/* ---------- 7. Hero 轮播图 ---------- */
.hero {
    position: relative;
    width: 100%;
    background: #1a1a1a;
    overflow: hidden;
    /* 轮播图整体不可选中、不可拖拽，避免切换时误选文字 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.hero-track {
    display: flex;
    transition: transform .6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 标准 1920×720 显示比例（原 800 调矮 10%，aspect-ratio 保持响应式）*/
.hero-slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 1920 / 720;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端：放弃 1920:720 比例，改为固定最小高度，确保文字有空间 */
@media (max-width: 768px) {
    .hero-slide {
        aspect-ratio: auto;
        min-height: 315px;
    }
}
@media (max-width: 480px) {
    .hero-slide { min-height: 275px; }
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 图片加载完成前隐藏，避免露出 #1a1a1a 黑底；loaded 后淡入 */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-slide img.is-loaded {
    opacity: 1;
}

/* 整屏统一 40% 黑遮罩 */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* 标题/副标题/按钮进入动画 */
.hero-slide.is-active .hero-title {
    animation: hero-fade-up 0.8s ease-out 0.2s both;
}
.hero-slide.is-active .hero-subtitle {
    animation: hero-fade-up 0.8s ease-out 0.4s both;
}
.hero-slide.is-active .hero-cta {
    animation: hero-fade-up 0.8s ease-out 0.6s both;
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-cta {
    margin-top: 28px;
}

@media (max-width: 1024px) {
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 16px; }
}

@media (max-width: 768px) {
    .hero-overlay { padding: 0 16px; }
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 13px; margin-top: 8px; }
    .hero-cta { margin-top: 16px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 20px; }
    .hero-subtitle { font-size: 12px; }
    .hero-cta .btn { padding: 8px 16px; font-size: 13px; }
    .hero-dots { bottom: 12px; gap: 6px; }
    .hero-dot { width: 24px; height: 3px; }
    .hero-dot.is-active { width: 32px; }
}

/* 指示器 - 居中底部 */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 4;
}

.hero-dot {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    border: none;
    transition: width 0.3s ease, background 0.2s ease;
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.7); }

.hero-dot.is-active {
    background: var(--primary);
    width: 48px;
}

/* ---------- 8. 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    border: 1px solid transparent;
    line-height: 1.2;
    white-space: nowrap;
}

.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: #c70010;
    color: var(--primary-foreground); /* 抵消全局 a:hover 变色，防止红底红字 */
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}

.btn-ghost:hover { background: var(--accent); color: var(--primary); }

.btn-lg { padding: 12px 28px; font-size: 15px; }

/* ---------- 9. 通用 Section 区块 ---------- */
.section { padding: 56px 0; }

.section-lg { padding: 72px 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
}

.section-title::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--muted);
    margin-top: 6px;
    font-size: 15px;
}

/* ---------- 10. 卡片网格 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-cover {
    aspect-ratio: 16 / 9;
    background: #efefef;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card:hover .card-cover img { transform: scale(1.04); }

.card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5b5b5;
    background: linear-gradient(135deg, #f0f0f0, #e6e6e6);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.card-summary {
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 11. Badge 标签 ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.6;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-foreground);
    font-weight: 500;
}

.badge-platform {
    border-radius: 999px;     /* pill */
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
}

.badge-windows  { background: var(--platform-windows); }
.badge-macos    { background: var(--platform-macos); }
.badge-linux    { background: var(--platform-linux); }
.badge-ios      { background: var(--platform-ios); }
.badge-android  { background: var(--platform-android); }
.badge-none     { background: var(--platform-none); }

.badge-category {
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
}

/* ---------- 12. 分类筛选（chip） ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    transition: all .2s ease;
}

.chip:hover { border-color: var(--primary); color: var(--primary); }

.chip.is-active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* 下拉筛选（产品分类 / 案例行业） */
.filter-select-wrap {
    display: flex;
    align-items: center;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 160px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    color: var(--foreground);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    /* 自定义下拉箭头 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:hover { border-color: var(--primary); }
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.15);
}

/* ---------- 13. 分页 ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: 14px;
    border-radius: var(--radius);
    transition: all .2s ease;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .is-current {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    font-weight: 600;
}

.pagination .is-disabled {
    color: var(--muted);
    cursor: not-allowed;
    background: var(--background);
}

.pagination .ellipsis {
    border: none;
    background: transparent;
    min-width: auto;
}

/* ---------- 14. 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 80px 16px;
    color: var(--muted);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #c7c7c7;
}

.empty-state-text {
    font-size: 15px;
}

/* ---------- 15. 首页 - 优势/特性 ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-title { font-size: 17px; margin-bottom: 8px; }

.feature-desc { color: var(--muted); font-size: 14px; }

/* ---------- 16. 数据统计 ---------- */
.stats {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 16px;
}

@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-item { text-align: center; }

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat-label {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- 17. 关于我们 - 时间线 ---------- */
.timeline {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 0 0 32px 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--primary);
}

.timeline-year {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.timeline-title {
    font-size: 17px;
    font-weight: 600;
    margin-top: 4px;
}

.timeline-desc {
    color: var(--muted);
    margin-top: 6px;
    font-size: 14px;
}

/* ---------- 18. 关于我们 - 企业文化 ---------- */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) { .culture-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .culture-grid { grid-template-columns: 1fr; } }

.culture-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.culture-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.culture-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.culture-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--primary);
    flex-shrink: 0;
}

.culture-icon-box svg { width: 24px; height: 24px; }

.culture-title { font-size: 16px; font-weight: 600; color: var(--foreground); }

.culture-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 16px; }

/* ---------- 19. 详情页通用 ---------- */
.detail-main {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin: 32px auto;
    max-width: var(--container);
}

.detail-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-meta {
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.detail-content { line-height: 1.8; font-size: 15px; }

.detail-content p { margin: 0 0 1em; }

.detail-content img { max-width: 100%; height: auto; margin: 1em 0; }

.detail-content h1, .detail-content h2, .detail-content h3 {
    margin: 1.2em 0 0.6em;
    font-weight: 700;
}

/* ---------- 20. 相关推荐 ---------- */
.recommendations { margin-top: 48px; }

.recommendations-head {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.recommendations-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 2px;
    background: var(--primary);
}

/* ---------- 21. 新闻列表（左封面 + 右内容） ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.news-cover {
    flex: 0 0 240px;
    aspect-ratio: 16 / 9;
    background: #efefef;
    overflow: hidden;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-item:hover .news-cover img { transform: scale(1.04); }

.news-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

.news-summary {
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 700px) {
    .news-item { flex-direction: column; }
    .news-cover { flex: none; aspect-ratio: 16 / 9; }
    .news-body { padding: 16px; }
}

/* ---------- 22. 下载页 ---------- */
.downloads-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.dl-tab {
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-size: 14px;
    transition: all .2s ease;
}

.dl-tab:hover { border-color: var(--primary); color: var(--primary); }

.dl-tab.is-active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    font-weight: 500;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .dl-grid { grid-template-columns: 1fr; } }

.dl-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

/* 上半区：图标 + 标题/内容 横向排列 */
.dl-main {
    display: flex;
    gap: 16px;
}

.dl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.dl-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dl-icon img { width: 100%; height: 100%; object-fit: cover; }

.dl-icon-fallback {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

.dl-info { flex: 1; min-width: 0; }

.dl-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-version {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.dl-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.dl-desc {
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下载按钮：位于卡片底部，宽度跟随卡片自适应撑满 */
.dl-action { margin-top: auto; }

.dl-btn { width: 100%; }

/* ---------- 23. 联系我们 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    margin: 32px auto;
    max-width: var(--container);
    padding: 0 16px;
}

@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-info-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.contact-info-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.contact-info-list { display: flex; flex-direction: column; }

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
}

.contact-info-item:first-child { padding-top: 0; }
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }

/* 图标 - 品牌红浅底圆角块 */
.contact-info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 0, 18, 0.08);
    border-radius: 8px;
    color: var(--primary);
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-info-body { flex: 1; min-width: 0; }

.contact-info-label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.contact-info-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    word-break: break-word;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.15s ease;
}

a.contact-info-value:hover { color: var(--primary); }

/* 表单 */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.form-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; gap: 0; } }

.form-label {
    display: block;
    font-size: 14px;
    color: var(--foreground);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-label .req { color: var(--primary); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--foreground);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(230, 0, 18, .15);
}

textarea.form-control { resize: vertical; min-height: 110px; }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; }

.form-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid;
}

.form-alert.is-success {
    background: #e7f6ec;
    border-color: #b5e4c4;
    color: #1c7a3d;
}

.form-alert.is-error {
    background: #fdecec;
    border-color: #f5c2c2;
    color: #a30911;
}

/* ---------- 24. 页脚 ---------- */
.footer {
    background: #1f1f1f;
    color: #b5b5b5;
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #333;
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-spacer { display: none; }
}

.footer-brand-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}

.footer-col-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-item {
    color: #b5b5b5;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.footer-contact-label { color: #999; min-width: 50px; }

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.footer-links {
    padding-top: 16px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
}

.footer-links-label {
    color: #888;
    font-size: 13px;
}

.footer-link-text {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}

.footer-link-text:hover { color: #fff; }

.footer-link-logo {
    display: inline-flex;
    align-items: center;
}

.footer-link-logo img {
    height: 28px;
    max-width: 120px;
    object-fit: contain;
    opacity: .6;
    filter: grayscale(1) brightness(2);
    transition: opacity .2s, filter .2s;
}

.footer-link-logo:hover img {
    opacity: 1;
    filter: none;
}

/* ---------- 25. 404 页 ---------- */
.not-found {
    text-align: center;
    padding: 120px 16px;
}

.not-found-code {
    font-size: 96px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.not-found-text {
    color: var(--muted);
    font-size: 18px;
    margin-top: 16px;
}

.not-found-action { margin-top: 32px; }

/* ---------- 26. 通用排版细节 ---------- */
.section-bg-card { background: var(--card); }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.text-center { text-align: center; }

/* 站点主区域 - 用于在 header/footer 之间铺内容 */
main.site-main { display: block; }

/* 详情页 - 返回列表按钮（位于 container 下、article 上方，无边框纯文字样式）*/
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    font-size: 15px;
    margin-bottom: 16px;
    color: var(--foreground, #333);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: color 0.15s;
}
.detail-back:hover {
    color: var(--primary, #E60012);
    background: transparent;
}

/* ---------- 27. 置顶悬浮按钮 ---------- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 90;
}

.back-to-top svg { width: 22px; height: 22px; }

.back-to-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #c70010;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.back-to-top:active { transform: translateY(0); }

/* 移动端避免遮挡内容，调整位置 */
@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
    .back-to-top svg { width: 20px; height: 20px; }
}
