/**
 * 各页面内联样式收敛（原 view 内 <style> 块）
 * 保持 class 名不变，仅集中管理
 */

/* --- 发现 find --- */
.find-page { background: #f7f8fa; min-height: 100vh; padding-bottom: calc(50px + env(safe-area-inset-bottom, 16px)); }
.find-top { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: none; border-bottom: 1px solid #ebedf0; }
.find-tabs { display: flex; border-bottom: 1px solid #ebedf0; background: #fff; }
.find-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: #646566; text-decoration: none; }
.find-tab.active { color: #07c160; font-weight: 600; border-bottom: 2px solid #07c160; margin-bottom: -1px; }
.find-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; }
.find-search input { flex: 1; border: none; border-radius: 20px; padding: 9px 14px; font-size: 14px; background: #f7f8fa; outline: none; }
.find-search button { border: none; background: transparent; color: #07c160; font-size: 14px; font-weight: 600; padding: 0 4px; white-space: nowrap; }
.find-filters { background: #fff; padding: 0 12px 10px; display: none; }
.find-filters.show { display: block; }
.find-years, .find-periods { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: none; }
.find-years::-webkit-scrollbar, .find-periods::-webkit-scrollbar { display: none; }
.find-pill { flex: 0 0 auto; padding: 6px 14px; border-radius: 16px; background: #f7f8fa; color: #646566; font-size: 13px; text-decoration: none; border: none; cursor: pointer; }
.find-pill.active { background: #07c160; color: #fff; }
.find-grid { display: flex; gap: 8px; padding: 8px 12px; align-items: flex-start; }
.find-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.find-card { display: block; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); text-decoration: none; color: #323233; }
.find-card img { width: 100%; display: block; background: #f7f8fa; }
.find-card .fc-foot { display: flex; align-items: center; gap: 6px; padding: 8px; }
.find-card .fc-avatar { width: 22px; height: 22px; border-radius: 50%; background: #e8f8ef; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.find-card .fc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.find-card .fc-title { flex: 1; font-size: 12px; line-height: 1.35; color: #323233; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.find-card .fc-like { flex-shrink: 0; font-size: 12px; color: #969799; display: flex; align-items: center; gap: 2px; }
.find-tip { text-align: center; padding: 12px; color: #969799; font-size: 12px; }
.find-fab { position: fixed; right: 14px; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 30; text-align: center; text-decoration: none; color: #fff; }
.find-fab .fab-circle { width: 48px; height: 48px; border-radius: 50%; background: #07c160; box-shadow: 0 4px 12px rgba(7,193,96,.35); display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; margin: 0 auto; }
.find-fab .fab-text { display: block; font-size: 11px; color: #07c160; margin-top: 4px; font-weight: 600; }
.find-empty { text-align: center; color: #969799; padding: 40px 16px; font-size: 14px; }

/* --- 图库 gallery --- */
.gallery-page { background: #fff; min-height: 100vh; padding-bottom: calc(50px + env(safe-area-inset-bottom, 16px)); }
.gallery-top { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: none; }
.gallery-header { display: flex; align-items: center; justify-content: center; position: relative; height: 46px; background: #07c160; color: #fff; font-size: 16px; font-weight: 600; }
.gallery-back { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #fff; text-decoration: none; font-size: 20px; line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.gallery-tabs { display: flex; background: #fff; border-bottom: 1px solid #ebedf0; }
.gallery-tab { flex: 1; text-align: center; padding: 10px 4px; font-size: 14px; color: #646566; text-decoration: none; }
.gallery-tab.active { color: #07c160; border-bottom: 2px solid #07c160; font-weight: 600; }
.gallery-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; }
.gallery-search input { flex: 1; padding: 8px 12px; border: none; border-radius: 20px; font-size: 14px; background: #f7f8fa; outline: none; }
.gallery-search button { padding: 0 4px; background: none; border: none; color: #07c160; font-size: 14px; font-weight: 600; white-space: nowrap; }
.gallery-body { display: flex; align-items: flex-start; background: #fff; }
.gallery-index { flex: 0 0 28px; width: 28px; padding: 8px 0 20px; background: #fff; position: sticky; top: 118px; align-self: flex-start; max-height: calc(100vh - 210px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gallery-index a { display: block; text-align: center; padding: 3px 0; font-size: 11px; line-height: 1.2; color: #323233; text-decoration: none; font-weight: 500; }
.gallery-index a.active { color: #ee0a24; font-weight: 700; font-size: 12px; }
.gallery-list { flex: 1; min-width: 0; padding: 0 12px 20px 4px; }
.gallery-section { scroll-margin-top: 118px; }
.gallery-letter { font-size: 22px; line-height: 1; color: #07c160; font-weight: 700; padding: 14px 0 6px; }
.gallery-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #ebedf0; text-decoration: none; color: #323233; }
.gallery-item:last-child { border-bottom: none; }
.gallery-item .name { flex: 1; font-size: 15px; line-height: 1.4; padding-right: 10px; }
.gallery-item .issue { flex-shrink: 0; min-width: 36px; text-align: center; font-size: 12px; color: #969799; background: #f7f8fa; padding: 3px 8px; border-radius: 12px; }
.gallery-empty { text-align: center; color: #969799; padding: 60px 20px; font-size: 14px; }

/* --- 我的 hub --- */
.mine-page { background: #f7f8fa; min-height: 100vh; padding-bottom: calc(50px + env(safe-area-inset-bottom, 16px)); }
.mine-head { background: linear-gradient(180deg, #07c160, #06ae56); padding: 24px 16px 40px; color: #fff; }
.mine-user { display: flex; align-items: center; gap: 12px; }
.mine-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-name { font-size: 18px; font-weight: 600; }
.mine-login { text-align: center; padding: 20px 0; font-size: 16px; cursor: pointer; }
.mine-panel { background: #fff; margin: -24px 12px 10px; border-radius: 12px; padding: 12px 8px 4px; box-shadow: 0 2px 12px rgba(100,101,102,.08); }
.mine-section { background: #fff; margin: 0 12px 10px; border-radius: 12px; padding: 12px 8px 4px; box-shadow: 0 2px 12px rgba(100,101,102,.06); }
.mine-section h3 { font-size: 15px; padding: 0 8px 10px; margin: 0; color: #323233; border-left: 3px solid #07c160; padding-left: 8px; }
.mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; }
.mine-item { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; text-decoration: none; color: #323233; font-size: 11px; text-align: center; }
.mine-item .icon { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.mine-logout { display: block; text-align: center; margin: 16px; color: #969799; font-size: 14px; text-decoration: none; }

/* --- 寻宝 website --- */
.website-page { background: #f7f8fa; min-height: 100vh; padding-bottom: calc(50px + env(safe-area-inset-bottom, 16px)); }
.website-head { background: linear-gradient(180deg, #07c160 0%, #06ae56 100%); padding: 0 0 12px; position: sticky; top: 0; z-index: 30; }
.website-navcol { display: flex; justify-content: center; gap: 48px; padding: 14px 0 10px; }
.website-navcol a { font-size: 16px; color: rgba(255,255,255,.75); text-decoration: none; position: relative; padding-bottom: 8px; }
.website-navcol a.active { color: #fff; font-weight: 600; }
.website-navcol a.active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 28px; height: 3px; background: #fff; border-radius: 2px; transform: translateX(-50%); }
.website-search { display: flex; align-items: center; gap: 8px; padding: 0 12px 4px; }
.website-search input { flex: 1; border: none; border-radius: 20px; padding: 10px 14px 10px 36px; font-size: 14px; background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23969799" stroke-width="2"><circle cx="11" cy="11" r="7"/><path d="M20 20l-3-3"/></svg>') 12px center no-repeat; outline: none; }
.website-search button { border: none; background: transparent; color: #fff; font-size: 14px; font-weight: 600; padding: 0 6px; white-space: nowrap; }
.website-platform { display: flex; background: #fff; border-bottom: 1px solid #ebedf0; }
.website-platform a { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: #646566; text-decoration: none; position: relative; }
.website-platform a.active { color: #07c160; font-weight: 600; }
.website-platform a.active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 40px; height: 2px; background: #07c160; transform: translateX(-50%); }
.website-grid { display: flex; flex-wrap: wrap; padding: 10px 8px 16px; background: #fff; }
.website-item { width: 25%; padding: 6px 4px; box-sizing: border-box; text-decoration: none; color: #323233; }
.website-item .pic { border-radius: 6px; overflow: hidden; background: #f7f8fa; aspect-ratio: 135/85; display: flex; align-items: center; justify-content: center; }
.website-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.website-item .name { margin-top: 6px; font-size: 12px; text-align: center; line-height: 1.3; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.website-guarantee { padding: 10px 12px 16px; }
.website-guarantee .g-card { background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.website-guarantee .g-card img { width: 100%; display: block; background: #f7f8fa; }
.website-guarantee .g-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.website-guarantee .g-name { font-size: 15px; font-weight: 600; color: #323233; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; }
.website-guarantee .g-btn { flex-shrink: 0; border: 1px solid #07c160; color: #07c160; background: #fff; border-radius: 16px; padding: 6px 12px; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.website-empty { text-align: center; color: #969799; padding: 48px 16px; font-size: 14px; background: #fff; }

/* --- 高手之家 gszj --- */
.gszj-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.gszj-frame { flex: 1; min-height: 0; position: relative; background: #f7f8fa; }
.gszj-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.gszj-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #646566; font-size: 14px; line-height: 1.6; }
.gszj-empty p { margin: 0 0 8px; }
.center-btn.active-master .circle { background: #07c160; box-shadow: 0 3px 12px rgba(7,193,96,.35); }
.center-btn.active-master span { color: #07c160; font-weight: 600; }
a.center-btn { text-decoration: none; color: inherit; }

/* --- 底栏 SVG 图标 --- */
.nav-item .nav-icon { width: 22px; height: 22px; margin-bottom: 2px; display: flex; align-items: center; justify-content: center; }
.nav-item .nav-icon svg { width: 22px; height: 22px; fill: currentColor; }
.center-btn .circle .nav-icon svg { width: 26px; height: 26px; fill: #fff; }
.nav-item i { font-style: normal; }

/* --- 登录 auth --- */
.auth-page { min-height: 100vh; background: linear-gradient(180deg, #07c160 0%, #07c160 28%, #f7f8fa 28%); }
.auth-logo { text-align: center; padding: 28px 0 18px; color: #fff; }
.auth-logo .mark { width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #07c160; }
.auth-card { margin: 0 16px; background: #fff; border-radius: 16px 16px 0 0; padding: 20px 16px 28px; min-height: 60vh; }
.auth-tabs { display: flex; border-bottom: 1px solid #ebedf0; margin-bottom: 18px; }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 15px; color: #969799; text-decoration: none; }
.auth-tab.active { color: #07c160; font-weight: 600; border-bottom: 2px solid #07c160; margin-bottom: -1px; }
.auth-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #ebedf0; }
.auth-row label { width: 72px; font-size: 14px; color: #323233; flex-shrink: 0; }
.auth-row input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }
.auth-row .captcha-img { height: 32px; border-radius: 4px; cursor: pointer; }
.auth-links { display: flex; justify-content: space-between; padding: 14px 0 20px; font-size: 13px; }
.auth-links a { color: #07c160; text-decoration: none; }
.auth-btn { display: block; width: 100%; height: 44px; line-height: 44px; text-align: center; background: #07c160; color: #fff; border: none; border-radius: 22px; font-size: 16px; font-weight: 600; cursor: pointer; }
.auth-close { position: absolute; right: 16px; top: 16px; font-size: 24px; color: #969799; text-decoration: none; }
.auth-card-wrap { position: relative; }

/* --- 注册/忘记密码 reg --- */
.reg-page { min-height: 100vh; background: #fff; padding-bottom: 30px; }
.reg-header { display: flex; align-items: center; justify-content: center; height: 46px; background: #07c160; color: #fff; font-size: 16px; font-weight: 600; position: relative; }
.reg-back { position: absolute; left: 12px; color: #fff; text-decoration: none; font-size: 20px; }
.reg-form { padding: 8px 16px; }
.reg-row { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid #ebedf0; }
.reg-row label { width: 88px; font-size: 14px; color: #323233; flex-shrink: 0; }
.reg-row input { flex: 1; border: none; outline: none; font-size: 14px; }
.reg-row .captcha-img { height: 32px; margin-left: 8px; cursor: pointer; }
.reg-btn { display: block; margin: 28px 16px 0; height: 44px; line-height: 44px; text-align: center; background: #07c160; color: #fff; border: none; border-radius: 22px; font-size: 16px; font-weight: 600; width: calc(100% - 32px); cursor: pointer; }
.reg-tip { font-size: 12px; color: #969799; padding: 8px 16px; }

/* --- 发现详情 fd --- */
.fd-page { background: #f7f8fa; min-height: 100vh; padding-bottom: 24px; }
.fd-header { display: flex; align-items: center; justify-content: center; height: 46px; background: #fff; position: sticky; top: 0; z-index: 10; font-size: 16px; font-weight: 600; border-bottom: 1px solid #ebedf0; }
.fd-back { position: absolute; left: 12px; text-decoration: none; font-size: 20px; color: #323233; }
.fd-card { background: #fff; margin: 10px 12px; border-radius: 8px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.fd-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fd-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e8f8ef; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fd-name { font-size: 15px; font-weight: 600; color: #323233; }
.fd-time { font-size: 12px; color: #969799; margin-top: 2px; }
.fd-title { font-size: 16px; line-height: 1.5; color: #323233; margin-bottom: 10px; }
.fd-content { font-size: 14px; line-height: 1.6; color: #646566; white-space: pre-wrap; }
.fd-img img { max-width: 100%; border-radius: 8px; margin-top: 10px; display: block; }
.fd-actions { display: flex; gap: 20px; padding: 14px 12px; border-top: 1px solid #ebedf0; margin-top: 12px; }
.fd-like { border: none; background: none; font-size: 14px; color: #646566; cursor: pointer; }
.fd-like.active { color: #07c160; }

/* --- 发帖 fa --- */
.fa-page { background: #fff; min-height: 100vh; }
.fa-header { display: flex; align-items: center; justify-content: center; height: 46px; background: #07c160; color: #fff; font-size: 16px; position: relative; }
.fa-back { position: absolute; left: 12px; color: #fff; text-decoration: none; font-size: 20px; }
.fa-form { padding: 16px; }
.fa-form textarea, .fa-form input { width: 100%; box-sizing: border-box; border: 1px solid #ebedf0; border-radius: 8px; padding: 10px; font-size: 14px; margin-bottom: 12px; background: #f7f8fa; }
.fa-form textarea { min-height: 120px; resize: vertical; }
.fa-btn { display: block; width: 100%; height: 44px; background: #07c160; color: #fff; border: none; border-radius: 22px; font-size: 16px; cursor: pointer; }

/* --- 图库详情 gd --- */
.gd-page { background: #f7f8fa; min-height: 100vh; padding-bottom: 24px; }
.gd-header { display: flex; align-items: center; justify-content: center; height: 46px; background: #07c160; color: #fff; position: sticky; top: 0; z-index: 20; font-size: 16px; font-weight: 600; }
.gd-back { position: absolute; left: 12px; color: #fff; text-decoration: none; font-size: 20px; line-height: 1; }
.gd-issues { background: #fff; padding: 10px 0; border-bottom: 1px solid #ebedf0; position: sticky; top: 46px; z-index: 19; }
.gd-issues-scroll { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 12px; gap: 8px; scrollbar-width: none; }
.gd-issues-scroll::-webkit-scrollbar { display: none; }
.gd-issue { flex: 0 0 auto; min-width: 44px; height: 32px; line-height: 32px; padding: 0 10px; text-align: center; border-radius: 16px; background: #f7f8fa; color: #646566; font-size: 13px; text-decoration: none; }
.gd-issue.active { background: #07c160; color: #fff; font-weight: 600; }
.gd-card { background: #fff; margin: 10px 12px; border-radius: 8px; overflow: hidden; border: 1px solid #ebedf0; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.gd-card-hd { padding: 10px 12px; font-size: 14px; color: #323233; font-weight: 600; border-bottom: 1px solid #ebedf0; display: flex; justify-content: space-between; align-items: center; }
.gd-card-hd span { font-size: 12px; color: #969799; font-weight: 400; }
.gd-img { padding: 12px; text-align: center; background: #fff; }
.gd-img img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 0 auto; }
.gd-img-empty { padding: 40px 20px; color: #969799; font-size: 14px; text-align: center; }
.gd-balls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 14px 10px; }
.gd-ball-item { text-align: center; width: 42px; }
.gd-ball { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; margin: 0 auto; }
.gd-ball.red { background: linear-gradient(135deg, #ff6034, #ee0a24); }
.gd-ball.blue { background: linear-gradient(135deg, #1989fa, #0570db); }
.gd-ball.green { background: linear-gradient(135deg, #07c160, #39b54a); }
.gd-ball-label { font-size: 10px; color: #969799; margin-top: 4px; }
.gd-plus { color: #969799; font-size: 18px; }
.gd-link { display: block; text-align: center; padding: 10px; font-size: 13px; color: #07c160; text-decoration: none; border-top: 1px solid #ebedf0; }

/* --- 图库系列 gx --- */
.gx-page { background: #f7f8fa; min-height: 100vh; padding-bottom: 24px; }
.gx-header { display: flex; align-items: center; justify-content: center; height: 46px; background: #07c160; color: #fff; position: sticky; top: 0; z-index: 10; font-size: 16px; font-weight: 600; }
.gx-back { position: absolute; left: 12px; color: #fff; text-decoration: none; font-size: 20px; }
.gx-tabs { display: flex; background: #fff; border-bottom: 1px solid #ebedf0; }
.gx-tab { flex: 1; text-align: center; padding: 10px 4px; font-size: 14px; color: #646566; text-decoration: none; }
.gx-tab.active { color: #07c160; border-bottom: 2px solid #07c160; font-weight: 600; }
.gx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.gx-item { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 6px; background: #07c160; color: #fff; font-size: 14px; border-radius: 20px; text-decoration: none; text-align: center; line-height: 1.3; }
.gx-item:active { opacity: .88; }

/* --- 图库 tuku --- */
.tuku-page { background: #fff; min-height: 100vh; padding-bottom: 24px; }
.tuku-sticky { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #ebedf0; }
.tuku-header { display: flex; align-items: center; justify-content: center; height: 46px; position: relative; font-size: 16px; font-weight: 600; color: #323233; }
.tuku-back { position: absolute; left: 12px; color: #323233; text-decoration: none; font-size: 20px; line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.tuku-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; background: #fff; }
.tuku-search-box { flex: 1; display: flex; align-items: center; background: #f7f8fa; border-radius: 999px; padding: 0 12px; height: 36px; border: none; }
.tuku-color { position: relative; flex-shrink: 0; font-size: 14px; color: #323233; padding-right: 14px; margin-right: 8px; border-right: 1px solid #ebedf0; cursor: pointer; white-space: nowrap; user-select: none; }
.tuku-color::after { content: '▾'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 10px; color: #969799; }
.tuku-color-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 88px; background: #fff; border: 1px solid #ebedf0; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 30; overflow: hidden; }
.tuku-color-menu.open { display: block; }
.tuku-color-menu li { list-style: none; padding: 10px 14px; font-size: 14px; color: #323233; border-bottom: 1px solid #ebedf0; }
.tuku-color-menu li:last-child { border-bottom: none; }
.tuku-color-menu li.active { color: #07c160; font-weight: 600; }
.tuku-search-input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: #323233; min-width: 0; }
.tuku-search-input::placeholder { color: #c8c9cc; }
.tuku-search-btn { flex-shrink: 0; border: none; background: none; color: #07c160; font-size: 14px; font-weight: 600; padding: 0 4px; cursor: pointer; }
.tuku-grid { display: flex; gap: 8px; padding: 8px 12px 0; align-items: flex-start; }
.tuku-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tuku-card { display: block; text-decoration: none; color: #fff; border-radius: 6px; overflow: hidden; background: #f7f8fa; }
.tuku-card img { display: block; width: 100%; height: auto; vertical-align: top; }
.tuku-card .thumb-placeholder { aspect-ratio: 3/4; background: linear-gradient(180deg, #e8ecef, #dfe4e8); display: flex; align-items: center; justify-content: center; color: #969799; font-size: 12px; padding: 12px; text-align: center; line-height: 1.4; }
.tuku-card .title { background: rgba(0,0,0,.55); padding: 8px 6px; font-size: 12px; line-height: 1.35; text-align: center; word-break: break-all; }
.tuku-empty { text-align: center; color: #969799; padding: 60px 20px; font-size: 14px; }
.tuku-load { text-align: center; padding: 16px; color: #969799; font-size: 13px; }
.tuku-load.done { color: #c8c9cc; }

/* --- 资料大全 cp --- */
.cp-page { background: #f7f8fa; min-height: 100vh; padding-bottom: 24px; }
.cp-top { background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #ebedf0; }
.cp-header { display: flex; align-items: center; justify-content: center; height: 46px; position: relative; font-size: 16px; font-weight: 600; color: #323233; }
.cp-header-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; padding: 0 80px; }
.cp-back { position: absolute; left: 12px; color: #323233; text-decoration: none; font-size: 20px; line-height: 1; }
.cp-year-label { position: absolute; right: 14px; font-size: 14px; color: #07c160; cursor: pointer; background: none; border: none; padding: 0; }
.cp-actions { position: absolute; right: 8px; display: flex; gap: 4px; }
.cp-action-btn { background: none; border: none; color: #07c160; font-size: 13px; padding: 4px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cp-action-btn span { font-size: 11px; color: #646566; }
.cp-banner { background: linear-gradient(90deg, #1989fa, #4dabf7); color: #fff; text-align: center; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.cp-search { display: flex; gap: 8px; padding: 8px 12px; background: #f7f8fa; align-items: center; }
.cp-search input { flex: 1; border: none; background: #fff; border-radius: 20px; padding: 8px 14px; font-size: 14px; outline: none; }
.cp-search button { border: none; background: transparent; color: #07c160; font-size: 14px; cursor: pointer; white-space: nowrap; padding: 0 4px; }
.cp-types { display: flex; gap: 8px; padding: 8px 12px; background: #fff; overflow-x: auto; border-bottom: 1px solid #ebedf0; }
.cp-type { padding: 6px 14px; border-radius: 16px; background: #f7f8fa; color: #646566; text-decoration: none; font-size: 13px; white-space: nowrap; }
.cp-type.active { background: #07c160; color: #fff; }
.cp-cat-grid { display: flex; flex-wrap: wrap; padding: 8px 6px 16px; }
.cp-cat-item { width: 33.333%; padding: 6px; box-sizing: border-box; text-decoration: none; color: #323233; }
.cp-cat-inner { background: #fff; border: 1px solid #e8f8ef; border-radius: 8px; padding: 14px 8px; text-align: center; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; line-height: 1.35; word-break: break-all; }
.cp-cat-inner:active { background: #f0faf4; }
.cp-empty { text-align: center; color: #969799; padding: 60px 20px; width: 100%; }
.cp-year-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100; align-items: flex-end; }
.cp-year-mask.show { display: flex; }
.cp-year-sheet { width: 100%; max-width: 480px; background: #fff; border-radius: 12px 12px 0 0; margin: 0 auto; }
.cp-year-hd { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #ebedf0; }
.cp-year-hd button { background: none; border: none; font-size: 15px; color: #07c160; cursor: pointer; }
.cp-year-list { max-height: 240px; overflow-y: auto; padding: 8px 0; }
.cp-year-opt { padding: 12px; text-align: center; font-size: 16px; color: #646566; cursor: pointer; }
.cp-year-opt.active { color: #07c160; font-weight: 600; }
.cp-list { padding: 0 10px; }
.cp-item { background: #fff; border-radius: 8px; margin-top: 10px; padding: 12px; border: 1px solid #eef7f0; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.cp-item-hd { display: flex; gap: 10px; margin-bottom: 8px; }
.cp-avatar { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #f7f8fa; flex-shrink: 0; }
.cp-user { flex: 1; min-width: 0; }
.cp-user-name { font-size: 14px; color: #323233; font-weight: 600; margin: 0 0 4px; }
.cp-user-time { font-size: 12px; color: #969799; }
.cp-title { font-size: 15px; color: #323233; line-height: 1.5; word-break: break-all; margin-bottom: 10px; }
.cp-ops { display: flex; gap: 20px; color: #969799; font-size: 13px; }
.cp-ops span { display: inline-flex; align-items: center; gap: 4px; }
.cp-comments { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ebedf0; }
.cp-comment { font-size: 13px; color: #646566; padding: 6px 0; border-bottom: 1px solid #f7f8fa; }
.cp-comment:last-child { border-bottom: none; }
.cp-comment-meta { display: flex; justify-content: space-between; font-size: 11px; color: #c8c9cc; margin-top: 4px; }
.cp-page-nav { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.cp-page-nav a { padding: 8px 16px; background: #07c160; color: #fff; border-radius: 16px; text-decoration: none; font-size: 13px; }
.cp-page-nav a.disabled { background: #c8c9cc; pointer-events: none; }

/* --- 开奖详情 ld --- */
.ld-page { background: #f7f8fa; min-height: 100vh; padding-bottom: 30px; }
.ld-header { display: flex; align-items: center; justify-content: center; height: 46px; background: #07c160; color: #fff; position: sticky; top: 0; z-index: 10; font-size: 16px; font-weight: 600; }
.ld-back { position: absolute; left: 12px; color: #fff; text-decoration: none; font-size: 20px; }
.ld-card { background: #fff; margin: 10px 12px; border-radius: 8px; padding: 12px; border: 1px solid #e8f8ee; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.ld-card-hd { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.ld-card-hd .title { font-weight: 600; color: #323233; }
.ld-card-hd .date { color: #969799; }
.ld-balls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 10px 0; border: 1px solid #07c160; border-radius: 6px; }
.ld-ball-item { text-align: center; width: 42px; }
.ld-ball { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; margin: 0 auto; }
.ld-ball.red { background: linear-gradient(135deg, #ff6034, #ee0a24); }
.ld-ball.blue { background: linear-gradient(135deg, #1989fa, #0570db); }
.ld-ball.green { background: linear-gradient(135deg, #07c160, #39b54a); }
.ld-ball-label { font-size: 10px; color: #969799; margin-top: 4px; }
.ld-plus { color: #969799; font-size: 18px; }
.ld-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #ebedf0; margin: 10px 12px; border-radius: 8px; overflow: hidden; }
.ld-stat { background: #fff; padding: 12px; font-size: 13px; color: #646566; }
.ld-stat b { color: #323233; margin-left: 6px; }
.ld-section { margin: 10px 12px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.ld-section-hd { padding: 10px 12px; background: #f7f8fa; font-size: 14px; color: #646566; border-bottom: 1px solid #ebedf0; }
.ld-row { display: flex; align-items: flex-start; padding: 12px; border-bottom: 1px solid #f7f8fa; font-size: 14px; line-height: 1.6; }
.ld-row:last-child { border-bottom: none; }
.ld-row .label { width: 72px; color: #969799; flex-shrink: 0; }
.ld-row .value { flex: 1; color: #323233; }
.ld-row .win { display: inline-block; background: #ee0a24; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; margin-left: 6px; }
.ld-tags { color: #646566; font-size: 13px; }
.ld-green { color: #07c160; }

/* --- 历史开奖 lh --- */
.lh-page { background: #f7f8fa; min-height: 100vh; padding-bottom: 20px; }
.lh-top { background: #07c160; color: #fff; position: sticky; top: 0; z-index: 10; }
.lh-header { display: flex; align-items: center; justify-content: center; height: 46px; position: relative; font-size: 16px; font-weight: 600; }
.lh-back { position: absolute; left: 12px; color: #fff; text-decoration: none; font-size: 20px; }
.lh-year-btn { position: absolute; right: 12px; background: rgba(255,255,255,.18); border: none; color: #fff; font-size: 14px; padding: 4px 10px; border-radius: 14px; cursor: pointer; line-height: 1.4; }
.lh-tabs { display: flex; background: #fff; }
.lh-tab { flex: 1; text-align: center; padding: 14px 0; font-size: 15px; color: #323233; text-decoration: none; font-weight: 500; }
.lh-tab.active { color: #07c160; font-weight: 600; }
.lh-types { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #ebedf0; overflow-x: auto; }
.lh-type { padding: 6px 14px; border-radius: 16px; background: #f7f8fa; color: #646566; text-decoration: none; font-size: 13px; white-space: nowrap; }
.lh-type.active { background: #07c160; color: #fff; }
.lh-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #fff; margin-top: 8px; font-size: 13px; color: #646566; }
.lh-tools { display: flex; align-items: center; gap: 4px; color: #07c160; }
.lh-tool { background: none; border: none; padding: 0; font-size: 13px; color: #969799; cursor: pointer; line-height: 1.4; }
.lh-tool.active { color: #07c160; font-weight: 600; }
.lh-tool-sep { color: #c8c9cc; user-select: none; }
.lh-list { padding: 0 12px 20px; }
.lh-item { background: #fff; border-radius: 8px; margin-top: 10px; padding: 12px; text-decoration: none; color: inherit; display: block; border: 1px solid #e8f8ee; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.lh-item-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.lh-item-hd .title { color: #323233; font-weight: 600; }
.lh-item-hd .date { color: #969799; }
.lh-balls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 8px 0; border: 1px solid #07c160; border-radius: 6px; }
.lh-ball-item { text-align: center; width: 42px; }
.lh-ball { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; margin: 0 auto; }
.lh-ball.red { background: linear-gradient(135deg, #ff6034, #ee0a24); }
.lh-ball.blue { background: linear-gradient(135deg, #1989fa, #0570db); }
.lh-ball.green { background: linear-gradient(135deg, #07c160, #39b54a); }
.lh-ball-label { font-size: 10px; color: #969799; margin-top: 4px; }
.lh-plus { color: #969799; font-size: 18px; }
.lh-empty { text-align: center; color: #969799; padding: 40px 16px; font-size: 14px; }
.lh-load { text-align: center; padding: 16px; color: #969799; font-size: 13px; }
