* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #f4f5f7; color: #333; line-height: 1.4; }
.container { max-width: 100%; margin: 0 auto; background: #fff; min-height: 100vh; }

@font-face { font-family:'ziti'; font-style: normal;font-display: swap;src: url(/public/css/weixin.woff); }        

/* 顶部导航 */
.container-fluid { max-width: 1000px; margin: 0 auto; background: #fff; min-height: 100vh; }
.notice-bar { display: flex; justify-content: space-between; background: #2c3e50; color: #fff; padding: 10px 15px; font-size: 14px; }
.nav-ico { font-size: 24px; line-height: 1; margin-bottom: 2px; }

.site-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background: #fff; }
.site-logo { height: 50px; width: 50px; object-fit: contain; }
.quick-nav { display: flex; gap: 15px; }
.quick-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: #333; font-size: 11px; }
.quick-nav img { width: 28px; height: 28px; }
.admin-bar { display: flex; flex-direction: column; gap: 5px; }

/* 公告栏 */
.notice-bar { display: flex; justify-content: space-between; background: #2c3e50; color: #fff; padding: 8px 15px; font-size: 13px; }
.notice-date { color: #a0aec0; }

/* 文字链接行 */
.text-link-bar { display: flex; gap: 12px; padding: 10px 15px; background: #fff; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid #f0f0f0; }
.text-link-bar a { display: flex; align-items: center; gap: 4px; text-decoration: none; font-size: 13px; font-weight: bold; color: #333; }
.icon-box { display: inline-flex; justify-content: center; align-items: center; width: 16px; height: 16px; border-radius: 4px; color: #fff; font-size: 10px; font-weight: normal; }
.icon-box.blue { background: #1a73e8; }
.icon-box.black { background: #000; }
.icon-box.dark { background: #333; }
.icon-box.grey { background: #999; }

/* 广告位 */
.top-banner { display: flex; gap: 10px; padding: 10px 15px; background: #f4f5f7; }
.banner-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 8px; text-decoration: none; }
.banner-item.meituan { background: #fff8e1; color: #e67e22; }
.banner-item.jd { background: #ffebee; color: #c62828; }
.banner-item img { height: 40px; width: auto; }
.banner-text { font-size: 14px; font-weight: bold; text-align: center; line-height: 1.2; }

/* 分类区域 */
.category-section { padding: 10px 15px; background: #f4f5f7; margin-bottom: 10px; }
.category-header { display: flex; align-items: center; margin-bottom: 10px; }
.cat-title { font-size: 16px; font-weight: bold; color: #333; margin-right: 15px; }
.sub-tabs { display: flex; gap: 10px; flex-grow: 1; }
.sub-tabs span { font-size: 13px; color: #666; }
.sub-tabs span.active { color: #1a73e8; font-weight: bold; }
.cat-desc { font-size: 11px; color: #999; display: none; }
@media (min-width: 600px) { .cat-desc { display: block; margin-left: auto; } }

/* 核心：紧凑三列网格 */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* 紧凑型卡片 */
.link-card { display: flex; align-items: center; background: #fff; border-radius: 6px; padding: 6px 8px; position: relative; height: 40px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); text-decoration: none; overflow: hidden;}
.card-icon { width: 20px; height: 20px; flex-shrink: 0; margin-right: 6px; border-radius: 4px; overflow: hidden; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-content { flex-grow: 1; overflow: hidden; }
.link-title { text-decoration: none; color: #333; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-weight: 500; }
.badge-top { position: absolute; top: 0; right: 0; background: #ff4d4f; color: #fff; font-size: 9px; padding: 1px 4px; border-bottom-left-radius: 4px; transform: scale(0.9); transform-origin: top right; }

/* 状态 */
.status-pending { border: 1px dashed #faad14; }
.status-reject { opacity: 0.5; }

/* 按钮（缩小版） */
.btn { padding: 4px 8px; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; text-decoration: none; display: inline-block; text-align: center;}
.btn-primary { background: #1a73e8; color: #fff; }
.btn-default { background: #f1f3f4; color: #333; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-xs { padding: 1px 4px; font-size: 10px; border-radius: 2px; border: none; cursor: pointer; }
.btn-success { background: #28a745; color: #fff; }
.btn-warning { background: #ffc107; color: #333; }

/* 管理员工具 */
.card-admin-tools { position: absolute; right: 0; bottom: 0; background: #fff; border-top-left-radius: 4px; padding: 2px; display: flex; gap: 2px; z-index: 10;}

/* 弹窗 */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fff; margin: 15% auto; padding: 20px; border-radius: 8px; width: 90%; max-width: 350px; position: relative; }
.close { position: absolute; right: 15px; top: 10px; font-size: 20px; cursor: pointer; color: #999; }
.form-input { width: 100%; padding: 8px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }

/* --- 赞助位样式 --- */
.promo-area { display: flex; gap: 10px; padding: 10px 15px; background: #f4f5f7; position: relative; }
.promo-item { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 8px; text-decoration: none; }
.promo-item.meituan { background: #fff8e1; color: #e67e22; }
.promo-item.jd { background: #ffebee; color: #c62828; }
.promo-text { font-size: 14px; font-weight: bold; text-align: center; line-height: 1.2; }

/* 赞助入驻小按钮 */
.sponsor-btn { position: absolute; right: 15px; bottom: -12px; background: #fff; border: 1px solid #ff9f43; color: #ff9f43; font-size: 11px; padding: 2px 10px; border-radius: 12px; cursor: pointer; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.2s; }
.sponsor-btn:hover { background: #ff9f43; color: #fff; }
.sponsor-card { border: 1px solid #ffb74d !important; background: #fff8e1 !important; }
.text-link-bar::-webkit-scrollbar { display: none; }