* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(255, 205, 178, 0.4), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.25), transparent 35%),
                linear-gradient(140deg, #410000 0%, #7c0c16 45%, #b2251e 80%);
    color: #ffe7dc;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 165, 0.35), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

body::before {
    top: -120px;
    left: -80px;
}

body::after {
    bottom: -160px;
    right: -60px;
}


body.modal-open {
    overflow: hidden;
}


.container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 24px 18px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 1;
}


/* 背景展示区 */
.background-section {
    min-height: 320px;
    height: clamp(320px, 55vh, 580px);
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 221, 199, 0.35);
    background: linear-gradient(120deg, rgba(255, 239, 220, 0.35), rgba(255, 215, 193, 0.25));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}



.background-media {
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
}


.background-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 225, 205, 0.12), rgba(80, 0, 0, 0.45) 65%, rgba(32, 0, 0, 0.68));
    mix-blend-mode: screen;
    z-index: 3;
    pointer-events: none;
}

.light-beam-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
    opacity: 0.85;
}

.light-beam {
    position: absolute;
    bottom: -20%;
    left: 50%;
    width: 12%;
    height: 140%;
    background: linear-gradient(180deg, rgba(255, 248, 232, 0) 0%, rgba(255, 237, 188, 0.6) 45%, rgba(255, 120, 82, 0.45) 80%, rgba(255, 120, 82, 0));
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(var(--beam-rotation, 0deg)) scaleX(1.1);
    filter: blur(2px) drop-shadow(0 0 12px rgba(255, 218, 177, 0.45));
    opacity: var(--beam-opacity, 0.45);
    border-radius: 60% 60% 10% 10%;
    animation: beamSweep var(--beam-duration, 6s) ease-in-out infinite;
    animation-delay: var(--beam-delay, 0s);
}

@keyframes beamSweep {
    0% {
        transform: translateX(-50%) rotate(calc(var(--beam-rotation, 0deg) - 4deg)) scaleY(0.9);
        opacity: calc(var(--beam-opacity, 0.45) * 0.7);
    }
    50% {
        opacity: calc(var(--beam-opacity, 0.45) * 1.1);
    }
    100% {
        transform: translateX(-50%) rotate(calc(var(--beam-rotation, 0deg) + 4deg)) scaleY(1.05);
        opacity: calc(var(--beam-opacity, 0.45) * 0.9);
    }
}

@media (max-width: 768px) {
    .light-beam-layer {
        opacity: 0.65;
    }
}


.bg-image, .bg-video {

    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    z-index: 1; /* 背景图像是最底层 */
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.bg-image {
    filter: brightness(1.08) saturate(1.05);
}

.bg-video {
    filter: brightness(1.04) saturate(1.05);
}




/* 用户献花记录展示区 */
.flower-record-display {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
    text-align: center;
    z-index: 5;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* 献花记录项样式 */
.flower-record-item {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    animation: fadeInUp 0.5s ease-out;
    text-align: center;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.flower-record-name {
    font-size: 17px;
    letter-spacing: 0.08em;
    color: #ffe9c4;
}

.flower-record-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 246, 230, 0.92);
    line-height: 1.5;
    display: inline-block;
    width: 100%;
    max-width: 92%;
    margin: 0 auto;
    text-align: justify;
    text-align-last: center;
    word-break: break-word;
    min-height: 3em;
}

.flower-record-text::after {
    content: '';
    display: inline-block;
    width: 100%;
}

.flower-record-count {
    font-size: 14px;
    color: #ffd7a8;
    letter-spacing: 0.08em;
    opacity: 0.95;
}




@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 花朵展示区 */
.flower-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}


