/*
Theme Name: 23Business - Envato Elements Creative Hub
Theme URI: https://www.23.business
Author: 23Business Team
Author URI: https://www.23.business
Description: High-performance digital creative resources & Envato Elements assets sharing hub. Designed specifically for 3D elements, graphic templates, mockups, fonts, and motion templates. Fully responsive, clean modern UI, high-contrast readability, and Google SEO optimized.
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: 23business
*/

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-dark: #090d16;
  --bg-card: #131b2e;
  --border: #243048;
  --text-main: #ffffff;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--accent); }

/* Header & Nav */
.site-header {
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo span { color: var(--accent); }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 16px;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
}
.nav-menu a:hover, .nav-menu a.active {
  color: #fff;
  background: var(--bg-card);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, #131b2e 0%, #090d16 100%);
  padding: 50px 20px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 750px;
  margin: 0 auto 25px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
}
.pill-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Layout & Grid */
.main-wrapper {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 20px;
}
.section-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.asset-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}
.card-thumb {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: #090d16;
  overflow: hidden;
}
.card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.card-btn {
  background: rgba(37, 99, 235, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}
.card-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ========================================================
   Single Post Page & 全局高对比度正文清晰度强制优化
   ======================================================== */
.post-layout {
  max-width: 900px;
  margin: 30px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.post-header { margin-bottom: 25px; }
.post-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.post-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 15px;
  color: #ffffff;
}
.post-meta-row {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.featured-image-box {
  margin: 25px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.featured-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* 核心：无论文章内以前写了什么浅色背景或暗色文字，全部强制呈现为高清晰高亮文字！ */
.post-content {
  font-size: 16px;
  color: #f1f5f9 !important;
  line-height: 1.85;
}
.post-content p {
  color: #e2e8f0 !important;
  margin-bottom: 20px;
  font-size: 16px;
}
.post-content strong, .post-content b {
  color: #ffffff !important;
  font-weight: 700;
}
.post-content h3, .post-content h4 {
  color: #38bdf8 !important;
  font-weight: 700;
  margin: 30px 0 15px;
}

/* 强制重写文章内所有表格/卡片容器为深色高清卡片 */
.post-content div {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
}
.post-content ul, .post-content ol {
  color: #cbd5e1 !important;
  padding-left: 20px;
  margin: 15px 0;
}
.post-content li {
  margin-bottom: 8px;
  color: #cbd5e1 !important;
}
.post-content li strong {
  color: #ffffff !important;
}
.post-content a {
  color: #38bdf8 !important;
  text-decoration: underline;
}

/* Google Drive 下载专用醒目卡片 */
.post-content .embedded-download-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1px solid #2563eb !important;
  border-radius: 12px !important;
  padding: 30px 20px !important;
  text-align: center !important;
  margin: 35px 0 !important;
}
.post-content .embedded-download-box h3 {
  color: #60a5fa !important;
  font-size: 20px !important;
  margin-top: 0 !important;
}
.post-content .embedded-download-box p {
  color: #94a3b8 !important;
  font-size: 15px !important;
}
.post-content .embedded-download-box a {
  background-color: #2563eb !important;
  color: #ffffff !important;
  padding: 15px 36px !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  display: inline-block !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}
.post-content .embedded-download-box a:hover {
  background-color: #1d4ed8 !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #060911;
  padding: 50px 20px 30px;
  margin-top: 70px;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.footer-desc {
  max-width: 680px;
  font-size: 14px;
  color: var(--text-sub);
}
.footer-copy {
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .header-container { flex-direction: column; gap: 15px; }
  .nav-menu { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hero-title { font-size: 26px; }
  .post-layout { padding: 20px; }
  .post-title { font-size: 22px; }
}
