/* ==================== 文件名：fc3d-widget.css ==================== */
/* 独立模块样式，不影响外部页面，所有类名带 fc3d-widget 前缀保证隔离 */
/* 禁止双击缩放 */
.fc3d-widget * {
    touch-action: manipulation;  /* 禁止双击缩放 */
}
/* ==================== 全局文字大小控制 ==================== */
/* ★★★ 您只需要调整下面这个 --base-font-size 的值，整个页面的文字就会按比例缩放 ★★★ */
.fc3d-widget {
    --base-font-size: 21px;  /* ← 修改这里！默认18px，改成24px文字就变很大 */
    --title-size: calc(var(--base-font-size) * 1.8);
    --badge-size: calc(var(--base-font-size) * 1);
    --section-title-size: calc(var(--base-font-size) * 1.8);
    --text-size: calc(var(--base-font-size) * 1.5);
    --label-size: calc(var(--base-font-size) * 1.2);
    --button-size: calc(var(--base-font-size) * 1);
    --big-button-size: calc(var(--base-font-size) * 1.5);
    --digit-btn-size: 29px;  /* 数字按钮单独控制，保持适中 */
    --digit-btn-size: calc(var(--base-font-size) * 1.5); /* 数字按钮单独控制，保持适中 */
    
    --chip-size: calc(var(--base-font-size) * 1.1);
}

/* 粘贴按钮 清空按钮 单独样式 */
#pasteBtn,#clearRawBtn {
    background:  floralwhite;
    border-color: #3ba89f;
    color: #1A5276;
    font-weight: 1200;
    padding: 14px 28px;
    width: 290px;
    font-size: calc(var(--button-size) * 1.5);
    
}

 
#generateCompoundBtn,#clearCompoundBtn  {
    background: floralwhite;
    color:#1A5276;
    font-weight: 1200;
    font-size: calc(var(--button-size) * 1.5);
    width: 350px;
    padding: 16px 32px;
    
}

.fc3d-widget {
    width: 100%;
    margin: 0 auto;
    background: #f8fafd;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    overflow: hidden;
    border: none;
}

/* 内部容器统一内边距 */
.fc3d-widget .widget-inner {
    padding: 20px 16px 24px;
}

/* 头部样式 */
.fc3d-widget .widget-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5eef7;
}
.fc3d-widget .widget-title {
    font-size: var(--title-size);
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a5f, #f39c12);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}
.fc3d-widget .widget-badge {
    background: #f39c12;
    color: #1e2e41;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: var(--badge-size);
    font-weight: 600;
}

/* 卡片通用样式 */
.fc3d-widget .card {
    background: white;
    border-radius: 28px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2edf9;
}
.fc3d-widget .section-title {
    font-weight: 700;
    font-size: var(--section-title-size);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a2b40;
    border-left: 5px solid #f39c12;
    padding-left: 14px;
}

/* 文本域 */
.fc3d-widget textarea {
    width: 100%;
    height: 300px;
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    /*font-size: var(--text-size);*/
    
    font-size: calc(var(--text-size) * 1.5);  /* 单独放大1.3倍 */
    font-weight: 900;  /* 加粗一点 */
    background: #f6fafe;
    border: 2px solid #dce5f0;
    border-radius: 24px;
    resize: vertical;
    outline: none;
    transition: 0.2s;
}
.fc3d-widget textarea:focus {
    border-color: #f39c12;
    background: white;
}
.fc3d-widget textarea::placeholder {
    font-size: calc(var(--text-size) * 0.85);
}

/* 按钮行 */
.fc3d-widget .flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}
.fc3d-widget .action-group {
    display: flex;
    gap: 14px;
}
.fc3d-widget .mini-btn {
    background: #eef2fa;
    border: 1.5px solid #bdc9df;
    padding: 14px 26px;
    border-radius: 50px;
    font-size: var(--button-size);
    font-weight: 600;
    color: #1e3a5f;
    cursor: pointer;
    transition: 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fc3d-widget .mini-btn:active {
    transform: scale(0.96);
}
.fc3d-widget .badge {
    background: #1e3a5f;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: var(--button-size);
    font-weight: 600;
}

/* 复式选号区域 */
.fc3d-widget .compound-area {
    background: #edf3fb;
    border-radius: 28px;
    padding: 22px;
    margin-top: 12px;
}
.fc3d-widget .compound-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: var(--button-size);
    color: #1e3a5f;
}
.fc3d-widget .digit-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.fc3d-widget .digit-label {
    font-weight: 700;
    font-size: var(--label-size);
    color: #2c4b6e;
}
/* 快速按钮行 */
.fc3d-widget .quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.fc3d-widget .quick-btn {
    background: white;
    border: 1.5px solid #bdc9df;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: var(--button-size);
    font-weight: 600;
    color: #1e3a5f;
    cursor: pointer;
    transition: 0.1s;
}
/* 数字按钮 - 保持适中大小 */
.fc3d-widget .digit-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}
.fc3d-widget .digit-btn {
    width: 52px;
    height: 52px;
    border-radius: 50px;
    background: white;
    border: 2px solid #b5c8e6;
    font-size: var(--digit-btn-size) ;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.08s linear;
    color: #0f2a44;
}
.fc3d-widget .digit-btn.selected {
    background: #f39c12;
    border-color: #c67d0c;
    color: #1e2e41;
    transform: scale(1.02);
}
.fc3d-widget .compound-actions {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.fc3d-widget .compound-actions .mini-btn {
    font-size: var(--button-size);
    padding: 12px 22px;
}

/* 胆组区域样式 - 输入框占一整行 */
.fc3d-widget .dan-group-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}
.fc3d-widget .dan-group-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafd;
    border-radius: 20px;
    padding: 14px;
    border: 1px solid #e2edf9;
}
.fc3d-widget .dan-label {
    font-weight: 900;
    font-size: 35px;
    color:honeydew;
    background: orangered;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-block;
    width: fit-content;
}
.fc3d-widget .dan-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dce5f0;
    border-radius: 40px;
    font-size: 50px;
    font-weight: 900;
    
    background: white;
    outline: none;
    box-sizing: border-box;
}
.fc3d-widget .dan-count-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fc3d-widget .dan-count-label {
    font-size: 35px;
    color: #5a6e8a;
}
.fc3d-widget .dan-count-input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid #dce5f0;
    border-radius: 40px;
    text-align: center;
    font-size: 35px;
}
.fc3d-widget .global-dan-setting {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 2px dashed #dce5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.fc3d-widget .global-dan-setting span {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 35px;
}
.fc3d-widget .global-dan-input {
    width: 75px;
    padding: 8px 12px;
    border: 2px solid #dce5f0;
    border-radius: 40px;
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    background: white;
}
/* 过滤条件网格 */
.fc3d-widget .filter-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.fc3d-widget .filter-item {
    background: #f3f8ff;
    border-radius: 26px;
    padding: 20px;
}
.fc3d-widget .filter-label {
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: calc(var(--label-size) * 1.5);

}
.fc3d-widget .filter-label span {
    background: #f39c12;
    color: #1a2b40;
    border-radius: 30px;
    padding: 5px 18px;
    font-size: calc(var(--text-size) * 0.85);
}
.fc3d-widget .radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.fc3d-widget .radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size:var(--text-size); 
    
}
.fc3d-widget .radio-group input {
    width: 20px;
    height: 20px;
}
.fc3d-widget .range-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.fc3d-widget .input-number {
    padding: 12px 16px;
    border-radius: 40px;
    border: 2px solid #cbdae9;
    background: white;
    font-size: var(--text-size);
    text-align: center;
    width: 95px;
}
/* 012路容器 - 加大间距 */
.fc3d-widget .chip-group {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    align-items: center;
}

