* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

.tool-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tool-title {
    text-align: center;
    margin-bottom: 35px;
}

.tool-title h1 {
    font-size: 30px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
}

.tool-title p {
    font-size: 16px;
    color: #666;
}

.input-box {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 30px;
}

.input-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.input-item {
    flex: 1;
}

.input-item label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-item input {
    width: 100%;
    height: 46px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.input-item input:focus {
    border-color: #2d8cf0;
    box-shadow: 0 0 0 2px rgba(45,140,240,0.15);
}

.btn-group {
    display: flex;
    gap: 10px;
}

.btn {
    height: 46px;
    padding: 0 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-check {
    background: #2d8cf0;
    color: #fff;
}

.btn-check:hover {
    background: #1b74d1;
}

.btn-clear {
    background: #f5f7fa;
    color: #515a6e;
}

.btn-clear:hover {
    background: #e9eef5;
}

/* 加载 */
.loading {
    text-align: center;
    padding: 50px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: none;
}

.loading-circle {
    width: 36px;
    height: 36px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #2d8cf0;
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 15px;
}

/* 结果卡片 */
.result-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    padding: 20px;
    border-left: 4px solid #2d8cf0;
}

.card-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.card-value {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* 表格 */
.table-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-size: 18px;
    color: #222;
}

/* 规则区域高度拉高 */
.table-content {
    max-height: 550px;
    overflow-y: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th {
    background: #fafafa;
    padding: 14px 25px;
    text-align: left;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.result-table td {
    padding: 14px 25px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.result-table tr:nth-child(even) {
    background: #fbfbfb;
}

/* 原始内容 */
.raw-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.raw-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.raw-header h3 {
    font-size: 18px;
    color: #222;
}

/* 原始内容高度拉高 */
.raw-content {
    padding: 20px 25px;
    background: #1e1e2e;
    max-height: 550px;
    overflow-y: auto;
}

.raw-content pre {
    color: #dcdcaa;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.btn-copy-raw {
    background: #f5f7fa;
    color: #515a6e;
    padding: 8px 15px;
    height: auto;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-copy-raw:hover {
    background: #e9eef5;
}

/* 浅蓝色透明错误提示 */
.error-tips {
    background-color: rgba(45, 140, 240, 0.12);
    border: 1px solid rgba(45, 140, 240, 0.3);
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.error-tips p {
    color: #2d8cf0;
    font-size: 15px;
}

/* 结果容器默认隐藏 */
.result-container {
    display: none;
}