/* === 分类信息SaaS · 设计系统 === */
/* 信任感 + 信息密度 + 移动优先 */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --text: #1f2937;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text); background: var(--gray-50); line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === Navigation === */
.nav {
    background: #fff; border-bottom: 1px solid var(--gray-200);
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1rem; height: 56px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-link { text-decoration: none; color: var(--gray-700); font-size: 0.9rem; padding: 0.4rem 0.75rem; border-radius: var(--radius); transition: all 0.15s; }
.nav-link:hover { background: var(--gray-100); color: var(--primary); }
.btn-publish { background: var(--primary); color: #fff !important; font-weight: 600; }
.btn-publish:hover { background: var(--primary-dark); }
.btn-register { background: var(--success); color: #fff !important; font-weight: 600; }

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
    color: #fff; padding: 3rem 1rem; text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.5rem; }
.hero-stats {
    display: flex; justify-content: center; gap: 2.5rem;
    margin-bottom: 1.5rem;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; opacity: 0.8; }
.hero-search {
    display: flex; max-width: 500px; margin: 0 auto 1rem;
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-md);
}
.search-input {
    flex: 1; border: none; padding: 0.8rem 1rem;
    font-size: 1rem; outline: none;
}
.search-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 0.8rem 1.5rem; font-size: 1rem; cursor: pointer;
    font-weight: 600;
}
.search-btn:hover { background: var(--primary-dark); }
.hero-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.btn-primary {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 0.6rem 1.5rem; border-radius: var(--radius);
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer; transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
    display: inline-block; background: rgba(255,255,255,0.2); color: #fff;
    padding: 0.6rem 1.5rem; border-radius: var(--radius);
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.btn-large { padding: 0.8rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; display: block; text-align: center; }

/* === Section === */
.section { max-width: var(--max-w); margin: 2rem auto; padding: 0 1rem; }
.section-alt { background: #fff; padding: 2rem 1rem; max-width: none; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.3rem; }
.see-all { text-decoration: none; color: var(--primary); font-size: 0.9rem; }

/* === Category Grid === */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.75rem; }
.category-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1rem 0.5rem; text-align: center; text-decoration: none;
    transition: all 0.15s; display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cat-icon { font-size: 1.8rem; }
.cat-name { font-size: 0.85rem; color: var(--text); }

.category-grid-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.category-card-large {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 1.5rem 1rem; text-align: center; text-decoration: none;
    transition: all 0.15s; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.category-card-large:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.cat-icon-large { font-size: 2.5rem; }
.cat-name-large { font-size: 1rem; font-weight: 600; color: var(--text); }
.cat-count { font-size: 0.8rem; color: var(--gray-500); }

/* === Product Grid === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.product-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    overflow: hidden; transition: all 0.15s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.product-card-top { border-left: 3px solid var(--warning); }
.product-link { text-decoration: none; color: inherit; display: block; }
.product-image-placeholder {
    height: 180px; background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}
.product-info { padding: 0.75rem 1rem; }
.product-category-tag {
    display: inline-block; font-size: 0.7rem; color: var(--primary);
    background: #eff6ff; padding: 0.15rem 0.5rem; border-radius: 4px;
    margin-bottom: 0.25rem;
}
.top-tag {
    display: inline-block; font-size: 0.7rem; color: #fff;
    background: var(--warning); padding: 0.15rem 0.5rem; border-radius: 4px;
}
.product-title {
    font-size: 0.95rem; font-weight: 600; line-height: 1.4;
    margin: 0.25rem 0; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { margin: 0.25rem 0; }
.price-amount {
    font-size: 1.2rem; font-weight: 700; color: var(--danger);
}
.product-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem;
}
.trust-badge { color: var(--warning); }

/* === Product Detail === */
.breadcrumb { max-width: var(--max-w); margin: 1rem auto; padding: 0 1rem; font-size: 0.85rem; color: var(--gray-500); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.product-detail-layout { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
.product-detail-main { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-detail-image { }
.product-image-large {
    height: 320px; background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
}
.product-detail-info { padding: 1.5rem; }
.product-detail-header { margin-bottom: 1rem; }
.product-category-tag-large {
    display: inline-block; font-size: 0.8rem; color: var(--primary);
    background: #eff6ff; padding: 0.2rem 0.7rem; border-radius: 4px;
}
.top-badge {
    display: inline-block; font-size: 0.8rem; color: #fff;
    background: var(--warning); padding: 0.2rem 0.7rem; border-radius: 4px;
    margin-left: 0.5rem;
}
.product-detail-title { font-size: 1.4rem; font-weight: 700; margin-top: 0.5rem; }
.product-detail-price { margin: 1rem 0; padding: 1rem; background: #fef2f2; border-radius: var(--radius); }
.price-yuan { font-size: 1.2rem; color: var(--danger); }
.price-num { font-size: 2rem; font-weight: 800; color: var(--danger); }
.product-detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.meta-row { }
.meta-label { font-size: 0.8rem; color: var(--gray-500); }
.meta-value { font-size: 0.95rem; font-weight: 500; }
.product-detail-description { border-top: 1px solid var(--gray-200); padding-top: 1rem; margin-top: 1rem; }
.product-detail-description h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.product-detail-description p { font-size: 0.95rem; line-height: 1.7; white-space: pre-wrap; }

/* Sidebar */
.product-detail-sidebar { }
.seller-card {
    background: #fff; border-radius: var(--radius); padding: 1.25rem;
    box-shadow: var(--shadow); margin-bottom: 1rem;
}
.seller-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.seller-avatar { font-size: 2rem; }
.seller-name strong { font-size: 1rem; }
.verified-badge { font-size: 0.8rem; }
.seller-stats { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.stat { text-align: center; }
.stat-val { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.stat-lbl { font-size: 0.75rem; color: var(--gray-500); }
.btn-seller-link {
    display: block; text-align: center; padding: 0.5rem;
    background: var(--gray-100); color: var(--primary); text-decoration: none;
    border-radius: var(--radius); font-size: 0.9rem;
}
.action-card { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.75rem; }
.btn-contact {
    width: 100%; padding: 0.8rem; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius); font-size: 1rem;
    cursor: pointer; font-weight: 600;
}
.btn-fav {
    width: 100%; padding: 0.8rem; background: #fff; color: var(--text);
    border: 1px solid var(--gray-200); border-radius: var(--radius);
    font-size: 1rem; cursor: pointer;
}

/* === Forms === */
.auth-container { max-width: 400px; margin: 3rem auto; padding: 0 1rem; }
.auth-card { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-form label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.form-input {
    width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
    transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-switch { text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.auth-switch a { color: var(--primary); text-decoration: none; }
.auth-note { text-align: center; margin-top: 0.5rem; font-size: 0.8rem; color: var(--gray-500); }
.alert { padding: 0.75rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

.post-container { max-width: 600px; margin: 2rem auto; padding: 0 1rem; }
.static-page { max-width: 780px; margin: 2rem auto; padding: 0 1.5rem; line-height: 1.8; color: var(--gray-700); }
.static-page h1 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.static-page h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--gray-100); }
.static-page h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.static-page p { margin-bottom: 1rem; }
.static-page ul, .static-page ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.static-page li { margin-bottom: 0.3rem; }
.static-page table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.static-page table th, .static-page table td { padding: 0.6rem 0.75rem; border: 1px solid var(--gray-100); text-align: left; }
.static-page table th { background: var(--gray-50); font-weight: 600; font-size: 0.85rem; }
.static-page code { background: var(--gray-100); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.88em; }
.static-page pre { background: #1e293b; color: #e2e8f0; padding: 1rem 1.25rem; border-radius: 8px; overflow-x: auto; font-size: 0.85rem; line-height: 1.6; }
.static-page pre code { background: none; padding: 0; color: inherit; }
.static-page .contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.static-page .contact-card { background: var(--gray-50); border-radius: var(--radius); padding: 1rem; }
.static-page .contact-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.static-page .contact-label { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.25rem; }
.static-page .contact-value { font-size: 0.9rem; font-weight: 500; word-break: break-all; }
.static-page .lead { font-size: 1.05rem; }
.post-card { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.post-card h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.post-form { display: flex; flex-direction: column; gap: 1rem; }

/* === Tables === */
.my-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.my-table th { background: var(--gray-50); padding: 0.75rem 1rem; text-align: left; font-size: 0.8rem; color: var(--gray-500); font-weight: 600; }
.my-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--gray-100); font-size: 0.9rem; }
.my-table a { color: var(--primary); text-decoration: none; }
.badge-active { color: var(--success); font-weight: 600; }
.badge-inactive { color: var(--gray-500); }
.badge-verified { color: var(--success); font-weight: 600; font-size: 0.8rem; }
.badge-admin { display: inline-block; background: #fef3c7; color: #92400e; font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 4px; margin-left: 0.5rem; }
.btn-sm {
    display: inline-block; padding: 0.3rem 0.6rem; font-size: 0.8rem;
    border-radius: 4px; border: 1px solid var(--gray-300); background: #fff;
    color: var(--text); cursor: pointer; text-decoration: none;
}
.btn-sm:hover { background: var(--gray-50); }
.btn-sm-secondary { color: var(--gray-500); }
.btn-sm-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-sm-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm-accent { background: #fff3e0; color: #e65100; border-color: #ff9800; font-weight: 600; }
.btn-sm-accent:hover { background: #ffe0b2; }

/* === Admin === */
.admin-nav { background: #1f2937; color: #fff; }
.admin-nav .nav-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; height: 50px; }
.admin-nav a { color: #d1d5db; text-decoration: none; font-size: 0.9rem; }
.admin-nav a:hover { color: #fff; }
.admin-nav .logo { color: #fff; font-weight: 700; }
.admin-content { max-width: var(--max-w); margin: 2rem auto; padding: 0 1rem; }
.admin-content h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.stat-card-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-card-label { font-size: 0.85rem; color: var(--gray-500); }
.stat-warn .stat-card-num { color: var(--warning); }
.stat-success .stat-card-num { color: var(--success); }
.admin-filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.admin-filters a { padding: 0.4rem 1rem; text-decoration: none; border-radius: var(--radius); font-size: 0.85rem; border: 1px solid var(--gray-200); color: var(--text); }
.admin-filters a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--gray-50); padding: 0.6rem 0.75rem; text-align: left; font-size: 0.8rem; color: var(--gray-500); font-weight: 600; }
.admin-table td { padding: 0.6rem 0.75rem; border-top: 1px solid var(--gray-100); font-size: 0.85rem; }

/* === Misc === */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-500); }
.empty-state p { margin-bottom: 1rem; }
.cta-section { background: var(--gray-900); color: #fff; padding: 3rem 1rem; text-align: center; }
.cta-inner { max-width: 500px; margin: 0 auto; }
.cta-inner h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-inner p { opacity: 0.8; margin-bottom: 1.5rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 2rem 0; }
.page-btn { padding: 0.5rem 1rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.page-btn:hover { background: var(--gray-50); }
.page-info { font-size: 0.9rem; color: var(--gray-500); }

/* === Search Page === */
.search-header { max-width: var(--max-w); margin: 1rem auto; padding: 0 1rem; }
.search-header h1 { font-size: 1.3rem; }
.search-header p { color: var(--gray-500); margin-bottom: 1rem; }
.search-form-inline { display: flex; max-width: 500px; border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }

/* === User Profile === */
.user-profile { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.user-header { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.user-avatar-large { font-size: 4rem; }
.user-info h1 { font-size: 1.5rem; }
.user-stats-row { display: flex; gap: 1.5rem; margin: 0.75rem 0; }
.user-stat { text-align: center; }
.user-location { font-size: 0.85rem; color: var(--gray-500); }

/* === Category Page === */
.category-header { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem 1rem; }
.category-header h1 { font-size: 1.4rem; }

/* === Subcategory Bar === */
.subcat-bar {
    max-width: var(--max-w); margin: 0 auto 1.5rem; padding: 0 1rem;
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.subcat-chip {
    display: inline-block; padding: 0.35rem 0.85rem;
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: 20px; font-size: 0.85rem; text-decoration: none;
    color: var(--gray-700); transition: all 0.15s;
}
.subcat-chip:hover { border-color: var(--primary); color: var(--primary); }
.subcat-chip.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.product-subcat-tag {
    display: inline-block; background: var(--gray-100);
    color: var(--gray-500); font-size: 0.7rem; padding: 0.1rem 0.4rem;
    border-radius: 3px; margin-left: 0.3rem;
}
.category-header p { color: var(--gray-500); }

/* === Footer === */
.footer {
    background: var(--gray-900);
    color: #cbd5e1;
    margin-top: 3rem;
    border-top: 3px solid var(--primary);
}
.footer-main {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem 2rem;
}
.footer-brand { }
.footer-logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.footer-logo:hover { color: var(--primary); }
.footer-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}
.footer-tagline {
    font-size: 0.85rem;
    color: #64748b;
}
.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.footer-col h4 {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.3rem 0;
    transition: color 0.15s, padding-left 0.15s;
}
.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #64748b;
}
.footer-bar-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}
.footer-bar-row a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-bar-row a:hover { color: #fff; }
.footer-bar-sep {
    color: #475569;
    user-select: none;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem 1.5rem;
    }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bar {
        flex-wrap: wrap;
        padding: 1rem;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .product-detail-layout { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .nav-links { gap: 0.5rem; }
    .nav-link { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .user-header { flex-direction: column; text-align: center; }
    .hero-stats { gap: 1.5rem; }
    .product-image-placeholder { height: 120px; font-size: 2rem; }
}

/* ============================================
   首页 V2 — 分区导航版
   ============================================ */

/* Hero */
.hero-v2 {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 3rem 1rem;
    text-align: center;
    color: #fff;
}
.hero-v2-inner { max-width: 640px; margin: 0 auto; }
.hero-v2 h1 { font-size: 2rem; margin: 0 0 0.5rem; font-weight: 800; letter-spacing: -0.5px; }
.hero-v2-sub { color: #94a3b8; margin: 0 0 1.5rem; font-size: 1rem; }
.hero-v2-search {
    display: flex; max-width: 480px; margin: 0 auto 1rem;
    border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero-v2-input {
    flex: 1; padding: 0.85rem 1rem; border: none; font-size: 1rem;
    background: #1e293b; color: #fff; outline: none;
}
.hero-v2-input::placeholder { color: #64748b; }
.hero-v2-search button {
    padding: 0.85rem 1.4rem; border: none; background: #f97316; color: #fff;
    font-size: 1rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.hero-v2-search button:hover { background: #ea580c; }
.hero-v2-stats { color: #94a3b8; font-size: 0.85rem; margin-bottom: 1.2rem; }
.hero-v2-stats strong { color: #f1f5f9; }
.stat-sep { margin: 0 0.5rem; color: #475569; }
.hero-v2-publish {
    display: inline-block; padding: 0.7rem 2rem; background: #16a34a;
    color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600;
    font-size: 1rem; transition: background 0.2s;
}
.hero-v2-publish:hover { background: #15803d; }

/* Zone sections */
.zone-section { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 0; }
.zone-header { margin-bottom: 0.75rem; }
.zone-title-bar {
    display: flex; align-items: center; gap: 0.5rem;
    padding-left: 0.75rem;
}
.zone-title-bar h2 { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0; }
.zone-icon { font-size: 1.2rem; }

.zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
    max-width: 880px;
}

.zone-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.9rem 0.5rem; border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none; color: #1e293b;
    transition: all 0.15s; position: relative; min-height: 72px;
}
.zone-card:hover {
    background: #fff; border-color: var(--zone-color, #3b82f6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateY(-1px);
}
.zone-card-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.zone-card-name { font-size: 0.8rem; font-weight: 600; text-align: center; }
.zone-card-count {
    font-size: 0.65rem; color: #94a3b8; margin-top: 0.15rem;
}

/* Latest section */
.section-latest { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.section-header-v2 {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.section-header-v2 h2 { font-size: 1.1rem; color: #1e293b; margin: 0; }
.see-all-v2 { font-size: 0.85rem; color: #3b82f6; text-decoration: none; }
.see-all-v2:hover { text-decoration: underline; }

.product-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}
.product-card-v2 {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem; border-radius: 10px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    text-decoration: none; color: #1e293b; transition: all 0.15s;
}
.product-card-v2:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.pcv2-icon { font-size: 2rem; flex-shrink: 0; }
.pcv2-body { min-width: 0; }
.pcv2-body h3 {
    font-size: 0.9rem; font-weight: 600; margin: 0 0 0.3rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcv2-meta { display: flex; gap: 0.5rem; font-size: 0.78rem; color: #64748b; }
.pcv2-price { color: #dc2626; font-weight: 700; }

/* CTA */
.cta-v2 {
    text-align: center; padding: 2.5rem 1rem; max-width: 1100px; margin: 0 auto;
}
.cta-v2 p { color: #64748b; margin-bottom: 1rem; font-size: 0.95rem; }
.btn-cta-v2 {
    display: inline-block; padding: 0.75rem 2rem; background: #16a34a;
    color: #fff; text-decoration: none; border-radius: 8px; font-weight: 700;
    font-size: 1rem; transition: background 0.2s;
}
.btn-cta-v2:hover { background: #15803d; }

@media (max-width: 640px) {
    .hero-v2 h1 { font-size: 1.5rem; }
    .hero-v2-search { flex-direction: column; border-radius: 10px; }
    .hero-v2-search button { border-radius: 0; }
    .zone-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid-v2 { grid-template-columns: 1fr; }
}

/* === Form Components === */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-input {
    width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--gray-300);
    border-radius: var(--radius); font-size: 0.95rem; transition: border 0.15s;
    background: #fff; font-family: inherit;
}
.form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.form-col { flex: 1; min-width: 0; }
.form-col label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.85rem; }
.form-col .form-input { width: 100%; }
.form-inline { display: flex; gap: 0.5rem; align-items: center; }
.btn-outline {
    display: inline-block; padding: 0.6rem 1.5rem; border: 2px solid var(--gray-300);
    border-radius: var(--radius); text-decoration: none; color: var(--gray-700);
    font-weight: 600; cursor: pointer; background: #fff; transition: all 0.15s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; border-radius: 6px; }
.btn-large { padding: 0.8rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; display: block; text-align: center; }
.alert { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.post-container { max-width: 700px; margin: 0 auto; padding: 0 1rem; }
.post-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); }
@media (max-width: 480px) {
    .form-row { flex-direction: column; gap: 0.5rem; }
    .post-card { padding: 1rem; }
}
