/* 同路人页面特有样式 */
.content-section {
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.content-section h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #333;
}

.content-section h2 {
    margin: 30px 0 20px;
    color: #444;
    border-left: 4px solid #4a90e2;
    padding-left: 10px;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.tagline-hero {
    font-size: 1.2rem;
    margin: 10px 0 30px;
    opacity: 0.9;
    font-style: italic;
    text-align: center;
}

/* 筛选区样式 */
.filter-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-form .form-group {
    flex: 1;
    min-width: 200px;
}

.filter-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.filter-form .form-group input,
.filter-form .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.filter-form .form-group input:focus,
.filter-form .form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.filter-form .submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

/* 发布区域样式 */
.publish-section {
    text-align: center;
    margin: 30px 0;
}

.publish-section .cta-button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.publish-section .cta-button:hover {
    background: #357ae8;
    transform: scale(1.05);
}

/* 需求卡片样式 */
.latest-requests h2 {
    text-align: center;
}

.request-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.date-tag {
    background: #e3f2fd;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #1976d2;
}

.card-body p {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

.card-body .quote {
    font-style: italic;
    color: #555;
    padding-left: 15px;
    border-left: 3px solid #4a90e2;
}

.card-footer {
    text-align: right;
    margin-top: 15px;
}

.contact-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: #357ae8;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.page-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* 安全提示样式 */
.safety-tip {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin: 30px 0;
    text-align: center;
}

.safety-tip p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* 发布模态框样式 */
#publishModal .modal-content {
    max-width: 600px;
}

#publishModal h2 {
    text-align: center;
    margin-bottom: 20px;
}

#publishModal .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#publishModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

#publishModal .form-group input,
#publishModal .form-group select,
#publishModal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

#publishModal .form-group input:focus,
#publishModal .form-group select:focus,
#publishModal .form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

#publishModal .form-row {
    display: flex;
    gap: 20px;
}

#publishModal .form-row .form-group {
    flex: 1;
}

#publishModal .submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

/* 返回按钮样式 */
.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1040;
}

.back-button a {
    display: inline-block;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-button a:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-section {
        margin-top: 80px;
        padding: 0 15px;
    }
    
    .content-section h1 {
        font-size: 2rem;
    }
    
    .filter-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-form .form-group {
        min-width: 100%;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-tag {
        align-self: flex-start;
        margin-top: 10px;
    }
    
    #publishModal .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}