/*
Theme Name: Sakesi Club Theme
Author: YourName
Description: 歌谱下载网站主题，支持懒加载、点赞、标签、相关文章、移动端响应
Version: 1.0
*/
body {
  font-family: sans-serif;
  background: url('https://www.sakesi.club/wp-content/themes/fozhu/images/top_bg.png') repeat-x top center;
  margin: 0;
  padding: 0;
  background-size: auto 120px;
}

.container {
  max-width: 998px;
  margin: auto;
  padding: 1rem;
  clear: both;
  overflow: hidden;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ccc;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  max-height: 60px;
  height: auto;
  display: block;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
  margin-left: auto;
}

.main-menu {
  flex: 1 1 auto;
  margin-left: 10px;
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1.9;
  margin-bottom: 4px;
}

.menu-row:last-child {
  margin-bottom: 0;
}

.menu-parent {
  font-weight: bold;
  margin-right: 10px;
  white-space: nowrap;
}

.menu-parent a {
  color: #222;
  text-decoration: none;
}

.main-menu a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  margin-right: 12px;
  white-space: nowrap;
}

.main-menu a:hover,
.menu-parent a:hover {
  color: #b16a00;
}

@media (max-width: 768px) {
  .header-inner {
    display: block;
  }

  .logo {
    display: block;
    padding-right: 50px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .main-menu {
    display: none;
    margin-left: 0;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
  }

  .main-menu.show {
    display: block;
  }

  .menu-row {
    display: block;
    margin-bottom: 10px;
    line-height: 1.9;
  }

  .menu-parent {
    display: inline;
    margin-right: 6px;
  }

  .main-menu a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 2px;
    font-size: 14px;
  }
}

.post-list {
  column-count: 4;
  column-gap: 1rem;
}

