/* ============================================================
   丰稷智能 - 子页公共样式 pages.css
   ============================================================ */

/* 子页头部固定实色（白底 + 深色字，覆盖首页透明头白字） */
.site-header-solid {
    background: rgba(255,255,255,.97);
    box-shadow: 0 2px 16px rgba(8,28,68,.08);
}
/* 子页面：logo 与导航文字为深色 */
.site-header-solid .logo-text strong { color: var(--text-main); }
.site-header-solid .logo-text em { color: var(--text-sub); }
.site-header-solid .main-nav a { color: var(--text-main); }
.site-header-solid .main-nav a:hover,
.site-header-solid .main-nav a.active { color: var(--primary); }

/* 首页例外：保持透明背景 + 白色字（配合深色 Banner） */
body.page-home .site-header-solid {
    background: transparent;
    box-shadow: none;
}
body.page-home .site-header-solid .logo-text strong,
body.page-home .site-header-solid .main-nav a { color: #fff; }
body.page-home .site-header-solid .logo-text em { color: rgba(255,255,255,.7); }
/* 首页滚动后：白底 + 深色字 */
body.page-home.scrolled-patch .site-header-solid {
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 16px rgba(8,28,68,.08);
}
body.page-home.scrolled-patch .site-header-solid .logo-text strong,
body.page-home.scrolled-patch .site-header-solid .main-nav a { color: var(--text-main); }
body.page-home.scrolled-patch .site-header-solid .logo-text em { color: var(--text-sub); }

/* ---------- 子页头 Banner ---------- */
.page-head {
    position: relative;
    height: 360px;
    margin-top: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,28,68,.85), rgba(20,80,160,.6));
}
.page-head-inner { position: relative; z-index: 2; }
.page-head h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 14px;
    text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.page-head p {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    letter-spacing: 1px;
}
/* 面包屑 */
.breadcrumb {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    font-size: 14px;
    color: rgba(255,255,255,.75);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; }

/* ---------- 通用主体容器 ---------- */
.page-body { padding: 80px 0; }
.page-body.bg-soft { background: var(--bg-soft); }

/* ---------- 通用段落标题（左对齐） ---------- */
.block-head { margin-bottom: 40px; }
.block-head .section-sub { display: block; }
.block-head h2 {
    font-size: 32px;
    color: var(--text-main);
    font-weight: 700;
}
.block-head h2::after {
    content: "";
    display: block;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 16px;
    border-radius: 2px;
}
.block-head.center { text-align: center; }
.block-head.center h2::after { margin-left: auto; margin-right: auto; }
.block-head.center .section-sub { text-align: center; }

/* ============================================================
   产品中心页
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
}
.product-detail:nth-child(even) .pd-media { order: 2; }
.product-detail:last-child { margin-bottom: 0; }
.pd-media {
    height: 360px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(8,28,68,.14);
}
.pd-info h3 {
    font-size: 28px;
    color: var(--text-main);
    padding-left: 16px;
    position: relative;
    margin-bottom: 18px;
}
.pd-info h3::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 5px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 3px;
}
.pd-info .pd-desc {
    color: var(--text-sub);
    line-height: 1.95;
    margin-bottom: 24px;
}
.pd-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 30px;
}
.pd-features li {
    position: relative;
    padding-left: 22px;
    color: var(--text-main);
    font-size: 15px;
}
.pd-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================
   解决方案页
   ============================================================ */
.sol-block {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border);
}
.sol-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sol-block.reverse .sol-media { order: 2; }
.sol-media {
    height: 380px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(8,28,68,.14);
}
.sol-info .sol-num {
    display: inline-block;
    font-size: 60px;
    font-weight: 700;
    color: rgba(20,102,192,.12);
    line-height: 1;
    margin-bottom: 8px;
}
.sol-info h3 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 18px;
}
.sol-info > p {
    color: var(--text-sub);
    line-height: 1.95;
    margin-bottom: 24px;
}
.sol-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.sol-point {
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    border: 1px solid var(--border);
}
.sol-point strong {
    display: block;
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 6px;
}
.sol-point span { font-size: 13px; color: var(--text-sub); }

/* ============================================================
   案例展示页
   ============================================================ */
.case-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}
.case-filter button {
    padding: 9px 24px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-sub);
    transition: all .25s;
}
.case-filter button:hover { color: var(--primary); border-color: var(--primary); }
.case-filter button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.cases-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cases-list .case-card { cursor: pointer; }

/* ============================================================
   新闻资讯页
   ============================================================ */
