/* 站点静态样式：与首页 index.html 保持一致的视觉主题 */
* { margin: 0; padding: 0; border: 0; box-sizing: border-box; }

:root {
    --primary: #091426;
    --primary-container: #1e293b;
    --surface: #f7f9fb;
    --surface-container: #eceef0;
    --surface-container-low: #f2f4f6;
    --surface-container-high: #e6e8ea;
    --surface-bright: #f7f9fb;
    --surface-dim: #d8dadc;
    --surface-tint: #545f73;
    --on-primary: #ffffff;
    --on-surface: #191c1e;
    --on-surface-variant: #45474c;
    --inverse-on-surface: #eff1f3;
    --outline-variant: #c5c6cd;
    --outline: #75777d;
    --bg: #f7f9fb;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--on-surface);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 统一可交互元素的键盘焦点，保证视觉反馈与鼠标操作一致 */
a:focus-visible, button:focus-visible, select:focus-visible {
    outline: 3px solid rgba(84, 95, 115, .28);
    outline-offset: 3px;
}

.container {
    width: 1280px;
    max-width: 94%;
    margin: 0 auto;
}

/* ===== 顶部导航（与首页 header 一致） ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-bright);
    border-bottom: 1px solid var(--outline-variant);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-nav-item {
    font-size: 18px;
    color: var(--on-surface-variant);
    padding: 8px 15px;
    position: relative;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    transition: color .2s, background .2s;
}

.site-nav-item:hover {
    color: var(--primary);
    background: var(--surface-container-low);
}

.site-nav-item::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 30%;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(9, 20, 38, .18);
    transition: transform .25s ease, opacity .25s ease;
}

.site-nav-item:hover::after {
    transform: scaleX(1);
}

.site-nav-item.active {
    color: var(--primary);
    background: var(--surface-container-low);
    font-weight: 700;
}

.site-nav-item.active::after {
    transform: scaleX(1);
}

.header-cta {
    background: var(--primary);
    color: var(--on-primary);
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(9, 20, 38, .12);
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
    margin-left: 50px;
    text-decoration: none;
}

.header-cta:hover {
    background: var(--primary-container);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(9, 20, 38, .18);
}

.header-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(9, 20, 38, .12);
}

/* 面包屑导航 */
.breadcrumbs {
    background: var(--surface-container-low);
    border-bottom: 1px solid var(--outline-variant);
    padding: 12px 0;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bc-item {
    font-size: 14px;
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: color .2s;
}

.bc-item:hover {
    color: var(--primary);
    background: var(--surface-container-high);
    border-radius: 6px;
    padding: 3px 7px;
    margin: -3px -7px;
}

.bc-item.current {
    color: var(--primary);
    font-weight: 600;
}

.bc-sep {
    color: var(--outline);
    font-size: 14px;
}

/* 主内容 */
.site-main {
    flex: 1;
    padding: 30px 20px;
}

/* 首页全宽主体：hero 等区块直接顶到边缘 */
.site-main.home {
    padding: 0;
}

/* 首页内部通用区块 */
.home .section { padding: 48px 0; }
.home .container { width: 1280px; max-width: 94%; margin: 0 auto; }
.home .section-head { text-align: center; margin-bottom: 48px; }
.home .section-head h2 { font-size: 32px; line-height: 40px; letter-spacing: -0.01em; font-weight: 600; color: var(--primary); margin-bottom: 16px; }
.home .section-head .divider { width: 96px; height: 4px; background: var(--surface-tint); opacity: .2; margin: 0 auto; }

.hero {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
}

.hero h1 { font-size: 28px; margin-bottom: 10px; }
.hero p { opacity: 0.9; }

.section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.section-title, .page-header h1 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.content-list { list-style: none; }
.content-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.content-item:last-child { border-bottom: none; }
.content-item a {
    color: #1d4ed8;
    font-size: 16px;
    text-decoration: none;
}
.content-item a:hover { text-decoration: underline; }
.content-summary {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
}
.content-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

/* 详情页 */
.article { background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.article-header { margin-bottom: 20px; }
.article-header h1 { font-size: 26px; margin-bottom: 12px; }
.article-meta { color: #999; font-size: 13px; }
.article-tags { margin-left: 15px; }
.tag {
    display: inline-block;
    background: #eef2ff;
    color: #1d4ed8;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 6px;
    font-size: 12px;
}
.article-summary {
    color: #666;
    background: #f9fafb;
    border-left: 3px solid #2563eb;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 14px;
}
.article-body { line-height: 1.8; font-size: 15px; }
.article-body img { max-width: 100%; }
.article-back { margin-top: 30px; }
.article-back a { color: #1d4ed8; text-decoration: none; }

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    gap: 10px;
}
.page-link {
    color: #1d4ed8;
    text-decoration: none;
    border: 1px solid #d1d5db;
    padding: 6px 14px;
    border-radius: 4px;
    background: #fff;
}
.page-link:hover { border-color: #2563eb; }
.page-link.disabled { color: #bbb; cursor: not-allowed; }
.page-info { color: #666; font-size: 13px; }

/* 产品列表（与新闻列表区分：卡片式展示） */
.product-list { list-style: none; }
.product-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}
.product-item:last-child { border-bottom: none; }
.product-info { flex: 1; }
.product-title {
    color: #1d4ed8;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.product-title:hover { text-decoration: underline; }
.product-summary {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
}

/* 产品详情封面图 */
.product-cover {
    text-align: center;
    margin-bottom: 20px;
}
.product-cover img {
    max-width: 100%;
    max-height: 420px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 页脚（与首页 footer 一致） */
.footer {
    background: var(--surface-container);
    margin-top: 48px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 0;
}

.footer-brand p {
    color: var(--on-surface-variant);
    font-size: 14px;
    margin-top: 16px;
}

.footer-brand-name {
    font-size: 18px;
}

.qr-box {
    width: 96px;
    height: 96px;
    background: var(--surface-container-high);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    font-size: 12px;
    margin-top: 24px;
}

.footer-col h4 {
    font-size: 12px;
    letter-spacing: .05em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--on-surface-variant);
    font-size: 14px;
    padding: 6px 0;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--primary);
}

/* 合作伙伴链接使用两列布局，避免页脚纵向占用过多空间 */
.footer-partners-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    column-gap: 16px;
}

/* 合作伙伴模块扩大宽度，名称保持完整单行展示 */
.footer-partners {
    min-width: 390px;
}

.footer-partners-list a {
    white-space: nowrap;
}

.footer-bottom {
    border-top: 1px solid rgba(197, 198, 205, .3);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--on-surface-variant);
}

/* 响应式：900px 以下调整导航与网格 */
@media (max-width: 900px) {
    .site-nav { display: none; }
    .header-cta { margin-left: 16px; }
    .brand-name { font-size: 16px; }
    .footer-inner { flex-wrap: wrap; }
    .home .bento { grid-template-columns: 1fr 1fr; }
    .home .bento-card.large { grid-column: span 2; }
    .home .case-feature-inner { flex-direction: column; }
    .home .case-img { width: 100%; }
    .home .news-grid { grid-template-columns: 1fr 1fr; }
}

.empty-tip { color: #999; padding: 20px 0; text-align: center; }
