/* 一次性留言板插件样式 */
#wotm-container {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

#wotm-message-form, #wotm-message-reader {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

#wotm-message-reader {
    border-bottom: none;
    background-color: #f8f9fa;
}

#wotm-message-form h3, #wotm-message-reader h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

#wotm-message-form textarea, 
#wotm-message-reader input[type="text"], 
#wotm-message-reader input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#wotm-message-form textarea:focus,
#wotm-message-reader input[type="text"]:focus,
#wotm-message-reader input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#wotm-message-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

#wotm-message-form button, #wotm-message-reader button {
    width: 100%;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

#wotm-message-form button:hover, #wotm-message-reader button:hover {
    background: linear-gradient(135deg, #005177 0%, #003d5c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

#wotm-message-form button:active, #wotm-message-reader button:active {
    transform: translateY(0);
}

.wotm-info {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

#wotm-response {
    background-color: #f0f8ff;
    border: 1px solid #b3d9ff;
}

#wotm-display-message {
    background-color: #fff;
    border: 2px solid #28a745;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

#wotm-countdown {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    text-align: center;
    font-weight: 600;
}

.wotm-success {
    color: #28a745;
    font-weight: 600;
}

.wotm-error {
    color: #dc3545;
    font-weight: 600;
}

/* 后台管理样式 */
.wotm-stats {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.wotm-stats p {
    margin: 10px 0;
    font-size: 16px;
}

.button-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.button-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #wotm-container {
        margin: 10px;
        border-radius: 0;
    }
    
    #wotm-message-form, #wotm-message-reader {
        padding: 20px 15px;
    }
    
    #wotm-message-form h3, #wotm-message-reader h3 {
        font-size: 1.2em;
    }
    
    #wotm-message-form button, #wotm-message-reader button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #wotm-message-form, #wotm-message-reader {
        padding: 15px 10px;
    }
    
    #wotm-message-form textarea, 
    #wotm-message-reader input[type="text"], 
    #wotm-message-reader input[type="password"] {
        padding: 10px 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
}

