/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    background: #f0f2f5;
    line-height: 1.6;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 布局 ===== */
.container { max-width: 960px; margin: 0 auto; padding: 24px 16px; min-height: calc(100vh - 140px); }

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky; top: 0; z-index: 10;
}
.header-inner { max-width: 960px; margin: 0 auto; padding: 14px 16px; }
.logo { font-size: 18px; font-weight: 700; color: #1a1a2e; }
.logo:hover { text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
    text-align: center; padding: 20px 16px; color: #9ca3af; font-size: 13px;
    border-top: 1px solid #e5e7eb; margin-top: 32px;
}

/* ===== 搜索区 ===== */
.search-section { text-align: center; margin-bottom: 32px; }
.search-section h1 { font-size: 24px; margin-bottom: 16px; }
.search-form { max-width: 700px; margin: 0 auto; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-input {
    flex: 1; padding: 10px 16px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 15px; outline: none; transition: border-color 0.15s;
}
.search-input:focus { border-color: #2563eb; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-select {
    padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; background: #fff; cursor: pointer; outline: none;
}
.filter-select:focus { border-color: #2563eb; }

/* ===== 按钮 ===== */
.btn { padding: 10px 24px; border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }

/* ===== 标签 ===== */
.tag {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    font-size: 12px; background: #e5e7eb; color: #374151;
}
.tag-green { background: #d1fae5; color: #065f46; }
.tag-red { background: #fee2e2; color: #991b1b; }

/* ===== 蔬菜卡片网格 ===== */
.veg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.veg-card {
    display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 20px; transition: box-shadow 0.15s;
}
.veg-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); text-decoration: none; }
.veg-card h3 { font-size: 17px; margin-bottom: 10px; color: #1a1a2e; }
.veg-meta { display: flex; gap: 6px; margin-bottom: 14px; }
.veg-info { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: flex; justify-content: space-between; font-size: 14px; }
.info-label { color: #6b7280; }
.info-value { color: #374151; font-weight: 500; }

/* ===== 结果区 ===== */
.result-count { margin-bottom: 16px; color: #6b7280; font-size: 14px; }
.no-result { text-align: center; color: #9ca3af; padding: 48px 0; }

/* ===== 推荐区 ===== */
.recommend-section h2 { font-size: 20px; margin-bottom: 4px; }
.section-desc { color: #6b7280; font-size: 14px; margin-bottom: 20px; }

/* ===== 详情页 ===== */
.breadcrumb { font-size: 14px; color: #6b7280; margin-bottom: 20px; }
.detail-card { background: #fff; border-radius: 8px; padding: 32px; }
.detail-header { margin-bottom: 24px; }
.detail-header h1 { font-size: 26px; margin-bottom: 10px; }
.detail-tags { display: flex; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.detail-item { padding: 14px; background: #f9fafb; border-radius: 6px; }
.detail-label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.detail-value { display: block; font-size: 16px; font-weight: 600; color: #1a1a2e; }
.detail-desc, .detail-region { margin-bottom: 20px; }
.detail-desc h3, .detail-region h3 { font-size: 16px; margin-bottom: 8px; }
.detail-desc p, .detail-region p { color: #4b5563; line-height: 1.8; }
.back-link { margin-top: 20px; }
.back-link a { font-size: 14px; }

/* ===== 404 ===== */
.not-found { text-align: center; padding: 64px 0; }
.not-found h1 { font-size: 28px; margin-bottom: 12px; }
.not-found p { color: #6b7280; margin-bottom: 24px; }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .search-row { flex-direction: column; }
    .filter-row { flex-direction: column; }
    .filter-select { width: 100%; }
    .veg-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .detail-card { padding: 20px; }
}
/* ===== Region badges (detail page) ===== */
.region-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.region-badge {
    display: inline-block; padding: 4px 12px; border-radius: 4px;
    font-size: 13px; background: #e5e7eb; color: #6b7280; cursor: default;
}
.region-badge-active { background: #dbeafe; color: #1d4ed8; font-weight: 500; }
.region-help { font-size: 13px; margin-top: 6px; }
.detail-item-alt { background: #fef3c7; }

/* ===== Shortcuts on home ===== */
.shortcuts { text-align: center; margin-top: 24px; }
.shortcut-link {
    display: inline-block; padding: 10px 20px; background: #2563eb; color: #fff;
    border-radius: 6px; font-size: 14px; font-weight: 500;
}
.shortcut-link:hover { background: #1d4ed8; text-decoration: none; }

/* ===== Regions page ===== */
.regions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-bottom: 32px; }
.region-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 24px;
}
.region-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.region-header h2 { font-size: 20px; }
.region-count { font-size: 13px; color: #6b7280; background: #f3f4f6; padding: 2px 10px; border-radius: 12px; }
.region-climate { font-size: 13px; color: #2563eb; margin-bottom: 10px; }
.region-desc { font-size: 14px; color: #4b5563; line-height: 1.7; margin-bottom: 12px; }
.region-provinces { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.region-veggies { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.region-veggies strong { font-size: 13px; color: #374151; }
.veg-link {
    display: inline-block; padding: 2px 10px; background: #f3f4f6; border-radius: 4px;
    font-size: 12px; color: #374151;
}
.veg-link:hover { background: #e5e7eb; text-decoration: none; }

/* ===== Pagination ===== */
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 16px;
    margin-top: 24px; padding: 16px 0;
}
.page-btn {
    padding: 8px 20px; background: #fff; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: 14px; color: #374151; text-decoration: none;
    transition: background 0.15s;
}
.page-btn:hover { background: #f3f4f6; text-decoration: none; }
.page-info { font-size: 14px; color: #6b7280; }

.btn-home {
    padding: 10px 24px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 15px; cursor: pointer; background: #fff; color: #374151;
    text-decoration: none; white-space: nowrap;
}
.btn-home:hover { background: #f3f4f6; text-decoration: none; }

.buy-seedling {
    max-width: 400px; margin: 16px auto 0 auto; padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
    border-radius: 8px; text-align: center; font-weight: 700; font-size: 15px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
.buy-seedling p { margin: 0; }







/* ===== City adjust section ===== */
.city-adjust {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 2px solid #3b82f6; border-radius: 10px; padding: 24px;
    margin-bottom: 24px; position: relative; overflow: hidden;
}
.city-adjust::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
}
.city-adjust h3 {
    font-size: 17px; color: #1e40af; display: flex; align-items: center; gap: 8px;
}
.city-adjust h3::after {
    content: 'NEW'; font-size: 10px; background: #ef4444; color: #fff;
    padding: 2px 8px; border-radius: 10px; font-weight: 700; letter-spacing: 1px;
}
.city-adjust-desc { font-size: 13px; color: #64748b; margin-bottom: 14px; }
.city-adjust select {
    max-width: 320px; padding: 10px 14px; font-size: 15px;
    border: 2px solid #3b82f6; border-radius: 8px; background: #fff;
    cursor: pointer; outline: none; transition: border-color 0.2s;
}
.city-adjust select:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
#adjust-result {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px;
    margin-top: 16px; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.suitable-badge {
    display: inline-block; background: #d1fae5; color: #059669; font-weight: 700;
    padding: 4px 14px; border-radius: 20px; font-size: 13px;
}

.city-feedback{display:inline-block;padding:6px 16px;border-radius:20px;font-size:13px}
.city-feedback-good{background:#d1fae5;color:#059669}
.city-feedback-bad{background:#fee2e2;color:#991b1b}

.header-link { color: #2563eb; font-size: 13px; margin-left: auto; font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-link:hover { text-decoration: underline; }
.header-inner { display: flex; align-items: center; }

.video-section { width: 100%; max-height: 420px; overflow: hidden; margin-bottom: 0; }
.hero-video { width: 100%; max-height: 420px; object-fit: cover; display: block; }
