* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    margin-bottom: 20px;
}

.main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 广告位样式定义 */
.ad-sidebar {
    width: 160px;
    flex-shrink: 0;
}

.ad-placeholder {
    width: 100%;
    min-height: 600px;
    background-color: #e9ecef;
    border: 2px dashed #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

/* 核心转换区样式 */
.content-area {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.control-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.control-label {
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    white-space: nowrap;
}

.highlight-option {
    color: #0056b3;
    font-weight: 600;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

textarea {
    width: 100%;
    height: 320px;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    resize: vertical;
    font-size: 16px;
    line-height: 1.8;
}

textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.action-bar {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary { background-color: #007bff; color: #fff; }
.btn-primary:hover { background-color: #0056b3; }

.btn-secondary { background-color: #6c757d; color: #fff; }
.btn-secondary:hover { background-color: #545b62; }

.btn-success { background-color: #28a745; color: #fff; }
.btn-success:hover { background-color: #1e7e34; }

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: #6c757d;
    font-size: 14px;
}

@media (max-width: 992px) {
    .ad-sidebar {
        display: none;
    }
    .editor-grid {
        grid-template-columns: 1fr;
    }
    .control-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}