/* common.css - 自驾游避坑指南公共样式（精简版） */
/* 注：基础重置、图片占位符已移至 base.css，请确保 base.css 先引入 */

body { background: #eef5e8; font-family: system-ui, 'Segoe UI', Roboto, sans-serif; padding: 16px 16px 80px; color: #1a3b2e; }
.container { max-width: 800px; margin: 0 auto; background: white; border-radius: 10px; padding: 24px 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
h1 { color: #2d6a2f; border-left: 8px solid #2d6a2f; padding-left: 15px; margin-bottom: 30px; font-size: 1.8rem; font-weight: 720; }
h2 { margin: 25px 0 10px; color: #1e4a2a; font-size: 1.4rem; }
p, li { line-height: 1.6; }
.tip { background: #F1FCE9; padding: 12px; border-radius: 10px; margin: 20px 0; line-height: 1.5; }
ul { padding-left: 1.5rem; font-size: 1rem; }
.share-card { background: #eef5e8; border-radius: 10px; padding: 16px; margin-top: 32px; border: 1px solid #cbdcc0; }
.share-title { font-weight: bold; color: #2d6a2f; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.share-content { background: white; padding: 12px; border-radius: 10px; font-size: 0.9rem; line-height: 1.5; margin: 12px 0; border-left: 3px solid #2d6a2f; }
.copy-btn, .poster-btn { background: #2d6a2f; color: white; border: none; border-radius: 40px; padding: 6px 16px; cursor: pointer; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
.copy-btn:hover, .poster-btn:hover { background: #1e4a2a; transform: scale(1.02); }
.poster-btn { background: #FF8C03; }
.action-row { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }

/* 海报弹窗样式 */
.poster-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.poster-modal.show { display: flex; }
.poster-modal-content {
    background: white;
    border-radius: 12px;
    width: 92%;
    max-width: 500px;
    max-height: 90vh;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.poster-image-wrapper {
    flex: 1;
    overflow-y: auto;
    text-align: center;
    margin-bottom: 12px;
}
.poster-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.poster-buttons {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 30px;
}
.close-poster {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 0.8rem;
}
.save-poster {
    background: #2d6a2f;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 6px 16px;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-block;
}

@media (max-width: 600px) {
    body { padding: 10px 10px 70px; }
    .container { padding: 25px 23px; }
    h1 { font-size: 1.5rem; margin-bottom: 20px; font-weight: 700; }
    h2 { color: #1e4a2a; font-size: 1.3rem; }
    .poster-modal-content { width: 95%; padding: 12px; max-height: 95%; }
    .poster-image-wrapper img { max-height: 75vh; width: auto; }
}
@media (orientation: landscape) and (max-height: 500px) {
    .poster-modal-content { max-height: 90%; padding: 10px; }
    .poster-image-wrapper img { max-height: 70vh; }
}

.series-nav {
    margin-top: 30px;
    text-align: center;
    border-top: 1px dashed #cbdcc0;
    padding-top: 20px;
}
.series-nav a {
    margin: 0 8px;
    text-decoration: none;
    color: #2d6a2f;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
}
.series-nav a:hover {
    color: #FF8C03;
}
.series-nav .nav-sep {
    color: #cbdcc0;
    margin: 0 4px;
}

footer {
    text-align: center;
    margin-top: 32px;
    padding: 16px;
    color: #BABABA;
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
    border-top: none;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16%;
    width: 68%;
    height: 0.68px;
    background-color: #C7C7C7;
}