/* pages/takePhoto/takePhoto.wxss */ /* 全局样式 */ page { background-color: #f5f7fa; color: #333; font-size: 14px; line-height: 1.5; } .container { background-color: #fff; min-height: 100vh; position: relative; padding-bottom: 60px; } .header { background-color: #1e88e5; color: white; padding: 15px; text-align: center; font-size: 18px; font-weight: bold; position: sticky; top: 0; z-index: 100; } .content { padding: 15px; } /* 按钮样式 */ .btn-group { display: flex; flex-direction: column; gap: 15px; margin-bottom: 15px; } .btn { display: block; width: 100%; padding: 15px; border-radius: 8px; text-align: center; color: white; font-weight: bold; margin-bottom: 0; line-height: 1.5; border: none; } .btn-green { background-color: #4caf50; } .btn-blue { background-color: #1e88e5; } .btn-red { background-color: #f44336; } .btn-phone { background-color: #2196f3; display: inline-flex; align-items: center; justify-content: center; width: 220rpx; padding: 10rpx 0px; font-size: 12px; } .tel { margin-right: 12rpx; } /* 卡片样式 */ .card { background-color: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin-bottom: 15px; overflow: hidden; } .card-header { padding: 12px 15px; border-bottom: 1px solid #eee; font-weight: bold; font-size: 16px; color: #333; background-color: #f9f9f9; } .card-content { padding: 20rpx 30rpx; } /* 搜索框 */ .search-box { display: flex; margin-bottom: 15px; } .search-input { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 8px 0 0 8px; } .search-btn { background-color: #1e88e5; color: white; border: none; padding: 0 15px; border-radius: 0 8px 8px 0; line-height: 88rpx; font-size: 14px; } /* 列表样式 */ .list-item { padding: 12px 6px; border-bottom: 1px solid #eee; } .list-item:last-child { border-bottom: none; } /* 标签样式 */ .tag { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; color: white; margin-right: 5px; background-color: #1e88e5; } .tag-warning { background-color: #ff9800; } .tag-danger { background-color: #f44336; } .tag-blue { background-color: #1e88e5; } /* 证书项目样式 */ .cert-item { padding: 5px 8rpx; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; } .cert-item:last-child { border-bottom: none; } .expire-date { color: #f44336; } .upgrade-info { color: #1e88e5; } .contact-info { text-align: center; } .contact-item { display: flex; justify-content: space-between; align-items: center; padding: 10rpx 0; margin-bottom: 10rpx; } .text-danger { color: #f44336; } .cert-status { display: flex; flex-direction: column; font-size: 12px; margin-top: 5rpx; } /* 热门推荐服务样式 */ .section-title { background-color: #1e88e5; color: white; padding: 10px 15px; border-radius: 8px 8px 0 0; font-weight: bold; font-size: 16px; margin-top: 15px; margin-bottom: 0; } .hot-services { margin-top: 10px; } .service-item { padding: 20rpx; border-bottom: 1px solid #eee; display: flex; /* flex-direction: column; */ align-items: center; justify-content: space-between; } .no-data { text-align: center; padding: 30rpx; color: #999; font-size: 28rpx; } .loading { text-align: center; padding: 30rpx; color: #666; font-size: 28rpx; } .dock-name { font-size: 20rpx; color: #666; margin-right: 20rpx; padding: 4rpx 12rpx; background-color: #f5f5f5; border-radius: 4rpx; } .service-name { font-size: 24rpx; font-weight: bold; color: #333; margin-right: 20rpx; } .service-type { color: #666; /* margin: 5px 0; */ } /* 水位信息样式 */ .water-level-info { margin-top: 10px; max-height: 400rpx; } .water-level-item { display: flex; align-items: center; /* justify-content: space-around; */ text-align: center; padding: 12rpx; border: 1px solid #eee; border-radius: 4px; margin-bottom: 12rpx; } .water-level-item:last-child { margin-right: 0; } .water-level-station { font-weight: bold; color: #777; width: 35%; } .water-level-value { font-size: 16px; margin: 5px 0; color: #555; width: 35%; } .water-level-trend { font-size: 14px; width: 30%; text-align: center; } .rising { color: #f44336; } .falling { color: #4caf50; } .stable { color: #1e88e5; } /* 政策解读样式 */ .policy-list { margin-top: 10px; } .policy-item { padding: 10px 0; border-bottom: 1px solid #eee; } .policy-item:last-child { border-bottom: none; } .policy-ship-type { font-weight: bold; } .policy-energy-type { color: #1e88e5; margin: 5px 0; } .policy-subsidy { color: #f44336; font-weight: bold; } /* 地图容器 */ .map-container { height: 200px; background-color: #e0e0e0; margin-bottom: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #666; position: relative; } .map-marker { position: absolute; width: 20px; height: 20px; background-color: #1e88e5; border-radius: 50%; transform: translate(-50%, -50%); } .map-marker.ship { background-color: #4caf50; top: 40%; left: 45%; } .map-marker.cargo { background-color: #f44336; } /* 货盘列表样式 */ .cargo-list { margin-top: 10px; } .cargo-item { padding: 10px; border-bottom: 1px solid #eee; } .cargo-item:last-child { border-bottom: none; } .cargo-info { margin-bottom: 20rpx; display: flex; justify-content: space-around; } .cargo-type { font-weight: bold; } .cargo-meta { display: flex; justify-content: space-between; align-items: center; } .cargo-distance { color: #666; font-size: 24rpx; margin-left: 20rpx; } /* 政策表格样式 */ .policy-table { width: 100%; border: 1px solid #eee; border-radius: 4px; overflow: hidden; } .policy-header { display: flex; background-color: #f5f7fa; font-weight: bold; border-bottom: 1px solid #eee; } .policy-row { display: flex; border-bottom: 1px solid #eee; } .policy-row:last-child { border-bottom: none; } .policy-cell { flex: 1; padding: 10px; text-align: center; border-right: 1px solid #eee; display: flex; align-items: center; justify-content: center; color: #333; } .policy-header .policy-cell { color: #777; } .policy-cell:last-child { border-right: none; }