* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f8f9fa !important;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 80px 1.5rem 2rem;
    margin: 0;
}
.navbar {
    height: 80px !important;
}

.container-main {
    max-width: 1500px;
    width: 100%;
    background: #ffffff;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 5px 15px 2px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
	margin-top: 20px;
}




h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: #333;
    text-align: center;
	margin-bottom:10px;
	margin-top:-0px;
}

.sub {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.tool-intro {
    margin-top: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 4px solid #0D6EFD;
}

.tool-intro p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.tool-intro strong {
    color: #0b1a33;
}

.main-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

/* ===== 左侧面板 ===== */
.left-panel {
    flex: 0 0 460px;
    background: #f8f9fa;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e9edf4;
}

.panel-title {
    font-weight: 600;
    color: #0b1a33;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #0D6EFD;
    padding-bottom: 0.3rem;
    display: inline-block;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #dce2ec;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    background: #ffffff;
}

.upload-area:hover {
    border-color: #0D6EFD;
    background: #f0f4ff;
}

.upload-area i {
    font-size: 2rem;
    color: #0D6EFD;
    display: block;
    margin-bottom: 0.3rem;
}

.upload-area span {
    color: #6c757d;
    font-size: 0.85rem;
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-area.has-file {
    border-color: #0D6EFD;
    background: #f0f4ff;
}

.upload-area .file-name {
    display: block;
    font-weight: 500;
    color: #0b1a33;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    word-break: break-all;
}

.import-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 输入框 */
#numberInput {
    width: 100%;
    min-height: 180px;
    padding: 0.8rem;
    border: 1px solid #dce2ec;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    background: #ffffff;
    color: #0b1a33;
    outline: none;
    line-height: 1.8;
}

#numberInput:focus {
    border-color: #0D6EFD;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.action-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 0.3rem 0.8rem;
    background: #e9edf4;
    border: 1px solid #dce2ec;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    color: #475569;
    cursor: pointer;
    transition: 0.15s;
}

.btn-secondary:hover {
    background: #dce2ec;
    border-color: #0D6EFD;
    color: #0D6EFD;
}

.number-count {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: auto;
}

.divider {
    border-top: 1px solid #e2e8f0;
    margin: 1rem 0;
}

/* 格式化设置 */
.format-type-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
}

.format-radio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
}

.format-radio input[type="radio"] {
    accent-color: #0D6EFD;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.format-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 0.6rem;
    border: 1px solid #e2e8f0;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #475569;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    border-radius: 0.3rem;
    transition: 0.1s;
}

.format-option:hover {
    background: #f1f4f9;
}

.format-option input[type="radio"] {
    accent-color: #0D6EFD;
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-primary {
    width: 100%;
    padding: 0.7rem;
    background: #0D6EFD;
    color: white;
    border: none;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: scale(1.01);
}

.btn-primary:active {
    transform: scale(0.97);
}

/* ===== 右侧面板 ===== */
.right-panel {
    flex: 1;
    background: #f8f9fa;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e9edf4;
    display: flex;
    flex-direction: column;
}

.result-stats {
    display: flex;
    gap: 1.5rem;
    padding: 0.4rem 0.8rem;
    background: #ffffff;
    border-radius: 0.4rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: #64748b;
}

.result-stats strong {
    color: #0b1a33;
}

#resultOutput {
    flex: 1;
    width: 100%;
    min-height: 350px;
    padding: 0.8rem;
    border: 1px solid #dce2ec;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    background: #ffffff;
    color: #0b1a33;
    outline: none;
    line-height: 1.8;
}

#resultOutput:focus {
    border-color: #0D6EFD;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.result-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.btn-copy {
    padding: 0.4rem 1rem;
    background: #0D6EFD;
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-copy:hover {
    background: #0b5ed7;
}

.btn-export {
    padding: 0.4rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-export:hover {
    background: #059669;
}

.btn-clear-result {
    padding: 0.4rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.btn-clear-result:hover {
    background: #dc2626;
}

