/* ========== Reset ========== */
html, body, div, address, blockquote, iframe,
ul, ol, dl, dt, dd, li, h1, h2, h3, h4, h5, h6,
p, pre, table, caption,
th, td, form, legend, fieldset,
input, button, select, textarea, a, center, strong, b, i {
    margin: 0; padding: 0; outline: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
html { overflow-y: scroll; overflow-x: hidden; }
body, button, input, select, textarea {
    font: 14px/1.6 "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
    color: #333; background: #f5f5f5;
}
ul, ol { list-style-type: none; }
img, fieldset { border: 0 none; }
img { vertical-align: top; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: #a30001; }
.clearfix::before, .clearfix::after { content: " "; display: table; }
.clearfix::after { clear: both; }
button, input, textarea { vertical-align: middle; outline: none; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; }
textarea { overflow: auto; vertical-align: top; }
table { border-collapse: collapse; border-spacing: 0; }
em, i { font-style: normal; }
h1, h2, h3, h4, h5, h6 { font-weight: normal; }

/* ========== Header ========== */
.site-header { width: 100%; background: #fff; position: relative; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.header-top { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 90px; display: flex; align-items: center; justify-content: space-between; }
.header-logo img { height: 65px; width: auto; display: block; }
.header-hotline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #888; }
.header-hotline .tel-label { font-size: 13px; color: #999; }
.header-hotline .tel-number { font-size: 20px; font-weight: bold; color: #a30001; letter-spacing: 1px; font-family: Arial, sans-serif; }
.header-hotline .tel-icon { width: 36px; height: 36px; background: #a30001; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.header-nav-wrap { width: 100%; background: linear-gradient(135deg, #8b0000 0%, #a30001 50%, #c41e1e 100%); }
.header-nav { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; height: 48px; }
.header-nav li { flex: 1; text-align: center; position: relative; }
.header-nav li a { display: flex; align-items: center; justify-content: center; height: 48px; font-size: 15px; color: rgba(255,255,255,0.9); transition: all 0.25s ease; position: relative; white-space: nowrap; }
.header-nav li a::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: #fff; border-radius: 2px 2px 0 0; transition: width 0.25s ease; }
.header-nav li a:hover, .header-nav li a.current { background: rgba(255,255,255,0.15); color: #fff; }
.header-nav li a:hover::after, .header-nav li a.current::after { width: 60%; }
.header-nav li + li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 20px; background: rgba(255,255,255,0.2); }

/* ========== Banner ========== */
.banner-wrap { width: 100%; overflow: hidden; background: #eee; }
.banner-wrap img { width: 100%; height: auto; object-fit: cover; display: block; }

/* ========== Page Wrapper ========== */
.page-wrapper { width: 1200px; margin: 0 auto; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.06); position: relative; z-index: 1; }

/* ========== Breadcrumb ========== */
.position { line-height: 42px; padding: 0 24px; text-align: left; font-size: 13px; color: #888; border-bottom: 1px solid #e8e8e8; background: #fafafa; }
.position a { color: #a30001; margin: 0 2px; }
.position a:hover { text-decoration: underline; }
.position .sep { color: #ccc; margin: 0 6px; }

/* ========== Main Body ========== */
.main-body { display: flex; flex-direction: row; padding: 24px; gap: 24px; }
.content-area { flex: 1; min-width: 0; }

/* ===== ★ 内容标题头（新增） ===== */
.case_title {
    padding: 24px 24px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}
.case_title h1 {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}
.case_title h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: #a30001;
    border-radius: 2px;
}
.case_title .meta-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #999;
    padding-left: 16px;
}
.case_title .meta-info .meta-sep {
    color: #ddd;
    margin: 0 2px;
}

/* ===== Content Body ===== */
.content {
    padding: 30px 24px;
    font: 15px/30px "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: #fff;
}
.content p { margin-bottom: 20px; font-size: 15px; line-height: 28px; }
.content td { padding: 10px 15px; word-wrap: break-word; word-break: break-all; }
.content td p { margin-bottom: 0; line-height: 22px; }
.content img { max-width: 100% !important; height: auto !important; border-radius: 4px; }

/* ===== ★ Article Navigation (New) ===== */
.case_title2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    transition: all 0.25s ease;
    position: relative;
    min-width: 0; /* prevent overflow */
}
.article-nav {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #eee;
    background: #fff;
}
.article-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    transition: all 0.25s ease;
    position: relative;
    min-width: 0; /* prevent overflow */
}
.article-nav .nav-item:first-child { border-right: 1px solid #eee; }
.article-nav .nav-item:hover { background: #fdf5f5; }
.article-nav .nav-label {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-nav .nav-label .arrow {
    font-size: 14px;
    color: #a30001;
    transition: transform 0.25s ease;
}
.article-nav .nav-item:first-child:hover .arrow { transform: translateX(-3px); }
.article-nav .nav-item:last-child:hover .arrow { transform: translateX(3px); }
.article-nav .nav-title {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    transition: color 0.2s ease;
    /* single line ellipsis */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-nav .nav-item:hover .nav-title { color: #a30001; }
/* empty state */
.article-nav .nav-item.empty { cursor: default; }
.article-nav .nav-item.empty:hover { background: transparent; }
.article-nav .nav-item.empty .nav-title { color: #ccc; }
/* ========== Sidebar ========== */
.sidebar-right { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.sidebar-title { background: linear-gradient(135deg, #a30001 0%, #c41e1e 100%); color: #fff; font-size: 18px; font-weight: bold; text-align: center; padding: 14px 0; border-radius: 6px 6px 0 0; letter-spacing: 2px; }
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #e8e8e8; border-top: none; border-radius: 0 0 6px 6px; overflow: hidden; background: #fff; }
.nav-grid li { border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.nav-grid li:nth-child(2n) { border-right: none; }
.nav-grid li:nth-last-child(-n+2) { border-bottom: none; }
.nav-grid li:last-child:nth-child(odd) { grid-column: span 2; border-right: none; }
.nav-grid li a { display: flex; align-items: center; justify-content: center; padding: 13px 8px; font-size: 13px; color: #555; background: #fff; transition: all 0.25s ease; text-align: center; line-height: 1.4; }
.nav-grid li a::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #a30001; border-radius: 50%; margin-right: 6px; flex-shrink: 0; opacity: 0.5; transition: opacity 0.25s ease; }
.nav-grid li a:hover, .nav-grid li a.active { background: #a30001; color: #fff; }
.nav-grid li a:hover::before, .nav-grid li a.active::before { background: #fff; opacity: 1; }
.topic-box { border: 1px solid #e8e8e8; border-radius: 6px; overflow: hidden; background: #fff; }
.topic-box .sidebar-title { font-size: 16px; padding: 12px 0; letter-spacing: 3px; }
.topic-list { padding: 6px 0; }
.topic-list li { border-bottom: 1px dashed #f0f0f0; }
.topic-list li:last-child { border-bottom: none; }
.topic-list li a { display: block; padding: 10px 16px; transition: all 0.2s ease; }
.topic-list li a:hover { background: #fdf5f5; padding-left: 20px; }
.topic-list li a h3 { font-size: 13px; font-weight: normal; color: #444; line-height: 1.5; margin-bottom: 4px; transition: color 0.2s ease; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-list li a:hover h3 { color: #a30001; }
.topic-list li a p { font-size: 12px; color: #bbb; line-height: 1; }

/* ========== Info Section ========== */
.info-section { display: flex; gap: 24px; padding: 0 24px 24px; }
.info-block { flex: 1; min-width: 0; border: 1px solid #eee; border-radius: 6px; overflow: hidden; background: #fff; }
.info-block-title { font-size: 16px; font-weight: bold; color: #a30001; padding: 12px 20px; border-bottom: 2px solid #a30001; display: flex; align-items: center; justify-content: space-between; background: #fafafa; }
.info-block-title .more-link { font-size: 12px; font-weight: normal; color: #999; }
.info-block-title .more-link:hover { color: #a30001; }
.info-list { padding: 8px 0; }
.info-list li { border-bottom: 1px dashed #f0f0f0; }
.info-list li:last-child { border-bottom: none; }
.info-list li a { display: flex; align-items: center; padding: 10px 20px; font-size: 13px; color: #555; transition: all 0.2s ease; }
.info-list li a::before { content: ""; width: 5px; height: 5px; background: #d0d0d0; border-radius: 50%; margin-right: 10px; flex-shrink: 0; transition: background 0.2s ease; }
.info-list li a:hover { color: #a30001; background: #fdf5f5; padding-left: 24px; }
.info-list li a:hover::before { background: #a30001; }
.info-list li a .date-tag { margin-left: auto; font-size: 12px; color: #bbb; flex-shrink: 0; padding-left: 10px; }

/* ========== Carousel ========== */
.quicklink-section { padding: 20px 24px; border-top: 1px solid #eee; background: #fafafa; }
.quicklink-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.quicklink-header h3 { font-size: 18px; font-weight: bold; color: #333; position: relative; padding-left: 14px; }
.quicklink-header h3::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: #a30001; border-radius: 2px; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls button { width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 50%; background: #fff; cursor: pointer; font-size: 16px; color: #666; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.carousel-controls button:hover { border-color: #a30001; color: #a30001; background: #fdf5f5; }
.carousel-viewport { overflow: hidden; position: relative; }
.carousel-track { display: flex; gap: 16px; transition: transform 0.4s ease; }
.carousel-track li { flex-shrink: 0; width: 222px; border: 1px solid #eee; border-radius: 6px; overflow: hidden; background: #fff; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.carousel-track li:hover { box-shadow: 0 4px 16px rgba(163,0,1,0.12); transform: translateY(-2px); }
.carousel-track li img { width: 222px; height: 120px; object-fit: cover; display: block; }
.carousel-track li .card-title { padding: 8px 10px; font-size: 12px; color: #666; line-height: 1.5; height: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== Footer ========== */
.site-footer { width: 100%; background: #1a1a1a; color: #bbb; padding: 40px 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid #333; gap: 30px; flex-wrap: wrap; }
.footer-brand { flex-shrink: 0; max-width: 320px; }
.footer-brand h4 { font-size: 20px; color: #fff; margin-bottom: 10px; font-weight: bold; letter-spacing: 1px; }
.footer-brand p { font-size: 13px; line-height: 24px; color: #888; }
.footer-links { display: flex; gap: 50px; }
.footer-links-col h5 { font-size: 15px; color: #ddd; margin-bottom: 12px; font-weight: bold; position: relative; padding-bottom: 8px; }
.footer-links-col h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; background: #a30001; border-radius: 1px; }
.footer-links-col a { display: block; font-size: 13px; color: #888; line-height: 28px; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links-col a:hover { color: #e8a0a0; padding-left: 4px; }
.footer-hotwords { padding: 20px 0; text-align: center; font-size: 12px; color: #777; line-height: 28px; }
.footer-hotwords a { color: #999; margin: 3px 4px; padding: 3px 12px; border: 1px solid #444; border-radius: 3px; transition: all 0.2s ease; display: inline-block; }
.footer-hotwords a:hover { color: #fff; border-color: #a30001; background: #a30001; }
.footer-bottom { text-align: center; padding: 16px 0 20px; font-size: 12px; color: #666; line-height: 22px; border-top: 1px solid #2a2a2a; }
.footer-bottom a { color: #888; margin: 0 4px; transition: color 0.2s ease; }
.footer-bottom a:hover { color: #e8a0a0; }
#ph_footer { display: none; }

/* ========== Responsive ========== */
@media (max-width: 1240px) {
    .page-wrapper { width: 100%; box-shadow: none; }
    .header-top, .header-nav { padding: 0 20px; }
    .footer-inner { padding: 0 20px; }
}
@media (max-width: 900px) {
    .header-top { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
    .header-logo img { height: 40px; }
    .header-hotline .tel-number { font-size: 18px; }
    .header-nav-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .header-nav { min-width: 800px; height: 42px; padding: 0 16px; }
    .header-nav li a { font-size: 14px; height: 42px; }
    .banner-wrap img { height: 180px; }
    .main-body { flex-direction: column; padding: 16px; gap: 16px; }
    .sidebar-right { width: 100%; order: 1; }
    .topic-box { display: none !important; }
    .nav-grid { grid-template-columns: 1fr 1fr 1fr; }
    .nav-grid li:nth-child(2n) { border-right: 1px solid #f0f0f0; }
    .nav-grid li:nth-child(3n) { border-right: none; }
    .nav-grid li:last-child:nth-child(odd) { grid-column: span 1; }
    .nav-grid li:last-child:nth-child(3n+1) { grid-column: span 3; }
    .nav-grid li:last-child:nth-child(3n+2) { grid-column: span 2; }
    .content-area { order: 0; }
    /* ★ 标题头移动端适配 */
    .case_title { padding: 16px 16px 14px; }
    .case_title h1 { font-size: 20px; padding-left: 12px; }
    .case_title h1::before { width: 3px; top: 3px; bottom: 3px; }
    .case_title .meta-info { padding-left: 12px; font-size: 12px; }
    .content { padding: 20px 16px; font-size: 14px; }
    /* ★ Article Nav Mobile */
    .article-nav { flex-direction: column; }
    .article-nav .nav-item:first-child { border-right: none; border-bottom: 1px solid #eee; }
    .article-nav .nav-item { padding: 14px 16px; }
    .article-nav .nav-title { font-size: 13px; }
    .info-section { flex-direction: column; padding: 0 16px 16px; gap: 16px; }
    .quicklink-section { padding: 16px; }
    .carousel-track li { width: 180px; }
    .carousel-track li img { width: 180px; height: 100px; }
    .footer-top { flex-direction: column; gap: 24px; }
    .footer-brand { max-width: 100%; }
    .footer-links { gap: 24px; flex-wrap: wrap; }
    .site-footer { padding: 24px 0 0; }
}
@media (max-width: 480px) {
    .header-hotline .tel-label { display: none; }
    .banner-wrap img { height: 140px; }
    .nav-grid { grid-template-columns: 1fr 1fr; }
    .nav-grid li:nth-child(3n) { border-right: 1px solid #f0f0f0; }
    .nav-grid li:nth-child(2n) { border-right: none; }
    .nav-grid li:last-child:nth-child(3n+1),
    .nav-grid li:last-child:nth-child(3n+2) { grid-column: span 1; }
    .nav-grid li:last-child:nth-child(odd) { grid-column: span 2; }
    .position { white-space: nowrap; overflow-x: auto; font-size: 12px; }
    .footer-links { flex-direction: column; gap: 20px; }
    .footer-hotwords a { padding: 2px 8px; font-size: 11px; }
    .topic-box { display: none !important; }
    /* ★ 小屏标题进一步缩小 */
    .case_title h1 { font-size: 18px; }
    .case_title .meta-info { font-size: 11px; gap: 4px; }
    .footer-top { display: none !important; }
    /* ★ Small screen nav */
    .article-nav .nav-item { padding: 12px 14px; }
    .article-nav .nav-title { font-size: 12px; }
}