.flower-item {
    position: absolute;
    font-size: 40px;
    animation: float 5s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.flower-item.show {
    opacity: 0.8;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 烟花效果 */
.firework {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    animation: explode 1s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(3);
        opacity: 0.8;
    }
    100% {
        transform: scale(5);
        opacity: 0;
    }
}

/* 底部菊花效果 */
.bottom-flower {
    position: absolute;
    font-size: 25px;
    opacity: 0;
    animation: bottomFloat 3s ease-in-out infinite;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.bottom-flower.show {
    opacity: 0.9;
    transform: translateY(0);
}

@keyframes bottomFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 烟花Canvas样式 - 只覆盖背景图片区域 */
.firework-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6; /* 烟花效果在最顶层 */
    pointer-events: none;
    background: transparent;
}


/* 献花选项区 */
.flower-options-section {
    flex: 1;
    background: rgba(24, 0, 0, 0.75);
    border: 1px solid rgba(255, 181, 134, 0.3);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    padding: 20px;
    border-radius: 28px;
    overflow-y: auto;
    backdrop-filter: blur(12px);
}


.section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffd7b2;
    margin-bottom: 18px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-title::before,
.section-title::after {
    content: '';
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd48c);
    display: inline-block;
}

.section-title::after {
    background: linear-gradient(90deg, #ffd48c, transparent);
}


/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    /* 调整背景展示区高度 */
    .background-section {
        height: clamp(260px, 50vh, 420px);
        min-height: 260px;
    }
    
    /* 调整献花选项区高度 */
    .flower-options-section {
        height: auto;
        padding: 10px;
    }

    
    /* 优化献花记录样式 */
    .flower-record-display {
        width: 95%;
        max-width: none;
        padding: 8px;
        font-size: 14px;
    }
    
    /* 优化标题样式 */
    .section-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    /* 优化查询按钮 */
    .query-section button {
        width: 100%;
        margin-top: 10px;
    }
    
    /* 优化查询输入框 */
    .query-section input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* 优化查询结果样式 */
    .order-result {
        padding: 10px;
    }
    
    /* 优化视频播放控制 */
    .video-controls {
        background: rgba(0, 0, 0, 0.8);
    }
    
    /* 优化视频封面 */
    .video-poster {
        background-size: cover;
        background-position: center;
    }
    
    .video-list-btn {
        width: 100%;
    }
    
    /* 优化献花选项卡片 */

    .flower-option {
        margin-bottom: 10px;
    }
    
    /* 优化按钮样式 */
    button {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    /* 优化弹窗样式 */
    .modal-content {
        width: 90%;
        max-width: 400px;
    }
}

.flower-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.flower-option {
    background: linear-gradient(135deg, rgba(102, 9, 16, 0.95), rgba(191, 46, 33, 0.95));
    border-radius: 18px;
    padding: 18px 22px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid transparent;
}

.flower-option:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 217, 155, 0.7);
}

.flower-option:active {
    transform: scale(0.98);
}

.option-icon {
    font-size: 42px;
    margin-bottom: 0;
}

.option-info {
    flex: 1;
}

.option-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffe7c6;
}

.option-price {
    font-size: 20px;
    color: #ffd77d;
    font-weight: 700;
    margin-bottom: 2px;
}

.option-desc {
    font-size: 13px;
    color: rgba(255, 231, 198, 0.8);
}


/* 代献花篮按钮 */
.proxy-flower-btn {
    width: 100%;
    margin-top: 18px;
    padding: 16px 22px;
    background: linear-gradient(120deg, #ff5a5a 0%, #d02020 50%, #ffb347 100%);
    color: #3b0000;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    transition: all 0.3s;
    letter-spacing: 0.08em;
}

.proxy-flower-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.proxy-flower-btn:active {
    transform: scale(0.97);
}

.proxy-icon {
    font-size: 26px;
}


/* 视频展示区域 */
.video-showcase {
    width: 100%;
    margin: 18px 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
    background: linear-gradient(150deg, rgba(255, 204, 158, 0.12), rgba(74, 0, 0, 0.9));
    position: relative;
    border: 1px solid rgba(255, 193, 158, 0.4);
}

.video-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 196, 140, 0.08) 0%, rgba(255, 246, 223, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 视频标题 */
.video-header {
    padding: 16px 20px;
    background: rgba(23, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 184, 144, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.video-title {
    color: #ffdcb3;
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    flex: 1;
}


.video-list-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 214, 150, 0.45);
    background: linear-gradient(120deg, rgba(255, 214, 150, 0.25), rgba(255, 122, 96, 0.4));
    color: #ffe3c6;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.video-list-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 214, 150, 0.8);
}


.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: radial-gradient(circle, rgba(255, 220, 186, 0.15), rgba(16, 0, 0, 0.95));
}


