@import url('https://fonts.googleapis.com/css2?family=LXGW+WenKai:wght@400;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary: #2b4c7e;
  --primary-dark: #1a3356;
  --primary-light: #3d6ba8;
  --accent: #e8a838;
  --accent-hover: #d4952e;
  --cat-software: #3b82f6;
  --cat-software-bg: #eff6ff;
  --cat-software-border: #bfdbfe;
  --cat-web: #10b981;
  --cat-web-bg: #ecfdf5;
  --cat-web-border: #a7f3d0;
  --bg: #f8f6f1;
  --bg-alt: #f0ede6;
  --card: #ffffff;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --font-display: 'LXGW WenKai', serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* TOP BAR */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.7); margin-left: 16px; font-size: 12px; }
.top-bar a:hover { color: var(--accent); }
.top-bar .top-left span { margin-right: 16px; }
.top-bar .top-right { display: flex; align-items: center; gap: 4px; }

/* HEADER */
.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header .container {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--primary-dark);
  position: relative; overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  animation: logoShine 3s ease-in-out infinite;
}
@keyframes logoShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.logo-text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: #fff; white-space: nowrap; letter-spacing: 1px;
}

/* SEARCH */
.search-box { flex: 1; max-width: 520px; position: relative; }
.search-box form { display: flex; }
.search-box input {
  flex: 1; height: 40px; border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 16px; font-size: 14px;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.95);
  color: var(--text); outline: none;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.search-box button {
  height: 40px; padding: 0 20px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px; font-family: var(--font-body);
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.search-box button:hover { background: var(--accent-hover); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-body); font-weight: 500;
  cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-mall {
  background: linear-gradient(135deg, #e53e3e, #ff6b35);
  color: #fff !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 8px rgba(229,62,62,0.3);
}
.btn-mall:hover {
  background: linear-gradient(135deg, #c53030, #e55a2b);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229,62,62,0.4);
}
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

.user-info { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--primary-dark);
}
.btn-logout {
  background: none; border: none;
  color: rgba(255,255,255,0.6); cursor: pointer;
  font-size: 12px; font-family: var(--font-body); padding: 4px 8px;
}
.btn-logout:hover { color: #fff; }

/* CATEGORY NAV */
.cat-nav { background: var(--card); border-bottom: 1px solid var(--border); padding: 12px 0; }
.cat-nav .container { display: flex; gap: 12px; align-items: center; }
.cat-nav-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-right: 4px; }
.cat-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.cat-tag-software { background: var(--cat-software-bg); color: var(--cat-software); border: 1px solid var(--cat-software-border); }
.cat-tag-software:hover { background: var(--cat-software); color: #fff; }
.cat-tag-web { background: var(--cat-web-bg); color: var(--cat-web); border: 1px solid var(--cat-web-border); }
.cat-tag-web:hover { background: var(--cat-web); color: #fff; }
.cat-tag-all { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.cat-tag-all:hover, .cat-tag-all.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 48px 0 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,168,56,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59,130,246,0.1) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; text-align: center; z-index: 1; }
.hero h1 { font-family: var(--font-display); font-size: 32px; color: #fff; margin-bottom: 12px; font-weight: 700; }
.hero p { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 28px; }
.hero-cats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-cat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 24px 36px; text-align: center;
  cursor: pointer; transition: all 0.3s; text-decoration: none; min-width: 200px;
}
.hero-cat-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); color: #fff; }
.hero-cat-icon { font-size: 36px; margin-bottom: 10px; }
.hero-cat-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; font-family: var(--font-display); }
.hero-cat-count { font-size: 13px; color: rgba(255,255,255,0.6); }

/* STATS BAR */
.stats-bar { background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 0; }
.stats-bar .container { display: flex; justify-content: center; gap: 48px; }
.stat-item { text-align: center; }
.stat-num { font-size: 24px; font-weight: 700; color: #38a169; font-family: var(--font-body); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* MAIN */
.main { flex: 1; padding: 24px 0 40px; }
.main .container { display: flex; gap: 24px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* SECTION */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary);
}
.section-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text); display: flex; align-items: center; gap: 8px;
}
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.section-more { font-size: 13px; color: var(--text-secondary); }
.section-more:hover { color: var(--accent); }

