@charset 'utf-8';
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Georgia', 'Times New Roman', 'SimSun', serif; background: #f4f6f8; color: #2c3e50; line-height: 1.8; }
.FL { float: left; }
.FR { float: right; }
.clear { clear: both; }
.container { width: 1160px; margin: 0 auto; }

/* Header */
.header-top { background: #2c3e50; padding: 20px 0; color: #fff; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.search-box input { padding: 8px 12px; border: 1px solid #5d6d7e; border-radius: 3px; background: #fff; color: #333; }
.search-box button { padding: 8px 16px; background: #008080; color: #fff; border: none; border-radius: 3px; cursor: pointer; }
.search-box button:hover { background: #006666; }

.header-nav { background: #34495e; border-top: 1px solid #5d6d7e; }
.nav-list { list-style: none; display: flex; padding: 0; margin: 0; }
.nav-list li { margin: 0; }
.nav-list li a { display: block; padding: 12px 24px; color: #ecf0f1; text-decoration: none; font-size: 16px; transition: background 0.3s; }
.nav-list li a:hover { background: #008080; }

/* Main Layout */
.main { display: flex; gap: 30px; margin: 30px auto; }
.content { flex: 1; }
.sidebar { width: 300px; }

/* Index list */
.index-list h2 { font-size: 24px; color: #2c3e50; border-left: 5px solid #008080; padding-left: 15px; margin-bottom: 20px; }
.post-item { display: flex; gap: 20px; background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
.post-pic { width: 160px; flex-shrink: 0; }
.post-pic img { width: 100%; height: auto; border-radius: 4px; }
.post-info h3 { margin-bottom: 8px; }
.post-info h3 a { color: #2c3e50; text-decoration: none; font-size: 20px; }
.post-info h3 a:hover { color: #008080; }
.post-meta { font-size: 13px; color: #7f8c8d; margin-bottom: 10px; }

/* Sidebar */
.side-box { background: #fff; padding: 15px; margin-bottom: 20px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
.side-box h3 { font-size: 18px; color: #2c3e50; border-bottom: 2px solid #008080; padding-bottom: 8px; margin-bottom: 12px; }
.side-item { padding: 6px 0; border-bottom: 1px dashed #ecf0f1; }
.side-item a { color: #2c3e50; text-decoration: none; }
.side-item a:hover { color: #008080; }
.side-item span { float: right; font-size: 12px; color: #7f8c8d; }

/* List page */
.list-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.list-header h2 { font-size: 24px; color: #2c3e50; border-left: 5px solid #008080; padding-left: 15px; }
.breadcrumb { font-size: 14px; color: #7f8c8d; }
.breadcrumb a { color: #008080; text-decoration: none; }
.pagination { text-align: center; margin: 30px 0; }
.pagination a { display: inline-block; padding: 8px 16px; margin: 0 4px; background: #fff; border: 1px solid #d5d8dc; border-radius: 3px; color: #2c3e50; text-decoration: none; }
.pagination a:hover { background: #008080; color: #fff; border-color: #008080; }

/* Show page */
.article-header { margin-bottom: 20px; }
.article-header h1 { font-size: 28px; color: #2c3e50; margin-bottom: 10px; }
.article-meta { font-size: 14px; color: #7f8c8d; }
.article-body { background: #fff; padding: 25px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.08); margin-bottom: 30px; }
.related-articles h3 { font-size: 20px; color: #2c3e50; border-left: 5px solid #008080; padding-left: 15px; margin-bottom: 15px; }
.related-item { padding: 8px 0; border-bottom: 1px dashed #ecf0f1; }
.related-item a { color: #2c3e50; text-decoration: none; }
.related-item a:hover { color: #008080; }
.related-item span { float: right; font-size: 13px; color: #7f8c8d; }

/* Footer */
.footer { background: #2c3e50; color: #bdc3c7; padding: 30px 0; margin-top: 30px; }
.footer-links { margin-bottom: 20px; }
.footer-links h3 { font-size: 16px; color: #ecf0f1; margin-bottom: 10px; }
.footer-links a { color: #bdc3c7; text-decoration: none; margin-right: 15px; }
.footer-links a:hover { color: #008080; }
.footer-copy { text-align: center; font-size: 14px; }
.footer-copy a { color: #008080; text-decoration: none; }
.footer-copy p { margin: 5px 0; }

/* Responsive */
@media (max-width: 1200px) {
  .container { width: 96%; }
}
@media (max-width: 768px) {
  .main { flex-direction: column; }
  .sidebar { width: 100%; }
  .post-item { flex-direction: column; }
  .post-pic { width: 100%; }
  .header-top .container { flex-direction: column; gap: 10px; }
  .nav-list { flex-wrap: wrap; }
}