/* 公共样式 - 适用于所有工具页面 */

/* 基础样式 */
body {
    font-size: 18px;
    font-family: "Microsoft YaHei";
    font-weight: light;
    color: #444;
    background-color: #D0D0D0;
    margin: 0;
    padding: 0;
    word-break: break-all;
    word-wrap: break-word;
}

/* 主容器 */
.main {
    max-width: 1080px;
    width: 90%;
    min-width: 320px;
    margin: 0 auto;
}

.main .content {
    background-color: #fff;
    padding: 40px 30px;
    text-align: justify;
    text-justify: distribute;
}

/* 输入文本区域 */
textarea {
    width: 100%;
    height: 100%;
    min-height: 10em;
    line-height: 1.8em;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    resize: vertical;
    padding: 10px;
    color: #333;
    font-size: 14px;
    border-radius: 8px;
}

textarea:focus {
    outline: none;
    border: 1px solid hsl(247, 58%, 55%);
}

/* 操作按钮 */
.actions input {
    height: 2.5em;
    padding-left: 1em;
    padding-right: 1em;
    margin-right: 10px;
}

.actions input:hover {
    cursor: pointer;
}

/* 输出结果 */
.output-result, #output_result {
    border: solid 1px #E0E0E0;
    padding: 10px;
    font-size: 14px;
}

.output-result {
    min-height: 5em;
    line-height: 1.6em;
}

/* 输入框样式 */
.input-text {
    width: 100%;
    height: 2.5em;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 0 10px;
    color: #333;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.input-text:focus {
    outline: none;
    border: 1px solid #000;
}

/* 输入标题 */
.input-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

/* 容器样式 */
.input_container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.output {
    display: block;
    margin-bottom: 20px;
}

/* 表单元素 */
input[type="number"] {
    height: 2em;
}

label {
    font-size: 15px;
}

p {
    font-size: 14px;
    color: #666;
}

/* 标签切换相关样式 */
.tab-container {
    display: flex;
    margin-top: 2em;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab {
    padding: 12px 24px;
    background-color: transparent;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    transform: translateY(-1px);
}

.tab.active {
    background-color: #e8f0fe;
    color: #333;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.tab:first-child {
    border-radius: 6px 0 0 6px;
}

.tab:last-child {
    border-radius: 0 6px 6px 0;
    border-right: 1px solid #ddd;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}