/* LISTING GRID */
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.listing-card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 20px;
  transition: all 0.25s; cursor: pointer;
  position: relative; overflow: hidden;
}
.listing-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.listing-card.cat-software::before { background: var(--cat-software); }
.listing-card.cat-web::before { background: var(--cat-web); }

.listing-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.listing-title {
  font-size: 15px; font-weight: 500; color: var(--text);
  line-height: 1.4; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card:hover .listing-title { color: var(--primary); }
.listing-price { font-size: 18px; font-weight: 700; color: #e53e3e; white-space: nowrap; font-family: var(--font-display); }
.listing-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.listing-tag { font-size: 11px; padding: 2px 8px; border-radius: 3px; background: var(--bg); color: var(--text-secondary); }
.listing-card.cat-software .listing-tag { background: var(--cat-software-bg); color: var(--cat-software); }
.listing-card.cat-web .listing-tag { background: var(--cat-web-bg); color: var(--cat-web); }

.listing-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted);
  padding-top: 10px; border-top: 1px solid var(--border-light);
}
.listing-author { display: flex; align-items: center; gap: 6px; }
.listing-author-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.listing-info { display: flex; gap: 12px; }
.listing-info span { display: flex; align-items: center; gap: 3px; }

.listing-featured {
  position: absolute; top: 12px; right: -24px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 28px; transform: rotate(45deg);
}