.post-item {
  background: #fff;
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  border-radius: 6px;
  overflow: hidden;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.post-item:hover {
  filter: brightness(0.8); /* 变暗效果 */
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.post-item a {
  display: block;
  text-decoration: none;
  color: #333;
}

.post-item .thumb img {
  width: 100%;
  height: auto;
  padding:5px;
  display: block;
}

.post-item h2 {
  font-size: 1rem;
  padding: 0.5rem 1rem 0 1rem;
  margin: 0;
  line-height: 1.4;
}

.post-item .excerpt {
  font-size: 0.85rem;
  padding: 0 1rem 1rem 1rem;
  color: #666;
}

.excerpt { font-size: 0.9rem; color: #555; }

.single .meta { margin: 1rem 0; font-size: 0.9rem; }
.pagination { text-align: center; margin: 2rem 0; }

.site-footer { background: #333; color: #ccc; text-align: center; padding: 1rem; font-size: 0.85rem; }

@media (max-width: 768px) {

  .post-list {
    column-count: 2;
    column-gap: 0.8rem;
  }
}

.like-button {
    display: inline-block;
    cursor: pointer;
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 4px;
    transition: all 0.3s;
  }
  .like-button:hover {
    background: #ff6666;
    color: white;
  }
  .like-button.liked {
    background: #ff4444;
    color: #fff;
  }
  .home-banner {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .home-banner img.banner-img {
    max-width: 100%;
    border-radius: 8px;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .banner-welcome {
    margin-top: 1rem;
    padding: 1rem;
    background: #D1D1D1;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    color: #333;
  }
  
  .banner-welcome h2 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #111;
  }
  
 .pagination {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.pagination div a {
  background: #eee;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  color: #333;
  transition: 0.3s;
}
.pagination div a:hover {
  background: #444;
  color: #fff;
}

.single-wrapper {
  display: flex;
  gap: 2rem;
  margin-top: 10px;
}

.single-main {
  flex: 3;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  border-radius: 6px;
}

.single-main .single-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.single-main .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.single-main .content img {
  display:block;max-width:100%;height:auto;margin:12px 0;
}

.single-sidebar {
  flex: 1;
  background: #ADADAD; /* 整体淡灰背景 */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-box {
  background: #f7f7f7;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.sidebar-ad {
  width: 100%;
  border-radius: 6px;
}

.single-related {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .single-wrapper {
    flex-direction: column;
  }
}


.search-box {
  text-align: right;
  margin-top: 10px;
  margin-bottom: 20px;
}

.search-box input[type="search"] {
  padding: 6px 10px;
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-box button {
  padding: 6px 10px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.search-box button:hover {
  background-color: #333;
}

@media (max-width: 768px) {
  .search-box {
    text-align: center;
  }

  .search-box input[type="search"] {
    width: 80%;
    margin-bottom: 10px;
  }
}

.sb-featured{margin:0 0 18px;}
.sb-title{
  font-size:22px;
  font-weight:900;
  margin:0 0 12px;
  color:#111;
}

.sb-featured-grid{
  display:grid;
  grid-template-columns:repeat(1, minmax(0, 1fr)); /* PC 一排一个 */
  gap:14px;
}

.sb-card{display:block;text-decoration:none;color:#fff;}

.sb-cover{
  position:relative;
  display:block;
  border-radius:12px;
  overflow:hidden;
  background:#f2f2f2;
  aspect-ratio:16/10;
  border:1px solid #eee;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sb-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .25s ease;
}

.sb-mask{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.70), rgba(0,0,0,0) 60%);
  pointer-events:none;
}

.sb-text{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  font-size:16px;
  font-weight:800;
  line-height:1.35;
  color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.sb-card:hover .sb-cover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.10);
  border-color:#e7e7e7;
}
.sb-card:hover .sb-cover img{transform:scale(1.04);}

@media (max-width:768px){
  .sb-featured-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)); /* 手机一排两个 */
    gap:10px;
  }
  .sb-title{font-size:20px;}
  .sb-text{font-size:14px;left:10px;right:10px;bottom:10px;}
  .sb-cover{border-radius:10px;}
}


.category-seo-text{
    margin: 30px 0;
    padding: 20px 22px;
    background: #faf8f3;
    border: 1px solid #e7dcc7;
    border-radius: 8px;
    color: #333;
    line-height: 2;
    font-size: 15px;
}

.category-seo-text h2{
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.4;
    color: #7a4b12;
}

.category-seo-text p{
    margin: 0;
}

.category-seo-text br{
    display: block;
    content: "";
    margin-top: 10px;
}






















/* 曲谱销售详情模块 */
.score-sale{
  margin: 0 0 28px;
  color:#2d2d2d;
}

.score-sale-banner{
  margin: 0 0 18px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  background:#fff;
}

.score-sale-banner img{
  display:block;
  width:100%;
  height:auto;
}

/* 主信息 */
.score-sale-hero{
  background:#fffdf8;
  border:1px solid #eadfcf;
  border-radius:10px;
  padding:22px 20px;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
  margin-bottom:18px;
}

.score-sale-badge{
  display:inline-block;
  padding:6px 12px;
  background:#f4e3b2;
  color:#8b5b12;
  font-size:13px;
  font-weight:700;
  border-radius:999px;
  margin-bottom:12px;
}

.score-sale-hero h1{
  margin:0 0 10px;
  font-size:32px;
  line-height:1.35;
  color:#1f1f1f;
}

.score-sale-subtitle{
  font-size:18px;
  color:#b16a00;
  font-weight:700;
  margin-bottom:14px;
}

.score-sale-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
}

.score-sale-meta span{
  display:inline-block;
  padding:7px 12px;
  border:1px solid #e5d8bf;
  background:#fff;
  border-radius:999px;
  font-size:13px;
  color:#666;
}

.score-sale-intro{
  margin:0;
  font-size:15px;
  line-height:1.95;
  color:#444;
}

.score-sale-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.score-btn-buy,
.score-btn-more{
  display:inline-block;
  padding:11px 20px;
  border-radius:8px;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  transition:all .25s ease;
}

.score-btn-buy{
  background:#b16a00;
  color:#fff;
  box-shadow:0 8px 18px rgba(177,106,0,.18);
}

.score-btn-buy:hover{
  background:#955700;
  color:#fff;
  transform:translateY(-1px);
}

.score-btn-more{
  background:#fff;
  color:#444;
  border:1px solid #ddd0b4;
}

.score-btn-more:hover{
  background:#f8f2e7;
  color:#222;
}

/* 卖点四格 */
.score-sale-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.score-sale-card{
  background:#fff;
  border:1px solid #ebe4d8;
  border-radius:10px;
  padding:18px 16px;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.score-sale-card h3{
  margin:0 0 8px;
  font-size:18px;
  color:#222;
}

.score-sale-card p{
  margin:0;
  font-size:14px;
  line-height:1.85;
  color:#666;
}

/* 普通区块 */
.score-sale-section{
  background:#fff;
  border:1px solid #ebe4d8;
  border-radius:10px;
  padding:20px 18px;
  margin-bottom:18px;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}

.score-sale-section h2{
  margin:0 0 12px;
  font-size:24px;
  line-height:1.4;
  color:#7a4b12;
}

.score-sale-section p{
  margin:0 0 12px;
  font-size:15px;
  line-height:2;
  color:#444;
}

.score-sale-section p:last-child{
  margin-bottom:0;
}

/* tag 列表 */
.score-tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.score-tag-list span{
  display:inline-block;
  padding:9px 14px;
  background:#faf6ee;
  border:1px solid #e8dbc0;
  border-radius:999px;
  font-size:14px;
  color:#6a5529;
}

/* 购买区 */
.score-sale-buy{
  display:grid;
  grid-template-columns:230px 1fr;
  gap:18px;
  background:linear-gradient(135deg,#2f3b48 0%,#3d4c5d 100%);
  border-radius:12px;
  padding:24px;
  box-shadow:0 10px 26px rgba(0,0,0,.12);
  color:#fff;
}

.score-sale-price{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:18px 16px;
  text-align:center;
}

.score-sale-price-label{
  font-size:13px;
  color:rgba(255,255,255,.8);
  margin-bottom:8px;
}

.score-sale-price-num{
  font-size:42px;
  line-height:1.1;
  font-weight:900;
  color:#ffd05a;
  margin-bottom:8px;
}

.score-sale-price-desc{
  font-size:15px;
  line-height:1.7;
  color:rgba(255,255,255,.88);
}

.score-sale-buy-info{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.score-sale-buy-info p{
  margin:0 0 16px;
  font-size:15px;
  line-height:1.95;
  color:rgba(255,255,255,.9);
}

.score-btn-buy-large{
  align-self:flex-start;
  padding:13px 28px;
  font-size:16px;
  border-radius:9px;
  background:#ffb21e;
  color:#fff;
}

.score-btn-buy-large:hover{
  background:#ea9d00;
  color:#fff;
}

/* 移动端优化 */
@media (max-width:768px){
  .score-sale-banner{
    margin-bottom:14px;
    border-radius:8px;
  }

  .score-sale-hero{
    padding:16px 14px;
    margin-bottom:14px;
  }

  .score-sale-hero h1{
    font-size:24px;
  }

  .score-sale-subtitle{
    font-size:16px;
  }

  .score-sale-meta{
    gap:8px;
  }

  .score-sale-meta span{
    font-size:12px;
    padding:6px 10px;
  }

  .score-sale-grid{
    grid-template-columns:1fr;
    gap:12px;
    margin-bottom:14px;
  }

  .score-sale-card{
    padding:15px 14px;
  }

  .score-sale-section{
    padding:16px 14px;
    margin-bottom:14px;
  }

  .score-sale-section h2{
    font-size:20px;
  }

  .score-tag-list{
    gap:8px;
  }

  .score-tag-list span{
    font-size:13px;
    padding:8px 12px;
  }

  .score-sale-buy{
    grid-template-columns:1fr;
    gap:14px;
    padding:16px 14px;
  }

  .score-sale-price{
    padding:16px 14px;
  }

  .score-sale-price-num{
    font-size:34px;
  }

  .score-btn-buy-large{
    width:100%;
    text-align:center;
    align-self:stretch;
  }
}



.score-grid{max-width: 998px;margin: auto;  padding: 1rem;  clear: both;  overflow: hidden;  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:12px;}

.score-grid a{  display:block;  text-decoration:none;  color:#333;  font-size:14px;  line-height:1.5;  text-align:center;}

.score-grid a img{  display:block;  width:100%;  aspect-ratio:1/1;  object-fit:cover;  object-position:left top; /* 关键：左上角对齐 */  border-radius:6px; margin:0 0 6px;}

@media (max-width:768px){
  .score-grid{
      grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
  }
  .score-grid a{font-size:12px;}
}