/* 独立内容页（news/cases/copyright）共享样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans SC', sans-serif; background: #faf9f7; color: #3d3328; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
/* 按钮默认不继承页面字体，统一修正，避免按钮文字与全站字体不一致 */
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(250,249,247,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #ebe7e0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: 'Noto Serif SC', serif; font-size: 20px; font-weight: 700; color: #3d3328; flex-shrink: 0; }
.nav-links { display: none; gap: 6px; align-items: center; flex-shrink: 0; }
@media(min-width:1024px){ .nav-links { display: flex; } }
.nav-links a { padding: 8px 13px; font-size: 16.5px; font-weight: 600; border-radius: 8px; color: #55483a; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.nav-links a:hover { color: #2a231a; font-weight: 700; background: #f0ebe2; }
.nav-links a.active { color: #8B4513; font-weight: 700; }
@media(min-width:1024px) and (max-width:1399px){ .nav-links a { padding: 8px 9px; font-size: 15.5px; } }
/* 导航栏「更多」折叠菜单（⋯），与首页同款 */
.nav-more { position: relative; flex-shrink: 0; }
.nav-more-btn { padding: 8px 13px; font-size: 17px; font-weight: 700; line-height: 1; border-radius: 8px; color: #55483a; background: none; border: none; cursor: pointer; letter-spacing: 1px; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.nav-more-btn:hover, .nav-more:hover .nav-more-btn { color: #2a231a; background: #f0ebe2; }
.nav-more-list { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 146px; background: #fff; border: 1px solid #e5e0d8; border-radius: 10px; box-shadow: 0 12px 32px rgba(60,40,20,.14); padding: 6px; z-index: 70; }
.nav-more:hover .nav-more-list, .nav-more.open .nav-more-list { display: block; }
.nav-more-list a { display: block; padding: 10px 14px; font-size: 15.5px; font-weight: 600; color: #55483a; border-radius: 6px; white-space: nowrap; }
.nav-more-list a:hover { color: #2a231a; font-weight: 700; background: #f5f1ea; }
.nav-more-inline { display: none; }
/* 导航栏搜索框（与首页同款，宽屏显示） */
.header-search { display: none; position: relative; flex-shrink: 1; min-width: 150px; width: 216px; margin: 0 14px 0 18px; }
@media(min-width:1200px){ .header-search { display: block; } }
.header-search-bar { display: flex; align-items: center; height: 38px; background: #fff; border: 1.5px solid #d9d2c6; border-radius: 999px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.header-search-bar:focus-within { border-color: #c41e3a; box-shadow: 0 0 0 3px rgba(196,30,58,.08); }
.header-search-bar input { flex: 1; min-width: 0; border: none; outline: none; padding: 0 4px 0 16px; font-size: 13.5px; font-family: inherit; color: #3d3328; background: transparent; }
.header-search-bar input::placeholder { color: #b4a48f; }
.header-search-bar button { flex-shrink: 0; width: 38px; height: 100%; border: none; background: none; color: #8a7a64; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.header-search-bar button:hover { color: #c41e3a; }
.header-search-bar button svg { width: 17px; height: 17px; }
.header-search .sg-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e5e0d8; border-radius: 12px; box-shadow: 0 12px 32px rgba(60,40,20,.16); overflow: hidden; z-index: 80; display: none; text-align: left; }
.header-search .sg-list.show { display: block; }
.header-search .sg-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; font-size: 13.5px; color: #333; cursor: pointer; border-bottom: 1px solid #f4f0ea; }
.header-search .sg-item:last-child { border-bottom: none; }
.header-search .sg-item:hover, .header-search .sg-item.active { background: #faf3ec; }
.header-search .sg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search .sg-name mark { background: none; color: #c41e3a; font-weight: 700; padding: 0; }
.header-search .sg-go { flex-shrink: 0; font-size: 11.5px; color: #b09880; }
.header-search .sg-empty { padding: 12px 14px; font-size: 12.5px; color: #999; text-align: center; }
/* 移动端 ☰ 菜单（与首页同款） */
.mobile-toggle { display: block; padding: 8px; font-size: 22px; line-height: 1; color: #3d3328; background: none; border: none; cursor: pointer; }
@media(min-width:1024px){ .mobile-toggle { display: none; } }
.mobile-menu { display: none; background: #faf9f7; border-bottom: 1px solid #ebe7e0; padding: 12px 16px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 8px 12px; font-size: 14px; color: #5c4f40; border-radius: 8px; }
.mobile-menu a:hover { background: #f5f3ef; color: #8B4513; }
.header-cta { padding: 8px 18px; background: #3d3328; color: #f5f3ef; border-radius: 8px; font-size: 14px; flex-shrink: 0; transition: background 0.2s; }
.header-cta:hover { background: #2a231a; }
@media(max-width:900px){
  .header-inner { gap: 10px; }
}

/* 手机端适配 */
@media(max-width:640px){
  .container { padding: 0 16px; }
  main { padding: 32px 0 56px; }
  .page-title { font-size: 28px; margin-bottom: 32px; }
  .post-detail { padding: 24px 18px; border-radius: 12px; }
  .post-detail h1 { font-size: 23px; }
  .logo { font-size: 17px; }
  .header-cta { padding: 7px 12px; font-size: 13px; }
}

/* Main */
main { flex: 1; padding: 48px 0 80px; }
.page-title { font-family: 'Noto Serif SC', serif; font-size: 40px; font-weight: 700; text-align: center; color: #3d3328; margin-bottom: 48px; }
.empty-tip { text-align: center; color: #9a8b76; font-size: 15px; padding: 60px 0; }

/* Full-content Feed（直接进入大页面，完整文章依次排列） */
.post-feed-item { margin-bottom: 40px; }

/* Detail */
.back-link { display: inline-block; font-size: 14px; color: #9a8b76; margin-bottom: 24px; }
.back-link:hover { color: #8B4513; }
.post-detail { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #ebe7e0; border-radius: 16px; padding: 40px 36px; }
.post-detail h1 { font-family: 'Noto Serif SC', serif; font-size: 32px; font-weight: 700; color: #3d3328; margin-bottom: 10px; line-height: 1.4; }
.post-detail-date { font-size: 13px; color: #9a8b76; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #ebe7e0; }
.post-cover { width: 100%; border-radius: 10px; margin-bottom: 24px; }
.post-content { font-size: 15.5px; color: #5c4f40; line-height: 1.9; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.post-content video { max-width: 100%; border-radius: 8px; display: block; margin: 12px auto; background: #000; }
.post-content b, .post-content strong { font-weight: 700; }
.post-content i, .post-content em { font-style: italic; }
.post-content u { text-decoration: underline; }
.post-content h1 { font-size: 24px; font-weight: 700; margin: 16px 0 10px; color: #3d3328; line-height: 1.4; }
.post-content h2 { font-size: 21px; font-weight: 600; margin: 14px 0 8px; color: #3d3328; line-height: 1.4; }
.post-content h3 { font-size: 18px; font-weight: 600; margin: 12px 0 6px; color: #3d3328; line-height: 1.4; }
.post-content p { margin: 8px 0; }
.post-content blockquote { border-left: 3px solid #8B4513; padding-left: 14px; color: #7d6f5e; margin: 12px 0; }
.post-content ul, .post-content ol { padding-left: 26px; margin: 10px 0; }
.post-content li { margin: 4px 0; }
.post-content hr { border: none; border-top: 1px solid #ddd6ca; margin: 16px 0; }
.post-content a { color: #8B4513; text-decoration: underline; }

/* Footer（与首页同款三栏布局） */
footer { background: #3d3328; color: #b5a896; }
.footer-inner { padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media(min-width:768px){ .footer-grid { grid-template-columns: repeat(3, 1fr); } }
footer h3 { font-family: 'Noto Serif SC', serif; font-size: 20px; font-weight: 700; color: #f5f3ef; margin-bottom: 12px; }
footer h4 { font-size: 14px; font-weight: 500; color: #f5f3ef; margin-bottom: 16px; }
footer p { font-size: 14px; color: #9a8b76; line-height: 1.6; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { font-size: 14px; color: #9a8b76; transition: color 0.2s; }
footer a:hover { color: #f5f3ef; }
.footer-icp { font-size: 12px !important; color: #7d6f5e !important; }
.footer-bottom { text-align: center; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: #7d6f5e; }

/* Footer WeChat Button */
.wechat-footer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: #07C160; color: #ffffff; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(7,193,96,0.25); margin-bottom: 12px; }
.wechat-footer-btn:hover { background: #06a653; box-shadow: 0 4px 12px rgba(7,193,96,0.35); }
.wechat-footer-btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* WeChat QR Modal */
.wechat-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.wechat-modal-overlay.open { display: flex; }
.wechat-modal { background: #ffffff; border-radius: 16px; padding: 32px 28px 28px; max-width: 340px; width: 100%; text-align: center; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: wechatPop 0.25s ease; }
@keyframes wechatPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wechat-modal-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: none; background: none; font-size: 22px; color: #9a8b76; cursor: pointer; border-radius: 50%; line-height: 1; }
.wechat-modal-close:hover { background: #f5f3ef; color: #3d3328; }
.wechat-modal-icon { width: 48px; height: 48px; background: #07C160; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.wechat-modal-icon svg { width: 28px; height: 28px; fill: #ffffff; }
.wechat-modal h3 { font-size: 18px; font-weight: 600; color: #3d3328; margin-bottom: 4px; }
.wechat-modal .wechat-tip { font-size: 13px; color: #9a8b76; margin-bottom: 16px; }
.wechat-modal img { width: 220px; height: 220px; border-radius: 10px; border: 1px solid #ebe7e0; display: block; margin: 0 auto 16px; background: #f5f3ef; object-fit: contain; }
.wechat-id-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.wechat-id-row .wechat-id { font-size: 16px; font-weight: 600; color: #07C160; letter-spacing: 0.5px; }
.wechat-copy-btn { padding: 6px 14px; background: #07C160; color: #ffffff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background 0.2s; }
.wechat-copy-btn:hover { background: #06a653; }

/* ===== 站点标志 + 购物车图标（全站统一） ===== */
.logo{display:inline-flex;align-items:center;gap:9px;text-decoration:none;}
.logo .logo-mark{width:36px;height:36px;flex:none;}
.logo .logo-text{color:inherit;}
.logo .logo-accent{color:#c41e3a;}
.cart-link{display:inline-flex;align-items:center;gap:5px;color:#c41e3a!important;font-weight:700;text-decoration:none;}
.cart-link svg{width:19px;height:19px;flex:none;}
@media(max-width:768px){.logo .logo-mark{width:30px;height:30px;}}

/* 头部右侧：登录区 + 购物车（与首页一致，小屏收起进 ☰ 菜单） */
.header-actions { display: none; align-items: center; flex-shrink: 0; white-space: nowrap; }
@media(min-width:1024px){ .header-actions { display: flex; } }
.auth-btn { display: inline-block; background: #3d3328; color: #f5f3ef; padding: 7px 18px; border-radius: 999px; font-size: 13px; transition: background 0.2s; }
.auth-btn:hover { background: #2a231a; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; transition: background 0.2s; text-decoration: none; }
.user-chip:hover { background: #f0ebe3; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.user-name { font-size: 13px; color: #3d3328; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions .cart-link { margin-left: 12px; font-size: 14px; }