.news-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 50px; }
.news-list-main {}
.news-item {
    display: flex;
    gap: 26px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    transition: all .25s;
}
.news-item:first-child { padding-top: 0; }
.news-item:hover .news-item-title { color: var(--primary); }
.news-item-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 16px 0;
    align-self: flex-start;
}
.news-item-date strong {
    display: block;
    font-size: 36px;
    color: var(--primary);
    line-height: 1;
}
.news-item-date span {
    display: block;
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 6px;
}
.news-item-body { flex: 1; }
.news-item-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: rgba(20,102,192,.1);
    padding: 2px 10px;
    border-radius: 4px;
    margin: 8px 0 10px;
}
.news-item-title {
    font-size: 19px;
    color: var(--text-main);
    margin-bottom: 0;
    transition: color .25s;
    line-height: 1.5;
}
.news-item-desc {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.85;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻侧边栏 */
.news-sidebar {}
.sidebar-box { margin-bottom: 36px; }
.sidebar-title {
    font-size: 18px;
    color: var(--text-main);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}
.hot-news-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.hot-news-item:last-child { border-bottom: none; }
.hot-rank {
    flex-shrink: 0;
    width: 24px; height: 24px;
    background: var(--border);
    color: #888;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hot-news-item:nth-child(1) .hot-rank,
.hot-news-item:nth-child(2) .hot-rank,
.hot-news-item:nth-child(3) .hot-rank {
    background: var(--primary);
    color: #fff;
}
.hot-news-item a {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-news-item a:hover { color: var(--primary); }

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary));
    border-radius: 10px;
    padding: 28px;
    color: #fff;
    text-align: center;
}
.sidebar-cta h4 { font-size: 18px; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 18px; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
    list-style: none;
    padding: 0;
}
.pagination li { list-style: none; }
.pagination li > a,
.pagination li > span {
    min-width: 38px; height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-sub);
    transition: all .2s;
    cursor: pointer;
}
.pagination li > a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-soft);
}
/* 当前页 */
.pagination li.active > span,
.pagination li.active > a {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    cursor: default;
}
/* 禁用（首末页/无更多页） */
.pagination li.disabled > span,
.pagination li.disabled > a {
    color: #c0c8d0;
    cursor: not-allowed;
    background: #f7f9fc;
}

/* ============================================================
   新闻详情页
   ============================================================ */
.article-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 40px 44px;
}
.article-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-head .news-item-cat {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    color: var(--primary);
    background: rgba(20, 102, 192, .1);
    border-radius: 20px;
    margin-right: 6px;
}
.article-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 14px;
}
.article-meta {
    font-size: 13px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.article-meta .meta-dot { color: var(--border); }

/* 富文本正文排版（覆盖全局 reset） */
.article-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
    word-break: break-word;
}
.article-content > :first-child { margin-top: 0; }
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.4;
    margin: 28px 0 14px;
}
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 19px; }
.article-content h4 { font-size: 16px; }
.article-content p { margin: 0 0 18px; }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 18px auto;
}
.article-content ul,
.article-content ol {
    margin: 0 0 18px;
    padding-left: 1.6em;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content a:hover { color: var(--primary-deep); }
.article-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--primary);
    background: var(--bg-soft);
    color: var(--text-sub);
    border-radius: 0 6px 6px 0;
}
.article-content code {
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
    color: #c7254e;
}
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0 0 18px;
}
.article-content pre code { background: none; color: inherit; padding: 0; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    font-size: 15px;
}
.article-content table th,
.article-content table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}
.article-content table th { background: var(--bg-soft); font-weight: 700; }

/* 上一篇 / 下一篇 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.article-nav .nav-item {
    flex: 1;
    min-width: 0;
}
.article-nav .nav-item.next { text-align: right; }
/* 整块可点击（label + 标题都是链接的一部分） */
.article-nav .nav-link {
    display: block;
    text-decoration: none;
    transition: color .2s;
}
.article-nav .nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 6px;
}
.article-nav .nav-title {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.5;
}
.article-nav a.nav-link:hover,
.article-nav a.nav-link:hover .nav-label { color: var(--primary); }
.article-nav a.nav-link:hover .nav-title { color: var(--primary); }
.article-nav .nav-empty .nav-title { color: var(--text-sub); font-weight: 400; }

/* ============================================================
   关于我们页
   ============================================================ */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
}
.about-intro-media {
    height: 420px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(8,28,68,.14);
}
.about-intro-text > p {
    color: var(--text-sub);
    line-height: 2;
    margin-bottom: 18px;
    font-size: 15px;
}

