/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f5f5;
  --bg-card: #fff;
  --text: #222;
  --text-light: #666;
  --text-muted: #999;
  --accent: #e53935;
  --accent-hover: #c62828;
  --accent-green: #43a047;
  --accent-green-hover: #2e7d32;
  --border: #e0e0e0;
  --header-bg: #1a1a2e;
  --header-bg2: #16213e;
  --nav-bg: #0f3460;
  --link: #1565c0;
  --link-hover: #0d47a1;
  --tag-bg: #e3f2fd;
  --tag-text: #1565c0;
  --star: #ffc107;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.12);
  --radius: 6px;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding: 30px 0; }
.main-grid.full { grid-template-columns: 1fr; }

/* ===== Header ===== */
.site-header {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo .dot { color: var(--accent); }

.nav-main { display: flex; gap: 6px; }
.nav-main a {
  color: rgba(255,255,255,.8);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .87rem;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-main a:hover, .nav-main a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 0 14px;
  height: 34px;
  width: 220px;
  transition: background .2s;
}
.header-search:focus-within { background: rgba(255,255,255,.18); }
.header-search input {
  background: none;
  border: none;
  color: #fff;
  font-size: .85rem;
  width: 100%;
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search svg { flex-shrink: 0; margin-right: 8px; opacity: .5; }

/* ===== Sub-Nav ===== */
.sub-nav {
  background: var(--nav-bg);
  border-bottom: 3px solid var(--accent);
}
.sub-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 42px;
  overflow-x: auto;
}
.sub-nav a {
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.sub-nav a:hover, .sub-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* ===== Hero ===== */
.hero-section {
  background: linear-gradient(135deg, var(--header-bg), var(--header-bg2));
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.hero-section h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.hero-section p { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ===== Section Title ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon { color: var(--accent); }

/* ===== Picks Grid ===== */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.pick-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
}
.pick-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.pick-card .thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.pick-card .thumb.blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.pick-card .thumb.purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.pick-card .thumb.orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.pick-card .thumb.red { background: linear-gradient(135deg, #ffebee, #ffcdd2); }
.pick-card .thumb.teal { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); }
.pick-card .thumb.yellow { background: linear-gradient(135deg, #fffde7, #fff9c4); }
.pick-card .thumb.indigo { background: linear-gradient(135deg, #e8eaf6, #c5cae9); }
.pick-card .info { padding: 12px; }
.pick-card .info h3 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.pick-card .info .meta { font-size: .75rem; color: var(--text-muted); }

/* ===== App List ===== */
.app-list { margin-bottom: 36px; }
.app-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.app-item:hover { background: rgba(0,0,0,.015); }
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.app-icon.blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.app-icon.purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.app-icon.orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.app-icon.red { background: linear-gradient(135deg, #ffebee, #ffcdd2); }
.app-info { flex: 1; min-width: 0; }
.app-info h3 { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.app-info h3 a { color: var(--text); }
.app-info h3 a:hover { color: var(--link); }
.app-info p {
  font-size: .83rem; color: var(--text-light); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-weight: 500;
}
.tag.date { background: #f5f5f5; color: var(--text-muted); }
.tag.os { background: #e8f5e9; color: #2e7d32; }
.tag.type { background: #fff3e0; color: #e65100; }

/* ===== Sidebar ===== */
.sidebar .widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 20px;
}
.sidebar .widget-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.sidebar .cat-list li { margin-bottom: 2px; }
.sidebar .cat-list a {
  display: block;
  padding: 6px 10px;
  font-size: .83rem;
  color: var(--text);
  border-radius: 4px;
  transition: background .15s;
}
.sidebar .cat-list a:hover { background: var(--tag-bg); color: var(--link); }
.sidebar .popular-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar .popular-item:last-child { border-bottom: none; }
.sidebar .pop-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f5f5f5;
}
.sidebar .popular-item span { font-size: .83rem; font-weight: 500; }
.news-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-item a { font-size: .85rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 3px; }
.news-item a:hover { color: var(--link); }
.news-item p { font-size: .75rem; color: var(--text-muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,.6);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  padding: 3px 0;
  transition: color .2s;
}
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .78rem;
}
.footer-bottom span { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
}
@media (max-width: 600px) {
  .picks-grid { grid-template-columns: 1fr; }
  .nav-main { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
