* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; background: #f5f5f5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.m-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.m-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 0 15px; height: 50px; }
.m-logo { flex-shrink: 0; font-size: 20px; font-weight: 700; color: #667eea; letter-spacing: 1px; }
.m-logo-text { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.m-search-box { flex: 1; max-width: 220px; position: relative; }
.m-search-input { width: 100%; height: 36px; background: #f5f7fa; border: 1px solid #e8e8e8; border-radius: 18px; padding: 0 60px 0 12px; font-size: 14px; color: #333; outline: none; }
.m-search-input::placeholder { color: #999; }
.m-search-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); padding: 0 14px; height: 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 15px; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; letter-spacing: 1px; }

.m-breadcrumb { background: #fff; padding: 10px 15px; font-size: 12px; color: #999; border-bottom: 1px solid #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-breadcrumb a { color: #666; }
.m-breadcrumb span { color: #999; }

.m-topic-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 20px 15px; position: relative; overflow: hidden; }
.m-topic-bg { position: absolute; top: -50%; right: -20%; width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.m-topic-content { position: relative; z-index: 1; }
.m-topic-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.m-topic-intro { font-size: 13px; line-height: 1.7; opacity: 0.95; margin-bottom: 20px; }

.m-hot-chart { background: rgba(255,255,255,0.15); border-radius: 12px; padding: 15px; margin-top: 15px; }
.m-hot-chart h2 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 5px; }
.m-chart-list { display: flex; flex-direction: column; gap: 10px; }
.m-chart-item { display: flex; flex-direction: column; gap: 5px; }
.m-chart-info { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.m-chart-rank { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 11px; color: #ffd700; white-space: nowrap; }
.m-chart-title { flex: 1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.m-chart-clicks { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.m-chart-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.m-chart-bar { height: 100%; border-radius: 3px; transition: width 1s ease; }

.m-article-list { background: #fff; padding: 15px; margin-top: 10px; }
.m-article-item { border-bottom: 1px solid #f0f0f0; padding: 18px 0; }
.m-article-item:first-child { padding-top: 20px; }
.m-article-item:last-child { border-bottom: none; }
.m-article-link { display: flex; gap: 12px; }
.m-article-img { width: 100px; height: 75px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #f5f5f5; }
.m-article-img img { width: 100%; height: 100%; object-fit: cover; }
.m-article-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.m-article-title { font-size: 15px; font-weight: 600; color: #333; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: 12px; color: #666; }
.m-meta-item { background: #f5f7fa; padding: 2px 8px; border-radius: 4px; border-left: 2px solid #667eea; }
.m-meta-item em { color: #667eea; font-style: normal; font-weight: 600; }
.m-article-summary { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.m-article-stats { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #999; }
.m-hot-badge { display: flex; align-items: center; gap: 3px; background: #fff5f5; color: #ff6b6b; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.m-hot-badge i { font-size: 10px; }

/* 分页链接样式 */
/* 分页 */
#pages { background: #fff; padding: 20px 15px; text-align: center; border-top: 1px solid #eee; }
#pages a { display: inline-block; padding: 8px 14px; margin: 0 4px; background: #f5f5f5; border-radius: 6px; color: #666; font-size: 14px; min-width: 36px; }
#pages a:hover { background: #667eea; color: #fff; }
#pages select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fff; margin-left: 5px; }

.m-section-title { font-size: 16px; font-weight: 700; color: #333; padding: 15px; display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid #f0f0f0; margin: 0; }
.m-section-title i { color: #667eea; font-size: 18px; }

.m-table-section { background: #fff; margin-top: 15px; border-top: 1px solid #eee; }
.m-table-section .m-section-title { color: #333; border-bottom: 2px solid #0056b3; }
.m-table-container { padding: 0; overflow-x: auto; }
.m-table-main { width: 100%; border-collapse: collapse; font-size: 14px; }
.m-table-main thead th { background: #0056b3; color: #fff; padding: 12px 10px; text-align: center; font-weight: 600; font-size: 14px; }
.m-th-type { width: 35%; min-width: 120px; }
.m-th-title { width: 65%; }
.m-table-main tbody tr { border-bottom: 2px solid #e0e0e0; }
.m-table-main tbody tr:last-child { border-bottom: none; }
.m-table-main tbody td { padding: 14px 10px; vertical-align: middle; }
.m-col-type { background: #f5f7fa; color: #222; font-weight: 700; font-size: 14px; text-align: center; vertical-align: middle; border-right: 1px solid #ddd; }
.m-col-title { background: #fff; }
.m-col-title a { color: #0056b3; font-weight: 500; line-height: 1.5; display: block; font-size: 14px; }
.m-col-title a:hover { color: #003366; text-decoration: underline; }

.m-faq-section { background: #fff; margin-top: 10px; }
.m-faq-list { padding: 15px; }
.m-faq-item { background: #f8f9fc; border-radius: 12px; margin-bottom: 12px; overflow: hidden; border: 1px solid #eef2f6; transition: all 0.2s ease; }
.m-faq-item:last-child { margin-bottom: 0; }
.m-faq-item:active { transform: scale(0.98); }
.m-faq-q { background: #fff; padding: 16px 15px; font-weight: 700; color: #2c3e50; font-size: 15px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #eef2f6; line-height: 1.6; }
.m-faq-a { background: #f8f9fc; padding: 14px 15px; color: #5a6e8a; font-size: 13px; line-height: 1.7; display: flex; align-items: flex-start; gap: 10px; }
.m-faq-icon { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 0; }
.m-faq-q .m-faq-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; width: 26px; height: 26px; }
.m-faq-a .m-faq-icon { background: #e8f0fe; color: #667eea; width: 24px; height: 24px; font-size: 12px; }

.m-nav-section { background: #fff; margin-top: 10px; border-top: 1px solid #eee; }
.m-nav-section .m-section-title { color: #444; }
.m-nav-buttons { padding: 20px 15px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.m-nav-btn { display: block; background: #f8f9fa; border: 2px solid #e8ecf1; border-radius: 10px; padding: 16px 12px; text-align: center; font-size: 15px; color: #2c3e50; font-weight: 600; transition: all 0.2s ease; line-height: 1.4; box-shadow: 0 2px 4px rgba(0,0,0,0.03); }
.m-nav-btn:hover { background: #667eea; color: #fff; border-color: #667eea; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(102,126,234,0.2); }
.m-nav-btn:active { transform: translateY(0); }
.m-no-data { text-align: center; color: #999; font-size: 13px; padding: 20px; grid-column: 1 / -1; }

.m-related-section { background: #fff; margin-top: 10px; border-top: 3px solid #667eea; position: relative; }
.m-related-section::before { content: ''; position: absolute; top: -3px; left: 15px; width: 40px; height: 3px; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }
.m-related-section .m-section-title { background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%); color: #667eea; border-bottom: 2px solid #eef2ff; }
.m-related-section .m-section-title i { color: #764ba2; font-size: 20px; }
.m-tag-cloud { padding: 20px 15px; text-align: left; line-height: 2.4; background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%); }
.m-tag-cloud a { display: inline-block; margin: 0 10px 12px 0; padding: 8px 18px; font-size: 14px; color: #555; background: #fff; border-radius: 20px; border: 1px solid #d0d8e8; transition: all 0.25s ease; box-shadow: 0 2px 4px rgba(102,126,234,0.08); font-weight: 500; }
.m-tag-cloud a:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,0.25); }

.m-footer { background: #2c3e50; color: #95a5a6; padding: 25px 15px; text-align: center; margin-top: 20px; }
.m-footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 15px; }
.m-footer-links a { color: #fff; font-size: 14px; font-weight: 500; padding: 5px 10px; border-radius: 4px; transition: all 0.2s ease; }
.m-footer-links a:hover { background: rgba(255,255,255,0.1); }
.m-copyright { font-size: 12px; color: #7f8c8d; }

@media screen and (min-width: 768px) { body { max-width: 480px; margin: 0 auto; background: #e8e8e8; } .m-header, .m-breadcrumb, .m-topic-header, .m-article-list, .m-nav-section, .m-faq-section, .m-related-section, #m-pages, .m-footer { max-width: 480px; margin-left: auto; margin-right: auto; } .m-header { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; } .m-breadcrumb { margin-top: 50px; } }
@media (max-width: 375px) { .m-nav-buttons { gap: 12px; } .m-nav-btn { padding: 14px 10px; font-size: 14px; } .m-article-img { width: 90px; height: 68px; } .m-topic-header h1 { font-size: 20px; } }
@media (min-width: 414px) { .m-article-img { width: 110px; height: 82px; } }
@supports (padding-top: env(safe-area-inset-top)) { .m-header { padding-top: env(safe-area-inset-top); } .m-footer { padding-bottom: env(safe-area-inset-bottom); } }
@media (prefers-color-scheme: dark) { body { background: #1a1a1a; color: #e0e0e0; } .m-header, .m-breadcrumb, .m-topic-header, .m-article-list, .m-nav-section, .m-faq-section, .m-related-section { background: #2d2d2d; } 
.m-breadcrumb { border-bottom-color: #3d3d3d; color: #888; } .m-breadcrumb a { color: #aaa; } .m-article-item { border-bottom-color: #3d3d3d; }
 .m-article-title { color: #e0e0e0; } .m-article-summary { color: #999; } .m-meta-item { background: #3d3d3d; color: #aaa; } 
 .m-section-title { background: #2d2d2d; border-bottom-color: #3d3d3d; color: #e0e0e0; }
  .m-nav-btn { background: #3d3d3d; border-color: #4d4d4d; color: #e0e0e0; } 
  .m-faq-item { background: #3d3d3d; border-color: #4d4d4d; }
   .m-faq-q { background: #2d2d2d; color: #e0e0e0; border-bottom-color: #4d4d4d; }
    .m-faq-a { background: #3d3d3d; color: #aaa; } .m-tag-cloud a { background: #3d3d3d; border-color: #4d4d4d; color: #aaa; } 
    #m-pages { background: #2d2d2d; border-top-color: #3d3d3d; } #m-pages a { background: #3d3d3d; color: #aaa; } 
    .m-search-input { background: #3d3d3d; border-color: #4d4d4d; color: #e0e0e0; } .m-col-type { background: #3d3d3d; color: #e0e0e0; border-right-color: #4d4d4d; } .m-col-title a { color: #74b9ff; } }