/* ====== Reset & Base ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.6; color: #333; background: #f4f5f7; }
a { color: #1a1a2e; text-decoration: none; transition: color .2s; }
a:hover { color: #c0392b; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }

/* ====== Topbar ====== */
.topbar { background: #1a1a2e; color: #aaa; font-size: 12px; line-height: 36px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #aaa; margin-left: 15px; }
.topbar a:hover { color: #fff; }
.topbar-date { margin-right: 20px; }
.topbar-tip { color: #e74c3c; font-weight: 600; }

/* ====== Header ====== */
.site-header { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 20px 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.header-logo h1 { font-size: 32px; color: #c0392b; font-weight: 900; letter-spacing: 2px; }
.header-logo .logo-sub { font-size: 12px; color: #999; display: block; }
.header-search form { display: flex; }
.header-search input { width: 280px; padding: 8px 14px; border: 2px solid #ddd; border-right: none; border-radius: 4px 0 0 4px; font-size: 14px; outline: none; transition: border-color .3s; }
.header-search input:focus { border-color: #c0392b; }
.header-search button { padding: 8px 18px; background: #c0392b; color: #fff; border: none; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; font-weight: 600; }

/* ====== Navigation ====== */
.main-nav { background: #16213e; box-shadow: 0 2px 6px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 100; }
.nav-menu { display: flex; }
.nav-menu li { position: relative; }
.nav-menu a { display: block; padding: 0 22px; line-height: 44px; color: #fff; font-size: 15px; font-weight: 500; }
.nav-menu a:hover, .nav-menu .current-menu-item a { background: #c0392b; color: #fff; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; padding: 10px; cursor: pointer; }

/* ====== Hero Section ====== */
.hero-section { display: flex; gap: 15px; margin: 20px 0; min-height: 400px; }
.hero-main { flex: 2; position: relative; overflow: hidden; border-radius: 6px; background: #fff; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-image img { width: 100%; height: 400px; object-fit: cover; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 20px 20px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.hero-overlay h2 a { color: #fff; font-size: 22px; }
.hero-overlay h2 a:hover { color: #e74c3c; }
.hero-meta { margin-top: 8px; font-size: 13px; }
.hero-cat a { background: #c0392b; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12px; }
.hero-date { color: #ccc; margin-left: 10px; }
.hero-dots { position: absolute; bottom: 10px; right: 15px; display: flex; gap: 6px; }
.hero-dots .dot { width: 10px; height: 10px; background: rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; }
.hero-dots .dot.active { background: #fff; }

.hero-side { flex: 1; background: #fff; border-radius: 6px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-side-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.hero-side-item:last-child { border-bottom: none; }
.hot-num { font-size: 14px; font-weight: 700; color: #bbb; min-width: 22px; }
.hero-side-item:nth-child(-n+3) .hot-num { color: #c0392b; }
.hero-side-item a { font-size: 14px; color: #444; }
.hero-side-item a:hover { color: #c0392b; }

/* ====== Breaking News ====== */
.breaking-news { display: flex; background: #fff; border-radius: 6px; margin-bottom: 20px; overflow: hidden; border: 1px solid #e8e8e8; }
.breaking-label { background: #c0392b; color: #fff; padding: 8px 16px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.breaking-content { flex: 1; padding: 8px 15px; overflow: hidden; }
.breaking-content span { margin-right: 30px; }
.breaking-content a { color: #333; font-size: 14px; }
.breaking-content a:hover { color: #c0392b; }

/* ====== Sections ====== */
.section { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #c0392b; padding-bottom: 10px; margin-bottom: 15px; }
.section-header h3 { font-size: 18px; color: #c0392b; }
.more-link { font-size: 13px; color: #999; }
.more-link:hover { color: #c0392b; }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.grid-item { }
.grid-item h4 { margin-top: 8px; font-size: 14px; line-height: 1.4; }
.grid-item h4 a { color: #333; }
.grid-item h4 a:hover { color: #c0392b; }
.post-meta-small { font-size: 12px; color: #999; margin-top: 4px; }

/* Two column layout */
.two-col-layout { display: flex; gap: 20px; margin-bottom: 0; }
.two-col-layout .col-left, .two-col-layout .col-right { flex: 1; }

/* List vertical */
.list-vertical { }
.list-lead { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.list-lead img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.list-lead h4 { font-size: 16px; margin-bottom: 5px; }
.list-lead p { font-size: 13px; color: #888; line-height: 1.5; }
.list-item { display: flex; align-items: center; padding: 7px 0; border-bottom: 1px dashed #eee; }
.list-dot { color: #c0392b; margin-right: 8px; font-size: 12px; }
.list-item a { flex: 1; font-size: 14px; color: #444; }
.list-item a:hover { color: #c0392b; }
.list-date { font-size: 12px; color: #bbb; margin-left: 10px; }

/* ====== Page Layout ====== */
.page-layout { display: flex; gap: 25px; margin-top: 20px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

/* ====== Archive / Category ====== */
.archive-header { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.archive-header h1 { font-size: 24px; color: #1a1a2e; }
.archive-desc { color: #888; font-size: 14px; margin-top: 5px; }

.post-grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { background: #fff; border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.card-thumb { position: relative; height: 200px; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-cat { position: absolute; top: 10px; left: 10px; background: #c0392b; color: #fff; padding: 3px 12px; border-radius: 3px; font-size: 12px; }
.card-body { padding: 15px; }
.card-body h3 { font-size: 16px; margin-bottom: 8px; }
.card-body h3 a { color: #222; }
.card-body h3 a:hover { color: #c0392b; }
.card-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.card-meta span { margin-right: 12px; }
.card-excerpt { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 10px; }
.read-more { font-size: 13px; color: #c0392b; font-weight: 600; }

/* ====== Single Article ====== */
.single-article { background: #fff; border-radius: 6px; padding: 30px; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 20px; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #c0392b; }
.article-header { margin-bottom: 25px; }
.article-header h1 { font-size: 28px; color: #222; margin-bottom: 15px; }
.article-meta { font-size: 13px; color: #999; display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.article-featured-image { margin-bottom: 20px; }
.article-featured-image img { width: 100%; max-height: 450px; object-fit: cover; border-radius: 6px; }
.article-content { font-size: 16px; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 18px; }
.article-content h2, .article-content h3 { margin: 25px 0 12px; }
.article-tags { margin: 25px 0; padding: 15px 0; border-top: 1px solid #eee; }
.article-tags span { font-weight: 600; margin-right: 5px; }
.article-tags a { color: #666; font-size: 13px; background: #f0f0f0; padding: 3px 10px; border-radius: 3px; margin: 0 3px; }
.article-tags a:hover { background: #c0392b; color: #fff; }
.article-share { padding: 15px 0; border-top: 1px solid #eee; font-size: 14px; }
.article-share a { color: #c0392b; margin: 0 8px; font-weight: 600; }

/* Related */
.related-posts { margin-top: 30px; padding-top: 20px; border-top: 2px solid #c0392b; }
.related-posts h3 { font-size: 18px; margin-bottom: 15px; color: #1a1a2e; }
.related-item { }
.related-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; }
.related-item h4 { margin-top: 8px; font-size: 14px; }

/* ====== Sidebar Widgets ====== */
.widget { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 16px; color: #c0392b; border-bottom: 2px solid #c0392b; padding-bottom: 8px; margin-bottom: 12px; }
.widget-hot ul li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eee; }
.widget-hot ul li:last-child { border-bottom: none; }
.hot-rank { min-width: 22px; height: 22px; border-radius: 3px; text-align: center; line-height: 22px; font-size: 12px; font-weight: 700; color: #fff; background: #bbb; }
.hot-rank.top { background: #c0392b; }
.widget-hot ul li a { font-size: 14px; color: #444; flex: 1; }
.widget-recent ul li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.widget-recent ul li:last-child { border-bottom: none; }
.widget-recent ul li a { font-size: 14px; color: #444; }
.widget-cats ul li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.widget-cats ul li a { font-size: 14px; color: #444; }

/* ====== Pagination ====== */
.pagination { margin: 30px 0; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 2px; border: 1px solid #ddd; border-radius: 4px; color: #666; font-size: 14px; }
.pagination .page-numbers.current { background: #c0392b; color: #fff; border-color: #c0392b; }
.pagination .page-numbers:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ====== Footer ====== */
.site-footer { background: #1a1a2e; color: #aaa; margin-top: 40px; padding: 40px 0 20px; }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-widget h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-widget ul li { padding: 4px 0; }
.footer-widget a { color: #aaa; font-size: 13px; }
.footer-widget a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 13px; }

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .hero-section { flex-direction: column; }
    .hero-side { flex-direction: row; flex-wrap: wrap; }
    .hero-side-item { flex: 1; min-width: 45%; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .two-col-layout { flex-direction: column; }
    .page-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .post-grid-2col { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header-search input { width: 180px; }
    .hero-image img { height: 250px; }
    .hero-overlay h2 a { font-size: 18px; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; }
    .nav-menu.active { display: flex; }
}
@media (max-width: 480px) {
    .grid-4, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .header-search { display: none; }
}
