* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background-color: #f8f5f0; color: #333; line-height: 1.6; padding-bottom: 70px; }

.top-nav { background: #1a1a2e; color: #fff; display: flex; align-items: center; justify-content: center; padding: 10px 12px; position: sticky; top: 0; z-index: 100; max-width: 414px; margin: 0 auto; }
.logo-center { font-size: 18px; font-weight: bold; color: #d4af37; white-space: nowrap; }

.container { max-width: 414px; margin: 0 auto; padding: 0; }
.screen { background: #fff; border-radius: 8px; margin-bottom: 10px; padding: 15px 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.intent-tags-section { background: transparent; box-shadow: none; padding: 10px 0; margin-bottom: 5px; }
.intent-tags-scroll { display: flex; flex-wrap: wrap; gap: 8px; max-height: 80px; overflow-y: auto; }
.intent-tags-scroll::-webkit-scrollbar { display: none; }
.intent-tag { flex-shrink: 0; padding: 6px 12px; background: #fff; border: 1px solid #e0d5c1; border-radius: 16px; font-size: 13px; color: #666; cursor: pointer; white-space: nowrap; }
.intent-tag.active { background: #d4af37; color: #fff; border-color: #d4af37; font-weight: bold; }

.section-header { margin-bottom: 12px; }
.section-title { font-size: 18px; font-weight: bold; color: #1a1a2e; margin-bottom: 2px; }
.section-desc { font-size: 12px; color: #999; }

.bounty-banner { display: flex; align-items: center; background: linear-gradient(135deg, #fff9e6, #f0e6d3); border-radius: 8px; padding: 12px; margin-bottom: 15px; border: 1px solid #d4af37; }
.bounty-icon { font-size: 28px; margin-right: 10px; }
.bounty-text { flex: 1; }
.bounty-text h4 { font-size: 14px; color: #1a1a2e; margin-bottom: 4px; }
.bounty-marquee { height: 48px; overflow: hidden; position: relative; }
.marquee-content { transition: transform 0.5s ease-in-out; }
.marquee-item { height: 16px; line-height: 16px; font-size: 11px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; text-decoration: none; }
.bounty-btn-group { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; width: 120px; }
.bounty-btn { background: #d4af37; color: #1a1a2e; border: none; padding: 8px 14px; border-radius: 16px; font-size: 12px; font-weight: bold; cursor: pointer; width: 100%; text-align: center; }
.more-bounty-btn { background: #f8f5f0; color: #666; border: 2px solid #d4af37; padding: 6px 12px; border-radius: 16px; font-size: 12px; cursor: pointer; width: 100%; text-align: center; text-decoration: none; display: inline-block; }

.sub-title { font-size: 14px; font-weight: bold; color: #1a1a2e; margin: 15px 0 10px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid #f0e6d3; }
.product-card img { width: 100%; height: 120px; object-fit: cover; }
.product-header { padding: 8px; display: flex; justify-content: space-between; align-items: center; }
.product-name { font-size: 13px; color: #333; font-weight: bold; }
.product-price { font-size: 13px; color: #c41e3a; font-weight: bold; }
.product-sponsor { padding: 0 8px 8px; font-size: 11px; color: #999; }

.auction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.auction-card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid #f0e6d3; }
.auction-card img { width: 100%; height: 100px; object-fit: cover; }
.auction-info { padding: 8px; }
.auction-name { font-size: 13px; color: #333; font-weight: bold; margin-bottom: 4px; }
.auction-price { font-size: 12px; color: #c41e3a; font-weight: bold; }
.auction-time { font-size: 11px; color: #d4af37; margin-top: 2px; }

.blindbox-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.blindbox-card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid #f0e6d3; text-align: center; }
.blindbox-card img { width: 100%; height: 70px; object-fit: cover; }
.blindbox-info { padding: 6px 4px; }
.blindbox-name { font-size: 11px; color: #333; font-weight: bold; }
.blindbox-cost { font-size: 10px; color: #d4af37; margin-top: 2px; }

.quick-funcs { display: flex; gap: 10px; margin-bottom: 15px; }
.quick-func-card { flex: 1; background: #f8f5f0; border-radius: 8px; padding: 12px 8px; text-align: center; cursor: pointer; border: 1px solid #e0d5c1; }
.qf-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.qf-text { font-size: 11px; color: #666; }

.appraisal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.appraisal-card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid #f0e6d3; display: flex; }
.appraisal-card img { width: 80px; height: 80px; object-fit: cover; }
.appraisal-info { padding: 10px; display: flex; flex-direction: column; justify-content: center; }
.appraisal-name { font-size: 13px; color: #333; font-weight: bold; margin-bottom: 4px; }
.appraisal-desc { font-size: 11px; color: #999; }

.craftsman-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.craftsman-grid::-webkit-scrollbar { display: none; }
.craftsman-card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid #f0e6d3; }
.craftsman-card img { width: 100%; height: 100px; object-fit: cover; }
.craftsman-name { font-size: 13px; color: #333; font-weight: bold; padding: 8px 8px 2px; }
.craftsman-skill { font-size: 11px; color: #999; padding: 0 8px; }
.craftsman-price { font-size: 12px; color: #c41e3a; font-weight: bold; padding: 4px 8px; }
.craftsman-rating { font-size: 11px; color: #d4af37; padding: 0 8px 8px; }

.expert-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.expert-grid::-webkit-scrollbar { display: none; }
.expert-card { flex: 0 0 100px; background: #fff; border-radius: 8px; padding: 12px 8px; text-align: center; border: 1px solid #f0e6d3; text-decoration: none; color: inherit; transition: all 0.3s ease; }
.expert-card:hover { border-color: #d4af37; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2); transform: translateY(-2px); }
.expert-card:active { transform: translateY(0); }
.expert-card img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.expert-name { font-size: 12px; color: #333; font-weight: bold; margin-bottom: 2px; }
.expert-title { font-size: 10px; color: #999; margin-bottom: 6px; }
.expert-link { font-size: 11px; color: #d4af37; text-decoration: none; }

.post-list { display: flex; flex-direction: column; gap: 8px; }
.post-item { display: flex; align-items: center; padding: 12px 10px; text-decoration: none; background: #fff; border-radius: 8px; border: 1px solid #e0d5c1; }
.post-tag { display: inline-block; font-size: 11px; color: #fff; background: #d4af37; padding: 3px 8px; border-radius: 4px; margin-right: 10px; white-space: nowrap; }
.post-title { flex: 1; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-reply { font-size: 12px; color: #999; margin-left: 10px; white-space: nowrap; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.video-card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid #f0e6d3; }
.video-card img { width: 100%; height: 90px; object-fit: cover; }
.video-title { font-size: 12px; color: #333; padding: 6px 8px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-author { font-size: 11px; color: #999; padding: 0 8px 6px; }

.community-tiers { display: flex; gap: 10px; padding: 5px 0; }
.tier-item { flex: 1; display: flex; flex-direction: row; align-items: center; background: #f8f5f0; border-radius: 8px; padding: 12px 10px; text-decoration: none; border: 1px solid #e0d5c1; }
.tier-icon { font-size: 24px; margin-right: 8px; }
.tier-name { font-size: 12px; color: #333; font-weight: bold; }

.category-list { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 5px; }
.category-list::-webkit-scrollbar { display: none; }
.category-item { text-align: center; min-width: 60px; padding: 8px 6px; background: linear-gradient(135deg, #fff, #faf8f5); border-radius: 8px; border: 1px solid #f0e6d3; text-decoration: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.category-item img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-bottom: 0; }
.category-item span { font-size: 11px; color: #666; font-weight: 500; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; display: flex; justify-content: space-around; padding: 8px 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 100; max-width: 414px; margin: 0 auto; }
.nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #999; }
.nav-item.active { color: #d4af37; }
.nav-icon { font-size: 20px; margin-bottom: 2px; }
.nav-text { font-size: 10px; }

.welfare-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.welfare-scroll::-webkit-scrollbar { display: none; }
.welfare-card { flex: 0 0 140px; background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid #f0e6d3; }
.welfare-card img { width: 100%; height: 100px; object-fit: cover; }
.welfare-name { font-size: 12px; color: #333; padding: 6px 8px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welfare-price { padding: 0 8px; }
.price-free { font-size: 12px; color: #e74c3c; font-weight: bold; }
.price-original { font-size: 10px; color: #999; text-decoration: line-through; margin-left: 4px; }
.welfare-count { font-size: 10px; color: #666; padding: 2px 8px 6px; }

.gameplay-link { text-decoration: none; display: block; }
.gameplay-flow { background: linear-gradient(135deg, #faf8f5, #f0e6d3); border-radius: 12px; padding: 15px 10px; }
.gameplay-title { font-size: 16px; font-weight: bold; color: #1a1a2e; text-align: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #d4af37; }
.flow-steps { display: flex; align-items: center; justify-content: space-between; }
.flow-step { flex: 1; text-align: center; }
.flow-icon { font-size: 28px; margin-bottom: 6px; }
.flow-title { font-size: 13px; color: #333; font-weight: bold; margin-bottom: 4px; }
.flow-desc { font-size: 10px; color: #666; }
.flow-arrow { font-size: 20px; color: #d4af37; padding: 0 5px; }

.activity-header { display: flex; align-items: center; gap: 10px; }
.activity-header .section-title { flex-shrink: 0; margin-bottom: 0; }

.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-header-row .sub-title { margin-bottom: 0; }
.section-header-row .section-title { margin-bottom: 0; }
.view-more-link { font-size: 12px; color: #d4af37; text-decoration: none; }
.activity-tags-scroll { display: flex; gap: 10px; overflow-x: auto; flex: 1; }
.activity-tags-scroll::-webkit-scrollbar { display: none; }
.activity-tag { flex-shrink: 0; padding: 6px 14px; background: linear-gradient(135deg, #d4af37, #c9a227); color: #fff; border-radius: 16px; font-size: 12px; text-decoration: none; font-weight: bold; }

.invite-banner { display: block; background: linear-gradient(135deg, #d4af37, #c9a227); border-radius: 12px; padding: 20px; text-align: center; text-decoration: none; color: #fff; }
.invite-banner h3 { font-size: 18px; margin-bottom: 8px; }
.invite-banner p { font-size: 13px; margin-bottom: 12px; opacity: 0.9; }
.invite-btn { display: inline-block; background: #fff; color: #d4af37; padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: bold; }

.footer { background: #1a1a2e; padding: 20px 15px 80px; margin-top: 20px; max-width: 414px; margin-left: auto; margin-right: auto; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 15px; }
.footer-section { flex: 1; }
.footer-section h4 { font-size: 13px; color: #d4af37; margin-bottom: 8px; }
.footer-section p { font-size: 11px; color: #ccc; margin-bottom: 4px; }
.footer-section img { width: 60px; height: 60px; }
.footer-copyright { text-align: center; font-size: 11px; color: #999; padding-top: 15px; border-top: 1px solid #333; }

.float-btn { position: fixed; top: 70%; transform: translateY(-50%); right: 0; display: flex; align-items: center; gap: 4px; background: rgba(236, 188, 29, 0.55); backdrop-filter: blur(4px); color: #1a1a2e; padding: 10px 12px 10px 16px; border-radius: 20px 0 0 20px; box-shadow: -2px 2px 8px rgba(0,0,0,0.2); cursor: pointer; z-index: 99; font-size: 13px; font-weight: bold; }
@media (min-width: 414px) { .float-btn { right: calc(50% - 207px); } }
