.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    border-radius: .6em;
    position: relative;
    display: flex;
    align-items: stretch;
}

/*按钮样式*/
.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}

.btn .ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    animation: ripple-effect 0.6s ease-out forwards;
}

.btn-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248 / 95%);
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em;
        box-shadow: unset;
        gap: 0.8em;
    }
}


/* ===================== 名片生成器 ===================== */
/* 左侧：预览区 */
.bc-preview {
    flex: 1;
    min-width: 0;
    align-self: stretch;
    overflow: hidden;
    padding: 0 1em 1em;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.bc-wrapper {
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-stage-outer {
    position: relative;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.bc-stage {
    position: relative;
    width: 1350px;
    height: 800px;
    transform-origin: top left;
}

/* 右侧：操作栏 */
.bc-operate {
    width: 380px;
    flex-shrink: 0;
    background-color: #f8f9ff;
    border-left: solid 1px #e5e5e5;
    display: flex;
    flex-direction: column;
    padding-bottom: 1.2em;
}

.bc-operate > .bc-title,
.bc-preview > .bc-title {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    line-height: 50px;
    color: #333;
    flex-shrink: 0;
}

.bc-menu {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 0 1em;
}

.bc-menu > .bc-section {
    font-size: 14px;
    color: #333;
    margin-top: .2em;
}

.bc-group {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    gap: 0 12px;
}

.bc-group > label {
    flex: 0 0 56px;
    width: 56px;
    min-width: 0;
    text-align: right;
    font-size: 13.5px;
    color: #333;
    flex-shrink: 0;
}

.bc-input {
    display: flex;
    flex: 1;
    min-width: 0;
    height: 38px;
    border: solid 1px #ddd;
    background-color: #fff;
    padding: 0 12px;
    border-radius: 7px;
    font-family: inherit;
    outline: none;
    font-size: 13.5px;
    color: #333;
    box-shadow: inset 0 1px 4px rgb(211 198 255 / 20%), 0 0 0 2px rgba(224, 224, 224, .1);
}

.bc-input:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, .2), 0 0 0 2px rgba(90, 77, 248, .1);
}

/* 主题下拉框 */
.bc-select {
    position: relative;
    flex: 1;
    min-width: 0;
}

.bc-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0 6px;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13.5px;
    color: #333;
    cursor: pointer;
    outline: none;
    box-shadow: inset 0 1px 4px rgb(211 198 255 / 20%), 0 0 0 2px rgba(224, 224, 224, .1);
    transition: border-color .2s ease;
}

.bc-select-btn:hover {
    border-color: #c9c2ff;
}

.bc-select-btn > svg {
    color: #999;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.bc-select[aria-expanded="true"] .bc-select-btn > svg {
    transform: rotate(180deg);
}

.bc-select-value {
    display: flex;
    align-items: center;
    gap: 0;
}

.bc-select-value em {
    font-style: normal;
}

.bc-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 7px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.bc-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    white-space: nowrap;
}

.bc-dropdown[hidden] {
    display: none;
}

.bc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 3px 5px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 13.7px;
    transition: background-color .2s ease;
}

.bc-option:hover,
.bc-option[aria-selected="true"] {
    background-color: #f5f5f5;
}

.bc-option .bc-check {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    opacity: 0;
    color: #5a4df8;
}

.bc-option[aria-selected="true"] .bc-check {
    opacity: 1;
}

/* 主题按钮（保留旧类，兼容） */
.bc-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.bc-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    letter-spacing: .04em;
    color: #fff;
    line-height: 1;
    opacity: .55;
    transition: opacity .16s, box-shadow .16s;
}

.bc-chip:hover {
    opacity: .85;
}

.bc-chip.on {
    opacity: 1;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(90, 77, 248, .65);
}

/* 导出按钮 */
.bc-download {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-left: 68px;
    margin-top: .4em;
}

.bc-download .btn {
    flex: 1;
    height: 39px;
    color: #fff;
    background: rgb(93 79 248 / 85%);
    border-color: rgb(93 79 248 / 85%);
    border-radius: 6px;
}

.bc-download .btn:hover {
    background: rgb(93 79 248 / 100%);
}

/* 名片本体 */
.bc-card {
    --ink: #fff;
    --sub: rgba(255, 255, 255, .74);
    --body: rgba(255, 255, 255, .88);
    --line: rgba(255, 255, 255, .16);
    --accent: #8373EF;
    position: relative;
    width: 1350px;
    height: 800px;
    overflow: hidden;
    background: #14122E;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
    border-radius: 2px;
    text-align: left;
}

