123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907 |
- /* 基础样式 */
- page {
- background-color: #f8f9fa;
- }
- .container {
- padding: 0 20rpx 140rpx;
- color: #333;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
- }
- /* 顶部导航 */
- .header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 30rpx 0;
- position: sticky;
- top: 0;
- background-color: #f8f9fa;
- z-index: 100;
- }
- .back-btn {
- display: flex;
- align-items: center;
- font-size: 28rpx;
- color: #666;
- }
- .back-icon {
- width: 36rpx;
- height: 36rpx;
- margin-right: 10rpx;
- }
- .title {
- font-size: 36rpx;
- font-weight: 600;
- color: #333;
- }
- .header-right {
- width: 80rpx; /* 保持对称 */
- }
- /* 行程基本信息卡片 */
- .plan-info-card {
- background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
- border-radius: 20rpx;
- padding: 30rpx;
- margin-bottom: 40rpx;
- box-shadow: 0 6rpx 18rpx rgba(0, 0, 0, 0.03);
- border: 1rpx solid #eee;
- }
- .plan-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20rpx;
- }
- .plan-title {
- font-size: 38rpx;
- font-weight: 600;
- color: #333;
- flex: 1;
- }
- .plan-days-badge {
- background-color: #e54d42;
- color: white;
- padding: 8rpx 20rpx;
- border-radius: 30rpx;
- font-size: 24rpx;
- font-weight: 500;
- }
- .meta-item {
- display: flex;
- align-items: center;
- color: #666;
- font-size: 26rpx;
- margin-bottom: 15rpx;
- }
- .meta-icon {
- width: 28rpx;
- height: 28rpx;
- margin-right: 10rpx;
- opacity: 0.8;
- }
- .plan-desc-box {
- position: relative;
- margin: 30rpx 0;
- padding-left: 40rpx;
- }
- .quote-icon {
- position: absolute;
- left: 0;
- top: 0;
- width: 30rpx;
- height: 30rpx;
- opacity: 0.3;
- }
- .plan-desc {
- font-size: 28rpx;
- line-height: 1.6;
- color: #555;
- }
- /* 城市标签 */
- .city-tags {
- display: flex;
- flex-wrap: wrap;
- margin-top: 20rpx;
- }
- .city-tag {
- display: flex;
- align-items: center;
- background-color: #f0f7ff;
- color: #0081ff;
- padding: 8rpx 20rpx 8rpx 15rpx;
- border-radius: 30rpx;
- margin-right: 15rpx;
- margin-bottom: 15rpx;
- font-size: 24rpx;
- border: 1rpx solid #d0e4ff;
- }
- .tag-icon {
- width: 24rpx;
- height: 24rpx;
- margin-right: 8rpx;
- }
- /* 时间轴布局 */
- .timeline {
- position: relative;
- padding-left: 80rpx;
- }
- .timeline:before {
- content: '';
- position: absolute;
- left: 35rpx;
- top: 0;
- bottom: 0;
- width: 2rpx;
- background-color: #e0e0e0;
- }
- .timeline-item {
- position: relative;
- margin-bottom: 50rpx;
- }
- .timeline-marker {
- position: absolute;
- left: -70rpx;
- top: 0;
- width: 80rpx;
- height: 80rpx;
- border-radius: 50%;
- color: white;
- font-size: 28rpx;
- font-weight: 600;
- display: flex;
- align-items: center;
- justify-content: center;
- text-align: center;
- box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
- z-index: 2;
- transition: all 0.3s ease;
- transform: translateY(-10rpx);
- border: 4rpx solid white;
- }
- .timeline-marker::before {
- content: '';
- position: absolute;
- width: 100%;
- height: 100%;
- border-radius: 50%;
- background: rgba(255, 255, 255, 0.2);
- transform: scale(0);
- transition: all 0.3s ease;
- }
- .timeline-marker:active::before {
- transform: scale(1);
- }
- .timeline-item:hover .timeline-marker {
- transform: translateY(-10rpx) scale(1.1);
- box-shadow: 0 12rpx 30rpx rgba(0, 0, 0, 0.2);
- }
- .timeline-content {
- background-color: white;
- border-radius: 16rpx;
- padding: 30rpx;
- box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
- border: 1rpx solid #f0f0f0;
- }
- .day-theme-box {
- display: flex;
- align-items: center;
- margin-bottom: 30rpx;
- padding-bottom: 20rpx;
- border-bottom: 1rpx dashed #eee;
- }
- .theme-icon {
- width: 32rpx;
- height: 32rpx;
- margin-right: 15rpx;
- }
- .day-theme {
- font-size: 32rpx;
- font-weight: 600;
- color: #333;
- }
- /* 景点卡片 */
- .attraction-card {
- margin-bottom: 40rpx;
- background: white;
- border-radius: 16rpx;
- overflow: hidden;
- box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
- transition: all 0.3s ease;
- position: relative;
- }
- .attraction-card:active {
- transform: translateY(4rpx);
- box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
- }
- .attraction-header {
- display: flex;
- align-items: center;
- padding: 25rpx 30rpx;
- background-color: #f9f9f9;
- border-bottom: 1rpx solid #eee;
- }
- .attraction-index {
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- background-color: #e54d42;
- color: white;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 24rpx;
- font-weight: bold;
- margin-right: 20rpx;
- flex-shrink: 0;
- }
- .attraction-name {
- flex: 1;
- font-size: 30rpx;
- font-weight: 600;
- color: #333;
- margin-right: 15rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .attraction-status {
- font-size: 24rpx;
- padding: 6rpx 16rpx;
- border-radius: 30rpx;
- background-color: #f0f0f0;
- color: #999;
- flex-shrink: 0;
- }
- .attraction-status.checked {
- background-color: #4CAF50;
- color: white;
- }
- .attraction-body {
- position: relative;
- }
- .attraction-image-box {
- height: 300rpx;
- position: relative;
- }
- .attraction-image {
- width: 100%;
- height: 100%;
- }
- .image-overlay {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- height: 100rpx;
- background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
- }
- /* 景点操作按钮 */
- .attraction-actions {
- display: flex;
- justify-content: flex-end;
- padding: 20rpx 30rpx 0;
- margin-top: -10rpx;
- position: relative;
- z-index: 2;
- }
- .checkin-btn {
- display: flex;
- align-items: center;
- font-size: 30rpx;
- padding: 10rpx 180rpx;
- background-color: #ffffff;
- color: #050505;
- border-radius: 20rpx;
- border: 1rpx solid #e4e7eb;
- transition: all 0.2s ease;
- margin-bottom: 25rpx;
- }
- .checkin-btn:active {
- background-color: #e0efff;
- transform: scale(0.98);
- }
- .action-icon {
- width: 28rpx;
- height: 28rpx;
- margin-right: 8rpx;
- }
- .attraction-details {
- padding: 25rpx 30rpx 30rpx;
- }
- .detail-row {
- display: flex;
- align-items: center;
- margin-bottom: 18rpx;
- font-size: 26rpx;
- color: #666;
- }
- .detail-icon {
- width: 28rpx;
- height: 28rpx;
- margin-right: 12rpx;
- opacity: 0.7;
- }
- .section {
- margin-top: 25rpx;
- padding-top: 25rpx;
- border-top: 1rpx solid #f5f5f5;
- }
- .section-title {
- display: flex;
- align-items: center;
- margin-bottom: 15rpx;
- font-size: 28rpx;
- font-weight: 600;
- color: #333;
- }
- .section-icon {
- width: 28rpx;
- height: 28rpx;
- margin-right: 12rpx;
- }
- .section-content {
- font-size: 26rpx;
- line-height: 1.6;
- color: #666;
- }
- /* 当日总结 */
- .day-summary {
- margin-top: 40rpx;
- padding-top: 30rpx;
- border-top: 1rpx dashed #eee;
- }
- .summary-header {
- display: flex;
- align-items: center;
- margin-bottom: 20rpx;
- }
- .summary-icon {
- width: 32rpx;
- height: 32rpx;
- margin-right: 15rpx;
- }
- .summary-content {
- font-size: 26rpx;
- line-height: 1.6;
- color: #666;
- }
- /* 悬浮操作按钮 */
- .floating-actions {
- position: fixed;
- bottom: 30rpx;
- left: 30rpx;
- right: 30rpx;
- display: flex;
- justify-content: space-between;
- z-index: 99;
- }
- .share-btn, .map-btn {
- height: 80rpx;
- border-radius: 40rpx;
- font-size: 28rpx;
- font-weight: 500;
- display: flex;
- align-items: center;
- justify-content: center;
- box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.15);
- transition: all 0.2s ease;
- }
- .share-btn {
- flex: 0.48;
- background: linear-gradient(135deg, #0081ff 0%, #0066cc 100%);
- color: white;
- }
- .map-btn {
- flex: 0.48;
- background: linear-gradient(135deg, #e54d42 0%, #c62a2a 100%);
- color: white;
- }
- .share-btn:active, .map-btn:active {
- transform: translateY(4rpx);
- box-shadow: 0 3rpx 10rpx rgba(0, 0, 0, 0.15);
- }
- .btn-icon {
- width: 32rpx;
- height: 32rpx;
- margin-right: 10rpx;
- }
- /* 打卡记录弹窗 */
- .checkin-modal {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 999;
- display: none;
- align-items: center;
- justify-content: center;
- }
- .checkin-modal.show {
- display: flex;
- }
- .modal-mask {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.6);
- animation: fadeIn 0.3s ease;
- }
- @keyframes fadeIn {
- from { opacity: 0; }
- to { opacity: 1; }
- }
- .modal-content {
- position: relative;
- width: 80%;
- max-width: 600rpx;
- background-color: #fff;
- border-radius: 20rpx;
- overflow: hidden;
- z-index: 1000;
- animation: slideUp 0.3s ease;
- }
- @keyframes slideUp {
- from {
- opacity: 0;
- transform: translateY(50rpx) scale(0.95);
- }
- to {
- opacity: 1;
- transform: translateY(0) scale(1);
- }
- }
- .modal-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 30rpx;
- border-bottom: 1rpx solid #f5f5f5;
- background-color: #fafafa;
- }
- .modal-title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333;
- }
- .modal-close {
- padding: 10rpx;
- border-radius: 50%;
- transition: background-color 0.2s ease;
- }
- .modal-close:active {
- background-color: #f0f0f0;
- }
- .close-icon {
- width: 36rpx;
- height: 36rpx;
- }
- .checkin-swiper {
- height: 600rpx;
- }
- .checkin-item {
- display: flex;
- flex-direction: column;
- height: 100%;
- }
- .checkin-image-box {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 30rpx;
- background-color: #f8f9fa;
- }
- .checkin-image {
- width: 100%;
- height: 400rpx;
- border-radius: 12rpx;
- box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
- }
- .checkin-info {
- padding: 25rpx 30rpx 30rpx;
- text-align: center;
- background-color: white;
- }
- .checkin-time {
- display: block;
- font-size: 24rpx;
- color: #999;
- margin-bottom: 15rpx;
- }
- .checkin-note {
- font-size: 28rpx;
- line-height: 1.5;
- color: #333;
- word-break: break-word;
- }
- .checkin-pagination {
- padding: 20rpx;
- text-align: center;
- font-size: 28rpx;
- color: #666;
- border-top: 1rpx solid #f5f5f5;
- background-color: #fafafa;
- }
- /* 地图弹窗样式 */
- .map-modal {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 1000;
- display: flex;
- align-items: center;
- justify-content: center;
- opacity: 0;
- visibility: hidden;
- transition: opacity 0.3s ease, visibility 0.3s ease;
- }
- .map-modal.show {
- opacity: 1;
- visibility: visible;
- }
- .modal-mask {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.6);
- backdrop-filter: blur(3px);
- }
- .map-content {
- position: relative;
- width: 90%;
- max-width: 800px;
- height: 80%;
- background: #fff;
- border-radius: 16px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
- transform: translateY(20px);
- transition: transform 0.3s ease;
- }
- .map-modal.show .map-content {
- transform: translateY(0);
- }
- .modal-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 18px 20px;
- border-bottom: 1px solid #eee;
- background: #f9f9f9;
- }
- .modal-title {
- font-size: 18px;
- font-weight: 600;
- color: #333;
- }
- .modal-close {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- transition: background 0.2s;
- }
- .modal-close:hover {
- background: #f0f0f0;
- }
- .close-icon {
- width: 22px;
- height: 22px;
- }
- /* 地图容器 */
- .map-container {
- flex: 1;
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 15px;
- }
- #planMap {
- width: 100%;
- height: 100%;
- border-radius: 12px;
- overflow: hidden;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- }
- /* 地图控制按钮 */
- .map-controls {
- position: absolute;
- right: 25px;
- bottom: 25px;
- display: flex;
- flex-direction: column;
- background: rgba(255, 255, 255, 0.95);
- border-radius: 10px;
- overflow: hidden;
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
- z-index: 10;
- }
- .control-btn {
- width: 46px;
- height: 46px;
- padding: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- background: transparent;
- border: none;
- border-bottom: 1px solid #f0f0f0;
- cursor: pointer;
- transition: background 0.2s;
- }
- .control-btn:hover {
- background: #f8f8f8;
- }
- .control-btn:last-child {
- border-bottom: none;
- }
- .control-icon {
- width: 24px;
- height: 24px;
- }
- /* 地图图例 - 顶部 */
- .map-legend {
- position: absolute;
- left: 25px;
- top: 25px;
- background: rgba(255, 255, 255, 0.95);
- border-radius: 10px;
- padding: 12px 15px;
- display: flex;
- flex-direction: column;
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
- z-index: 10;
- max-width: 140px;
- }
- .legend-item {
- display: flex;
- align-items: center;
- margin-bottom: 10px;
- font-size: 12px;
- color: #333;
- }
- .legend-item:last-child {
- margin-bottom: 0;
- }
- .legend-color {
- width: 14px;
- height: 14px;
- border-radius: 50%;
- margin-right: 8px;
- flex-shrink: 0;
- }
- /* 地图图例 - 底部 */
- .map-legend-bottom {
- padding: 15px 20px;
- display: flex;
- justify-content: center;
- border-top: 1px solid #eee;
- background: #f9f9f9;
- }
- .map-legend-bottom .legend-item {
- margin: 0 15px;
- display: flex;
- align-items: center;
- }
- .legend-icon {
- width: 18px;
- height: 18px;
- margin-right: 6px;
- }
- /* 自定义地图标记点样式 */
- .custom-marker {
- position: relative;
- }
- .marker-label {
- position: absolute;
- left: 0;
- transform: translateX(-50%);
- display: flex;
- flex-direction: column;
- align-items: center;
- z-index: 999;
- }
- .label-bubble {
- background: rgba(255, 255, 255, 0.95);
- padding: 8rpx 16rpx;
- border-radius: 12rpx;
- box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
- margin-bottom: 4rpx;
- }
- .label-text {
- font-size: 24rpx;
- color: #333;
- font-weight: bold;
- white-space: nowrap;
- }
- .label-arrow {
- width: 0;
- height: 0;
- border-left: 8rpx solid transparent;
- border-right: 8rpx solid transparent;
- border-top: 8rpx solid rgba(255, 255, 255, 0.95);
- }
- /* 地点列表样式 */
- .location-list {
- margin-top: 20rpx;
- border-top: 1rpx solid #eee;
- padding-top: 20rpx;
- }
- .list-scroll {
- max-height: 300rpx;
- }
- .list-title {
- font-size: 32rpx;
- font-weight: bold;
- margin-bottom: 20rpx;
- color: #333;
- }
- .location-item {
- display: flex;
- align-items: center;
- padding: 20rpx;
- border-radius: 12rpx;
- background: #f9f9f9;
- margin-bottom: 16rpx;
- }
- .location-item:active {
- background: #f0f0f0;
- }
- .location-icon {
- width: 40rpx;
- height: 40rpx;
- margin-right: 20rpx;
- }
- .location-info {
- flex: 1;
- }
- .location-name {
- display: block;
- font-size: 28rpx;
- color: #333;
- margin-bottom: 6rpx;
- }
- .location-day {
- font-size: 24rpx;
- color: #888;
- }
- .arrow-icon {
- width: 24rpx;
- height: 24rpx;
- }
|