/* 钓友社区与出钓日志样式 (community.css) - 符合生产 CSP 规范 */

/* --- 社区列表页 --- */
.community-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2f5f78 100%);
    color: #ffffff;
    padding: 40px 0;
    margin-bottom: 32px;
}
.community-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.community-title-box h1 {
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 8px 0;
}
.community-title-box p {
    margin: 0;
    font-size: 15px;
    opacity: 0.85;
}
.community-compliance-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 28px;
    color: #92400e;
    line-height: 1.7;
    font-size: 14px;
}
.community-compliance-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.community-feed-container {
    max-width: 860px;
    margin: 0 auto;
}
.community-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.community-search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 480px;
}
.community-search-input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}
.community-search-btn {
    background: #3a6f8c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.community-new-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.community-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.community-card:hover {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.community-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.community-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.community-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3a6f8c;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
}
.community-author-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}
.community-post-time {
    font-size: 12px;
    color: #94a3b8;
}
.community-privacy-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.community-location-row {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.community-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.community-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}
.community-tag-highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 600;
}
.community-notes {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 16px;
    white-space: pre-line;
}
.community-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.community-image-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.community-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    font-size: 13px;
}
.community-guest-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 40px;
}

/* --- 社区新增动态表单页 --- */
.community-form-wrap {
    max-width: 680px;
    margin: 32px auto 80px;
    padding: 0 20px;
}
.community-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.community-form-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.community-form-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 6px;
}
.form-label span.req {
    color: #ef4444;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: #3a6f8c;
    box-shadow: 0 0 0 3px rgba(58, 111, 140, 0.15);
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.quick-pill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}
.quick-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.privacy-alert-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.6;
}
.submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: transform 0.15s ease;
}
.submit-btn:hover {
    transform: translateY(-1px);
}

/* --- 社区详情页 --- */
.community-detail-wrap {
    max-width: 760px;
    margin: 32px auto 80px;
    padding: 0 20px;
}
.community-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.detail-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}
.detail-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px 0;
}
.detail-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.detail-author-info {
    font-size: 14px;
    color: #64748b;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}
.detail-grid-item {
    font-size: 14px;
}
.detail-grid-label {
    color: #64748b;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
}
.detail-grid-val {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}
.detail-notes-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 28px;
    white-space: pre-line;
}
.community-images-single,
.detail-images-single {
    margin-bottom: 16px;
    max-width: 460px;
}
.community-image-single,
.detail-image-single {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: zoom-in;
    display: block;
}
.community-images-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 460px;
    margin-bottom: 16px;
}
.community-image-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: zoom-in;
    display: block;
}
.detail-images-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.detail-image-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    cursor: zoom-in;
    display: block;
}
.community-upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.community-upload-status {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}
.catch-lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 3200;
    justify-content: center;
    align-items: center;
    padding: 24px;
}
.catch-lightbox-modal.is-open {
    display: flex;
}
.catch-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.catch-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.catch-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.catch-lightbox-prev {
    left: 20px;
}
.catch-lightbox-next {
    right: 20px;
}
.detail-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}
.privacy-tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