/* SIDEBAR */
.sidebar-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; }
.sidebar-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.hot-list { list-style: none; }
.hot-list li { padding: 10px 0; border-bottom: 1px solid var(--border-light); display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.hot-list li:last-child { border-bottom: none; }
.hot-list li:hover .hot-title { color: var(--primary); }
.hot-rank { width: 20px; height: 20px; border-radius: 4px; background: var(--text-muted); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.hot-rank.top { background: var(--accent); }
.hot-title { font-size: 13px; color: var(--text); line-height: 1.4; flex: 1; }
.hot-views { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.sidebar-notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 12px; font-size: 13px; color: #92400e; line-height: 1.5; }
.sidebar-notice strong { display: block; margin-bottom: 4px; }

/* FILTER BAR */
.filter-bar { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.filter-select { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: var(--font-body); color: var(--text); background: var(--bg); cursor: pointer; outline: none; }
.filter-select:focus { border-color: var(--primary); }

/* DETAIL PAGE */
.detail-page { max-width: 800px; margin: 0 auto; }
.detail-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.detail-header { padding: 28px; border-bottom: 1px solid var(--border); }
.detail-cat { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.detail-cat.cat-software { background: var(--cat-software-bg); color: var(--cat-software); }
.detail-cat.cat-web { background: var(--cat-web-bg); color: var(--cat-web); }
.detail-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 16px; }
.detail-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; }
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-price-box { background: linear-gradient(135deg, #fff5f5, #fff); border: 1px solid #fed7d7; border-radius: var(--radius); padding: 16px 20px; margin: 20px 28px; }
.detail-price { font-size: 32px; font-weight: 700; color: #e53e3e; font-family: var(--font-display); }
.detail-price-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.detail-body { padding: 0 28px 28px; }
.detail-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 20px 0 12px; color: var(--text); }
.detail-body p { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 12px; }
.detail-body ul { margin: 8px 0 16px 20px; font-size: 15px; line-height: 1.8; }
.detail-body ul li { margin-bottom: 4px; }

.detail-contact { background: var(--bg); border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; }
.detail-contact h3 { margin-top: 0 !important; margin-bottom: 12px !important; }
.contact-info { display: flex; flex-direction: column; gap: 8px; }
.contact-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.contact-label { color: var(--text-secondary); min-width: 70px; }
.contact-value { color: var(--text); font-weight: 500; }

.detail-author-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; display: flex; align-items: center; gap: 16px; }
.detail-author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; font-family: var(--font-display); }
.detail-author-info { flex: 1; }
.detail-author-name { font-weight: 700; font-size: 16px; }
.detail-author-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* FORMS */
.form-page { display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px; min-height: calc(100vh - var(--header-height) - 200px); }
.form-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 36px; width: 100%; max-width: 460px; box-shadow: var(--shadow-sm); }
.form-card.wide { max-width: 680px; }
.form-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.form-subtitle { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-label .required { color: #e53e3e; margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-body);
  color: var(--text); background: #fff; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,76,126,0.1); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.form-footer a { color: var(--primary); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ABOUT */
.about-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 48px 0; text-align: center; color: #fff; }
.about-hero h1 { font-family: var(--font-display); font-size: 32px; margin-bottom: 12px; }
.about-hero p { color: rgba(255,255,255,0.7); font-size: 16px; max-width: 600px; margin: 0 auto; }
.about-content { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 36px; margin-top: -24px; position: relative; z-index: 1; }
.about-content h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 16px; color: var(--primary); }
.about-content p { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.about-stat-card { text-align: center; padding: 24px; background: var(--bg); border-radius: var(--radius-lg); }
.about-stat-num { font-size: 32px; font-weight: 700; color: var(--primary); font-family: var(--font-display); }
.about-stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* LEGAL */
.legal-page { max-width: 800px; margin: 0 auto; padding: 32px 20px; }
.legal-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 40px; }
.legal-card h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.legal-card .legal-update { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.legal-card h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: var(--primary); }
.legal-card p { font-size: 14px; line-height: 1.8; color: var(--text); margin-bottom: 10px; text-indent: 2em; }
.legal-card p.no-indent { text-indent: 0; }

/* FOOTER */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.6); padding: 36px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }
.footer-icp { display: flex; align-items: center; gap: 12px; }

/* BREADCRUMB */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius); font-size: 13px; border: 1px solid var(--border); color: var(--text); background: var(--card); transition: all 0.2s; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* TOAST */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--primary-dark); color: #fff; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; z-index: 1000; opacity: 0; transition: all 0.3s; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #e53e3e; }
.toast.success { background: #38a169; }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal { background: var(--card); border-radius: var(--radius-lg); padding: 28px; max-width: 400px; width: 90%; box-shadow: var(--shadow-lg); transform: scale(0.9); transition: transform 0.3s; }
.modal-overlay.show .modal { transform: scale(1); }
.modal h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 12px; }
.modal p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.4s ease-out both; }
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 1024px) { .sidebar { display: none; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .header .container { gap: 12px; }
  .logo-text { display: none; }
  .search-box { max-width: none; }
  .hero h1 { font-size: 24px; }
  .hero-cats { flex-direction: column; align-items: center; }
  .hero-cat-card { min-width: 260px; }
  .listing-grid { grid-template-columns: 1fr; }
  .stats-bar .container { gap: 24px; flex-wrap: wrap; }
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .detail-header { padding: 20px; }
  .detail-price-box { margin: 16px 20px; }
  .detail-body { padding: 0 20px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 24px; }
  .top-bar { display: none; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 20px; }
  .section-title { font-size: 17px; }
  .detail-title { font-size: 20px; }
  .detail-price { font-size: 26px; }
}

/* TRUST SECTION */
.trust-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.trust-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.trust-header { text-align: center; margin-bottom: 28px; position: relative; z-index: 1; }
.trust-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.trust-subtitle { color: rgba(255,255,255,0.65); font-size: 14px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; position: relative; z-index: 1;
}
.trust-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}
.trust-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.25);
}
.trust-icon { font-size: 32px; margin-bottom: 12px; }
.trust-card-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.trust-card-desc {
  font-size: 13px; color: rgba(255,255,255,0.6);
  line-height: 1.5; margin-bottom: 12px;
}
.trust-link {
  font-size: 12px; color: var(--accent);
  font-weight: 500; transition: color 0.2s;
}
.trust-card:hover .trust-link { color: #fff; }

@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-title { font-size: 20px; }
}