/* 发展历程 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}
.tl-item {
    position: relative;
    width: 50%;
    padding: 0 40px 50px;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item::before {
    content: "";
    position: absolute;
    top: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}
.tl-item:nth-child(odd)::before { right: -7px; }
.tl-item:nth-child(even)::before { left: -7px; }
.tl-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.tl-item h4 {
    font-size: 17px;
    color: var(--text-main);
    margin-bottom: 8px;
}
.tl-item p { font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* 团队/资质 */
.team-grid, .honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.honor-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all .3s;
}
.honor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(8,28,68,.1);
    border-color: transparent;
}
.honor-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20,102,192,.1), rgba(0,198,255,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all .3s;
}
.honor-icon svg { width: 28px; height: 28px; }
.honor-card:hover .honor-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: translateY(-3px);
}
.honor-card h4 { font-size: 16px; color: var(--text-main); margin-bottom: 6px; }
.honor-card p { font-size: 13px; color: var(--text-sub); }

/* 联系区块 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all .3s;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(8,28,68,.1);
    border-color: transparent;
}
.contact-card .cc-icon {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20,102,192,.12), rgba(0,198,255,.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.contact-card .cc-icon svg { width: 26px; height: 26px; }
.contact-card h4 { font-size: 17px; color: var(--text-main); margin-bottom: 10px; }
.contact-card p { font-size: 15px; color: var(--primary); font-weight: 600; }
.contact-card .cc-sub { font-size: 13px; color: var(--text-sub); font-weight: 400; margin-top: 4px; }

/* 高德地图容器 */
.map-box,
#amapContainer {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(8,28,68,.1);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .page-head { height: 280px; }
    .page-head h1 { font-size: 34px; }
    .product-detail, .sol-block, .about-intro-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 64px; }
    .product-detail:nth-child(even) .pd-media,
    .sol-block.reverse .sol-media { order: 0; }
    .product-detail { padding-bottom: 64px; }
    .sol-block { padding-bottom: 64px; }
    .cases-list { grid-template-columns: repeat(2, 1fr); }
    .news-wrap { grid-template-columns: 1fr; gap: 40px; }
    .article-main { padding: 32px 28px; }
    .team-grid, .honor-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 14px; }
    .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 40px; padding-right: 0; }
    .tl-item::before { left: 7px !important; right: auto !important; }
}

@media (max-width: 768px) {
    .page-head { height: 220px; margin-top: 64px; }
    .page-head h1 { font-size: 26px; }
    .page-head p { font-size: 14px; }
    .breadcrumb { font-size: 13px; }
    .page-body { padding: 44px 0; }

    /* 区块标题 */
    .block-head { margin-bottom: 30px; }
    .block-head h2 { font-size: 24px; }

    /* 产品 / 方案 */
    .pd-media, .sol-media { height: 260px; }
    .product-detail, .sol-block { margin-bottom: 48px; padding-bottom: 48px; }
    .pd-info h3, .sol-info h3 { font-size: 22px; }
    .pd-features, .sol-points { grid-template-columns: 1fr; }
    .sol-num { font-size: 48px; }

    /* 案例筛选 */
    .case-filter { gap: 8px; margin-bottom: 36px; }
    .case-filter button { padding: 7px 18px; font-size: 13px; }
    .cases-list { grid-template-columns: 1fr; }

    /* 新闻 */
    .news-item { gap: 16px; padding: 22px 0; }
    .news-item-date { width: 64px; padding: 12px 0; }
    .news-item-date strong { font-size: 28px; }
    .news-item-title { font-size: 16px; }

    /* 新闻详情 */
    .article-main { padding: 28px 20px; }
    .article-title { font-size: 22px; }
    .article-content { font-size: 15px; }
    .article-nav { flex-direction: column; gap: 14px; }
    .article-nav .nav-item.next { text-align: left; }

    /* 关于我们 */
    .about-intro-media { height: 300px; }
    .about-intro-text > p { font-size: 14px; }
    .tl-year { font-size: 20px; }
    .tl-item h4 { font-size: 16px; }
    .team-grid, .honor-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .honor-card { padding: 22px 14px; }
    .honor-card h4 { font-size: 14px; }
    .honor-card p { font-size: 12px; }
    .contact-card { padding: 28px 20px; }
    .map-box { height: 260px; }
}

@media (max-width: 480px) {
    .page-head h1 { font-size: 22px; }
    .team-grid, .honor-grid { grid-template-columns: 1fr; }
    .news-item-date { width: 56px; }
    .news-item-date strong { font-size: 24px; }
    .pagination a { min-width: 34px; height: 34px; font-size: 13px; }
}

