/* 主题设置页面样式 */
.wuchaiwp-admin {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wuchaiwp-header {
    margin-bottom: 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.wuchaiwp-header h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.wuchaiwp-header .description {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

/* 仪表板样式 */
.wuchaiwp-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.dashboard-card h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #1f2937;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-link {
    padding: 10px 20px;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.quick-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 表单样式 */
.wuchaiwp-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="color"],
.form-row textarea,
.form-row select {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-row input[type="text"]:focus,
.form-row input[type="number"]:focus,
.form-row input[type="color"]:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: #667eea;
}

.form-row input[type="color"] {
    height: 48px;
    padding: 3px;
}

.form-row .help {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.form-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* 外观设置容器 */
.wuchaiwp-appearance-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 900px) {
    .wuchaiwp-appearance-container {
        grid-template-columns: 1fr;
    }
}

.appearance-preview {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
}

.preview-section {
    margin-bottom: 25px;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.preview-section h3 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #1f2937;
}

.preview-box {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.preview-header {
    padding: 15px;
    color: white;
    font-weight: 600;
}

.preview-content {
    padding: 20px;
}

.preview-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.code-box {
    background: #1f2937;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
}

.copy-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #374151;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 10px;
}

.copy-btn:hover {
    background: #4b5563;
}

.code-box pre {
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #e5e7eb;
    overflow-x: auto;
    max-height: 200px;
}

/* 预设管理样式 */
.presets-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 900px) {
    .presets-container {
        grid-template-columns: 1fr;
    }
}

.presets-list h3,
.presets-info h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: #1f2937;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.preset-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.preset-card:hover {
    transform: translateY(-3px);
}

.preset-header {
    padding: 15px;
    color: white;
}

.preset-name {
    font-weight: 600;
    font-size: 16px;
}

.preset-colors {
    display: flex;
    padding: 10px;
    gap: 8px;
}

.color-swatch {
    flex: 1;
    height: 40px;
    border-radius: 6px;
}

.preset-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.preset-action {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.load-preset {
    background: #667eea;
    color: white;
}

.load-preset:hover {
    background: #5a67d8;
}

.delete-preset {
    background: #fef2f2;
    color: #dc2626;
}

.delete-preset:hover {
    background: #fee2e2;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
}

.presets-info {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
}

.presets-info ul {
    margin: 0;
    padding-left: 20px;
}

.presets-info li {
    margin-bottom: 10px;
    color: #374151;
    font-size: 14px;
}

.built-in-presets {
    margin-top: 25px;
}

/* 使用说明样式 */
.usage-content {
    max-width: 800px;
}

.usage-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.usage-section h2 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 20px;
}

.usage-section p {
    margin: 0 0 15px 0;
    color: #4b5563;
    line-height: 1.6;
}

.usage-section ul,
.usage-section ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.usage-section li {
    margin-bottom: 10px;
    color: #4b5563;
}

.usage-section strong {
    color: #1f2937;
}

/* 首页内容设置 */
.home-content-settings {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    margin-top: 30px;
}

.home-content-settings .wuchaiwp-header {
    margin-bottom: 25px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .wuchaiwp-admin {
        padding: 15px;
    }
    
    .wuchaiwp-header {
        padding: 20px;
    }
    
    .wuchaiwp-header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row input[type="text"],
    .form-row input[type="number"],
    .form-row textarea,
    .form-row select {
        max-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}