/* 设置页面样式 */
.wpwatermark-settings .form-table th {
    width: 200px;
}

.wpwatermark-settings .preview-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wpwatermark-settings .preview-section h2 {
    margin-top: 0;
}

.wpwatermark-settings .preview-image {
    margin-top: 15px;
    max-width: 800px;
}

.wpwatermark-settings .preview-image img {
    max-width: 100%;
    height: auto;
}

/* 水印位置选择器样式 */
.watermark-position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 300px;
    margin: 10px 0;
}

.watermark-position-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
}

.watermark-position-grid label:hover {
    background: #e5e5e5;
}

.watermark-position-grid label.selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* 表单元素样式优化 */
.wpwatermark-settings input[type="number"] {
    width: 80px;
}

.wpwatermark-settings .wp-picker-container {
    display: inline-block;
    vertical-align: middle;
}

.wpwatermark-settings .description {
    margin-top: 5px;
    color: #666;
}

/* 性能统计样式 */
.performance-stats {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.performance-stats h3 {
    margin-top: 0;
}

.performance-stats table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.performance-stats th,
.performance-stats td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.performance-stats th {
    font-weight: 600;
    color: #23282d;
}

/* 响应式优化 */
@media screen and (max-width: 782px) {
    .wpwatermark-settings .form-table th {
        width: auto;
    }
    
    .watermark-position-grid {
        max-width: 100%;
    }
}

.wpwatermark-wrap {
    margin: 10px 20px 0 2px;
    max-width: 1200px;
}

.wpwatermark-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
    padding: 15px;
}

.wpwatermark-header h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.wpwatermark-form {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
}

.wpwatermark-form .form-table {
    margin-top: 0;
}

.wpwatermark-form .form-table th {
    padding: 20px 10px;
}

.wpwatermark-position-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 200px;
    margin: 10px 0;
}

.wpwatermark-position-selector button {
    padding: 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
}

.wpwatermark-position-selector button.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.wpwatermark-preview {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-align: center;
}

.wpwatermark-preview img {
    max-width: 100%;
    height: auto;
}

/* WordPress Color Picker 样式覆盖 */
.wp-picker-container {
    display: inline-block;
}

.wp-picker-container .wp-color-result.button {
    margin: 0 6px;
}

/* WordPress Media Uploader 样式 */
.wpwatermark-media-preview {
    margin: 10px 0;
    max-width: 150px;
}

.wpwatermark-media-preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 2px;
}

/* 响应式布局 */
@media screen and (max-width: 782px) {
    .wpwatermark-form .form-table th {
        padding: 10px 0;
    }
    
    .wpwatermark-position-selector {
        max-width: 150px;
    }
} 