/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-font-smoothing: antialiased; /* 字体平滑渲染 */
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    font-size: 16px; /* 基准字体大小 */
    touch-action: manipulation; /* 改善触摸体验 */
}

body {
    background-color: #f0f8ff;
    min-height: 100vh;
    overflow-x: hidden; /* 防止水平溢出 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 平滑滚动 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 主标题 */
.main-title {
    text-align: center;
    padding: 30px 0 20px;
    margin: 0;
    font-size: 2.4em;
    font-weight: 800;
    color: #333;
    position: relative;
}

.title-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6cb2eb, #4CAF50);
    margin: 5px auto 20px;
    border-radius: 3px;
}

.title-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    perspective: 100px;
}

.title-tag {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: white;
    color: #2D3748;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
    overflow: hidden;
    z-index: 1;
}

.title-tag:nth-child(1) {
    border-top-color: #6cb2eb;
}

.title-tag:nth-child(2) {
    border-top-color: #4CAF50;
}

.title-tag:nth-child(3) {
    border-top-color: #f6ad55;
}

.title-tag:nth-child(4) {
    border-top-color: #805ad5;
}

.title-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(108, 178, 235, 0.03) 100%);
    z-index: -1;
}

.title-tag:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 板块容器 */
.section-block {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin: 40px 0 30px; /* 增加顶部间距 */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    height: auto;
}

/* 减小下单流程说明与上方元素的间距，并添加微妙的连接元素 */
#order-steps {
    margin-top: 10px;  /* 进一步减小顶部边距 */
    position: relative;
    z-index: 1;
}

/* 添加连接线，创建与上一个区块的视觉连接 */
#order-steps::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background: linear-gradient(to bottom, rgba(108, 178, 235, 0.3), rgba(108, 178, 235, 0.1));
    z-index: 0;
}

/* 减小下单推荐介绍与下方元素的间距 */
#order-recommendations {
    margin-bottom: 5px;  /* 进一步减小底部边距 */
    position: relative;
}

/* 优化下单推荐介绍的底部样式，使其自然过渡到下单流程说明 */
#order-recommendations::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, rgba(108, 178, 235, 0), rgba(108, 178, 235, 0.3), rgba(108, 178, 235, 0));
}

/* 板块标题按钮 */
.section-title {
    display: block;
    width: fit-content;
    margin: -45px auto 20px;
    padding: 14px 40px;
    background: #E3F2FD;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700;
    color: #2D3748;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                0 2px 5px rgba(0, 0, 0, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.section-title::before {
    display: none;
}

.section-title:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
                0 3px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    background: #BBDEFB;
}

/* 分栏布局 */
.split-columns {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    height: auto;
}

.split-columns > div {
    flex: 1;
    min-height: auto;
}

.divider {
    border-right: 2px solid #eee;
}

/* 视频预览区域 */
.video-box {
    position: relative;
    padding-top: 133.33%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.3s;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.play-button::before {
    content: "▶";
    color: #6cb2eb;
    font-size: 24px;
    margin-left: 4px;
}

/* 业务功能板块 - 电商卡片风格 */
.function-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    padding: 10px 0 20px;
}

.function-item {
    background: white;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.function-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(108, 178, 235, 0.12);
    border-color: rgba(108, 178, 235, 0.2);
}

.function-btn {
    background: linear-gradient(135deg, #6cb2eb, #5899d0);
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    padding: 14px 20px;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.function-btn::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.function-item:nth-child(1) .function-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.29-9.71l-4.58-4.59L10.3 7.12l3.7 3.71-3.7 3.71 1.41 1.41 4.58-4.58c.39-.39.39-1.03 0-1.42z'/%3E%3C/svg%3E");
}

.function-item:nth-child(2) .function-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z'/%3E%3C/svg%3E");
}

.function-item:nth-child(3) .function-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 14H3V8h18v12zM9 10v8l7-4z'/%3E%3C/svg%3E");
}

.function-item:nth-child(4) .function-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z'/%3E%3C/svg%3E");
}

.function-item:nth-child(5) .function-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}

