/*
Theme Name: Spinwheel Industrial
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Lightweight industrial-style responsive WordPress theme for spinning reel showcase websites.
Version: 1.0.0
Text Domain: spinwheel-industrial
*/

:root {
  --bg: #f3f3f1;
  --bg-soft: #e9e9e6;
  --text: #111111;
  --text-muted: #5f6368;
  --line: #d4d7db;
  --primary: #111111;
  --accent: #0a76b3;
  --white: #ffffff;

  --container: 1200px;
  --radius: 4px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-branding a {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 22px;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.site-nav .current-menu-item > a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  margin-top: var(--space-7);
  border-top: 1px solid var(--line);
  background: #161616;
  color: #d8d8d8;
}
.site-footer .container {
  padding: 2px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  
}
.site-footer a {
  color: #f0f0f0;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 16px;
}

/* Main */
.site-main {
  min-height: 60vh;
}

/* Hero */
.hero,
.page-hero {
  background: linear-gradient(135deg, #161616 0%, #2a2a2a 55%, #3a3a3a 100%);
  color: #fff;
  border-bottom: 1px solid #404040;
}
.hero .container,
.page-hero .container {
  padding: var(--space-7) 0;
}
.hero h1,
.page-hero h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.hero p {
  max-width: 720px;
  color: #d1d1d1;
  margin: 0 0 var(--space-4);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.btn:hover {
  background: #5f6b59;
  border-color: #5f6b59;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Breadcrumbs */
.breadcrumbs {
  margin-top: var(--space-2);
}
.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
}
.breadcrumbs li {
  color: #d4d4d4;
}
.page-hero .breadcrumbs li a {
  color: #ffffff;
  opacity: 0.9;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.7;
}

/* Sections */
section {
  padding: var(--space-6) 0;
}
section h2 {
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Cards */
.product-card,
.post-card,
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover,
.post-card:hover,
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.product-card__thumb,
.post-card__thumb {
  aspect-ratio: 4 / 3;
  background: #dedede;
  overflow: hidden;
}
.product-card__thumb img,
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__title,
.post-card__title {
  margin: var(--space-3) var(--space-3) 6px;
  font-size: 1rem;
  line-height: 1.35;
}
.product-card__cat,
.post-card__meta,
.post-card__excerpt {
  margin: 0 var(--space-3) var(--space-3);
}
.product-card__cat,
.post-card__meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.post-card__excerpt {
  font-size: 0.93rem;
  color: #3f454a;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-5);
}
.single-product .two-col,
.contact-page .two-col {
  grid-template-columns: 1fr 1fr;
}

/* Sidebar */
.sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  height: fit-content;
}
.sidebar h2 {
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.sidebar li:last-child {
  border-bottom: 0;
}

/* Single post / product */
.single-post .container,
.single-product .container {
  max-width: 1000px;
}
.entry-header h1 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.entry-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}
.entry-thumb {
  margin-bottom: var(--space-4);
}
.entry-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.entry-content p:first-child {
  margin-top: 0;
}
.post-nav {
  margin-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.product-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.product-gallery img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Contact */
.contact-info,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}

/* Forms (CF7 basic) */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  font-size: 0.95rem;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input[type="submit"],
button,
.wpcf7-submit {
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 10px 18px;
  text-transform: uppercase;
}
input[type="submit"]:hover,
button:hover,
.wpcf7-submit:hover {
  background: #5f6b59;
}

/* Pagination */
.pagination {
  margin-top: var(--space-5);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9rem;
}
.page-numbers.current {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Utilities */
.home-products,
.home-news,
.related-products,
.blog-archive,
.archive-products,
.about-content,
.contact-page {
  padding-top: var(--space-6);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .two-col {
    grid-template-columns: 1fr;
  }
  .single-product .two-col,
  .contact-page .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .site-nav ul {
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero .container,
  .page-hero .container {
    padding: var(--space-6) 0;
  }

  section {
    padding: var(--space-5) 0;
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    width: calc(100% - 24px);
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-nav {
    flex-direction: column;
  }
}
/* Default Page */
.default-page .entry-content {
  max-width: 900px;
  margin: 0 auto;
}
.default-page .entry-thumb {
  margin-bottom: var(--space-4);
}
.page-links {
  margin-top: var(--space-4);
}
/* Text-only post card */
.post-card--text {
  padding: 18px;
}
.post-card--text .post-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.post-card--text .post-card__meta {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.post-card--text .post-card__excerpt {
  margin: 0 0 12px;
}
.post-card__more {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}
/* Pagination list dot fix */
.pagination ul,
.pagination ol,
.nav-links ul,
.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-hero--dark {
  background: #111;
  padding: 64px 0;
}
.page-hero--dark h1 { color: #fff; margin: 0 0 10px; }

.page-hero--dark .breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-hero--dark .breadcrumbs li,
.page-hero--dark .breadcrumbs a { color: #fff; }

.services-section { padding: 56px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}
.service-card h3 { margin: 0 0 10px; }

.services-cta {
  padding: 56px 0;
  background: #f7f7f7;
  text-align: center;
}
.services-cta p { margin-bottom: 18px; }

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}
.about-hero, .about-cta{
  position: relative;
  background-size: cover;
  background-position: center;
}
.about-hero{ min-height: 400px; display:flex; align-items:center; }
.about-hero__overlay, .about-cta__overlay{
  position:absolute; inset:0; background:rgba(0,0,0,.55);
}
.about-hero__content, .about-cta__content{
  position:relative; z-index:2; color:#fff; text-align:center;
}
.about-hero h1{ font-size: clamp(30px, 5vw, 56px); line-height:1.1; margin-bottom:14px; }
.about-hero p{ max-width:900px; margin:0 auto 24px; font-size:1.08rem; }

.about-section{ padding:70px 0; }
.about-section--light{ background:#f7f7f7; }
.section-title{ text-align:center; margin-bottom:30px; }

.about-two-col{
  display:grid; grid-template-columns: 1fr 1fr; gap:36px; align-items:center;
}
.about-two-col--reverse .about-media{ order:2; }
.about-two-col--reverse .about-content{ order:1; }

.about-media img{
  width:100%; height:auto; border-radius:10px; display:block;
}
.about-content h2{ margin-bottom:12px; }
.about-content p{ color:#333; line-height:1.75; }
.about-kpis{ margin:16px 0 0; padding-left:18px; line-height:1.8; }

.about-3col{
  display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:20px;
}
.about-card{
  background:#fff; border:1px solid #e8e8e8; border-radius:10px; padding:22px;
}
.about-card img{ width:42px; height:42px; margin-bottom:10px; }
.about-card h3{ margin:0 0 8px; }
.about-card p{ margin:0; color:#444; line-height:1.7; }

blockquote{
  margin:12px 0 14px; padding:14px 16px; border-left:4px solid #d33;
  background:#fafafa; font-style:italic; line-height:1.8;
}

.about-cta{ padding:72px 0; }
.about-cta h2{ color:#fff; margin-bottom:10px; }
.about-cta p{ color:#f1f1f1; margin-bottom:20px; }
.about-cta__buttons{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }

.btn--accent{ background:#d63a2f; color:#fff; }
.btn--outline-light{ border:1px solid #fff; color:#fff; background:transparent; }

@media (max-width: 992px){
  .about-two-col{ grid-template-columns:1fr; }
  .about-two-col--reverse .about-media,
  .about-two-col--reverse .about-content{ order:initial; }
  .about-3col{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px){
  .about-3col{ grid-template-columns:1fr; }
}


/* Pagination */
.pagination-wrap{
  margin-top:28px;
  text-align:center;
}
.pagination-wrap .page-numbers{
  display:inline-block;
  min-width:36px;
  padding:8px 10px;
  margin:0 4px;
  border:1px solid #ddd;
  border-radius:6px;
  text-decoration:none;
  color:#111;
}
.pagination-wrap .page-numbers.current{
  background:#111;
  color:#fff;
  border-color:#111;
}

@media (max-width: 992px){
  .products-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px){
  .products-grid{ grid-template-columns:1fr; }
}


/* Product archive */
.products-archive.section { padding: 56px 0; }

.products-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.product-card{
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius:10px;
  overflow:hidden;
  transition:.25s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.product-card__thumb{
  display:block;
  background:#f7f7f7;
  aspect-ratio:1/1;
}
.product-card__thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.product-card__body{ padding:14px; }

.product-card__title{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin:0 0 8px !important;
  font-size:16px !important;
  line-height:1.45 !important;
  color:#111 !important;
  text-align:center;
}
.product-card__title a{
  color:inherit !important;
  text-decoration:none !important;
}
.product-card__title a:hover{ color:#d63a2f !important; }

.product-card__meta{
  margin:0 0 12px;
  text-align:center;
  color:#666;
  font-size:14px;
}

.product-card__actions{
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:wrap;
}
.btn--sm{
  padding:8px 12px;
  font-size:13px;
  border-radius:6px;
}
.btn--outline{
  border:1px solid #111;
  background:transparent;
  color:#111;
}

:root{
  --c-primary:#F05A28;
  --c-dark:#111;
  --c-text:#222;
  --c-light:#f7f7f7;
}

/* Generic */
.section{padding:64px 0;}
.section--light{background:var(--c-light);}
.section-title{text-align:center;margin:0 0 28px;}

/* Buttons */
.btn{display:inline-block;padding:10px 16px;border-radius:6px;text-decoration:none;font-weight:600}
.btn--primary{background:var(--c-primary);color:#fff;border:1px solid var(--c-primary);}
.btn--dark{background:var(--c-dark);color:#fff;border:1px solid var(--c-dark);}

/* Hero */
.home-hero{position:relative;min-height:460px;background-size:cover;background-position:center;display:flex;align-items:center;}
.home-hero__overlay{position:absolute;inset:0;background:rgba(0,0,0,.55);}
.home-hero__content{position:relative;z-index:2;color:#fff;text-align:center;}
.home-hero h1{font-size:clamp(32px,5vw,56px);line-height:1.1;margin-bottom:12px;}
.home-hero p{max-width:900px;margin:0 auto 20px;}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}

/* Stats */
.home-stats{padding:22px 0;background:#fff;border-bottom:1px solid #eee;}
.home-stats__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;text-align:center;}
.home-stats strong{display:block;font-size:24px;color:var(--c-dark);}
.home-stats span{color:#666;font-size:14px;}

/* Muscle strip */
.muscle-strip{background:#0f0f0f;color:#fff;padding:14px 0;}
.muscle-strip__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center;}

/* Products */
.products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.home-products__more{text-align:center;margin-top:22px;}

/* Why */
.home-why__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.why-card{background:#fff;border:1px solid #e9e9e9;border-radius:10px;padding:20px;}
.why-card img{width:42px;height:42px;margin-bottom:8px;}
.why-card h3{margin:0 0 8px;}

/* Founder */
.home-founder__grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;}
.home-founder__media img{width:100%;border-radius:10px;}
.home-founder blockquote{margin:10px 0 14px;padding:12px 14px;border-left:4px solid var(--c-primary);background:#fafafa;}

/* News */
.home-news__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.news-card{background:#fff;border:1px solid #e9e9e9;border-radius:8px;overflow:hidden;}
.news-card h3{font-size:16px;padding:12px;}
.news-card h3 a{text-decoration:none;color:#111;}

/* CTA */
.home-cta{position:relative;background-size:cover;background-position:center;padding:76px 0;}
.home-cta__overlay{position:absolute;inset:0;background:rgba(0,0,0,.6);}
.home-cta__content{position:relative;z-index:2;color:#fff;text-align:center;}
.home-cta p{color:#eee;margin-bottom:18px;}

/* Responsive */
@media (max-width:992px){
  .home-stats__grid,.home-why__grid,.home-news__grid{grid-template-columns:repeat(2,1fr);}
  .products-grid{grid-template-columns:repeat(2,1fr);}
  .home-founder__grid{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .home-stats__grid,.muscle-strip__grid,.home-why__grid,.home-news__grid,.products-grid{grid-template-columns:1fr;}
}


/* 全站按钮 hover 不要绿色 */
.btn:hover,
.btn:focus,
.btn--primary:hover,
.btn--primary:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background-color: #F05A28 !important; /* 你的主色 */
  border-color: #F05A28 !important;
  color: #fff !important;
}

/* 深色按钮 hover（View Details） */
.btn--dark:hover,
.btn--dark:focus {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

/* 轮廓按钮 hover */
.btn--outline:hover,
.btn--outline:focus {
  background-color: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}
.news-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.news-item{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:8px;
  padding:16px;
}
.news-item h3{ margin:0 0 8px; font-size:18px; }
.news-item h3 a{ color:#111; text-decoration:none; }
.news-item__meta{ color:#777; font-size:13px; margin:0 0 10px; }
.news-item__more{ color:#F05A28; text-decoration:none; font-weight:600; }


@media (max-width:992px){ .news-list{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .news-list{ grid-template-columns:1fr; } }

.footer-contact-b2b{
  margin-top:1px;
  color:#ddd;
  font-size:14px;
  line-height:1.8;
}
.footer-contact-b2b a{ color:#fff; text-decoration:none; }
.footer-contact-b2b a:hover{ color:var(--c-primary); }
.footer-fast-reply{ color:#fff; font-weight:600; }

.news-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.news-item{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:8px;
  padding:16px;
}
.news-item h3{ margin:0 0 8px; font-size:18px; }
.news-item h3 a{ color:#111; text-decoration:none; }
.news-item__meta{ color:#777; font-size:13px; margin:0 0 10px; }
.news-item__more{ color:#F05A28; text-decoration:none; font-weight:600; }

@media (max-width:992px){ .news-list{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .news-list{ grid-template-columns:1fr; } }


/* ===== FINAL MOBILE NAV FIX ===== */

/* Header base */
.site-header{
  position:relative;
  z-index:1000;
  background:#fff;
  border-bottom:1px solid #eee;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:72px;
}

.site-branding a{
  text-decoration:none;
  color:#111;
  font-weight:700;
  font-size:22px;
  line-height:1;
}

/* Desktop nav */
.nav-toggle{ display:none; }

.site-nav .menu{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  align-items:center;
  gap:24px;
}
.site-nav .menu li{
  list-style:none;
  position:relative;
}
.site-nav .menu a{
  text-decoration:none;
  color:#111;
}

/* Desktop dropdown */
.site-nav .menu .sub-menu{
  display:none;
  position:absolute;
  left:0;
  top:100%;
  min-width:200px;
  background:#fff;
  border:1px solid #eee;
  padding:8px 0;
  margin:0;
  list-style:none;
}
.site-nav .menu li:hover > .sub-menu{
  display:block;
}
.site-nav .menu .sub-menu li a{
  display:block;
  padding:8px 12px;
}

/* Mobile */
@media (max-width: 992px){
  .site-header .container{
    flex-wrap:wrap;
    min-height:64px;
    padding-top:8px;
    padding-bottom:8px;
  }

  .site-branding{ order:1; }

  .nav-toggle{
    order:2;
    display:inline-flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    width:40px;
    height:40px;
    border:1px solid #ddd;
    border-radius:6px;
    background:#fff;
    cursor:pointer;
    padding:0;
  }
  .nav-toggle span{
    width:20px;
    height:2px;
    background:#111;
    display:block;
    margin:0 auto;
  }

  .site-nav{
    order:3;
    width:100%;
    display:none !important;   /* 默认隐藏 */
  }
  .site-nav.is-open{
    display:block !important;  /* 点击显示 */
    margin-top:8px;
  }

  .site-nav .menu{
    display:block;
    margin:0;
    padding:0;
    list-style:none;
    border-top:1px solid #eee;
  }
  .site-nav .menu > li{
    margin:0;
    padding:0;
    list-style:none;
    border-bottom:1px solid #eee;
  }
  .site-nav .menu > li > a{
    display:block;
    padding:12px 0;
    color:#111;
  }

  /* Mobile submenu */
  .site-nav .sub-menu{
    display:none;
    position:static;
    border:0;
    padding:0 0 8px 12px;
    margin:0;
    list-style:none;
    background:transparent;
  }
  .site-nav .menu-item-has-children.submenu-open > .sub-menu{
    display:block;
  }
  .site-nav .sub-menu li a{
    padding:8px 0;
    display:block;
    color:#444;
  }

  .submenu-toggle{
    position:absolute;
    right:0;
    top:8px;
    width:28px;
    height:28px;
    border:1px solid #ddd;
    border-radius:4px;
    background:#fff;
    line-height:1;
    font-size:16px;
    cursor:pointer;
  }
}