/* 012路数字按钮 - 正圆形，更大尺寸 */
.fc3d-widget .chip {
    background: white;
    border: 2px solid #c0d0ea;
    border-radius: 50%;       /* ← 改成50%，变成正圆形 */
    width: 88px;
    height: 88px;             /* ← 添加高度，确保正圆 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
    font-size: calc(var(--chip-size) * 1.3);  /* 文字更大 */
    transition: all 0.2s;
    flex-shrink: 0;
}

.fc3d-widget .chip.active {
    background: #f39c12;
    border-color: #c67d0c;
    color: #1e2e41;
    transform: scale(1.05);
}

/* 按钮组 */
.fc3d-widget .action-bar {
    display: flex;
    gap: 16px;
    margin-top: 22px;
    align-items: center;
    flex-wrap: wrap;
}
.fc3d-widget .btn {
    background: white;
    border: 2px solid #1e3a5f;
    color: #1e3a5f;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    text-align: center;
    font-size: var(--big-button-size);
}
.fc3d-widget .btn-primary {
    background: #1e3a5f;
    color: white;
}
.fc3d-widget .stats-badge {
    background: #1e3a5f;
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
    font-size: var(--big-button-size);
}

/* 结果区 */
.fc3d-widget .result-area {
    background: #121f31;
    border-radius: 28px;
    padding: 20px;
    margin-top: 12px;
    border: 1px solid #f39c12;
}
.fc3d-widget .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.fc3d-widget .result-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    background: #1b2a40;
    border-radius: 24px;
    padding: 18px;
}
.fc3d-widget .number-badge {
    background: #263d5c;
    padding: 12px 22px;
    border-radius: 40px;
    border-left: 4px solid #f39c12;
    font-weight: 700;
    font-size: var(--label-size);
    color: #eef4ff;
}
.fc3d-widget .error-tip {
    background: #ffd9c5;
    border-radius: 24px;
    padding: 16px;
    color: #a14400;
    width: 100%;
    text-align: center;
    font-size: var(--text-size);
}

/* 手机全屏适配 - 保持比例 */
@media (max-width: 1025px) {
    .fc3d-widget .widget-inner {
        padding: 16px 14px 20px;
    }
    .fc3d-widget .digit-btn {
        width: 48px;
        height: 48px;
        font-size: var(--digit-btn-size);
    }
    .fc3d-widget .dan-row-header {
        flex-direction: column;
        align-items: stretch;
    }
    .fc3d-widget .dan-count-control {
        padding-left: 0;
    }
    .fc3d-widget .chip {
        width: 56px;
    }
}