﻿/* ===== DLSM News Theme v2.0 ===== */
:root{
  --bg:#0f1625;--bg2:#1a2540;--bg3:#243050;
  --gold:#cba26b;--gold2:#e8c48a;
  --text:#e8eaf0;--text-muted:#8a9ab5;
  --border:rgba(203,162,107,0.2);
  --radius:8px;--max-w:1200px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'Noto Sans SC',sans-serif;background:var(--bg);color:var(--text);line-height:1.7;word-break:break-word;overflow-wrap:break-word}
a{color:var(--gold);text-decoration:none}
a:hover{color:var(--gold2)}
img{max-width:100%;height:auto;display:block}

/* ===== HEADER ===== */
.site-header{background:var(--bg2);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}
.header-inner{max-width:var(--max-w);margin:0 auto;padding:0 20px;height:64px;display:flex;align-items:center;gap:32px}
.site-logo,.site-logo a{font-size:1.6rem;font-weight:700;color:var(--text);letter-spacing:2px}
.site-logo span{color:var(--gold)}
.site-nav{flex:1}
.site-nav ul{display:flex;gap:8px;list-style:none}
.site-nav a{color:var(--text-muted);font-size:14px;padding:6px 14px;border-radius:4px;transition:all .2s}
.site-nav a:hover,.site-nav a.active{color:var(--text);background:var(--bg3)}
.header-cta{background:var(--gold);color:#0f1625;font-size:13px;font-weight:700;padding:8px 20px;border-radius:4px;white-space:nowrap;transition:background .2s;min-height:44px;display:flex;align-items:center}
.header-cta:hover{background:var(--gold2);color:#0f1625}

/* ===== LAYOUT ===== */
.site-main{min-height:60vh}
.page-wrap{max-width:var(--max-w);margin:0 auto;padding:40px 20px;display:grid;grid-template-columns:1fr 300px;gap:40px;align-items:start}
.section-title{font-size:1.4rem;font-weight:700;color:var(--text);border-left:4px solid var(--gold);padding-left:12px;margin-bottom:28px}

/* ===== ARTICLE CARDS ===== */
.article-list{display:flex;flex-direction:column;gap:24px}
.article-card{display:grid;grid-template-columns:260px 1fr;gap:20px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:border-color .2s}
.article-card:hover{border-color:var(--gold)}
.card-thumb img{width:260px;height:160px;object-fit:cover}
.card-body{padding:20px 20px 20px 0;display:flex;flex-direction:column;gap:10px}
.card-meta{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--text-muted)}
.cat-tag{background:rgba(203,162,107,0.15);color:var(--gold);font-size:12px;padding:2px 10px;border-radius:20px}
.card-title a{font-size:1.1rem;font-weight:700;color:var(--text);transition:color .2s}
.card-title a:hover{color:var(--gold)}
.card-intro{font-size:14px;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.read-more{font-size:13px;color:var(--gold);margin-top:auto;align-self:flex-start}
.no-content{color:var(--text-muted);padding:40px 0;text-align:center}

/* ===== PAGINATION ===== */
.pagination{margin-top:32px;display:flex;justify-content:center;gap:8px}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;background:var(--bg2);border:1px solid var(--border);border-radius:4px;color:var(--text-muted);font-size:14px;transition:all .2s}
.pagination a:hover{border-color:var(--gold);color:var(--gold)}
.pagination .current{background:var(--gold);border-color:var(--gold);color:#0f1625}

/* ===== SIDEBAR ===== */
.site-sidebar{display:flex;flex-direction:column;gap:24px;position:sticky;top:80px}
.widget{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.widget-title{font-size:1rem;font-weight:700;color:var(--text);border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:16px}
.cat-list,.recent-list{list-style:none;display:flex;flex-direction:column;gap:8px}
.cat-list a,.recent-list a{color:var(--text-muted);font-size:14px;transition:color .2s;display:block;padding:6px 0;border-bottom:1px solid rgba(255,255,255,0.05)}
.cat-list a:hover,.recent-list a:hover{color:var(--gold)}
.widget-cta{background:linear-gradient(135deg,var(--bg3),var(--bg2));text-align:center}
.widget-cta h3{color:var(--gold);margin-bottom:10px}
.widget-cta p{font-size:13px;color:var(--text-muted);margin-bottom:16px}
.cta-btn{display:inline-block;background:var(--gold);color:#0f1625;font-weight:700;padding:10px 24px;border-radius:4px;transition:background .2s;min-height:44px;line-height:44px;padding:0 24px}
.cta-btn:hover{background:var(--gold2);color:#0f1625}

/* ===== SINGLE ARTICLE ===== */
.single{grid-column:1}
.page-wrap:has(.single){grid-template-columns:1fr 300px}
.single-header{margin-bottom:24px}
.single-header h1{font-size:1.8rem;line-height:1.4;color:var(--text);margin:12px 0}
.single-meta{display:flex;gap:16px;font-size:13px;color:var(--text-muted)}
.single-thumb{width:100%;border-radius:var(--radius);margin-bottom:28px;max-height:450px;object-fit:cover}
.single-content{color:var(--text);font-size:1rem;line-height:1.9}
.single-content h2,.single-content h3{color:var(--gold);margin:28px 0 12px}
.single-content p{margin-bottom:16px}
.single-content img{border-radius:4px;margin:16px 0}
.risk-disclaimer{margin-top:40px;padding:16px;background:rgba(203,162,107,0.08);border-left:3px solid var(--gold);border-radius:4px;font-size:13px;color:var(--text-muted)}
.post-nav{display:flex;justify-content:space-between;gap:16px;margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}
.prev-post,.next-post{font-size:14px;color:var(--text-muted);max-width:45%;transition:color .2s}
.prev-post:hover,.next-post:hover{color:var(--gold)}

/* ===== 404 ===== */
.not-found{text-align:center;padding:100px 20px}
.not-found h1{font-size:6rem;color:var(--gold);line-height:1}
.not-found h2{font-size:1.5rem;margin:16px 0 12px}
.not-found p{color:var(--text-muted);margin-bottom:32px}

/* ===== FOOTER ===== */
.site-footer{background:var(--bg2);border-top:1px solid var(--border);margin-top:60px}
.footer-inner{max-width:var(--max-w);margin:0 auto;padding:40px 20px;display:grid;grid-template-columns:1fr 1fr 2fr;gap:40px}
.footer-brand .site-logo-text{font-size:1.6rem;font-weight:700;letter-spacing:2px}
.footer-brand .site-logo-text span{color:var(--gold)}
.footer-brand p{margin-top:8px;font-size:13px;color:var(--text-muted)}
.footer-links h3{font-size:14px;font-weight:700;color:var(--text);margin-bottom:12px}
.footer-links ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.footer-links a{font-size:13px;color:var(--text-muted);transition:color .2s}
.footer-links a:hover{color:var(--gold)}
.footer-disclaimer h3{font-size:14px;font-weight:700;color:var(--text);margin-bottom:12px}
.footer-disclaimer p{font-size:12px;color:var(--text-muted);line-height:1.7}
.footer-bottom{max-width:var(--max-w);margin:0 auto;padding:16px 20px;border-top:1px solid var(--border);text-align:center;font-size:12px;color:var(--text-muted)}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .page-wrap{grid-template-columns:1fr}
  .site-sidebar{position:static}
  .article-card{grid-template-columns:1fr}
  .card-thumb img{width:100%;height:200px}
  .card-body{padding:16px}
  .footer-inner{grid-template-columns:1fr}
}
@media(max-width:640px){
  .site-nav{display:none}
  .header-inner{gap:16px}
  .header-cta{font-size:12px;padding:0 14px}
}
/* ==== NEW ARCHITECTURE STYLES ==== */

/* Hero Block */
.hero-block {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #fff;
    border-left: 4px solid #e0a96d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-content h1 {
    font-size: 2rem;
    margin: 0 0 1rem;
    color: #fff;
}
.hero-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}

/* Article Card Updates (Flexbox for Thumbnail) */
.article-list .article-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: #1a1e29;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.article-list .article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: rgba(224,169,109,0.3);
}
.card-thumb {
    flex-shrink: 0;
    width: 240px;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    display: block;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .card-thumb img {
    transform: scale(1.05);
}
.card-body {
    flex-grow: 1;
}

/* Sidebar Widgets Updates */
.widget {
    background-color: #1a1e29;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.widget-title {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.adv-item {
    background-color: rgba(255,255,255,0.05);
    color: #cbd5e1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.adv-item:hover {
    background-color: #e0a96d;
    color: #000;
}

/* Text List (Recent & Hot) */
.text-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.text-list li {
    margin-bottom: 0.75rem;
}
.text-list li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    line-height: 1.4;
    transition: color 0.3s;
}
.text-list li a:hover {
    color: #e0a96d;
}

/* Category Counts */
.cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list li a:hover { color: #e0a96d; }
.cat-count {
    font-size: 0.85rem;
    color: #64748b;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-cloud a {
    background-color: rgba(255,255,255,0.05);
    color: #cbd5e1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.tag-cloud a:hover {
    background-color: #e0a96d;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-list .article-card {
        flex-direction: column;
    }
    .card-thumb {
        width: 100%;
        height: 180px;
    }
}