.function-item:nth-child(1) .function-btn {
    background: linear-gradient(135deg, #6cb2eb, #5899d0);
}

.function-item:nth-child(2) .function-btn {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
}

.function-item:nth-child(3) .function-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.function-item:nth-child(4) .function-btn {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.function-item:nth-child(5) .function-btn {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.function-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.function-desc {
    color: #718096;
    line-height: 1.6;
    font-size: 0.9em;
    padding: 16px 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #fafbfc);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.function-desc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(108, 178, 235, 0.1);
}

/* 下单流程 */
.order-panel {
    background: white;
    border-radius: 16px;
    padding: 10px 25px;
    margin: 15px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.flow-step:hover {
    background: #f0f7ff;
    transform: translateX(8px);
}

.step-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6cb2eb, #4CAF50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1em;
    flex-shrink: 0;
    position: relative;
}

.step-arrow {
    position: absolute;
    left: 50%;
    top: calc(100% + 5px);
    transform: translateX(-50%);
    color: #cbd5e0;
    font-size: 1.2em;
}

.step-content {
    flex: 1;
    padding-top: 2px;
}

.step-title {
    font-size: 1em;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 2px;
}

.step-desc {
    color: #718096;
    font-size: 0.85em;
    line-height: 1.5;
}

.flow-step:last-child .step-arrow {
    display: none;
}

/* 底部区域 */
.footer {
    text-align: center;
    margin-top: 50px;
    position: relative;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6cb2eb, #4CAF50);
    color: white;
    padding: 16px 45px 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.submit-btn::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 2l5 5h-5V4zM6 20V4h5v7h7v9H6z'/%3E%3Cpath fill='white' d='M10 13h4v1h-4v-1zm0 2h4v1h-4v-1zm0 2h4v1h-4v-1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.submit-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #5899d0, #3d9140);
}

.submit-btn:hover::after {
    transform: translateX(100%);
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.copyright {
    color: #888;
    font-size: 0.9em;
    margin: 30px 0;
    padding-top: 20px;
}

/* 视频弹窗 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    max-width: 100vw;
    max-height: 90vh;
}

#fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: 0.3s;
    z-index: 1001;
}

.close-btn:hover {
    transform: rotate(90deg);
    background: #ff4444;
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 1.8em;
        padding: 20px 0 15px;
    }
    
    .title-tags {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .title-tag {
        font-size: 0.8em;
        padding: 6px 15px;
    }

    .section-title {
        font-size: 1.1em;
    }

    .function-btn {
        padding: 12px 16px;
        font-size: 1em;
    }

    .function-desc {
        padding: 14px 24px;
        font-size: 0.85em;
        width: 100%;
        max-width: none;
    }

    .order-panel {
        padding: 10px 15px;
        font-size: 1em;
    }

    .submit-btn {
        font-size: 1em;
        padding: 14px 30px 14px 25px;
    }

    .copyright {
        font-size: 0.8em;
    }

    h2 {
        font-size: 1.5em !important;
    }

    p {
        font-size: 0.9em;
    }

    .function-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }
    
    .step-title {
        font-size: 1em;
    }
    
    .step-desc {
        font-size: 0.9em;
    }
    
    .section-block {
        padding: 20px 15px;
        margin: 35px 0 25px; /* 增加顶部间距，但略小于桌面版 */
    }
    
    .split-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .divider {
        border-right: none;
        border-bottom: 2px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 10px;
    }
}

/* 小型手机适配 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 1.6em;
    }
    
    .title-tag {
        font-size: 0.75em;
        padding: 5px 12px;
    }
    
    .section-title {
        font-size: 1em;
        padding: 12px 25px;
        margin-top: -40px;
    }
    
    .function-btn {
        padding: 10px 14px;
        font-size: 0.95em;
    }
    
    .function-desc {
        padding: 12px 20px;
        font-size: 0.8em;
    }
    
    .flow-step {
        padding: 12px 14px;
    }
    
    .step-icon {
        width: 28px;
        height: 28px;
    }
    
    .submit-btn {
        padding: 12px 25px 12px 20px;
        font-size: 0.95em;
    }
    
    .submit-btn::before {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .section-block {
        margin: 30px 0 22px; /* 为小屏幕设备提供合适的间距 */
    }
}

