/*
Theme Name: Starforce
Theme URI: https://www.starforceinteractive.com
Description: Starforce 官网轻量主题（暗夜能量风 · 黑黄体系 · WooCommerce 驱动 · 展示模式）
Author: Starforce
Version: 3.0.0
Text Domain: starforce
*/

:root {
  --sf-bg: #0b0b0d;          /* 页面底 */
  --sf-card: #151518;        /* 磁贴/卡片 */
  --sf-card-border: rgba(255, 255, 255, 0.07);
  --sf-header: #0e0e11;
  --sf-text: #f2f2f0;
  --sf-muted: #9b9ba1;
  --sf-line: rgba(255, 255, 255, 0.08);
  --sf-yl: #ffd400;          /* 能量黄 */
  --sf-yl-deep: #f2b900;
  --sf-font: Poppins, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-color: #3a3a42 #131316; }
body {
  margin: 0;
  font-family: var(--sf-font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--sf-text);
  background: var(--sf-bg);
}
a { color: var(--sf-muted); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
::selection { background: var(--sf-yl); color: #000; }

/* ===== Action bar ===== */
.sf-action {
  background: var(--sf-bg);
  border-bottom: 1px solid var(--sf-line);
  color: var(--sf-muted);
  font-size: 13px;
}
.sf-action .sf-container { display: flex; justify-content: space-between; align-items: center; }
.sf-action .sf-slogan b { font-weight: 700; color: var(--sf-yl); }
.sf-action a { color: var(--sf-muted); margin-left: 18px; font-weight: 400; }
.sf-action a:hover { color: #fff; }

/* ===== Header ===== */
.sf-header {
  background: rgba(14, 14, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sf-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.sf-header .sf-container { display: flex; align-items: center; gap: 24px; }
.sf-logo { flex-shrink: 0; padding: 12px 0; }
.sf-logo img { height: 44px; display: block; }
.sf-nav { flex: 1; }
.sf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.sf-nav li { position: relative; }
.sf-nav li > a {
  display: block;
  line-height: 60px;
  padding: 0 20px;
  color: #c9c9cf;
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
  transition: color 150ms ease, box-shadow 150ms ease;
}
.sf-nav li > a:hover,
.sf-nav li.current-menu-item > a {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--sf-yl);
}
.sf-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--sf-header);
  border: 1px solid var(--sf-line);
  min-width: 180px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
  z-index: 200;
}
.sf-nav li:hover > .sub-menu { display: block; }
.sf-nav .sub-menu li > a { line-height: 44px; font-weight: 400; }
.sf-header-icons { display: flex; align-items: center; gap: 14px; }

/* ===== 维权系统入口（右上角 · 能量黄）===== */
.sf-wq-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 8px 15px;
  border-radius: 999px;
  background: var(--sf-yl);
  color: #0b0b0d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.sf-wq-entry:hover { color: #0b0b0d; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 212, 0, .25); }
.sf-header-icons .sf-wq-entry svg { width: 15px; height: 15px; flex-shrink: 0; }
.sf-wq-badge {
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  background: #0b0b0d;
  color: var(--sf-yl);
  font-weight: 700;
  letter-spacing: 1px;
}
.sf-menu-toggle { display: none; background: none; border: 0; color: var(--sf-text); font-size: 24px; cursor: pointer; }

/* ===== Layout ===== */
.sf-container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.sf-main { padding: 10px 0 30px; }

/* ===== Bento（首页磁贴墙）===== */
.sf-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 196px; gap: 14px; padding-top: 26px; }
.sf-b { border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 42%), var(--sf-card);
  border: 1px solid var(--sf-card-border);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.sf-b:hover { transform: translateY(-3px); border-color: rgba(255, 212, 0, .38); box-shadow: 0 14px 28px rgba(0, 0, 0, .32); }

.sf-brand {
  grid-column: span 2; grid-row: span 2; border: 0; color: #0b0b0d;
  background: linear-gradient(150deg, #ffd400 0%, #f2b900 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 32px;
}
.sf-brand::after { content: ""; position: absolute; right: -70px; top: -70px; width: 230px; height: 230px; border-radius: 50%; background: rgba(0,0,0,.07); }
.sf-brand .micro { font-size: 11.5px; letter-spacing: 3.5px; font-weight: 700; text-transform: uppercase; color: rgba(0,0,0,.55); }
.sf-brand h1 { font-size: 41px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.14; margin: 10px 0 14px; color: #0b0b0d; position: relative; z-index: 1; }
.sf-brand p { font-size: 14px; color: rgba(0,0,0,.66); margin: 0 0 22px; line-height: 1.7; position: relative; z-index: 1; }
.sf-brand .sf-pill {
  display: inline-block; background: #0b0b0d; color: var(--sf-yl);
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 14px;
  width: fit-content; position: relative; z-index: 1; transition: transform .2s;
}
.sf-brand .sf-pill:hover { color: var(--sf-yl); transform: translateY(-2px); }
.sf-brand .sf-stats { display: flex; gap: 24px; margin-top: 18px; padding-top: 18px; border-top: 1.5px solid rgba(0,0,0,.18); position: relative; z-index: 1; }
.sf-brand .sf-stats b { font-size: 21px; color: #0b0b0d; display: block; line-height: 1.35; }
.sf-brand .sf-stats span { font-size: 11.5px; color: rgba(0,0,0,.55); }

.sf-cat { grid-column: span 2; grid-row: span 1; display: flex; align-items: stretch; }
.sf-cat .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 4px 20px 22px; }
.sf-cat .n { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.35; }
.sf-cat .c { font-size: 12.5px; color: var(--sf-muted); }
.sf-cat .go { font-size: 12.5px; font-weight: 700; color: var(--sf-yl); }
.sf-cat .im { flex-shrink: 0; width: 44%; display: flex; align-items: center; justify-content: center; padding: 10px; }
.sf-cat .im img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); }

.sf-band { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 228px; gap: 14px; margin-top: 16px; }
.sf-head-t { grid-column: span 2; background: transparent; border: 1.5px dashed #33333d; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: 20px; }
.sf-head-t h2 { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.5px; margin: 0; }
.sf-head-t a { font-size: 13.5px; color: var(--sf-yl); font-weight: 600; }
.sf-p-tile { grid-column: span 1; display: flex; flex-direction: column; }
.sf-p-tile .im { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; }
.sf-p-tile .im img { background: #fff; border-radius: 10px; padding: 9px; max-height: 100%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.sf-p-tile .nm { flex-shrink: 0; padding: 12px 16px 15px; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: #fafaf8; border-top: 1px solid var(--sf-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-more-t { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; padding: 26px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 42%), var(--sf-card); }
.sf-more-t .n { font-size: 20px; font-weight: 800; color: var(--sf-yl); }
.sf-more-t .c { font-size: 13px; color: var(--sf-muted); margin-top: 3px; }
.sf-more-t .go { width: 48px; height: 48px; border-radius: 50%; background: var(--sf-yl); color: #000; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex-shrink: 0; transition: transform .2s; }
.sf-more-t:hover .go { transform: translateX(4px); }

/* ===== 内页产品网格（分类/商店页）===== */
.sf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== Page ===== */
.sf-page-title { margin: 0 0 20px; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.sf-entry p { margin: 0 0 15px; }
.sf-entry a { color: var(--sf-yl); }

/* ===== Footer（安静单行）===== */
.sf-footer { border-top: 1px solid var(--sf-line); margin-top: 52px; }
.sf-footer .sf-container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px 28px 56px; color: #6f6f76; font-size: 13px; flex-wrap: wrap; gap: 10px;
}
.sf-footer .sf-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.sf-footer a { color: var(--sf-muted); }
.sf-footer a:hover { color: #fff; }

/* ===== WooCommerce（暗夜能量 · 展示模式）===== */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
/* WooCommerce 的 clearfix 伪元素在 grid 下会变成空网格项（首行孔位），必须移除 */
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product {
  width: auto; float: none; margin: 0;
  border: 1px solid var(--sf-card-border); border-radius: 20px; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 42%), var(--sf-card);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px); border-color: rgba(255, 212, 0, .38); box-shadow: 0 14px 28px rgba(0, 0, 0, .32);
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; height: 100%; }
.woocommerce ul.products li.product img {
  margin: 14px 14px 0; width: calc(100% - 28px); height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13.5px; font-weight: 600; color: #fafaf8; line-height: 1.5;
  margin: 14px 0 0; padding: 12px 16px 15px; border-top: 1px solid var(--sf-line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.woocommerce span.onsale {
  background: var(--sf-yl); color: #000; min-height: auto; min-width: auto;
  padding: 4px 12px; border-radius: 4px; line-height: 1.6; top: 12px; left: 12px; font-weight: 700;
}

/* 详情页：单列大图布局 */
.woocommerce div.product div.images { width: 100%; float: none; margin-bottom: 28px; }
.woocommerce div.product div.summary { width: 100%; float: none; }
.woocommerce div.product .product_title {
  font-size: 32px; font-weight: 800; color: #fff; line-height: 1.25; letter-spacing: -.5px;
}
.woocommerce div.product p.price, .woocommerce div.product span.price { display: none; }
.woocommerce div.product div.images img { background: #fff; border: 0; border-radius: 14px; padding: 10px; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs img { width: 84px; height: 84px; object-fit: cover; background: #fff; padding: 4px; border-radius: 8px; opacity: .5; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--sf-yl); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--sf-text); font-size: 16px; }
.woocommerce div.product .woocommerce-product-details__short-description p { margin: 0 0 10px; }

.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit {
  background: var(--sf-yl); color: #000; border: 0; border-radius: 999px;
  font-weight: 700; padding: 12px 30px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #fff; color: #000; }

.woocommerce .woocommerce-breadcrumb { font-size: 13px; color: var(--sf-muted); margin-bottom: 24px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--sf-muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--sf-yl); }

/* 标签页（描述）*/
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; border-bottom: 1px solid var(--sf-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 12px 20px; color: var(--sf-muted); font-weight: 600; border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; border-bottom-color: var(--sf-yl); }
.woocommerce-Tabs-panel { color: var(--sf-text); }

/* 归档页头 */
.woocommerce-products-header__title { color: #fff; }
.woocommerce .woocommerce-result-count { color: var(--sf-muted); }

/* 展示模式：隐藏残余电商元素 */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.woocommerce .cart .button,
.woocommerce a.button.add_to_cart_button,
.woocommerce .single_add_to_cart_button,
.woocommerce div.product form.cart,
.woocommerce .product_meta,
.woocommerce .star-rating,
.woocommerce .woocommerce-review-link,
.sf-cart-count { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .sf-bento { grid-template-columns: repeat(2, 1fr); }
  .sf-brand { grid-column: span 2; grid-row: span 2; }
  .sf-cat { grid-column: span 1; }
  .sf-cat .im { width: 40%; }
  .sf-band { grid-template-columns: repeat(2, 1fr); }
  .sf-head-t, .sf-more-t { grid-column: span 2; }
  .sf-p-tile { grid-column: span 1; }
  .sf-grid, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .sf-header-icons { margin-left: auto; }
  .sf-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--sf-header); padding: 10px 0; border-bottom: 1px solid var(--sf-line); }
  .sf-nav.open { display: block; }
  .sf-nav ul { flex-direction: column; }
  .sf-nav .sub-menu { position: static; box-shadow: none; padding-left: 16px; }
  .sf-menu-toggle { display: block; margin-left: auto; }
}
@media (max-width: 640px) {
  .sf-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .sf-brand h1 { font-size: 30px; }
  .sf-action .sf-slogan b { display: none; }
}
