.watermark-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.card-header {
    background: #4f46e5;
    padding: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon { font-size: 40px; opacity: 0.9; }
.header-text h1 { margin: 0; font-size: 24px; }
.header-text p { margin: 5px 0 0; opacity: 0.8; font-size: 14px; }

.card-content { padding: 30px; }

/* 上传区样式 */
.upload-zone {
    border: 2px dashed #e0e7ff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8faff;
    margin-bottom: 25px;
}
.upload-zone:hover { border-color: #4f46e5; background: #f0f3ff; }
.upload-zone i { font-size: 40px; color: #4f46e5; margin-bottom: 10px; }
.file-badge { background: #4f46e5; color: white; padding: 5px 15px; border-radius: 20px; margin-top: 10px; display: inline-block; font-size: 12px; }

/* 设置网格 */
.settings-grid { display: grid; gap: 20px; margin-bottom: 30px; }
.setting-item label { display: block; font-size: 14px; font-weight: 600; color: #4b5563; margin-bottom: 8px; }
.setting-item input[type="text"], .setting-item input[type="number"] {
    width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* 九宫格选择器核心 */
.position-picker {
    display: grid;
    grid-template-columns: repeat(3, 45px); /* 固定宽度让它看起来更像一个九宫格 */
    grid-template-rows: repeat(3, 35px);
    gap: 8px;
    margin-top: 10px;
}
.position-picker button {
    height: 100%;
    width: 100%;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.position-picker button.active {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
    position: relative;
}

/* 在激活的格子中心点一个小圆点，增加“所见即所得”的暗示感 */
.position-picker button.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* 调整顺序展示: tl, tc, tr, bl, bc, br, c 逻辑在JS处理 */

.primary-btn {
    width: 100%; background: #4f46e5; color: white; border: none; padding: 15px;
    border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.primary-btn:hover { background: #4338ca; transform: translateY(-2px); }
.error-msg { color: #ef4444; font-size: 14px; margin-bottom: 15px; display: none; }