/* reef.css - Layout 107 Drawer Sidebar & Asymmetric Masonry Grid Style Book */
body {
    background-color: #faf9f6;
    color: #43413e;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    margin: 0; padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.reef-container { max-width: 1000px; margin: 0 auto; padding: 25px; box-sizing: border-box; }

/* 极简页头：左上角触发开关与Logo */
.reef-header {
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #edeae4;
    position: sticky; top: 0; z-index: 1000;
}
.reef-header-container { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.reef-menu-trigger { font-size: 22px; color: #5c5956; cursor: pointer; text-decoration: none; }
.reef-logo img { height: 35px; display: block; }

/* 抽屉式右边栏 */
.reef-drawer {
    position: fixed; top: 0; bottom: 0; right: 0;
    width: 300px; background: #ffffff;
    border-left: 1px solid #edeae4;
    box-shadow: -4px 0 24px rgba(0,0,0,0.02);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 30px 24px;
    box-sizing: border-box;
}
.reef-drawer.active { transform: translateX(0); }
.reef-drawer-close { text-align: right; margin-bottom: 20px; cursor: pointer; color: #8e8b87; font-size: 18px; }

/* 主体：多栏不对称照片墙/卡片墙 */
.reef-masonry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}
.reef-grid-item {
    flex: 1 1 calc(50% - 10px);
    background: #ffffff;
    border: 1px solid #edeae4;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01);
}
/* 错落高度不对称配置 */
.reef-grid-item:nth-child(even) { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.reef-grid-item:nth-child(odd) { min-height: 180px; }
@media (max-width: 650px) {
    .reef-grid-item { flex: 1 1 100%; min-height: auto !important; }
}

/* 简约 UI 元件 */
.reef-card {
    background: #ffffff;
    border: 1px solid #edeae4;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.reef-card-header {
    font-size: 14px; font-weight: 700; color: #3d3b38;
    border-bottom: 1px dashed #f2eee8; padding-bottom: 10px; margin-bottom: 15px;
}
.reef-notice { background: #fdfaf2; border-left: 3px solid #8e7b6c; padding: 12px 15px; border-radius: 4px; margin-bottom: 20px; font-size: 12px; color: #7c6a46; border: 1px solid #f2eee8; }

/* 表格、输入框及按钮 */
.reef-table { width: 100%; border-collapse: collapse; }
.reef-table th { text-align: left; padding: 10px; border-bottom: 1px solid #edeae4; color: #8e8b87; font-weight: 400; font-size: 12px; }
.reef-table td { padding: 12px 10px; border-bottom: 1px dashed #edeae4; font-size: 13px; }
.reef-input { width: 100%; padding: 10px 12px; border: 1px solid #e1ddd7; border-radius: 6px; background: #faf9f6; box-sizing: border-box; font-size: 13px; outline: none; margin-bottom: 12px; }
.reef-input:focus { border-color: #8e7b6c; }
.reef-btn { display: inline-block; background: #5c5956; color: #fff !important; border: none; padding: 9px 18px; border-radius: 5px; font-size: 13px; text-align: center; cursor: pointer; text-decoration: none; }
.reef-btn:hover { background: #73706d; }
.reef-btn-fluid { display: block; width: 100%; box-sizing: border-box; }
.reef-btn-disabled { background: #d0cdc9 !important; cursor: not-allowed; }
.reef-badge { padding: 2px 6px; border-radius: 3px; font-size: 11px; }
.reef-badge-auto { background: #edf5f1; color: #2e693f; }
.reef-badge-manual { background: #fdf3f3; color: #9c3a3a; }
.reef-text-green { color: #2e693f; font-weight: bold; }
.reef-text-red { color: #9c3a3a; font-weight: bold; }
.reef-price { color: #b53e3e; font-weight: bold; font-size: 15px; }

/* 详情自适应双栏 */
.reef-detail-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.reef-detail-left { flex: 1 1 280px; }
.reef-detail-right { flex: 1.2 1 360px; }
.reef-preview-img { width: 100%; height: auto; display: block; border-radius: 8px; }
.reef-form-item { margin-bottom: 14px; }
.reef-form-label { display: block; font-size: 12px; font-weight: 700; color: #6a6764; margin-bottom: 6px; }

/* 页脚 */
.reef-footer { text-align: center; padding: 35px 20px; font-size: 11px; color: #9c9995; border-top: 1px solid #edeae4; margin-top: 40px; }
.reef-footer a { color: #73706d; text-decoration: none; margin: 0 8px; }