.showcase-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.showcase-video.modal-video-dimmed,
body.modal-open .showcase-video {
    filter: blur(3px);
    opacity: 0.35;
}

body.mi-browser .video-container {
    padding-top: 60%;
}

body.mi-browser .showcase-video {
    filter: none;
    opacity: 0.95;
}

body.mi-browser .showcase-video.modal-video-dimmed,
body.mi-browser.modal-open .showcase-video {
    filter: blur(3px);
    opacity: 0.32;
}


body.mi-browser .video-text {
    font-size: 14px;
    max-width: 92%;
}

body.mi-browser .video-controls {
    font-size: 13px;
}

/* 视频封面 */

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(140, 0, 0, 0.85), rgba(255, 174, 133, 0.35));
    cursor: pointer;
    touch-action: manipulation;
    z-index: 4;
    display: flex;


    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

.poster-content {
    text-align: center;
    color: #ffe7c3;
}

.play-icon {
    font-size: 64px;
    opacity: 0.9;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 172, 107, 0.6);
    color: #b0211f;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.video-poster:hover .play-icon {
    transform: scale(1.08);
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 214, 150, 0.8);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.video-text {
    color: #6d0505;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 14px 24px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 85%;
    letter-spacing: 0.08em;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 234, 208, 0.9));
    border-radius: 18px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 3;
    position: absolute;
    bottom: calc(12% + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 214, 150, 0.8);
}


.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffd9ba;
    background: linear-gradient(135deg, rgba(74, 0, 0, 0.95), rgba(16, 0, 0, 0.85));
    z-index: 3;
}


.video-placeholder.video-empty {
    display: none;
}

.video-placeholder.video-empty.visible {
    display: flex;
}

.video-placeholder.hidden {
    display: none;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.85;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.placeholder-text {
    font-size: 14px;
    color: rgba(255, 233, 210, 0.85);
    letter-spacing: 1px;
}


/* 视频加载动画 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.video-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #ffb347;
    border-right-color: #ff5656;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* 视频控制栏 */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(8, 0, 0, 0.92) 0%, rgba(32, 0, 0, 0.75) 65%, transparent 100%);
    backdrop-filter: blur(14px);
    padding: 12px 18px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}


.video-container:hover .video-controls,
.video-controls.visible {
    opacity: 1;
}

.video-controls.modal-video-dimmed,
body.modal-open .video-controls {
    opacity: 0 !important;
    pointer-events: none;
}

body.modal-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    pointer-events: none;
}




.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls-center {
    flex: 1;
    margin: 0 20px;
    min-width: 0;
}