.bc-card[data-theme="sea"] {
    --ink: #EEF5F9;
    --sub: rgba(232, 244, 250, .76);
    --body: rgba(232, 242, 248, .88);
    --line: rgba(207, 220, 227, .2);
    --accent: #5FA8C9;
    background: #0C2433;
}

.bc-card[data-theme="forest"] {
    --ink: #FFFFFF;
    --sub: rgba(255, 255, 255, .76);
    --body: rgba(241, 243, 238, .86);
    --line: rgba(240, 232, 216, .22);
    --accent: #5CBB84;
    background: #0B1611;
}

.bc-card[data-theme="wine"] {
    --ink: #F4E9E4;
    --sub: rgba(255, 246, 242, .76);
    --body: rgba(244, 233, 228, .88);
    --line: rgba(199, 154, 99, .2);
    --accent: #C79A63;
    background: #250A0F;
}

.bc-card[data-theme="ink"] {
    --ink: #F5F5F7;
    --sub: rgba(245, 245, 247, .66);
    --body: rgba(245, 245, 247, .84);
    --line: rgba(245, 245, 247, .14);
    --accent: #C3C4C9;
    background: #0A0A0B;
}

.bc-card > img.bc-bg {
    position: absolute;
    inset: 0;
    width: 1350px;
    height: 800px;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    border: 0;
    margin: 0;
    border-radius: 0;
}

.bc-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 128px 0 0 140px;
    width: 600px;
}

.bc-logo {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    height: 60px;
    margin-left: 3px;
}

.bc-logo i {
    display: block;
    width: 6px;
    border-radius: 2px;
    background: var(--accent);
}

.bc-logo i:nth-child(1) {
    height: 32px;
}

.bc-logo i:nth-child(2) {
    height: 45px;
}

.bc-logo i:nth-child(3) {
    height: 60px;
}

.bc-logo i:nth-child(4) {
    height: 40px;
}

.bc-logo i:nth-child(5) {
    height: 22px;
}

.bc-name {
    margin-top: 24px;
    font-size: 92px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--ink);
    white-space: nowrap;
}

.bc-job {
    margin-top: 28px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: .03em;
    white-space: nowrap;
}

.bc-org {
    margin-top: 8px;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--sub);
    letter-spacing: .03em;
    white-space: nowrap;
}

.bc-divider {
    margin-top: 30px;
    width: 262px;
    height: 1px;
    background: var(--line);
}

.bc-contacts {
    margin-top: 34px;
}

.bc-contacts .bc-line {
    display: block;
    height: 52px;
    line-height: 52px;
    font-size: 25px;
    color: var(--body);
    letter-spacing: .01em;
    white-space: nowrap;
}

.bc-contacts .bc-tel {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: .06em;
    font-size: 26px;
}

.bc-contacts .bc-small {
    font-size: 24px;
}

/* 提示条 */
@media (max-width: 1280px) {
    .bc-operate {
        width: 340px;
    }

    .bc-group > label {
        flex-basis: 54px;
        width: 54px;
    }

    .bc-download {
        margin-left: 60px;
    }
}

@media (max-width: 900px) {
    .tool-content {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        border-radius: .6em;
        overflow: visible;
    }

    .bc-preview {
        padding: 0 .8em .8em;
        border-radius: .6em .6em 0 0;
        background-color: #fff;
    }

    .bc-preview > .bc-title,
    .bc-operate > .bc-title {
        line-height: 44px;
        font-size: 14px;
    }

    .bc-preview > .bc-title {
        margin-bottom: .2em;
    }

    .bc-operate {
        width: 100%;
        flex-shrink: 1;
        border-left: 0;
        border-top: solid 1px #e5e5e5;
        border-radius: 0 0 .6em .6em;
        padding-bottom: 1em;
    }

    .bc-menu {
        gap: .8em;
        padding: 0 .8em;
    }

    .bc-group > label {
        flex-basis: 54px;
        width: 54px;
        font-size: 13px;
    }

    .bc-group {
        gap: 0 8px;
    }

    .bc-download {
        margin-left: 0;
    }

    .bc-download .btn {
        width: 100%;
    }

    .bc-dropdown {
        min-width: 100%;
        width: 100%;
    }
}
