Files
2026-06-22 11:23:05 +08:00

294 lines
9.2 KiB
CSS

/* ========== 发布订单页面 - 大厂专业设计风格 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f5f6fa; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
/* ========== 头部区域 ========== */
.header-section {
background: linear-gradient(135deg, #018fa5 0%, #0a7a8c 50%, #0b6b7c 100%);
padding: 16px 0 0;
color: #fff;
border-radius: 0 0 20px 20px;
position: relative;
overflow: hidden;
}
.header-section::before {
content: ''; position: absolute; top: -35px; right: -25px;
width: 130px; height: 130px; background: rgba(138,202,188,0.14); border-radius: 50%;
}
.header-section::after {
content: ''; position: absolute; bottom: -22px; left: 28px;
width: 85px; height: 85px; background: rgba(138,202,188,0.09); border-radius: 50%;
}
.header-top {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 18px 18px;
position: relative;
z-index: 1;
}
.header-left {
display: flex;
align-items: center;
gap: 12px;
}
.header-left .van-icon { cursor: pointer; transition: opacity 0.2s; }
.header-left .van-icon:active { opacity: 0.7; }
.page-title { font-size: 19px; font-weight: 700; letter-spacing: 0.5px; }
.header-actions { display: flex; gap: 10px; }
.icon-btn {
height: 34px;
padding: 0 12px;
border-radius: 12px;
background: rgba(255,255,255,0.15);
display: flex; align-items: center; justify-content: center;
transition: all 0.2s ease; backdrop-filter: blur(4px);
cursor: pointer;
}
.icon-btn:active { transform: scale(0.95); background: rgba(255,255,255,0.28); }
/* ========== 表单容器 ========== */
.form-wrapper { padding: 14px 12px 100px; }
/* ========== 表单卡片 ========== */
.form-card {
background: #fff;
border-radius: 16px;
margin-bottom: 13px;
overflow: hidden;
box-shadow: 0 1px 4px rgba(1,143,165,0.04), 0 3px 12px rgba(1,143,165,0.06);
border: 1px solid rgba(1,143,165,0.05);
}
.fc-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 16px 4px;
}
.fc-label {
display: flex;
align-items: center;
gap: 8px;
font-size: 15.5px;
font-weight: 600;
color: #1a1a2e;
letter-spacing: 0.3px;
}
.fc-body { padding: 4px 0 8px; }
.fc-body .van-cell { padding: 10px 16px !important; }
/* ========== 服务类型选择卡片 ========== */
.form-card-type { padding: 16px 16px 8px; }
.type-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin-top: 14px;
}
.type-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 18px 12px 14px;
border-radius: 14px;
border: 2px solid #f0f1f5;
background: #fafbfd;
cursor: pointer;
transition: all 0.25s cubic-bezier(.25,.46,.45,.94);
text-align: center;
}
.type-item:active { transform: scale(0.96); }
.type-active {
border-color: #018fa5 !important;
background: linear-gradient(145deg, #f0f9fb, #e6f5f8) !important;
box-shadow: 0 4px 14px rgba(1,143,165,0.18) !important;
}
.type-icon-wrap {
width: 52px; height: 52px;
border-radius: 14px;
display: flex; align-items: center; justify-content: center;
margin-bottom: 2px;
transition: all 0.25s ease;
}
.wrap-hospital { background: linear-gradient(145deg, #e6f5f8, #d0ebe8); }
.wrap-outpatient { background: linear-gradient(145deg, #fef6ec, #fcebd6); }
.wrap-home { background: linear-gradient(145deg, #eaf7ee, #ddf0e4); }
.wrap-maternal { background: linear-gradient(145deg, #fdf0f7, #fae3ee); }
.type-active .wrap-hospital,
.type-active .wrap-outpatient,
.type-active .wrap-home,
.type-active .wrap-maternal {
background: linear-gradient(135deg, #018fa5, #0a7a8c);
}
.type-name {
font-size: 14.5px;
font-weight: 650;
color: #333;
letter-spacing: 0.3px;
}
.type-active .type-name { color: #018fa5; }
.type-desc {
font-size: 11.5px;
color: #aaa;
letter-spacing: 0.3px;
}
.type-active .type-desc { color: #018fa5; opacity: 0.75; }
/* ========== Vant字段样式覆盖 ========== */
.van-field__label {
width: 80px !important;
font-size: 14px !important;
font-weight: 500 !important;
color: #555 !important;
}
.van-field__control {
font-size: 14px !important;
color: #333 !important;
}
.van-field__control::placeholder { color: #bbb !important; }
.van-cell::after { left: 16px !important; right: 16px !important; border-color: #f2f3f5 !important; }
/* ========== 服务时间提示 ========== */
.duration-tip {
display: flex;
align-items: center;
gap: 6px;
margin: 8px 16px 10px;
padding: 10px 14px;
background: #f0f9fb;
border-radius: 10px;
border: 1px solid #d0ebe8;
font-size: 13px;
color: #666;
}
.duration-tip strong { color: #018fa5; font-weight: 600; }
.duration-tip .van-icon { color: #018fa5; }
/* ========== 技能标签区域 ========== */
.skill-tags-section { padding: 8px 16px 12px; }
.skill-tags-label { font-size: 13px; color: #888; margin-bottom: 10px; }
.skill-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
padding: 7px 14px;
border-radius: 20px;
font-size: 13px;
color: #777;
background: #f5f6fa;
border: 1.5px solid #eee;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
}
.skill-tag:active { transform: scale(0.94); }
.skill-active {
background: linear-gradient(135deg, #e6f5f8, #d0ebe8);
color: #018fa5;
border-color: #018fa5;
font-weight: 500;
}
/* ========== 费用预估卡片 ========== */
.price-preview {
background: linear-gradient(145deg, #fffbf5, #fef8f0);
border: 1.5px solid #f0e6d0;
}
.price-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
}
.price-label { font-size: 15px; font-weight: 600; color: #555; }
.price-value { display: flex; align-items: baseline; }
.price-value .yen {
font-size: 16px;
font-weight: 700;
color: #dc3545;
}
.price-value .amount {
font-size: 28px;
font-weight: 800;
color: #dc3545;
letter-spacing: -0.5px;
}
.price-detail {
padding: 0 16px 14px;
border-top: 1px dashed #eeddbb;
margin-top: 4px;
padding-top: 12px;
}
.price-item {
display: flex;
justify-content: space-between;
font-size: 12.5px;
color: #999;
line-height: 2;
}
.price-item span:last-child { color: #888; font-weight: 500; }
/* ========== 底部操作栏 ========== */
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
padding-bottom: calc(10px + env(safe-area-inset-bottom));
background: #fff;
box-shadow: 0 -2px 14px rgba(0,0,0,0.06);
z-index: 100;
}
.bottom-left { display: flex; flex-direction: column; gap: 2px; }
.total-price { display: flex; align-items: baseline; gap: 4px; }
.tp-label { font-size: 13px; color: #999; }
.tp-value { font-size: 22px; font-weight: 800; color: #dc3545; }
.tp-yen { font-size: 14px; font-weight: 700; }
.tp-desc { font-size: 11px; color: #bbb; }
.submit-btn {
min-width: 120px !important;
height: 44px !important;
font-size: 16px !important;
font-weight: 650 !important;
letter-spacing: 1px !important;
background: linear-gradient(135deg, #018fa5, #0a7a8c) !important;
border: none !important;
box-shadow: 0 4px 14px rgba(1,143,165,0.35);
}
.submit-btn:active { transform: scale(0.97); }
/* ========== 弹窗/选择器样式 ========== */
.van-picker__toolbar { border-bottom: 1px solid #f2f3f5; }
.van-picker__title { font-weight: 600; color: #333; }
.van-picker__confirm { color: #018fa5 !important; font-weight: 600; }
/* ========== 动画 ========== */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
.form-card:nth-child(1) { animation: fadeInUp 0.35s ease-out 0.02s both; }
.form-card:nth-child(2) { animation: fadeInUp 0.35s ease-out 0.08s both; }
.form-card:nth-child(3) { animation: fadeInUp 0.35s ease-out 0.14s both; }
.form-card:nth-child(4) { animation: fadeInUp 0.35s ease-out 0.20s both; }
.form-card:nth-child(5) { animation: fadeInUp 0.35s ease-out 0.26s both; }
.form-card:nth-child(6) { animation: fadeInUp 0.35s ease-out 0.32s both; }
.form-card:nth-child(n+7) { animation: fadeInUp 0.35s ease-out 0.38s both; }
/* ========== 响应式适配 ========== */
@media (max-width: 360px) {
.type-grid { gap: 8px; }
.type-item { padding: 14px 8px 12px; }
.type-icon-wrap { width: 44px; height: 44px; border-radius: 12px; }
.type-icon-wrap .van-icon { size: 20px; }
.type-name { font-size: 13.5px; }
.price-value .amount { font-size: 24px; }
.submit-btn { min-width: 100px !important; height: 40px !important; font-size: 15px !important; }
.van-field__label { width: 70px !important; font-size: 13px !important; }
}