/* 历程页面样式 */
.memory-card {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-top: 20px;
}

.memory-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.memory-title {
    font-size: 24px;
    font-weight: bold;
    color: #ab2824;
    margin-bottom: 15px;
    display: block;
}

.memory-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: block;
}

.memory-desc .memory-price {
  font-size: 1.4em;
  color: #ab2824;
  font-weight: bold;
}

.module-container {
    margin: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.module-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.module-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.toggle-text {
    font-size: 14px;
    color: #ab2824;
}

.template-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
    transition: max-height 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #ab2824 #f0f0f0;
}

.template-list::-webkit-scrollbar {
    width: 6px;
}

.template-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.template-list::-webkit-scrollbar-thumb {
    background: #ab2824;
    border-radius: 3px;
}

.template-list::-webkit-scrollbar-thumb:hover {
    background: #8a1f1c;
}

.template-card {
    position: relative;
    width: 100%;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-card.selected {
    border-color: #ab2824;
    box-shadow: 0 0 0 2px rgba(171, 40, 36, 0.2);
}

.template-media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.template-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-actions {
    padding: 12px;
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-preview,
.btn-select {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-preview {
    background: #e9ecef;
    color: #495057;
}

.btn-preview:hover {
    background: #dee2e6;
    color: #212529;
}

.btn-select {
    background: #ab2824;
    color: white;
}

.btn-select:hover {
    background: #8a1f1c;
}

.btn-select.selected {
    background: #28a745;
}

.btn-select.selected:hover {
    background: #218838;
}

.template-actions {
    padding: 8px;
    display: flex;
    gap: 6px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-preview,
.btn-select {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-preview {
    background: #e9ecef;
    color: #495057;
}

.btn-preview:hover {
    background: #dee2e6;
    color: #212529;
}

.btn-select {
    background: #ab2824;
    color: white;
}

.btn-select:hover {
    background: #8a1f1c;
}

.btn-select.selected {
    background: #28a745;
}

.btn-select.selected:hover {
    background: #218838;
}

.video-mask {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    z-index: 10;
    background: rgba(0,0,0,0);
    cursor: pointer;
}



.template-card.selected {
    border: 2px solid #ab2824 !important;
    box-shadow: 0 0 8px #ab282433;
    background: #fff6f6;
    position: relative;
}

.template-card.selected::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e6531d;
  z-index: 3;
}
.template-card.selected::before {
  content: none;
}
.template-card.selected::before::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e6531d;
}

.template-image, .template-video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}






.template-info {
    padding: 1px;
    text-align: center;
    font-size: 11px;
    color: #f70d0d;
}

.button-area {
    position: relative;
    margin: 20px;
    padding: 0 20px;
    z-index: 3;
}

.experience-button, .select-mode-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-experience, .btn-confirm, .btn-cancel {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-experience {
  min-width: 240px;
  width: 60%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}

.btn-experience, .btn-confirm {
    background-color: #ab2824;
    color: rgb(243, 235, 152);
}

.btn-experience:hover, .btn-confirm:hover {
    background-color: #8a1f1c;
    transform: translateY(-2px);
}

.btn-confirm:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background-color: #e5e5e5;
}

/* 全屏查看器样式 */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #000;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 10000;
}

.fullscreen-title {
    font-size: 18px;
    font-weight: bold;
}

.close-fullscreen {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-fullscreen:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.fullscreen-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.fullscreen-image-container,
.fullscreen-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.fullscreen-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 全屏查看器响应式设计 */
@media (max-width: 768px) {
    .fullscreen-header {
        padding: 10px 15px;
    }
    
    .fullscreen-title {
        font-size: 16px;
    }
    
    .close-fullscreen {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .fullscreen-body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .fullscreen-header {
        padding: 8px 12px;
    }
    
    .fullscreen-title {
        font-size: 14px;
    }
    
    .close-fullscreen {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .fullscreen-body {
        padding: 5px;
    }
    
    /* 移动端隐藏点击预览提示 */
    .template-card:not(.selected)::before {
        display: none;
    }
    
    /* 移动端隐藏视频预览提示 */
    .template-card:not(.selected) .template-video::before {
        display: none;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .memory-card {
        padding: 15px;
        margin-top: 15px;
    }
    
    .memory-content {
        padding: 15px;
    }
    
    .memory-title {
        font-size: 20px;
    }
    
    .memory-desc {
        font-size: 13px;
    }
    
    .module-container {
        margin: 15px;
    }
    
    .template-list {
        gap: 10px;
        padding: 10px;
        max-height: 180px;
        grid-template-columns: 1fr 1fr;
    }
    
    .template-card {
        width: 100%;
    }
    
    .template-image, .template-video {
        height: 120px;
    }
    
    .button-area {
        margin: 15px;
        padding: 0 15px;
    }
    
    .btn-experience, .btn-confirm, .btn-cancel {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .memory-card {
        padding: 10px;
        margin-top: 10px;
    }
    
    .memory-content {
        padding: 12px;
    }
    
    .memory-title {
        font-size: 18px;
    }
    
    .memory-desc {
        font-size: 12px;
    }
    
    .module-container {
        margin: 10px;
    }
    
    .template-list {
        gap: 8px;
        padding: 8px;
        max-height: 160px;
        grid-template-columns: 1fr 1fr;
    }
    
    .template-card {
        width: 100%;
    }
    
    .template-image, .template-video {
        height: 100px;
    }
    
    .button-area {
        margin: 10px;
        padding: 0 10px;
    }
    
    .btn-experience, .btn-confirm, .btn-cancel {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 80px;
    }
} 

#memory-page .background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    object-fit: cover;
} 

.order-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.order-modal-mask {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}
.order-modal-content {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  height: 70vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  z-index: 2001;
  animation: slideUpOrderModal 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUpOrderModal {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.order-modal-header {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
}
.order-modal-close {
  position: absolute;
  right: 16px;
  top: 8px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.order-modal-item {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 12px;
}
.order-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}
.order-pay-btn {
  background: #e6531d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 32px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
}
.order-pay-btn:active {
  background: #c94413;
} 

.pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-method-card {
  display: flex;
  align-items: center;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: border-color 0.2s;
}
.pay-method-card.selected {
  border-color: #1677ff;
  background: #f6faff;
}
.pay-method-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}
.pay-method-name {
  font-size: 16px;
  font-weight: bold;
  color: #222;
}
.pay-method-tag {
  font-size: 12px;
  color: #1677ff;
  background: #e6f0ff;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
}
.pay-method-check {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #1677ff;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-method-card.selected .pay-method-check {
  border-color: #1677ff;
  background: #fff;
}
.pay-method-card.selected .pay-method-check::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1677ff;
} 

.order-cancel-btn {
  background: #fff;
  color: #e6531d;
  border: 1px solid #e6531d;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.order-cancel-btn:active {
  background: #f5f5f5;
  color: #c94413;
} 

.select-tip-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.select-tip-mask {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}
.select-tip-content {
  position: relative;
  background: #fff;
  color: #e6531d;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  z-index: 1;
  text-align: center;
} 