* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; background: #f5f6fa; color: #333; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 64px; padding: 0 20px; }
.logo { font-size: 22px; font-weight: 700; color: #1e80ff; margin-right: 40px; }
.logo img { height: 36px; }
.main-nav { flex: 1; display: flex; gap: 24px; }
.main-nav a { color: #666; font-size: 15px; transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: #1e80ff; }
.header-right { display: flex; gap: 12px; align-items: center; }
.header-right .user-info { color: #666; font-size: 14px; }
.btn-login { padding: 6px 16px; border: 1px solid #1e80ff; border-radius: 6px; color: #1e80ff; }
.btn-register { padding: 6px 16px; background: #1e80ff; border-radius: 6px; color: #fff; }

.main-content { max-width: 1200px; margin: 0 auto; padding: 30px 20px; min-height: calc(100vh - 200px); }

.hero-section { text-align: center; padding: 60px 20px; }
.site-title { font-size: 36px; color: #1a1a1a; margin-bottom: 10px; }
.site-slogan { color: #888; font-size: 16px; margin-bottom: 30px; }

.search-form { max-width: 640px; margin: 0 auto; }
.search-box { display: flex; gap: 10px; }
.search-box input { flex: 1; height: 48px; padding: 0 20px; border: 2px solid #1e80ff; border-radius: 24px; font-size: 16px; outline: none; }
.search-box button { padding: 0 30px; background: #1e80ff; color: #fff; border: none; border-radius: 24px; font-size: 16px; cursor: pointer; }
.search-box button:hover { background: #4096ff; }

.search-filter { display: flex; gap: 16px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.search-filter label { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #666; cursor: pointer; }
.search-filter input[type=radio] { accent-color: #1e80ff; }

.section { margin-top: 40px; }
.section-title { font-size: 20px; margin-bottom: 16px; border-left: 4px solid #1e80ff; padding-left: 12px; }

.resource-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hot-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.resource-card { background: #fff; border-radius: 10px; padding: 16px; display: flex; gap: 12px; transition: box-shadow 0.2s, transform 0.2s; border: 1px solid #eee; }
.resource-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.plat-badge { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.plat-lg { width: 56px; height: 56px; font-size: 24px; }
.card-body { flex: 1; min-width: 0; }
.card-body h3 { font-size: 15px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; gap: 12px; font-size: 12px; color: #999; flex-wrap: wrap; }

.search-section { padding-top: 20px; }
.search-info { margin: 20px 0; color: #666; font-size: 14px; }

.detail-section { background: #fff; border-radius: 12px; padding: 30px; }
.detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.detail-header h1 { font-size: 24px; }
.detail-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.info-item { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.info-item .label { color: #999; margin-right: 8px; }
.detail-desc { margin-bottom: 24px; }
.detail-desc h3 { margin-bottom: 10px; }
.detail-desc p { color: #666; line-height: 1.8; }
.detail-actions { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.btn-transfer { padding: 12px 40px; background: #1e80ff; color: #fff; border-radius: 8px; font-size: 16px; }
.btn-transfer:hover { background: #4096ff; }
.passcode-box { padding: 12px 20px; background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 8px; }
.passcode-box strong { color: #52c41a; font-size: 18px; }
.related-section { border-top: 1px solid #f0f0f0; padding-top: 24px; }

.auth-section { display: flex; justify-content: center; padding: 40px 0; }
.auth-box { background: #fff; border-radius: 12px; padding: 40px; width: 400px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.auth-box h2 { text-align: center; margin-bottom: 24px; color: #333; }
.auth-box .form-group { margin-bottom: 16px; }
.auth-box input { width: 100%; padding: 12px; border: 1px solid #d9d9d9; border-radius: 8px; font-size: 15px; }
.auth-box input:focus { border-color: #1e80ff; outline: none; }
.btn-submit { width: 100%; padding: 12px; background: #1e80ff; color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; }
.btn-submit:hover { background: #4096ff; }
.auth-link { text-align: center; margin-top: 16px; color: #999; }
.auth-link a { color: #1e80ff; }

.user-section { background: #fff; border-radius: 12px; padding: 30px; }
.user-info-box { margin-bottom: 30px; }
.info-row { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.info-row span { color: #999; margin-right: 12px; }
.user-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.user-table th, .user-table td { padding: 10px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }

.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state .empty-tip { font-size: 14px; margin-top: 8px; }
.empty-text { text-align: center; color: #999; padding: 20px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.page-btn { padding: 8px 14px; border: 1px solid #e8e8e8; border-radius: 6px; font-size: 14px; }
.page-btn:hover { border-color: #1e80ff; color: #1e80ff; }
.page-btn.active { background: #1e80ff; color: #fff; border-color: #1e80ff; }

.ad-container { max-width: 1200px; margin: 0 auto; padding: 10px 20px; }
.ad-item { text-align: center; margin-bottom: 8px; }

.site-footer { text-align: center; padding: 20px; color: #999; font-size: 14px; border-top: 1px solid #eee; background: #fff; }
.site-footer p { margin: 4px 0; }

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px; }
    .main-nav { flex: 1 1 100%; margin: 10px 0; overflow-x: auto; }
    .resource-list { grid-template-columns: 1fr; }
    .site-title { font-size: 26px; }
    .search-box input { font-size: 14px; }
    .detail-header { flex-wrap: wrap; }
}
