/**
 * VIP解析页样式
 */

/* 容器 */
.vip-container {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* 解析输入区 */
.parse-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.parse-input-wrap {
    display: flex;
    gap: 10px;
}
.parse-input {
    flex: 1;
    height: 46px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}
.parse-input:focus {
    border-color: #667eea;
}
.parse-input::placeholder {
    color: #aaa;
}
.parse-btn {
    height: 46px;
    padding: 0 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.parse-btn:hover {
    background: #5a6fd6;
}
.parse-btn:active {
    background: #4f63c4;
}
.parse-tips {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
}
.tip-item {
    margin-right: 15px;
}


/* 播放器区域 */
.player-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.player-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.api-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}
.api-label {
    font-size: 13px;
    color: #666;
}
.api-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    background: #fff;
}
.api-select:focus {
    border-color: #667eea;
}
.player-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}
.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.placeholder-content {
    text-align: center;
    color: #fff;
}
.placeholder-content i {
    font-size: 60px;
    opacity: 0.5;
    margin-bottom: 15px;
    display: block;
}
.placeholder-content p {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
}
.player-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}


/* 支持平台 */
.platform-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.section-title {
    font-size: 15px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}
.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.platform-item:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}
.platform-item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    margin-bottom: 6px;
}
.platform-item span {
    font-size: 12px;
    color: #555;
}

/* 使用说明 */
.help-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.help-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.step-num {
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.step-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    padding-top: 2px;
}
.help-notice {
    background: #fff8e6;
    border-radius: 6px;
    padding: 15px;
    border-left: 3px solid #ffc107;
}
.help-notice p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
}
.help-notice p:last-child {
    margin-bottom: 0;
}
.help-notice i {
    margin-right: 5px;
    color: #ffc107;
}


/* 响应式 */
@media (max-width: 768px) {
    .vip-container {
        padding-top: 15px;
        padding-bottom: 30px;
    }
    .parse-box {
        padding: 15px;
        border-radius: 6px;
        margin-bottom: 15px;
    }
    .parse-input-wrap {
        flex-direction: column;
    }
    .parse-input {
        height: 44px;
        font-size: 14px;
    }
    .parse-btn {
        width: 100%;
        height: 44px;
    }
    .parse-tips {
        margin-top: 10px;
        font-size: 11px;
    }
    .player-section {
        border-radius: 6px;
        margin-bottom: 15px;
    }
    .player-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 10px 12px;
    }
    .player-title {
        font-size: 13px;
    }
    .api-selector {
        width: 100%;
    }
    .api-select {
        flex: 1;
    }
    .placeholder-content i {
        font-size: 40px;
        margin-bottom: 10px;
    }
    .placeholder-content p {
        font-size: 12px;
    }
    .platform-section {
        padding: 15px;
        border-radius: 6px;
        margin-bottom: 15px;
    }
    .section-title {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .platform-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .platform-item {
        padding: 10px 5px;
        border-radius: 6px;
    }
    .platform-item img {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }
    .platform-item span {
        font-size: 11px;
    }
    .help-section {
        padding: 15px;
        border-radius: 6px;
    }
    .help-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .help-steps {
        gap: 10px;
    }
    .step-item {
        gap: 10px;
    }
    .step-num {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .step-text {
        font-size: 12px;
    }
    .help-notice {
        padding: 12px;
    }
    .help-notice p {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .parse-box {
        padding: 12px;
    }
    .parse-input {
        height: 42px;
        padding: 0 12px;
        font-size: 13px;
    }
    .parse-btn {
        height: 42px;
        font-size: 14px;
    }
    .platform-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    .platform-item {
        padding: 8px 4px;
    }
    .platform-item img {
        width: 24px;
        height: 24px;
    }
    .platform-item span {
        font-size: 10px;
    }
}