/* ad/list.html - 样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; min-height: 100vh; padding-bottom: 70px; }
button { outline: none; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; background: none; padding: 0; margin: 0; cursor: pointer; }
button:focus, button:focus-visible, button:active { outline: none; -webkit-tap-highlight-color: transparent; }

.header { background: #006241; color: white; padding: 15px 20px; }
.header-title { font-size: 18px; font-weight: 600; text-align: center; }
.header-subtitle { font-size: 12px; opacity: 0.9; text-align: center; margin-top: 4px; }

.points-banner { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #e65100 0%, #ff6d00 100%); color: white; margin: 15px; padding: 10px 20px; border-radius: 12px;  }
.points-label { font-size: 18px; opacity: 0.9; }
.points-value { font-size: 32px; font-weight: bold; margin-top: 5px; }

.category-tabs {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 50;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border: 1px solid #eee;
    transition: all 0.2s;
}
.category-tab.active {
    background: linear-gradient(135deg, #006241 0%, #00704A 100%);
    color: white;
    border-color: transparent;
}

.doc-list {
    padding: 0;
    column-count: 2;
    column-gap: 2px;
    touch-action: pan-y;
    min-height: 50vh;
}
.doc-card {
    background: white;
    margin-bottom: 2px;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    page-break-inside: avoid;
}
.doc-card:active { opacity: 0.9; }
.doc-card-img {
    width: 100%;
    position: relative;
    background: #e8f5e9;
}
.doc-card-img img {
    width: 100%;
    height: auto;
    display: block;
}
.doc-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 40px 8px 8px;
    text-align: center;
}
.doc-card-points {
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.loading { text-align: center; padding: 60px 20px; color: #999; }
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.empty-icon { font-size: 48px; margin-bottom: 15px; }
