* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 20px;
    min-height: 100vh;
    max-width: 600px;
    margin: 0 auto;
}

.ldIndexTitle {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0;
    text-align: center;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Safari 兼容性备用颜色 */
    color: #00dbde;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 10px 0;
}

.ldIndexNav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.ldIndexNavRow {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.ldIndexNavIn {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    /* Safari 兼容性: 添加前缀和备用样式 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    /* 链接样式重置 */
    text-decoration: none;
    display: block;
}

.ldIndexNavIn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.15) 50%, 
                rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.ldIndexNavIn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.15);
}

.ldIndexNavIn:hover::before {
    left: 100%;
}

.ldIndexNavIn:active {
    transform: translateY(0) scale(0.98);
}

.ldIndexNone {
    width: 15px;
}

.info-text {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 30px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border-left: 3px solid #00dbde;
    border-right: 3px solid #fc00ff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.highlight {
    color: #00dbde;
    font-weight: bold;
}

.link-btn {
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(90deg,#00dbde 0%,#fc00ff 100%);
    color:#fff;
    font-weight: 700;
    animation: pulse 2s infinite;
}
.link-btn:hover { filter: brightness(1.2); }

/* 温馨提示板块样式 */
.warm-notice {
    background: linear-gradient(135deg, rgba(0, 219, 222, 0.1), rgba(252, 0, 255, 0.1));
    border: 2px solid rgba(0, 219, 222, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    /* Safari 兼容性: 添加前缀 */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 219, 222, 0.1);
    position: relative;
    overflow: hidden;
}

.warm-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                rgba(0, 219, 222, 0.05) 0%, 
                rgba(252, 0, 255, 0.05) 50%, 
                rgba(0, 219, 222, 0.05) 100%);
    animation: shimmer 3s linear infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.notice-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Safari 兼容性备用颜色 */
    color: #00dbde;
    position: relative;
    z-index: 1;
}

.notice-content {
    position: relative;
    z-index: 1;
}

.notice-content p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-align: justify;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    background: rgba(0, 219, 222, 0.2);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #00dbde;
    font-weight: 600;
    color: #fff !important;
    animation: pulse 2s infinite;
}

/* 弹框样式 */
.modal-overlay { 
    position: fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background: rgba(0,0,0,0.6); 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    visibility: hidden; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    z-index: 1000; 
}
.modal-overlay.show { visibility: visible; opacity: 1; }

.modal {
    background: rgba(22, 33, 62, 0.95);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    max-width: 90%;
    width: 340px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    position: relative;
    border: 1px solid rgba(255,255,255,0.15);
    /* Safari 兼容性: 添加前缀 */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    max-height: 90vh;
    overflow-y: auto;
}
.modal img { display:block; width:100%; border-radius:10px; margin-top:15px; }

@media (max-width: 480px){
    .modal { width: 90%; }
}

.modal h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Safari 兼容性备用颜色 */
    color: #00dbde;
}
.modal p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.close-btn {
    position: sticky;
    top: 10px;
    float: right;
    margin: -10px -10px 10px 10px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.close-btn:hover { 
    color: #00dbde; 
    background: rgba(0, 219, 222, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 219, 222, 0.4);
}

.close-btn:active {
    transform: scale(0.95);
}

/* 悬浮视频教程按钮 */
.floating-video-btn {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #00dbde, #fc00ff);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 219, 222, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.floating-video-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 219, 222, 0.6);
    filter: brightness(1.1);
}

.floating-video-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* 移动端提示样式 */
.mobile-tip {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    animation: pulse 3s infinite;
}

.mobile-tip .highlight {
    color: #ffa500;
    font-weight: bold;
}

/* Safari 特定修复 */
@supports (-webkit-appearance: none) {
    .ldIndexNavIn {
        /* Safari 中的额外样式修复 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .modal-overlay {
        /* Safari 中的 z-index 修复 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iOS Safari 特定修复 */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .ldIndexNavIn:active {
        /* iOS Safari 点击效果优化 */
        -webkit-tap-highlight-color: rgba(0, 219, 222, 0.3);
    }
    
    .floating-video-btn:active {
        -webkit-tap-highlight-color: rgba(0, 219, 222, 0.3);
    }
}

@media (max-width: 768px) {
    .floating-video-btn {
        left: 10px;
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .close-btn {
        top: 8px;
        margin: -8px -8px 8px 8px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .warm-notice {
        margin: 15px 0;
        padding: 15px;
    }
    
    .notice-title {
        font-size: 18px;
    }
    
    .notice-content p {
        font-size: 13px;
    }
}
