* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
}

.logo {
    padding: 0 20px;
    margin-bottom: 30px;
}

.logo h2 {
    font-size: 1.5em;
}

.menu ul {
    list-style: none;
}

.menu li {
    padding: 12px 20px;
    cursor: pointer;
    transition: none;
}

.menu li:hover {
    transform: none;
    box-shadow: none;
}

.menu li.active {
    border-left: 4px solid #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.menu a {
    color: white;
    text-decoration: none;
    display: block;
}

.menu-group-title {
    color: #bdc3c7;
    font-size: 1.1em;
    padding: 10px 20px;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    pointer-events: none;
    border-bottom: 1px solid #34495e;
    margin-bottom: 5px;
}

.menu-group-title:first-child {
    margin-top: 10px;
}

/* 内容区域样式 */
.content {
    flex: 1;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 首页欢迎部分 */
.welcome-section {
    text-align: center;
    padding: 40px 20px;
}

.welcome-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.welcome-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #7f8c8d;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    width: 300px;
    padding: 25px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tool-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.tool-card p {
    margin-bottom: 20px;
    color: #7f8c8d;
    text-align: left;
}

.tool-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tool-link:hover {
    background-color: #2980b9;
}

/* 通用样式 */
button {
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.input-section, .output-section {
    margin-bottom: 20px;
}

.tool-container {
    margin-top: 20px;
}

.options-section {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.checkbox-label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}

#clear-btn {
    background-color: #3498db;
}

#clear-btn:hover {
    background-color: #2980b9;
}

#copy-btn {
    background-color: #3498db;
}

#copy-btn:hover {
    background-color: #2980b9;
}

#result-output {
    background-color: #f8f8f8;
}

/* 代码显示区域样式 */
.code-display {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    margin: 0;
    height: auto;
    overflow-y: visible;
}

.output-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.copy-btn {
    align-self: flex-start;
    margin-top: 10px;
    background-color: #3498db;
}

.copy-btn:hover {
    background-color: #2980b9;
} 