/* Playground Section Styles */
.playground-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.playground-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern-bg.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.playground-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.playground-controls {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.playground-preview {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.screen-preview {
    height: 300px;
    background-color: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.preview-content {
    text-align: center;
    z-index: 1;
}

.preview-timer {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 预览消息样式 */
.preview-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.preview-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.control-group {
    margin-bottom: 25px;
}

.control-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.mode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mode-button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-button:hover {
    background-color: #e9e9e9;
}

.mode-button.active {
    background-color: #6c63ff;
    color: #fff;
    border-color: #6c63ff;
}

.opacity-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.opacity-control input[type="range"] {
    flex: 1;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    appearance: none;
    outline: none;
}

.opacity-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background-color: #6c63ff;
    border-radius: 50%;
    cursor: pointer;
}

.opacity-control span {
    font-size: 14px;
    color: #666;
    min-width: 40px;
}

.timer-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.timer-preset {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-preset:hover {
    background-color: #e9e9e9;
}

.custom-timer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-timer input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.custom-timer span {
    color: #666;
}

#startTimer, #startPomodoro {
    padding: 8px 15px;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#startTimer:hover, #startPomodoro:hover {
    background-color: #5a52d5;
}

.pomodoro-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: #5a52d5;
}

.share-preview {
    margin-top: 15px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.share-platforms {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-platform {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-platform[data-platform="wechat"] {
    background-color: #07c160;
    color: #fff;
}

.share-platform[data-platform="weibo"] {
    background-color: #e6162d;
    color: #fff;
}

.share-platform[data-platform="qq"] {
    background-color: #12b7f5;
    color: #fff;
}

.share-platform[data-platform="twitter"] {
    background-color: #1da1f2;
    color: #fff;
}

.share-platform:hover {
    transform: scale(1.1);
}

.playground-cta {
    text-align: center;
    margin-top: 50px;
}

.playground-cta p {
    margin-bottom: 15px;
    font-size: 18px;
    color: #666;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .playground-container {
        flex-direction: column;
    }
    
    .preview-stats {
        flex-direction: column;
    }
}

.schedule-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.schedule-timer input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.schedule-timer span {
    color: #666;
}

#scheduleButton {
    padding: 8px 15px;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#scheduleButton:hover {
    background-color: #5a52d5;
}

.schedule-status {
    margin-top: 10px;
    font-size: 14px;
    color: #2ed573;
    height: 20px;
}

/* 结束时间选择器样式 */
.end-time-picker {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.end-time-picker input[type="time"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.timer-preset.special {
    background-color: #f0f0ff;
    color: #6c63ff;
    border: 1px solid #6c63ff;
}

.timer-preset.special:hover {
    background-color: #e0e0ff;
}

/* 倒计时显示控制样式 */
.countdown-display-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

/* 预览计时器样式 */
.preview-timer {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #6c63ff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #6c63ff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}