*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a6ef5;
  --blue-dark: #1558c7;
  --blue-light: #e8f0fe;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --radius: 10px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; height: 64px; gap: 40px; }
.logo { font-size: 1.2rem; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 8px; }
.main-nav { display: flex; gap: 8px; margin-left: auto; }
.main-nav a { padding: 6px 16px; border-radius: 6px; color: var(--text-muted); font-size: .95rem; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: var(--blue-light); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: var(--white); padding: 10px 24px; border-radius: 8px; font-weight: 600; transition: background .2s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--blue); color: var(--blue); padding: 8px 18px; border-radius: 8px; font-weight: 500; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* Badges */
.badge { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.badge-new { background: #dcfce7; color: #16a34a; }
.badge-hot { background: #fee2e2; color: #dc2626; }

/* Section */
.section { padding: 60px 0; }
.section.bg-light { background: var(--bg); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; }
.view-all { color: var(--blue); font-size: .9rem; display: flex; align-items: center; gap: 4px; }

/* Package Card */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.package-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.package-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 8px; }
.supplier { font-size: .8rem; background: var(--blue-light); color: var(--blue); padding: 2px 10px; border-radius: 20px; font-weight: 500; }
.package-card h3 { font-size: 1.05rem; font-weight: 700; }
.billing-type { font-size: .85rem; color: var(--text-muted); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--blue); }
.original-price { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }
.package-card .btn-outline { margin-top: auto; }

/* Articles Grid */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.article-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s; }
.article-card:hover { box-shadow: var(--shadow-md); }
.article-card .article-img img { width: 100%; height: 160px; object-fit: cover; display: block; }
.article-card .article-info { padding: 14px; }
.article-card h4 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.article-card .date { font-size: .8rem; color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); padding: 20px 0 10px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb i { font-size: .7rem; }

/* Pagination */
.pagination { display: flex; gap: 6px; margin-top: 32px; justify-content: center; }
.pagination a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: .9rem; color: var(--text-muted); }
.pagination a.active, .pagination a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Empty */
.empty { color: var(--text-muted); text-align: center; padding: 40px 0; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 40px 0 20px; margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 24px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; color: var(--text-muted); font-size: .85rem; text-align: center; }

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 20px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .footer-content { flex-direction: column; gap: 20px; }
  .packages-grid { grid-template-columns: 1fr; }
}
