:root{
  --tp-bg:#F8F9FA;
  --tp-card:#FFFFFF;
  --tp-ink:#0D1B2A;
  --tp-ink-light:#1B3A4B;
  --tp-body:#3D4F5F;
  --tp-muted:#8A95A1;
  --tp-line:#E8ECF0;
  --tp-accent:#D4782F;
  --tp-accent-light:#FFF5EB;
  --tp-blue:#2C5F7C;
  --tp-blue-bg:#EDF2F7;
  --tp-radius:14px;
  --tp-radius-sm:8px;
  --tp-shadow:0 1px 3px rgba(13,27,42,.05);
  --tp-shadow-md:0 6px 20px rgba(13,27,42,.07);
  --tp-shadow-lg:0 16px 48px rgba(13,27,42,.10);
}

html{scroll-behavior:smooth}
body{margin:0;padding:0;background:var(--tp-bg);color:var(--tp-body);font-family:var(--font);min-height:100vh;display:flex;flex-direction:column}

/* ===== Header ===== */
.tp-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid var(--tp-line)}
.tp-header-inner{max-width:1400px;margin:0 auto;padding:0 40px;height:72px;display:flex;align-items:center;gap:28px}
.tp-logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.tp-logo img{width:38px;height:38px;border-radius:8px}
.tp-logo span{font-size:16px;font-weight:700;color:var(--tp-ink);letter-spacing:.3px}
.tp-nav{margin-left:auto;display:flex;gap:6px}
.tp-nav a{padding:8px 18px;border-radius:8px;font-size:14px;color:var(--tp-muted);text-decoration:none;transition:.2s;font-weight:500}
.tp-nav a:hover{color:var(--tp-accent);background:var(--tp-accent-light)}
.tp-nav a.active{color:var(--tp-accent);background:var(--tp-accent-light);font-weight:700}
.tp-cta{padding:9px 24px;background:var(--tp-ink);color:#fff;border-radius:24px;font-size:13px;font-weight:700;text-decoration:none;transition:.25s;flex-shrink:0}
.tp-cta:hover{background:var(--tp-accent);transform:translateY(-1px)}

/* ===== Footer ===== */
.tp-footer{background:var(--tp-ink);margin-top:auto}
.tp-footer-inner{max-width:1400px;margin:0 auto;padding:48px 40px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.tp-footer-brand{display:flex;align-items:center;gap:12px}
.tp-footer-brand img{width:36px;height:36px;border-radius:8px}
.tp-footer-brand span{font-size:15px;font-weight:700;color:rgba(255,255,255,.9)}
.tp-footer-links{display:flex;gap:32px}
.tp-footer-links a{font-size:14px;color:rgba(255,255,255,.45);text-decoration:none;transition:.2s;font-weight:500}
.tp-footer-links a:hover{color:#F5A623}
.tp-footer-copy{font-size:13px;color:rgba(255,255,255,.3)}

/* ===== Mobile ===== */
.tp-menu-btn{display:none;background:none;border:none;color:var(--tp-ink);font-size:22px;cursor:pointer;padding:4px}
.tp-nav-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:90}
.tp-nav-overlay.show{display:block}

@media(max-width:768px){
  .tp-header-inner{padding:0 20px}
  .tp-footer-inner{flex-direction:column;text-align:center;padding:32px 20px}
  .tp-nav{display:none;position:fixed;top:72px;left:0;right:0;background:#fff;flex-direction:column;padding:16px 20px;box-shadow:var(--tp-shadow-md);z-index:95;border-bottom:1px solid var(--tp-line)}
  .tp-nav.open{display:flex}
  .tp-menu-btn{display:block;margin-left:auto}
}

/* ===== Topics List Page ===== */
/* ===== Hero ===== */
  .tp-hero{background:linear-gradient(155deg,var(--tp-ink) 0%,var(--tp-ink-light) 55%,#24506A 100%);position:relative;overflow:hidden}
  .tp-hero::before{content:"";position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50h100M50 0v100' stroke='rgba(255,255,255,.02)' stroke-width='1'/%3E%3C/svg%3E")}
  .tp-hero::after{content:"";position:absolute;right:-8%;top:-40%;width:700px;height:700px;border-radius:50%;background:radial-gradient(circle,rgba(212,120,47,.10) 0%,transparent 65%)}
  .tp-hero-inner{max-width:1400px;margin:0 auto;padding:80px 40px 60px;position:relative;z-index:1}
  .tp-hero-tag{display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:700;color:#F5A623;letter-spacing:3px;text-transform:uppercase;margin-bottom:24px}
  .tp-hero-tag::before{content:"";width:32px;height:2px;background:#F5A623}
  .tp-hero h1{font-size:44px;font-weight:800;color:#fff;line-height:1.15;margin-bottom:16px;letter-spacing:-1px;max-width:720px}
  .tp-hero h1 em{color:#F5A623;font-style:normal}
  .tp-hero-desc{font-size:17px;color:rgba(255,255,255,.65);line-height:1.8}

  /* ===== Main Layout ===== */
  .tp-main{max-width:1400px;margin:0 auto;padding:48px 40px 100px;display:grid;grid-template-columns:minmax(0, 1fr) 320px;gap:48px;width:100%;box-sizing:border-box}

  /* ===== Filter Bar ===== */
  .tp-filter{display:flex;align-items:center;gap:4px;margin-bottom:16px;flex-wrap:wrap}
  .tp-filter a{padding:6px 14px;font-size:13px;color:var(--tp-muted);text-decoration:none;transition:.2s;border-radius:6px;cursor:pointer;font-weight:500}
  .tp-filter a:hover{color:var(--tp-body);background:var(--tp-line)}
  .tp-filter a.active{color:var(--tp-ink);background:var(--tp-line);font-weight:700}

  /* ===== Article List ===== */
  .tp-list{display:flex;flex-direction:column;gap:12px;min-height:600px}

  /* Featured Article (text only) */
  .tp-featured{background:#fff;border-radius:var(--tp-radius);padding:44px 48px;box-shadow:var(--tp-shadow-md);transition:.3s;cursor:pointer;margin-bottom:20px;border:1px solid var(--tp-line)}
  .tp-featured:hover{box-shadow:var(--tp-shadow-lg);transform:translateY(-2px);border-color:transparent}
  .tp-featured-tag{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px}
  .tp-featured-tag .tag-label{padding:5px 12px;background:var(--tp-accent-light);color:var(--tp-accent);font-size:12px;font-weight:700;border-radius:6px;letter-spacing:.5px}
  .tp-featured-tag .tag-sep{color:var(--tp-muted);font-size:13px}
  .tp-featured-tag .tag-time{font-size:13px;color:var(--tp-muted)}
  .tp-featured h2{font-size:28px;font-weight:800;color:var(--tp-ink);line-height:1.35;margin-bottom:18px;letter-spacing:-.3px;transition:.2s}
  .tp-featured:hover h2{color:var(--tp-blue)}
  .tp-featured p{font-size:16px;color:var(--tp-body);line-height:1.85;margin-bottom:0}
  .tp-featured-read{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:var(--tp-accent);margin-top:24px;transition:.2s}
  .tp-featured-read::after{content:"→";transition:.2s}
  .tp-featured:hover .tp-featured-read::after{transform:translateX(4px)}

  /* Normal Article Item */
  .tp-item{background:#fff;border-radius:var(--tp-radius);padding:32px 36px;transition:.25s;cursor:pointer;border:1px solid transparent}
  .tp-item:hover{border-color:var(--tp-line);box-shadow:var(--tp-shadow-md);transform:translateY(-1px)}
  .tp-item h3{font-size:20px;font-weight:700;color:var(--tp-ink);line-height:1.45;margin-bottom:10px;letter-spacing:-.2px;transition:.2s}
  .tp-item:hover h3{color:var(--tp-blue)}
  .tp-item p{font-size:15px;color:var(--tp-body);line-height:1.75;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .tp-item-meta{display:flex;align-items:center;gap:14px;font-size:13px;color:var(--tp-muted)}
  .tp-item-meta .meta-dot{width:3px;height:3px;border-radius:50%;background:var(--tp-line)}
  .tp-item-meta .cat{font-size:12px;color:var(--tp-muted);font-weight:600}

  /* Card link wrapper */
  .tp-card-link{display:block;text-decoration:none;color:inherit}

  /* ===== Right Sidebar ===== */
  .tp-rightbar{display:flex;flex-direction:column;gap:32px;position:sticky;top:96px;height:fit-content}
  .tp-sb-block{background:#fff;border-radius:var(--tp-radius);padding:28px;box-shadow:var(--tp-shadow);border:1px solid var(--tp-line)}
  .tp-sb-block h4{font-size:15px;font-weight:800;color:var(--tp-ink);margin-bottom:20px;display:flex;align-items:center;gap:10px}
  .tp-sb-block h4::before{content:"";width:5px;height:18px;background:var(--tp-accent);border-radius:3px}

  /* Ad */
  .tp-ad{background:linear-gradient(145deg,#fff,var(--tp-accent-light));border:1px dashed var(--tp-line);border-radius:var(--tp-radius);padding:26px;text-align:center;position:relative;overflow:hidden}
  .tp-ad-title{font-size:16px;font-weight:800;color:var(--tp-ink);margin-bottom:8px}
  .tp-ad-desc{font-size:14px;color:var(--tp-body);margin-bottom:16px;line-height:1.65}
  .tp-ad-btn{display:inline-block;padding:10px 28px;background:var(--tp-ink);color:#fff;font-size:14px;font-weight:700;border-radius:24px;text-decoration:none;transition:.25s}
  .tp-ad-btn:hover{background:var(--tp-accent);transform:translateY(-1px)}

  /* Trending */
  .tp-trend-item{padding:14px 0;border-bottom:1px solid var(--tp-line);cursor:pointer;transition:.2s}
  .tp-trend-item:last-child{border-bottom:none;padding-bottom:0}
  .tp-trend-item:first-child{padding-top:0}
  .tp-trend-item:hover .tp-trend-title{color:var(--tp-accent)}
  .tp-trend-title{font-size:14px;font-weight:600;color:var(--tp-ink);line-height:1.6;margin-bottom:6px;transition:.2s}
  .tp-trend-meta{font-size:12px;color:var(--tp-muted)}

  /* Tags */
  .tp-tags{display:flex;flex-wrap:wrap;gap:8px}
  .tp-tags a{padding:8px 16px;background:var(--tp-bg);border-radius:24px;font-size:13px;color:var(--tp-body);text-decoration:none;transition:.2s;font-weight:500}
  .tp-tags a:hover{background:var(--tp-ink);color:#fff}

  /* ===== Pagination ===== */
  .tp-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:48px}
  .tp-pagination a,.tp-pagination span{padding:10px 18px;border-radius:10px;font-size:15px;color:var(--tp-body);border:1px solid var(--tp-line);background:#fff;text-decoration:none;transition:.2s;font-weight:500}
  .tp-pagination a:hover{border-color:var(--tp-blue);color:var(--tp-ink)}
  .tp-pagination .current{background:var(--tp-ink);color:#fff;border-color:var(--tp-ink);font-weight:700}
  .tp-empty{padding:60px 20px;text-align:center;background:#fff;border-radius:var(--tp-radius);border:1px solid var(--tp-line);flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;box-sizing:border-box}
  .tp-empty-icon{font-size:48px;margin-bottom:16px;opacity:.4}
  .tp-empty-text{font-size:15px;color:var(--tp-muted)}

  /* ===== Mobile ===== */
  @media(max-width:1200px){
    .tp-main{grid-template-columns:1fr}
    .tp-rightbar{display:none}
    .tp-featured{padding:32px}
    .tp-item{padding:24px}
  }
  @media(max-width:768px){
    .tp-hero-inner{padding:52px 20px 40px}
    .tp-hero h1{font-size:28px}
    .tp-hero-desc{font-size:16px}
    .tp-main{padding:32px 20px 60px}
    .tp-featured h2{font-size:21px}
    .tp-item h3{font-size:17px}
  }
