/* =========================================
            3. 产地数据库页专用样式
         ========================================= */
.page-wrapper {
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.database-hero {
    background: linear-gradient(rgba(26, 58, 89, 0.8), rgba(61, 125, 86, 0.7)),
    url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=2532&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    height: 400px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-tag { background: var(--accent-gold); color: var(--primary-blue); padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 2px; }

.database-hero h1 {
    font-family: "Times New Roman", serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.database-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-wrapper {
    background: white;
    padding: 8px;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.search-input {
    border: none;
    flex: 1;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
    min-width: 150px;
}

.search-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

/* Map Section (ECharts) */
.map-section {
    background: #FAFBFC;
    padding: 60px 20px;
    border-bottom: 1px solid #eee;
}

.map-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: "Times New Roman", serif;
}

.map-sub {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 0.9rem;
}

/* 地图容器 */
.map-container {
    max-width: 1000px;
    height: 700px;
    margin: 0 auto;
    position: relative;
    border: 1px solid #eee;
    border-radius: 12px;
    background-color: white;
    overflow: hidden;
}

/* Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 80px;
}

/* Sidebar */
.filter-group {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: block;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
}

.filter-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.filter-list li:hover:not(.search-btn)  {
    color: var(--primary-green);
}

.submission-box {
    background: var(--primary-blue);
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.submission-box h4 { margin-bottom: 10px; color: var(--accent-gold); }
.submission-box p { font-size: 0.85rem; opacity: 0.8; margin-bottom: 20px; }

.btn-submit {
    border: 1px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}
.btn-submit:hover { background: white; color: var(--primary-blue); }

/* Article Cards */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-card {
    display: flex;
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    min-height: 220px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-green);
}

.article-img {
    width: 35%;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.geo-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-gold);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.archive-id {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 5px;
    font-family: monospace;
    letter-spacing: 1px;
}

.article-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* 风土指标 Grid */
.terroir-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    background: #FAFBFC;
    padding: 10px;
    border-radius: 6px;
}
.metric-item {
    text-align: center;
}
.metric-label {
    font-size: 0.7rem;
    color: #999;
    display: block;
}
.metric-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-green);
}

.article-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.read-more {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
}

.load-more {
    text-align: center;
    margin-top: 50px;
}

.btn-load {
    background: white;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-load:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 125, 86, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(61, 125, 86, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 125, 86, 0); }
}


/* 响应式 */
@media screen and (max-width: 1024px) {
    .layout-grid { display: flex; flex-direction: column; gap: 40px; }
    .article-list { order: 2; }
    aside { order: 1; width: 100%; }
    .article-card { flex-direction: column; height: auto; }
    .article-img { width: 100%; height: 200px; }

}

@media screen and (max-width: 768px) {
    .database-hero h1 { font-size: 1.8rem; }
    .map-title { font-size: 1.5rem; }

    .map-container { height: 400px; }
}