* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #f5f5f5; color: #333; }
header { background: #c0392b; color: white; padding: 16px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
header h1 { font-size: 18px; font-weight: 600; }
header a { color: white; text-decoration: none; font-size: 14px; opacity: 0.85; }
.search-box { padding: 16px 20px; background: #c0392b; padding-top: 0; }
.search-box input { width: 100%; padding: 12px 16px; border-radius: 8px; border: none; font-size: 15px; outline: none; }
.container { padding: 16px; max-width: 900px; margin: 0 auto; }
.page-title { font-size: 20px; font-weight: 700; margin: 16px 0 8px; color: #222; }
.page-subtitle { font-size: 14px; color: #666; margin-bottom: 16px; }
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: #c0392b; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media(min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: white; border-radius: 12px; padding: 20px 16px; text-align: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: transform 0.15s; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.card-icon { width: 52px; height: 52px; border-radius: 50%; background: #fdecea; color: #c0392b; font-size: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 700; }
.card h3 { font-size: 14px; font-weight: 600; color: #222; }
.card p { font-size: 12px; color: #888; margin-top: 4px; }
.paper-list { display: flex; flex-direction: column; gap: 10px; }
.paper-item { background: white; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paper-info h3 { font-size: 15px; font-weight: 600; color: #222; }
.paper-info p { font-size: 12px; color: #888; margin-top: 2px; }
.paper-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn-primary { background: #c0392b; color: white; }
.btn-outline { background: white; color: #c0392b; border: 1.5px solid #c0392b; }
.btn-share { background: #f0f0f0; color: #444; }
.ad-banner { background: #f9f9f9; border: 1px dashed #ddd; border-radius: 8px; padding: 12px; text-align: center; color: #aaa; font-size: 12px; margin: 16px 0; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.native-ad { background: #fffbe6; border: 1px solid #ffe082; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #888; }
.loading { text-align: center; padding: 40px; color: #888; font-size: 15px; }
.error-msg { text-align: center; padding: 40px; color: #c0392b; font-size: 15px; }
.search-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; z-index: 100; overflow-y: auto; display: none; }
.search-overlay.active { display: block; }
.search-overlay-header { background: #c0392b; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.search-overlay-header input { flex: 1; padding: 10px 14px; border-radius: 8px; border: none; font-size: 15px; outline: none; }
.back-btn { background: none; border: none; color: white; font-size: 22px; cursor: pointer; padding: 4px; }
footer { text-align: center; padding: 24px 16px; color: #aaa; font-size: 12px; margin-top: 32px; }
