/*
Theme Name: CSSBUY Shipping Hub
Theme URI: https://sheetfinds.com/
Author: CSSBUY Shipping Hub
Author URI: https://sheetfinds.com/
Description: SEO-focused single-page WordPress theme for CSSBUY Shipping with 20 pre-built guide articles, prominent category buttons linking to sheetfinds.com, icon-rich UI and a light Western aesthetic. Just upload and activate.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cssbuy-shipping
Tags: blog, one-column, custom-colors, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready
*/

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --pink: #ec4899;
  --green: #10b981;
  --purple: #8b5cf6;
  --bg: #f8fafc;
  --bg-soft: #eff6ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
  --shadow-lg: 0 20px 40px -10px rgba(37,99,235,.15);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; flex-wrap: wrap; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; display: inline-flex; align-items: center; gap: 8px; }
.logo span { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-link { color: var(--text); font-weight: 500; font-size: 15px; padding: 6px 4px; }
.nav-link:hover { color: var(--primary); }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 12px 26px; font-size: 15px; font-weight: 600; border-radius: 999px; transition: all .25s ease; text-align: center; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,.4); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(245,158,11,.3); }
.btn-accent:hover { background: #d97706; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,.4); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.btn-icon svg { stroke-width: 2.4; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background:
    radial-gradient(ellipse at top right, #fef3c7 0%, transparent 45%),
    radial-gradient(ellipse at bottom left, #dbeafe 0%, transparent 50%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  text-align: center;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; opacity: .35; filter: blur(40px);
}
.hero::before { width: 280px; height: 280px; background: var(--primary-soft); top: 10%; left: -80px; }
.hero::after { width: 220px; height: 220px; background: var(--accent-soft); bottom: 5%; right: -60px; }
.hero .inner { position: relative; z-index: 2; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: #fff; color: var(--primary); font-size: 13px; font-weight: 700;
  margin-bottom: 22px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.hero .badge svg { width: 14px; height: 14px; color: var(--accent); }
.hero h1 { font-size: 52px; line-height: 1.1; font-weight: 800; letter-spacing: -1.2px; margin-bottom: 20px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--primary), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 740px; margin: 0 auto 36px; }
.cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* hero illustration row */
.hero-icons { display: flex; justify-content: center; gap: 18px; margin-top: 50px; flex-wrap: wrap; }
.hero-icon-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.hero-icon-card svg { width: 22px; height: 22px; }
.hero-icon-card .ic-blue { color: var(--primary); }
.hero-icon-card .ic-green { color: var(--green); }
.hero-icon-card .ic-amber { color: var(--accent); }
.hero-icon-card .ic-pink { color: var(--pink); }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: -45px auto 0; max-width: 980px; padding: 0 24px; position: relative; z-index: 3; }
.stat-card { background: #fff; padding: 30px 22px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .25s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--bg-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---- Sections ---- */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 660px; margin: 0 auto; }

/* ---- Category Button Section (主要分类按钮区) ---- */
.category-section { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px;
}
.category-btn {
  position: relative;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px 24px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  transition: all .3s ease;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  overflow: hidden;
}
.category-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.category-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-btn:hover::before { opacity: 1; }
.category-btn > * { position: relative; z-index: 1; }
.category-btn .ic-wrap {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-soft), var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(37,99,235,.08);
  transition: transform .3s;
}
.category-btn:hover .ic-wrap { transform: scale(1.1) rotate(-5deg); }
.category-btn .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  margin-top: 4px; opacity: .7;
}
.category-btn:hover .arrow { color: var(--primary); opacity: 1; }

