:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --border-color: #dfe6e9;
    --hover-color: #f8f9fa;
    --active-color: #dfe6e9;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    overflow-x: hidden;
}

/* 顶部导航栏 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 40px;
}

.nav {
    display: flex;
    height: 100%;
    position: relative;
}

.nav-item {
    position: relative;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--dark-color);
    font-weight: 500;
    transition: color var(--transition-speed);
    font-size: 16px;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active  {
    color: var(--primary-color);
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    border-radius: 3px 3px 0 0;
}

/* 主体布局 */
.container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* 左侧工具栏 */
.sidebar {
    width: 220px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
    padding: 20px 0;
    transition: all var(--transition-speed);
}

.sidebar-group {
    margin-bottom: 20px;
}

.sidebar-title {
    padding: 10px 20px;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background-color: var(--hover-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-item.active  {
    background-color: var(--active-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

.sidebar-icon {
    color: var(--dark-color);
    width: 20px;
    text-align: center;
}

/* 右侧内容区 */
.main-content {
    margin-left: 220px;
    flex: 1;

    padding-left: 60px;
    padding-right: 80px;
    background-color: #f5f7fa;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed);
    border: 1px solid transparent;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tool-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 18px;
}

.tool-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.tool-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
    line-height: 1.5;
}

.tool-meta {
    display: flex;
    font-size: 12px;
    color: #95a5a6;
}

.tool-meta span {
    margin-right: 15px;
}

.tool-meta i {
    margin-right: 5px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sidebar {
        width: 180px;
    }

    .main-content {
        margin-left: 180px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {

    .layui-textarea{
        width: 100%;
        height: 200px
    }
}

.ws-text h1 {
    margin-bottom: 16px;
    padding-bottom: 11px;
    color: #2f363c;
    border-bottom: 1px solid #eee;
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover{
    text-decoration: none;
    color: #000;
}
a:focus{
    text-decoration: none;
    color: #000;
}
.layui-form-label{
    width: 100px ;
}

.logo i {
    margin-right: 10px;
    color: var(--accent-color);
}



.ws-footer {
    padding: 30px 15px;
    line-height: 30px;
    text-align: center;
    color: #777;
    clear: both;
}

.ws-footer a {
    padding: 0 5px;
    color: #777
}

.ws-footer a:hover {
    color: #1e9fff;
    text-decoration: underline
}

.ws-footer-fixed {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -1px 3px rgb(0 0 0 / 5%)
}

.ws-footer-fixed:after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #eee;
    content: ''
}

.ws-footer-fixed .ws-footer {
    height: 60px;
    padding: 15px 0;
    overflow: hidden;
    box-sizing: border-box;
    white-space: nowrap
}

.ws-footer-fixed .ws-footer>* {
    display: inline-block;
    vertical-align: middle;
    padding: 0 15px
}


.ws-content {
    position: relative;
    line-height: 1.8;
    box-sizing: border-box;
    background-color: white;
    padding-left: 15px;
    border-radius: 10px;
    padding-bottom: 30px;
}

.ws-text {
    color: #3a3a3a;
    /*padding-right: 10px;*/
}

.layui-code-view {
    background: #F7F7F7 !important;
    margin: 10px;
}