/* 平板电脑适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .function-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-block {
        padding: 22px 20px;
    }
}

/* 确保在横屏模式下的适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .main-title {
        padding: 15px 0 10px;
        font-size: 1.6em;
    }
    
    .title-tags {
        margin-bottom: 20px;
    }
    
    .section-block {
        margin: 30px 0 20px; /* 调整横屏模式下的间距 */
        padding: 20px 15px;
    }
    
    .section-title {
        margin: -40px auto 15px;
    }
    
    .function-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 高DPI设备适配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .function-btn::before,
    .submit-btn::before {
        background-size: contain;
    }
}

/* 避免太小的容器导致内容溢出 */
@media (max-width: 320px) {
    .container {
        padding: 8px;
    }
    
    .main-title {
        font-size: 1.4em;
    }
    
    .title-tag {
        font-size: 0.7em;
        padding: 4px 10px;
    }
    
    .section-title {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .function-btn {
        font-size: 0.9em;
        padding: 10px 12px;
    }
    
    .function-btn::before {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .function-desc {
        padding: 12px 15px;
        font-size: 0.75em;
    }
}

/* 侧边授权按钮 */
.side-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    transition: all 0.3s ease;
}

.side-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6cb2eb, #4CAF50);
    color: white;
    padding: 30px 15px;
    border-radius: 16px 0 0 16px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    border-right: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.side-auth-btn::before {
    display: none;
}

.side-auth-btn span {
    width: 1.2em;
    word-break: break-all;
    word-wrap: break-word;
    line-height: 1.2;
    letter-spacing: 2px;
    text-align: center;
}

.side-auth-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
        width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.side-auth-btn:hover {
    padding-right: 20px;
    box-shadow: -8px 5px 25px rgba(108, 178, 235, 0.3);
    background: linear-gradient(135deg, #5899d0, #3d9140);
}

.side-auth-btn:hover::after {
    transform: translateY(100%);
}

@media (max-width: 768px) {
    .side-button {
        bottom: 20px;
        top: auto;
        right: 0;
        transform: none;
    }
    
    .side-auth-btn {
        padding: 8px 16px 8px 20px;
        font-size: 0.9em;
        border-radius: 20px 0 0 20px;
    }
    
    .side-auth-btn span {
        width: auto;
        writing-mode: horizontal-tb;
        transform: none;
        letter-spacing: 0.5px;
    }
    
    .side-auth-btn::after {
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    }
    
    .side-auth-btn:hover {
        padding-left: 25px;
        padding-right: 16px;
    }
}

/* 触摸优化 */
@media (hover: hover) {
    /* 仅在支持悬停的设备上应用悬停效果 */
    .function-item:hover,
    .title-tag:hover,
    .submit-btn:hover,
    .flow-step:hover,
    .section-title:hover,
    .side-auth-btn:hover {
        transform: translateY(-5px);
    }
}

/* 提高触摸目标的大小 */
button, 
a, 
.function-btn, 
.submit-btn,
.side-auth-btn,
.play-button,
.close-btn {
    min-height: 44px; /* 确保可点击区域至少44px */
}

/* 适配折叠屏和超宽设备 */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    body {
        font-size: 1.1em;
    }
}

/* 确保内容安全区域适配带有刘海的设备 */
@supports(padding: max(0px)) {
    .container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .side-button {
        right: max(0px, env(safe-area-inset-right));
    }
}

/* 触摸反馈样式 */
.touch-active {
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.1s ease-in-out;
}

/* 确保iOS设备上的滚动平滑 */
* {
    -webkit-overflow-scrolling: touch;
}

/* 确保视频在移动设备上的样式 */
.video-container {
    max-width: 100vw;
    max-height: 90vh;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1em;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    z-index: 5;
}

.play-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1em;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    z-index: 5;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.direct-link-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6cb2eb, #4CAF50);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    margin: 10px 0;
    font-weight: bold;
}

/* 修复iOS上的固定元素问题 */
@supports (-webkit-overflow-scrolling: touch) {
    .side-button {
        position: fixed;
    }
    
    .fixed-ios {
        -webkit-transform: translateZ(0);
    }
}