/* ---- Why Choose ---- */
.bg-soft { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card { background: #fff; padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--border); transition: all .25s ease; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); }
.feature-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card .icon-wrap svg { width: 26px; height: 26px; }
.feature-card .ic-blue   { background: var(--primary-soft); color: var(--primary); }
.feature-card .ic-amber  { background: var(--accent-soft); color: var(--accent); }
.feature-card .ic-green  { background: #d1fae5; color: var(--green); }
.feature-card .ic-pink   { background: #fce7f3; color: var(--pink); }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---- Article cards ---- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card .thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 50px; position: relative; overflow: hidden; }
.article-card .thumb::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.1); }
.article-card .thumb.t1 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.article-card .thumb.t2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.article-card .thumb.t3 { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.article-card .thumb.t4 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.article-card .thumb.t5 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.article-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--bg-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; text-transform: uppercase; letter-spacing: .5px; }
.article-card h3 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); }
.article-card p { color: var(--muted); font-size: 14px; flex: 1; }
.article-card .read-more { margin-top: 14px; color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }

/* ---- Reviews ---- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.review-card { background: #fff; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border); transition: transform .25s; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-stars { color: var(--accent); margin-bottom: 12px; font-size: 16px; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 15px; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--purple)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review-author small { color: var(--muted); display: block; font-size: 12px; }

/* ---- Final CTA ---- */
.final-cta {
  background:
    radial-gradient(ellipse at top right, rgba(245,158,11,.25) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary), #1e40af);
  color: #fff; text-align: center; padding: 80px 24px; border-radius: var(--radius); margin: 50px 0;
  position: relative; overflow: hidden;
}
.final-cta::before { content: ''; position: absolute; top: -50px; left: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.05); }
.final-cta::after  { content: ''; position: absolute; bottom: -80px; right: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.05); }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { font-size: 34px; margin-bottom: 14px; color: #fff; }
.final-cta p { font-size: 17px; opacity: .9; margin-bottom: 30px; }
.final-cta .btn-primary { background: #fff; color: var(--primary); }
.final-cta .btn-primary:hover { background: #f1f5f9; color: var(--primary-hover); }
.final-cta .btn-accent { background: var(--accent); color: #fff; }

/* ---- Article page ---- */
.article-hero { background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 100%); padding: 70px 0 50px; text-align: center; position: relative; overflow: hidden; }
.article-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top, rgba(245,158,11,.1) 0%, transparent 60%); pointer-events: none; }
.article-hero .inner { position: relative; z-index: 1; }
.article-hero .tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.article-hero h1 { font-size: 40px; line-height: 1.2; max-width: 820px; margin: 0 auto 14px; letter-spacing: -.5px; }
.article-hero .meta { color: var(--muted); font-size: 14px; }
.article-body { max-width: 780px; margin: 0 auto; padding: 50px 24px; font-size: 17px; }
.article-body h2 { font-size: 26px; margin: 36px 0 16px; letter-spacing: -.3px; }
.article-body h3 { font-size: 20px; margin: 28px 0 12px; }
.article-body p { margin-bottom: 18px; color: #1e293b; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #0f172a; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 14px 22px; background: var(--bg-soft); margin: 24px 0; font-style: italic; color: #1e293b; border-radius: 0 8px 8px 0; }
.article-body .inline-cta { background: linear-gradient(135deg, var(--bg-soft), var(--accent-soft)); padding: 28px; border-radius: var(--radius); margin: 32px 0; text-align: center; border: 1px solid var(--border); }
.related-links { background: #f1f5f9; padding: 26px; border-radius: var(--radius); margin: 38px 0; border: 1px solid var(--border); }
.related-links h3 { font-size: 18px; margin-bottom: 14px; }
.related-links ul { list-style: none; margin: 0; }
.related-links li { margin-bottom: 8px; }
.related-links li::before { content: "→ "; color: var(--primary); font-weight: 700; }

/* ---- Footer ---- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; text-align: center; font-size: 13px; color: #94a3b8; }

@media (max-width: 760px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .stats { grid-template-columns: 1fr; margin-top: -25px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 26px; }
  .article-hero h1 { font-size: 28px; }
  section { padding: 56px 0; }
  .nav-link { display: none; }
}
