/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 预览区样式 */
.preview-section {
    width: 385px;
    height: 826px;
    background: #ffffff;
    border: 1px solid #ddd;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none;
}

.preview-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #ffffff;
}

/* iPhone状态栏 */
.status-bar {
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 21px;
    background-color: #ffffff;
}

.time {
    width: 67px;
    height: 22px;
    color: #000000;
    font-family: 'SFProTextMedium', sans-serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 11px;
}

.status-icons {
    width: 71px;
    height: 16px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
}

.sim-signal {
    width: 20px;
    height: 14px;
    background-position: center;
    background-size: contain;
}

.network-status {
    width: 18px;
    height: 16px;
    background-position: center;
    background-size: contain;
}

.battery-status {
    width: 25px;
    height: 14px;
    background-position: center;
    background-size: contain;
}

/* Header图片 */
.header-image {
    width: 100%;
    height: 22px;
    object-fit: contain;
    display: block;
    margin: 16px 0;
    background: #ffffff;
}

/* 标题区域 */
.title-section {
    width: 100%;
    height: 35px;
    margin: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    background: #ffffff;
}

.main-title {
    color: #121214;
    font-family: 'okx3', sans-serif;
    font-size: 21px;
    flex-grow: 1;
    font-weight: bold;
}

.inbox-tag {
    position: absolute;
    left: 239px;
    padding: 1px 6px;
    color: #242424;
    font-family: 'okx3', sans-serif;
    font-size: 10px;
    background: #EEEEEE;
    border-radius: 3px;
    margin-left: 0;
}

/* 内容图片 */
.content-image-1 {
    width: 100%;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0;
    margin-bottom: 16px;
    background: #ffffff;
}

.content-image-2 {
    width: 100%;
    height: 590px;
    object-fit: contain;
    display: block;
    margin: 0;
    background: #ffffff;
}

/* 动态文本内容 */
.dynamic-content {
    position: absolute;
    top: 258px;
    left: 44px;
    color: #000000;
    padding-right: 20px;
}

.content-title {
    font-family: 'Okx-bold', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.content-text {
    font-family: 'Lkx-Regular', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 9px;
}

/* 编辑区样式 */
.edit-section {
    flex: 1;
    display: flex;
    gap: 20px;
}

.left-edit, .right-edit {
    width: 500px;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 编辑区表单元素 */
.edit-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.edit-section input,
.edit-section select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #ffffff;
}

.edit-section select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.edit-section input:focus,
.edit-section select:focus {
    outline: none;
    border-color: #007bff;
}

/* 右侧编辑区特殊样式 */
.right-edit label,
.right-edit select {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap;
}

.right-edit select option {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap;
}

.time-status,
.sim-signal,
.network-status,
.battery-status {
    margin-bottom: 15px;
}

.time-status select,
.sim-signal select,
.network-status select,
.battery-status select {
    width: 100%;
    height: 40px;
    cursor: pointer;
    direction: ltr;
}

/* 保存按钮样式 */
#saveImage {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

#saveImage:hover {
    background: #0056b3;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .edit-section {
        flex-direction: column;
    }
    
    .left-edit, .right-edit {
        width: 100%;
    }
} 

/* 右侧编辑区样式 */
.right-edit {
    width: 500px;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.right-edit .form-group {
    margin-bottom: 20px;
}

.right-edit .form-group:last-child {
    margin-bottom: 0;
}

.right-edit label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.right-edit select {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.right-edit select:focus {
    outline: none;
    border-color: #007bff;
}

.right-edit select option {
    padding: 8px;
}

.star-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 21px;
    height: 20px;
    background-image: none;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: auto;
    z-index: 10;
    box-sizing: content-box;
    padding: 2px;
} 