.control-btn {
    background: rgba(255, 214, 150, 0.18);
    border: 1px solid rgba(255, 214, 150, 0.35);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffe9c6;
    font-size: 16px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.control-btn:hover {
    background: rgba(255, 214, 150, 0.35);
    transform: translateY(-1px) scale(1.08);
}

.control-btn:active {
    transform: scale(0.95);
}


.btn-icon {
    font-size: 14px;
    display: block;
    width: 100%;
    text-align: center;
}

/* 播放/暂停按钮 */
.play-pause-btn .btn-icon.paused {
    transform: rotate(90deg);
}

/* 时间显示 */
.time-display {
    color: #ffdcb3;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    min-width: 86px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}


/* 进度条 */
.progress-bar-container {
    width: 100%;
    background: rgba(255, 230, 200, 0.25);
    border-radius: 12px;
    cursor: pointer;
    height: 6px;
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease;
}

.progress-bar-container:hover {
    height: 8px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffb347 0%, #ff5656 60%, #ff9d52 100%);
    border-radius: 12px;
    transition: width 0.1s linear;
    width: 0%;
}


.progress-handle {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffc06b;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}


.progress-bar-container:hover .progress-handle,
.progress-bar-container.active .progress-handle {
    opacity: 1;
}

/* 全屏按钮 */
.fullscreen-btn .btn-icon.fullscreen {
    transform: rotate(45deg);
}

/* 音量控制 */
.volume-btn .btn-icon.muted {
    font-size: 12px;
}

/* 客服微信弹窗样式 */
.customer-service-content {
    text-align: center;
    padding: 10px 0;
}

.service-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.wechat-id-box {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wechat-label {
    font-size: 14px;
    color: #666;
}

.wechat-id {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.copy-wechat-btn {
    width: 100%;
    padding: 14px 20px;
    background: #07C160;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.copy-wechat-btn:hover {
    background: #06ad56;
}

.copy-hint {
    margin-top: 12px;
    font-size: 14px;
    color: #07C160;
}

/* 我的订单区 */
.order-section {
    background: rgba(28, 0, 0, 0.75);
    padding: 20px;
    border: 1px solid rgba(255, 190, 151, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.order-query {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.order-input {
    flex: 1;
    padding: 14px;
    border: 1px solid rgba(255, 213, 162, 0.35);
    border-radius: 14px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffe9d2;
}

.order-input::placeholder {
    color: rgba(255, 233, 210, 0.65);
}

.query-btn {
    padding: 14px 18px;
    background: linear-gradient(120deg, #ffb347, #ff5656);
    color: #300000;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.order-result {
    text-align: center;
}

.result-message {
    margin-bottom: 12px;
    font-size: 15px;
    color: #ffdcb3;
}

.view-video-btn, .reset-btn {
    padding: 9px 18px;
    margin: 0 5px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.view-video-btn {
    background: linear-gradient(120deg, #a3f7bf, #2fcc71);
    color: #05331e;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffe6d4;
}


/* 支付弹窗 */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(70, 0, 0, 0.8), rgba(0, 0, 0, 0.85));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(6px);
}

#customerServiceModal {
    z-index: 2100;
}


.modal-content {
    width: 90%;
    max-width: 420px;
    background: rgba(17, 0, 0, 0.95);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 183, 143, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 204, 164, 0.2);
    color: #ffdcb3;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffdcb3;
}

.modal-body {
    padding: 20px 22px;
    color: #ffe8d0;
}


.payment-info {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 204, 164, 0.15);
    border-radius: 16px;
    padding: 16px;
}

.payment-info p {
    margin-bottom: 10px;
    color: #ffdcb3;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 204, 164, 0.35);
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    color: #ffe4c9;
}

.payment-method.active {
    border-color: #ffb347;
    background: rgba(255, 179, 71, 0.15);
}

.method-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.method-name {
    font-size: 15px;
}

.modal-footer {
    padding: 20px 22px;
    border-top: 1px solid rgba(255, 204, 164, 0.2);
}

.confirm-payment-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(120deg, #ffb347, #ff5656);
    color: #300000;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}


/* 姓名输入弹窗样式 */
.name-input-section {
    margin: 20px 0;
}

.name-input-field {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 204, 164, 0.35);
    border-radius: 14px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    color: #ffe6cf;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cancel-btn {
    flex: 1;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe6d4;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
}

.modal-footer .confirm-payment-btn {
    flex: 1;
}


/* 视频列表页 */
.video-list-page, .video-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: radial-gradient(circle at top, rgba(255, 213, 182, 0.15), transparent 45%),
                linear-gradient(145deg, #400000 0%, #6a0d11 45%, #9e1d17 80%);
}

.video-list-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 0;
}

.video-list-page > * {
    position: relative;
    z-index: 1;
}


.video-list-page .page-header,
.video-detail-page .page-header {
    padding: 16px 20px;
    background: rgba(20, 0, 0, 0.82);
    color: #ffe7d1;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 208, 176, 0.18);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.video-list-page .page-header h2,
.video-detail-page .page-header h2 {
    font-size: 19px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.08em;
}

.video-list-page .back-btn,
.video-detail-page .back-btn {
    font-size: 16px;
    padding: 8px 14px;
    background: linear-gradient(120deg, rgba(255, 212, 150, 0.25), rgba(255, 127, 99, 0.25));
    border: 1px solid rgba(255, 214, 150, 0.4);
    border-radius: 999px;
    color: #ffe7c5;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.video-list-page .back-btn:hover,
.video-detail-page .back-btn:hover {
    background: linear-gradient(120deg, rgba(255, 214, 150, 0.45), rgba(255, 127, 99, 0.45));
    transform: translateY(-1px);
}

.video-list {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.video-item {
    background: rgba(22, 0, 0, 0.78);
    border: 1px solid rgba(255, 209, 175, 0.25);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.video-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 214, 150, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.video-item-thumb {
    position: relative;
    width: 110px;
    height: 90px;
    flex-shrink: 0;
}

.video-item-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 214, 150, 0.35);
}

.video-item-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 11px;
    background: linear-gradient(120deg, #ffb347, #ff5656);
    color: #3a0000;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.video-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffe6ce;
    letter-spacing: 0.05em;
}

.video-item-meta {
    font-size: 13px;
    color: rgba(255, 230, 200, 0.8);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.video-item-ribbon {
    font-size: 13px;
    color: rgba(255, 236, 212, 0.9);
    letter-spacing: 0.04em;
}

.video-item-arrow {
    font-size: 20px;
    color: rgba(255, 214, 150, 0.7);
}

.video-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: #ffe0c1;
    padding: 40px 20px;
    border-radius: 24px;
    background: rgba(24, 0, 0, 0.8);
    border: 1px dashed rgba(255, 214, 150, 0.5);
}

/* 视频详情页 */
.video-player {
    width: 100%;
    height: auto;
    background-color: #000;
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    playsinline: true;
    webkit-playsinline: true;
    x5-playsinline: true;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-detail-page .video-player {
        padding-top: 75%; /* 4:3 比例，更适合手机竖屏 */
    }
    
    .video-detail-page .video-info {
        padding: 15px;
    }
    
    .video-detail-page .share-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .video-list {
        padding: 20px 14px;
        grid-template-columns: 1fr;
    }
}

.video-info {
    padding: 15px;
}

.video-info p {
    margin-bottom: 10px;
    font-size: 16px;
}


.share-section {
    padding: 15px;
    text-align: center;
}

.share-btn {
    padding: 12px 30px;
    background-color: #07C160;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .flower-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .flower-option {
        padding: 10px;
    }
    
    .option-icon {
        font-size: 24px;
    }
    
    .option-name {
        font-size: 14px;
    }
    
    .option-price {
        font-size: 16px;
    }
    
    .option-desc {
        font-size: 10px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* 测试日志显示区域（调试用，后期可删除） */
.debug-log-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: monospace;
    font-size: 12px;
}

.debug-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));

    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    color: #fff;
}

.debug-log-header span {
    font-weight: bold;
}

.debug-log-btn {
    padding: 5px 10px;
    margin-left: 10px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.debug-log-btn:hover {
    background-color: #666;
}

.debug-log-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    color: #0f0;
    line-height: 1.5;
}

.debug-log-content .log-entry {
    margin-bottom: 5px;
    padding: 5px;
    border-bottom: 1px solid #333;
}

.debug-log-content .log-time {
    color: #888;
}

.debug-log-content .log-method {
    color: #ff6b6b;
    font-weight: bold;
}

.debug-log-content .log-url {
    color: #4ecdc4;
}

.debug-log-content .log-status {
    color: #95e1d3;
}

.debug-log-content .log-error {
    color: #ff4444;
}

.debug-log-content .log-success {
    color: #44ff44;
}

.debug-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.debug-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}