:root{
  --black:#000;
  --white:#fff;
  --gray:#666;
  --muted:#888;
  --light:#f5f5f5;
  --dark:#111;
  --accent:#E53935;
  --max:960px;
}
*,
*::before,
*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font:16px/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:#222;
  background:#fff;
}
a{color:inherit}
img{max-width:100%;display:block}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}
.section{
  padding:48px 0;
}
.section-alt{
  background:var(--light);
}
.section-head{
  margin-bottom:20px;
}
.section-head h1,
.section-head h2{
  margin:.25em 0;
}
.section-footer{
  margin-top:20px;
}

.site-header{
  background:#fff;
  border-bottom:1px solid #eee;
}
.site-header.simple{
  background:#fff;
}
.nav-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.brand-mark{font-size:20px}
.brand-text{
  font-weight:700;
  letter-spacing:.04em;
}
.brand-text .dot{color:var(--accent)}
.brand-sub{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.15em;
  color:var(--muted);
}
.nav{
  display:flex;
  gap:12px;
  font-size:14px;
}
.nav-link{
  text-decoration:none;
  padding:4px 0;
  border-bottom:1px solid transparent;
}
.nav-link:hover{
  border-bottom-color:#222;
}

.hero{
  position:relative;
  background:radial-gradient(circle at top left,#333,#000);
  color:var(--white);
  padding:68px 0 56px;
  overflow:hidden;
}
.hero-overlay{
  position:absolute;
  inset:0;
  opacity:.24;
  background-image:repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.05) 0,
    rgba(255,255,255,.05) 1px,
    transparent 1px,
    transparent 4px
  );
}
.hero-inner{
  position:relative;
}
.hero-text{
  max-width:520px;
}
.hero h1{
  font-size:40px;
  margin:.1em 0 .3em;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.hero-sub{
  margin:0 0 24px;
  color:#ddd;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}
.cards .card{
  border-radius:16px;
  border:1px solid #eee;
  padding:16px 16px 18px;
  background:#fff;
  text-decoration:none;
  color:inherit;
  box-shadow:0 8px 18px rgba(0,0,0,.04);
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;
}
.cards .card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(0,0,0,.09);
  border-color:#ddd;
}
.card h3{
  margin:.2em 0 .35em;
  font-size:18px;
}
.card .meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}
.card p{
  margin:0;
  font-size:14px;
}

.stack{
  display:flex;
  flex-direction:column;
}
.wall-list .item{
  border-bottom:1px solid #e5e5e5;
  padding:10px 0;
}
.wall-list .item:last-child{
  border-bottom:none;
}
.wall-list strong{
  font-size:14px;
}
.wall-list .muted{
  font-size:12px;
}

.btn{
  display:inline-block;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid #222;
  font-size:14px;
  text-decoration:none;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:#fff;
}
.btn.primary{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
.btn.primary:hover{
  filter:brightness(1.05);
}
.btn.ghost{
  background:transparent;
  color:#fff;
  border-color:#fff;
}
.btn.ghost:hover{
  background:#fff;
  color:#000;
}
.btn.subtle {
    background: #fff;
    color: #222;
    border-color: #fff;
}
.article-wrap{
  max-width:720px;
}
.article-head{
  margin-bottom:18px;
}
#post-title{
  font-size:30px;
  margin:.2em 0 .3em;
}
#post-meta{
  font-size:13px;
}
.content{
  font-size:16px;
}
.content h2{
  margin-top:1.2em;
}
.content img{
  margin:10px 0;
  border-radius:8px;
}
.content p{
  margin:0 0 .9em;
}

.site-footer{
  border-top:1px solid #eee;
  background:#fafafa;
}
.footer-inner{
  padding:24px 20px 40px;
}
.footer-inner p{
  margin:.15em 0;
}

.muted{color:var(--muted)}
.small{font-size:13px}

@media (max-width:640px){
  .nav-bar{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .hero{
    padding:48px 0 38px;
  }
  .hero h1{
    font-size:30px;
  }
}

.lang-switcher {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.lang-switcher a {
  text-decoration: none;
  margin-right: 4px;
  color: var(--muted);
}
.lang-switcher a.active {
  font-weight: 600;
  color: #000;
}


/* v0.6 categories UI */

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
}

.category-bar .chip {
  border: 1px solid #ccc;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.category-bar .chip.active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.card .categories .badge {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 0.75rem;
}


/* ===== Category bar on Articles page ===== */
.category-bar {
  margin-top: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 小按钮（chip）样式 */
.category-bar .chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  font-size: 0.9rem;
  cursor: pointer;
}

/* 当前选中的分类 */
.category-bar .chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.product-links-section {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #eee;
}

.product-links-section h3 {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.product-list li {
  margin-bottom: 8px;
}

.buy-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.buy-link.shopee {
  background: #ff5722;
  color: #fff;
}

.buy-link.tiktok {
  background: #000;
  color: #fff;
}

.single-product-group {
  margin: 16px 0;
}

.buy-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.buy-btn.shopee {
  background: #ff5722;
  color: #fff;
}

.buy-btn.tiktok {
  background: #000;
  color: #fff;
}


.pagination {
  margin: 24px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.page-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  font-size: 0.9rem;
  cursor: pointer;
}

.page-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.page-ellipsis {
  padding: 0 4px;
  color: #999;
}

/* Coach's Pick block */

.coach-pick-section {
  margin-top: 40px;
  padding: 18px 16px 20px;
  border-radius: 14px;
  border: 1px solid #ffe0b2;
  background: #fffaf3;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
  font-size: 15px;
}

.coach-pick-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.coach-pick-list {
  list-style: none;
  padding-left: 0;
  margin: 4px 0 12px;
}

.coach-pick-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 4px;
}

.coach-pick-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9em;
}

.coach-pick-links {
  margin-top: 6px;
}

.coach-pick-link {
  display: block;
  text-decoration: none;
  margin: 4px 0;
  font-weight: 600;
}

.coach-pick-link:hover {
  text-decoration: underline;
}



/* --- SLF Minimal Search --- */
.search-row{
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0 6px;
}

#search-input{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(127,127,127,.35);
  background:transparent;
  font-size:14px;
}

#search-clear{
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid rgba(127,127,127,.35);
  background:transparent;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

#search-clear[disabled]{
  opacity:.4;
  cursor:default;
}

.coach-pick-cta {
  display: inline-block;
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ff6a00;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.coach-pick-cta:hover {
  background: #ff8126;
}

.coach-pick-cta {
  background: #ff6a00;
}

.coach-pick-cta.secondary {
  background: #ff8f3a;
  opacity: 0.85;
}

.coach-pick-cta.upgrade {
  background: #ffb36b;
  opacity: 0.8;
}
