/* 甜心遥控 粉色可爱主题 */

.remote-app {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    color: #ff69b4;
    font-family: 'Gaegu', 'Microsoft YaHei', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.remote-header {
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.1);
    flex-shrink: 0;
    z-index: 10;
}

.remote-header-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff1493;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remote-back-btn {
    background: none;
    border: none;
    color: #ff69b4;
    font-size: 20px;
    cursor: pointer;
}

.remote-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.device-status-card {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    text-align: center;
    margin-bottom: 20px;
    border: 2px solid #fff0f5;
    position: relative;
    overflow: hidden;
}

.device-status-card::before {
    content: '🌸';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 50px;
    opacity: 0.2;
}

.status-icon {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.status-icon.connected {
    color: #ff69b4;
    animation: heartBeat 1.5s infinite;
}

.status-text {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.status-text.connected {
    color: #ff1493;
}

.device-name {
    font-size: 14px;
    color: #999;
}

.btn-connect {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-connect:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.control-panel {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
    display: none; /* 初始隐藏，连接后显示 */
    flex-direction: column;
    gap: 20px;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-label {
    font-size: 16px;
    font-weight: bold;
    color: #ff1493;
    display: flex;
    justify-content: space-between;
}

.control-value {
    font-size: 18px;
    color: #ff69b4;
}

/* 自定义粉色滑块 */
.pink-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: #ffe4e1;
    border-radius: 6px;
    outline: none;
}

.pink-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff69b4;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 105, 180, 0.5);
    border: 3px solid #fff;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pattern-btn {
    background: #fff0f5;
    border: 1px solid #ffb6c1;
    color: #ff69b4;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.pattern-btn.active {
    background: #ff69b4;
    color: #fff;
    border-color: #ff69b4;
}

.share-card {
    margin-top: 30px;
    width: 100%;
    background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%);
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 20px rgba(255, 117, 140, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.share-card:active {
    transform: scale(0.98);
}

.share-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.share-card p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

.remote-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 105, 180, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
