/* Token 生成器专用样式 */
.token-tool-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.token-card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.2s ease;
}
.token-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9edf4;
}
.token-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.token-header p {
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.token-header p span {
    background: #eef2ff;
    color: #1e40af;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.token-main-panel {
    padding: 2rem;
    background: #ffffff;
}

/* 模式行 */
.mode-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}
.mode-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}
.mode-select {
    padding: 0.4rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    font-size: 0.9rem;
    background: white;
    outline: none;
    cursor: pointer;
}

/* 选项行通用 */
.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.option-row:last-child {
    margin-bottom: 0;
}
.option-label {
    min-width: 90px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}
.length-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}
.length-slider {
    flex: 1;
    min-width: 200px;
    height: 6px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
}
.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(59,130,246,0.3);
}
.length-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(59,130,246,0.3);
}
.length-value {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 0.2rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 60px;
    text-align: center;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    flex: 1;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}
.checkbox-item label {
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
}

/* UUID 选项 */
.uuid-options {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.info-note {
    color: #475569;
    font-size: 0.9rem;
    text-align: center;
}

/* 公共选项 */
.common-options {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.encoding-select {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    font-size: 0.9rem;
    background: white;
    outline: none;
    cursor: pointer;
    min-width: 180px;
}
.count-control {
    display: flex;
    align-items: center;
}
.count-input {
    width: 80px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* 熵值显示 */
.entropy-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}
.entropy-label {
    font-size: 0.85rem;
    color: #64748b;
}
.entropy-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background: #e2e8f0;
    padding: 0.2rem 1rem;
    border-radius: 30px;
}
.entropy-meter.hidden {
    display: none;
}

/* 输出容器 */
.output-container {
    margin: 1.5rem 0;
    min-height: 120px;
    background: #f1f5f9;
    border: 1.5px solid #d1d9e6;
    border-radius: 20px;
    padding: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
}
.single-output {
    width: 100%;
    padding: 0.8rem;
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: transparent;
    border: none;
    outline: none;
    color: #0b1e33;
    resize: none;
}
.batch-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.token-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.token-text {
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
    margin-right: 0.5rem;
}
.copy-line-btn {
    background: transparent;
    border: none;
    font-size: 0.8rem;
    color: #3b82f6;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    white-space: nowrap;
}
.copy-line-btn:hover {
    background: #e2e8f0;
}

/* 按钮组 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}
.btn-group {
    display: flex;
    gap: 0.6rem;
}
.btn {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btn-primary {
    background: #1e293b;
    border-color: #1e293b;
    color: white;
    box-shadow: 0 8px 16px -6px rgba(30,41,59,0.3);
}
.btn-primary:hover {
    background: #0f172a;
    border-color: #0f172a;
    transform: translateY(-1px);
}
.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}
.btn-success:hover {
    background: #059669;
    border-color: #059669;
}
.btn-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* 错误提示 */
.error-message {
    background: #fee2e2;
    border-left: 5px solid #ef4444;
    color: #b91c1c;
    padding: 0.9rem 1.5rem;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.8rem;
}
.error-message.hidden {
    display: none;
}

.footer-note {
    margin-top: 1.2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 1.2rem;
}
.hidden {
    display: none !important;
}
.icon {
    font-size: 1.1rem;
    line-height: 1;
}