/* xkjx17 - 烈焰红 | 机械制造企业官网 */
:root {
  --xkjx-primary: #c62828;
  --xkjx-primary-dark: #8e0000;
  --xkjx-accent: #fdd835;
  --xkjx-accent2: #00695c;
  --xkjx-bg-dark: #1a0303;
  --xkjx-bg-light: #faf0f0;
}

* { box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #333; margin: 0; background: #fff; line-height: 1.6; }

/* ====== Topbar ====== */
.xkjx-topbar { background: #8e0000; color: rgba(255,255,255,.8); font-size: .82rem; padding: 8px 0; }
.xkjx-topbar a { color: rgba(255,255,255,.8); text-decoration: none; margin-left: 14px; }
.xkjx-topbar a:hover { color: #fdd835; }

/* ====== Header / Nav ====== */
.xkjx-header { background: #c62828; box-shadow: 0 2px 8px rgba(0,0,0,.15); position: sticky; top: 0; z-index: 999; }
.xkjx-header .navbar { padding: 0; }
.xkjx-header .logo { display: flex; align-items: center; text-decoration: none; }
.xkjx-header .logo-img { max-height: 52px; margin-right: 10px; }
.xkjx-header .logo-text { font-size: 1.2rem; font-weight: 700; color: #fff; }
.xkjx-header .navbar-nav .nav-link { color: rgba(255,255,255,.9) !important; font-size: .95rem; font-weight: 500; padding: 16px 16px !important; transition: .3s; border-bottom: 3px solid transparent; }
.xkjx-header .navbar-nav .nav-link:hover,
.xkjx-header .navbar-nav .nav-link.active { color: #fff !important; background: rgba(0,0,0,.15); border-bottom-color: #fdd835; }
.xkjx-header .phone-area { color: #fff; font-size: .95rem; }
.xkjx-header .phone-area i { color: #fdd835; margin-right: 6px; }

/* ====== Hero Banner ====== */
.xkjx-hero { position: relative; height: 500px; overflow: hidden; background: #1a0303; }
.xkjx-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #8e0000 0%, #c62828 50%, #8e0000 100%); }
.xkjx-hero-bg::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0,0 L60,60 M60,0 L0,60" stroke="rgba(255,255,255,.04)" stroke-width="1"/></svg>') repeat; }
.xkjx-hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.xkjx-hero h1 { color: #fff; font-size: 2.6rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.xkjx-hero h1 strong { color: #fdd835; }
.xkjx-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 600px; margin-bottom: 28px; }
.xkjx-hero .btn-xkjx { display: inline-flex; align-items: center; padding: 12px 28px; border-radius: 4px; font-weight: 600; text-decoration: none; margin-right: 14px; transition: .3s; }
.xkjx-hero .btn-xkjx-primary { background: #fdd835; color: #fff; }
.xkjx-hero .btn-xkjx-primary:hover { background: #fff; color: #c62828; transform: translateY(-2px); }
.xkjx-hero .btn-xkjx-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.xkjx-hero .btn-xkjx-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ====== Section Title ====== */
.xkjx-section { padding: 60px 0; }
.xkjx-section.alt { background: #faf0f0; }
.xkjx-section.dark { background: #8e0000; color: #fff; }
.xkjx-stitle { text-align: center; margin-bottom: 45px; }
.xkjx-stitle small { display: block; color: #fdd835; font-size: .85rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.xkjx-stitle h2 { color: #c62828; font-size: 1.9rem; font-weight: 700; margin: 0; }
.xkjx-section.dark .xkjx-stitle h2 { color: #fff; }
.xkjx-stitle p { color: #888; margin-top: 10px; }
.xkjx-stitle::after { content: ''; display: block; width: 50px; height: 3px; background: #fdd835; margin: 14px auto 0; border-radius: 2px; }

/* ====== About ====== */
.xkjx-about-img { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.xkjx-about-img img { width: 100%; height: 360px; object-fit: cover; display: block; }
.xkjx-about-list { list-style: none; padding: 0; margin-top: 20px; }
.xkjx-about-list li { padding: 6px 0; color: #555; position: relative; padding-left: 24px; }
.xkjx-about-list li::before { content: '✓'; position: absolute; left: 0; color: #fdd835; font-weight: 700; }
.xkjx-about-num { background: linear-gradient(135deg, #c62828, #8e0000); color: #fff; padding: 18px; border-radius: 6px; text-align: center; }
.xkjx-about-num strong { display: block; font-size: 1.8rem; color: #fdd835; font-weight: 800; }
.xkjx-about-num span { font-size: .82rem; }

/* ====== Product Grid ====== */
.xkjx-product-card { background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; transition: .3s; height: 100%; }
.xkjx-product-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-4px); border-color: #fdd835; }
.xkjx-product-thumb { position: relative; height: 180px; overflow: hidden; background: #faf0f0; }
.xkjx-product-thumb i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3.5rem; color: #c62828; opacity: .3; }
.xkjx-product-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4)); }
.xkjx-product-body { padding: 18px; }
.xkjx-product-cat { display: inline-block; background: #c62828; color: #fff; font-size: .72rem; padding: 3px 10px; border-radius: 3px; margin-bottom: 8px; }
.xkjx-product-body h3 { font-size: 1.05rem; font-weight: 700; color: #222; margin-bottom: 6px; }
.xkjx-product-body p { font-size: .85rem; color: #888; margin-bottom: 10px; }
.xkjx-product-body .xkjx-link { color: #fdd835; font-size: .85rem; font-weight: 600; text-decoration: none; }
.xkjx-product-body .xkjx-link:hover { color: #c62828; }

/* ====== Service Feature ====== */
.xkjx-feature { text-align: center; padding: 28px 18px; background: #fff; border: 1px solid #eee; border-radius: 6px; transition: .3s; height: 100%; }
.xkjx-feature:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-4px); border-color: #fdd835; }
.xkjx-feature i { font-size: 2.4rem; color: #c62828; margin-bottom: 14px; display: block; }
.xkjx-feature h4 { color: #222; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.xkjx-feature p { color: #888; font-size: .85rem; }

/* ====== News ====== */
.xkjx-news-item { padding: 16px 0; border-bottom: 1px dashed #e0e0e0; }
.xkjx-news-item:last-child { border-bottom: none; }
.xkjx-news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.xkjx-news-date { color: #fdd835; font-size: .82rem; font-weight: 600; }
.xkjx-news-cat { background: #c62828; color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 3px; }
.xkjx-news-item h4 { font-size: .95rem; font-weight: 600; margin: 0; }
.xkjx-news-item h4 a { color: #333; text-decoration: none; transition: .3s; }
.xkjx-news-item h4 a:hover { color: #c62828; }
.xkjx-news-item p { font-size: .85rem; color: #888; margin: 4px 0 0; }

/* ====== Sidebar ====== */
.xkjx-sidebar { background: #faf0f0; border-radius: 6px; padding: 20px; }
.xkjx-sidebar h5 { color: #c62828; font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #fdd835; }
.xkjx-sidebar-list { list-style: none; padding: 0; }
.xkjx-sidebar-list li { padding: 8px 0; border-bottom: 1px solid #e8e8e8; }
.xkjx-sidebar-list li:last-child { border-bottom: none; }
.xkjx-sidebar-list a { color: #555; font-size: .9rem; text-decoration: none; transition: .3s; }
.xkjx-sidebar-list a:hover { color: #c62828; padding-left: 4px; }
.xkjx-sidebar-list a i { color: #fdd835; margin-right: 6px; font-size: .75rem; }

/* ====== Contact ====== */
.xkjx-contact-info { background: linear-gradient(135deg, #c62828, #8e0000); color: #fff; padding: 36px 28px; border-radius: 6px; height: 100%; }
.xkjx-contact-info h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #fdd835; }
.xkjx-contact-info p { color: rgba(255,255,255,.85); margin-bottom: 12px; font-size: .9rem; }
.xkjx-contact-info i { color: #fdd835; margin-right: 10px; width: 18px; }
.xkjx-form .form-control { border-radius: 4px; padding: 10px 14px; border: 1px solid #ddd; margin-bottom: 12px; font-size: .9rem; }
.xkjx-form .form-control:focus { border-color: #c62828; box-shadow: 0 0 0 .15rem #c6282833; outline: none; }
.xkjx-form .btn-submit { background: #c62828; color: #fff; border: none; padding: 10px 28px; font-weight: 600; border-radius: 4px; transition: .3s; }
.xkjx-form .btn-submit:hover { background: #8e0000; }

/* ====== Footer ====== */
.xkjx-footer { background: #1f1f1f; color: rgba(255,255,255,.7); padding: 40px 0 0; }
.xkjx-footer h5 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; }
.xkjx-footer h5::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 40px; height: 2px; background: #fdd835; }
.xkjx-footer ul { list-style: none; padding: 0; }
.xkjx-footer ul li { padding: 4px 0; font-size: .85rem; }
.xkjx-footer a { color: rgba(255,255,255,.6); text-decoration: none; transition: .3s; }
.xkjx-footer a:hover { color: #fdd835; }
.xkjx-footer .copy { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; margin-top: 30px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.4); }
.xkjx-footer .copy a { color: rgba(255,255,255,.4); margin: 0 6px; }

/* ====== Breadcrumb ====== */
.xkjx-breadcrumb { background: #faf0f0; padding: 12px 0; font-size: .85rem; }
.xkjx-breadcrumb a { color: #666; text-decoration: none; }
.xkjx-breadcrumb a:hover { color: #c62828; }
.xkjx-breadcrumb span { color: #fdd835; }

/* ====== Pagination ====== */
.xkjx-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.xkjx-pagination a, .xkjx-pagination span { display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid #ddd; color: #555; text-decoration: none; border-radius: 3px; font-size: .9rem; }
.xkjx-pagination a:hover, .xkjx-pagination .active { background: #c62828; color: #fff; border-color: #c62828; }

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .xkjx-hero { height: 380px; }
  .xkjx-hero h1 { font-size: 1.6rem; }
  .xkjx-section { padding: 40px 0; }
  .xkjx-stitle h2 { font-size: 1.4rem; }
}
