

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SimHei", serif;
    -webkit-touch-callout: none;
}

body {
    background-color: #1a2b4a;
    color: #fff;
    padding: 10px;
}

.config-panel {
    width: 100%;
    max-width: 600px;
    margin: 15px auto;
    padding: 15px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.config-item {
    margin-bottom: 15px;
}

.config-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
textarea,
input[type="number"],
input[type="color"],
input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    -webkit-user-select: text;
    user-select: text;
}

.rich-text-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px;
    background: #f5f5f5;
    border-radius: 4px;
}

.tool-btn {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tool-btn:hover {
    background: #e9e9e9;
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.tool-btn.bold {
    font-weight: bold;
}

.color-picker-btn {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.color-picker-btn:hover {
    background: #e9e9e9;
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.color-picker-btn .color-block {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background-color: #c0392b;
    border: 1px solid #999;
}

#textColorPicker {
    display: none;
}

.xiuwei-radio-group,
.cost-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.export-btn {
    width: 100%;
    height: 40px;
    background-color: #4285f4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.export-btn:hover {
    background-color: #3367d6;
}

.cards-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-container {
    width: 130px;
    height: 210px;
    position: relative;
    border: 2px solid #886633;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.card-bg {
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 1;
    visibility: visible;
}

.card-desc-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-size: 100% 100%;
    z-index: 1;
}

.cost-wrapper {
    position: absolute;
    top: 0px;
    left: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.cost-num {
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    display: none;
    line-height: 1;
    width: 26px;
    height: 26px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    line-height: 22px;
    padding-top: 3px;
}

.card-name {
    position: absolute;
    top: 28px;
    left: 8px;
    writing-mode: vertical-rl;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    z-index: 2;
    letter-spacing: 2px;
}

.card-parent {
    position: absolute;
    display: flex;
    align-items: center;
    top: 120px;
    justify-content: center;
    height: 75px;
    left: 9px;
    width: 107px;
    background-position: center;
    background-size: contain;
}

.card-desc {
    top: 120px;
    left: 10px;
    right: 10px;
    text-align: center;
    color: #333;
    font-size: 12px;
    line-height: 1.5;
    z-index: 2;
    white-space: pre-line;
}

/* 卡图样式 */
.card-img {
    width: 92px;
    height: 107px;
    position: absolute;
    top: 11px;
    left: 26px;
    z-index: -1;
    object-fit: fill;
    opacity: 0.9;

}


