/* 在原有样式基础上添加以下内容 */

/* 小狗卡片网格 */
.dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.dog-info {
    padding: 15px;
}

.dog-info h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.3em;
}

.dog-meta {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 10px 0;
}

.dog-story {
    color: #777;
    font-size: 0.95em;
    line-height: 1.4;
    margin: 0;
}

/* 小狗详情页 */
.dog-detail {
    max-width: 800px;
    margin: 0 auto;
}

.dog-media {
    margin-bottom: 30px;
}

.dog-photo {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.dog-video {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

.dog-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.info-item strong {
    min-width: 100px;
    color: #333;
}

.story-text {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* 云养记录 */
.foster-records {
    margin-top: 40px;
}

.foster-record {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.foster-message {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    font-style: italic;
    color: #666;
}

.foster-time {
    color: #999;
    font-size: 0.9em;
}

/* 管理后台样式 */
.admin-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-btn {
    background: #dc3545 !important;
}

.admin-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.table-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.no-img {
    color: #999;
    font-size: 0.9em;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.edit-btn, .delete-btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    margin-right: 8px;
}

.edit-btn {
    background: #28a745;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

/* 表单样式增强 */
.admin-form {
    max-width: 600px;
    margin: 0 auto;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dog-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 10px 8px;
    }
}
