:root {
  --pink: #f62f85;
  --ink: #202020;
  --muted: #8d8d8d;
  --page: #f6f6f6;
  --blue: #169fe4;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #e9e9e9; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
.preview-shell { width: 100%; min-height: 100vh; display: flex; justify-content: center; }
.miniapp { position: relative; width: min(100%, 414px); height: 100vh; background: var(--page); overflow: hidden; box-shadow: 0 0 0 1px #ddd; }
.status-bar { height: 30px; background: #fff; display: flex; align-items: center; gap: 7px; padding: 0 14px; color: #666; font-size: 10px; }
.status-spacer { flex: 1; }
.page { display: none; height: calc(100vh - 84px); padding-bottom: 58px; overflow: auto; background: var(--page); }
.page.active { display: block; }
.home-topbar { height: 58px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search-box { height: 38px; display: flex; align-items: center; flex: 1; border: 1.5px solid #f3a8bd; border-radius: 21px; background: #fff; color: var(--muted); overflow: hidden; }
.search-icon { font-size: 25px; line-height: 1; margin: 0 7px 0 11px; color: #aaa; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #c6c6c6; }
.search-box button { border: 0; background: #fff; color: var(--ink); padding: 0 12px 0 5px; font-size: 14px; }
.back-button, .more-button { border: 0; background: none; color: var(--ink); padding: 0; line-height: 1; }
.back-button { font-size: 37px; width: 25px; }
.more-button { font-size: 19px; letter-spacing: 3px; width: 34px; }
.is-hidden { visibility: hidden; }
.home-content { padding: 9px 10px 16px; }
.hot-keys { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 3px 12px; }
.hot-key { border: 0; background: #fff; border-radius: 3px; color: #333; padding: 8px 11px; font-size: 12px; white-space: nowrap; }
.hot-key em { font-style: normal; color: #f3792b; margin-left: 3px; }
.home-panels { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-bottom: 2px; }
.home-panels::-webkit-scrollbar { display: none; }
.rank-panel, .hot-panel { flex: 0 0 76%; min-height: 560px; border: 1px solid #ffe5ed; border-radius: 10px; background: linear-gradient(180deg, #fff5f8, #fff 26%); padding: 15px 13px; overflow: hidden; }
.hot-panel { flex-basis: 47%; }
.rank-panel header, .hot-panel header { display: flex; justify-content: space-between; align-items: center; color: var(--pink); font-size: 15px; margin-bottom: 15px; white-space: nowrap; }
.rank-panel header button, .hot-panel header button { border: 0; background: none; color: var(--pink); font-size: 11px; padding: 0; }
.rank-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; margin-bottom: 15px; }
.rank-item b { display: grid; place-items: center; width: 18px; height: 18px; background: #f45b35; color: #fff; border-radius: 3px; font-size: 11px; }
.rank-item:nth-child(n+4) b { background: #d5d5d5; }
.rank-item strong, .rank-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item strong { font-size: 12px; font-weight: 500; }
.rank-item span { margin-top: 4px; color: #999; font-size: 10px; }
.hot-panel header strong { font-size: 13px; }
.hot-item { display: flex; gap: 7px; align-items: center; margin: 0 0 14px; min-width: 0; }
.hot-item img { width: 43px; height: 43px; border-radius: 5px; object-fit: cover; background: #eee; }
.hot-item b { align-self: flex-start; display: grid; place-items: center; width: 18px; height: 18px; background: #f45b35; color: #fff; border-radius: 3px; font-size: 11px; flex: none; }
.hot-item:nth-child(n+3) b { background: #d5d5d5; }
.hot-item div { min-width: 0; }
.hot-item strong, .hot-item span { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-item strong { font-size: 11px; font-weight: 500; }
.hot-item span { margin-top: 4px; color: #999; font-size: 10px; }
.product-feed { margin-top: 12px; background: #fff; }
.site-footer { padding: 20px 10px 10px; text-align: center; font-size: 11px; }
.site-footer a { color: #999; text-decoration: none; }
.feed-item { display: grid; grid-template-columns: 78px 1fr; gap: 13px; align-items: center; padding: 12px 10px; border-bottom: 1px solid #f0f0f0; }
.feed-item img { width: 78px; height: 78px; object-fit: cover; border-radius: 7px; background: #eee; }
.feed-item h3 { font-size: 15px; margin: 0 0 7px; line-height: 1.35; }
.feed-item p { margin: 0; color: var(--muted); font-size: 12px; }
.simple-header { height: 58px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.simple-header h1 { font-size: 23px; font-weight: 500; margin: 0; }
.message-list { padding: 10px; }
.message-card { background: #fff; margin-bottom: 10px; padding: 22px 20px 16px; }
.message-card h2 { font-size: 21px; font-weight: 500; margin: 0 0 28px; }
.message-card p { font-size: 16px; line-height: 2; margin: 0 0 4px; }
.message-more { display: flex; justify-content: space-between; color: #aaa; font-size: 15px; margin-top: 30px; }
.message-card time { display: block; text-align: center; color: #9b9b9b; font-size: 13px; margin: 18px -20px -4px; }
.message-empty { padding: 72px 20px; text-align: center; color: #999; font-size: 14px; }
.mine-content { padding-bottom: 10px; }
.profile-card { background: #fff; padding: 20px 16px 12px; }
.profile-title { color: #999; font-size: 14px; margin: 0 0 18px; }
.profile-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #f0f0f0; padding-bottom: 16px; }
.profile-row img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #eee; }
.profile-row strong { display: block; font-size: 14px; font-weight: 400; }
.profile-row small { display: block; color: #999; font-size: 11px; margin-top: 8px; }
.profile-row i { font-size: 25px; color: #999; font-style: normal; margin-left: auto; }
.account-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); padding-top: 18px; }
.account-cell { text-align: center; border-right: 1px solid #eee; }
.account-cell:last-child { border: 0; }
.account-cell strong { font-size: 15px; font-weight: 400; }
.account-cell small { display: block; color: #999; font-size: 11px; margin-top: 7px; }
.orders { margin: 10px; background: #fff; border-radius: 4px; overflow: hidden; }
.orders-head { display: flex; justify-content: space-between; padding: 14px 15px; border-bottom: 1px dashed #ddd; font-size: 13px; }
.order-icons { display: grid; grid-template-columns: repeat(5, 1fr); padding: 14px 4px 12px; }
.order-cell { text-align: center; font-size: 11px; color: #555; position: relative; }
.order-cell img { display: block; width: 25px; height: 25px; object-fit: contain; margin: 0 auto 8px; }
.order-cell b { position: absolute; top: -9px; right: 8px; background: var(--pink); color: #fff; border-radius: 10px; font-size: 9px; padding: 2px 5px; font-weight: 400; }
.ad-banner { display: block; width: calc(100% - 20px); height: 72px; object-fit: cover; margin: 10px; }
.menu-group { background: #fff; margin-top: 10px; padding: 0 16px; }
.menu-row { height: 55px; display: flex; align-items: center; border-bottom: 1px solid #eee; gap: 14px; font-size: 13px; }
.menu-row:last-child { border: 0; }
.menu-row img { width: 23px; height: 23px; object-fit: contain; }
.menu-count { margin-left: auto; color: var(--pink); font-size: 11px; }
.arrow { margin-left: auto; color: #777; font-size: 20px; }
.logout { width: 100%; height: 52px; margin-top: 10px; border: 0; background: #fff; text-align: center; color: #aaa; font-size: 13px; line-height: 52px; }
.login-panel { min-height: calc(100vh - 142px); display: flex; flex-direction: column; align-items: center; background: #fff; padding: 48px 30px 30px; }
.message-list .login-panel { min-height: calc(100vh - 142px); margin: -10px; }
.login-panel > img { width: 96px; height: 96px; object-fit: contain; }
.login-panel > p { margin: 20px 0 20px; color: #999; font-size: 14px; text-align: center; }
.phone-login-form { width: 100%; max-width: 340px; }
.login-field { display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; border-bottom: 1px solid #e8e8e8; }
.login-field span { flex: 0 0 76px; color: #555; font-size: 12px; }
.login-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 14px; background: transparent; }
.login-field input::placeholder { color: #c8c8c8; }
.captcha-row, .sms-row { display: flex; align-items: end; gap: 8px; }
.captcha-row .login-field, .sms-row .login-field { flex: 1; }
.verify-image-button { flex: 0 0 92px; height: 38px; border: 1px solid #eee; background: #fff; padding: 0; overflow: hidden; }
.verify-image-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.send-code-button { flex: 0 0 92px; height: 36px; border: 1px solid #f2a2bd; border-radius: 18px; background: #fff; color: var(--pink); font-size: 12px; }
.send-code-button:disabled, .login-submit:disabled { opacity: .55; }
.login-submit { width: 100%; height: 46px; margin-top: 24px; border: 0; border-radius: 23px; background: #11d4ae; box-shadow: 0 5px 10px rgba(0, 168, 151, .22); color: #fff; font-size: 17px; }
.login-error { min-height: 20px; margin: 10px 0 0 !important; color: #e64b55 !important; font-size: 12px !important; }
.tabbar { position: absolute; z-index: 10; bottom: 0; left: 0; right: 0; height: 54px; background: #fff; border-top: 1px solid #eee; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabbar-item { position: relative; border: 0; background: #fff; color: #111; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tabbar-item.active { color: var(--blue); }
.tab-icon { display: block; width: 24px; height: 24px; position: relative; }
.home-icon:before { content: ''; position: absolute; left: 4px; top: 6px; width: 15px; height: 14px; border: 2px solid currentColor; border-top: 0; border-radius: 2px; }
.home-icon:after { content: ''; position: absolute; left: 4px; top: 2px; width: 14px; height: 14px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) scale(.72); }
.message-icon:before { content: ''; position: absolute; left: 4px; top: 2px; width: 16px; height: 17px; border: 2px solid currentColor; border-radius: 50% 50% 45% 45%; }
.message-icon:after { content: ''; position: absolute; left: 9px; bottom: 1px; width: 7px; height: 7px; border-left: 2px solid currentColor; transform: skew(-25deg); }
.mine-icon:before { content: ''; position: absolute; left: 2px; top: 1px; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; }
.mine-icon:after { content: '●'; position: absolute; left: 8px; top: 1px; font-size: 10px; line-height: 20px; }
.tab-badge { position: absolute; top: 3px; right: 31%; background: var(--pink); color: #fff; border-radius: 9px; padding: 1px 5px; font-size: 9px; font-weight: 400; }
@media (min-width: 600px) { .preview-shell { padding: 24px 0; } .miniapp { min-height: 736px; height: calc(100vh - 48px); max-height: 860px; border-radius: 8px; } .page { min-height: calc(100% - 84px); overflow: auto; } .status-bar { border-radius: 8px 8px 0 0; } }
@media (max-width: 360px) { .rank-panel, .hot-panel { padding-left: 10px; padding-right: 10px; } .hot-item img { width: 37px; height: 37px; } .feed-item { grid-template-columns: 68px 1fr; } .feed-item img { width: 68px; height: 68px; } }
