﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1206px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

/*.header-top {
    max-width: 1245px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}*/

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

    .logo i {
        margin-right: 10px;
        font-size: 28px;
    }

.search-box {
    display: flex;
    width: 350px;
}

    .search-box input {
        flex: 1;
        padding: 8px 15px;
        border: none;
        border-radius: 4px 0 0 4px;
        font-size: 14px;
    }

    .search-box button {
        background: #ff6b6b;
        color: white;
        border: none;
        padding: 8px 15px;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
    }

.user-actions a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

    .user-actions a:hover {
        text-decoration: underline;
    }


.tool-categories {
    display: flex;
    padding: 10px 15px;
    background: white;
}

    .tool-categories a {
        padding: 8px 15px;
        margin-right: 10px;
        text-decoration: none;
        color: #555;
        border-radius: 20px;
        font-size: 14px;
        transition: all 0.3s;
    }

        .tool-categories a:hover, .tool-categories a.active {
            background: #1a2980;
            color: white;
        }

/* 主体内容样式 */
main {
    padding: 30px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .page-header h1 {
        color: #38538E;
        font-size: 28px;
    }

.tool-description {
    color: #666;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
}

    .tool-description p {
        margin-bottom: 0px;
    }

.pan-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding-bottom: 30px;
}

.pan-header {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: black;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .pan-header h2 {
        font-size: 20px;
        font-weight: 600;
    }

.cron-actions button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: black;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
}

    .cron-actions button:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.cron-body {
    padding: 20px;
}

/* 标签页样式 */
.cron-tabs {
    margin-bottom: 20px;
}

.tabs-header2 {
    display: flex;
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 15px;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

    .tab-item.active {
        color: #1a2980;
        border-bottom: 2px solid #1a2980;
    }

.tab-content {
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
}

    .tab-content.active {
        display: block;
    }

.line {
    height: 25px;
    line-height: 25px;
    margin: 3px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.imp {
    padding-left: 25px;
    display: flex;
    flex-wrap: wrap;
}

    .imp div {
        margin: 5px 10px;
        display: flex;
        align-items: center;
    }

.numberspinner {
    width: 60px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
}

/* 表达式区域 */
.expression-area {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 0px;
    border: 1px solid #d1e3f6;
}

.expression-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

    .expression-table td {
        padding: 8px 5px;
    }

    .expression-table input[type="text"] {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: white;
    }

.cron-field {
    font-weight: bold;
    color: #1a2980;
}

#cron {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: white;
}

#runTime {
    background: white;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-family: monospace;
}

/* 热门工具区域 */
.popular-tools {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

    .section-header h2 {
        color: #38538E;
        font-size: 22px;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    /*    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;*/

    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

    .tool-card:hover {
        transform: translateY(-5px);
    }

.tool-icon {
    /* background: linear-gradient(135deg, #1a2980, #26d0ce);
    height: 100px;
   
    color: white;
    font-size: 40px;*/

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: black;
    margin-bottom: 10px;
    color: #4b6cb7;
}


.tool-info {
    padding: 20px;
}

    .tool-info h3 {
        /*   margin-bottom: 10px;
        color: #1a2980;
        font-weight: bold;
        font-size: 19px;*/
        font-size: 18px;
        margin-bottom: 10px;
        color: #333;
    }

    .tool-info p {
        /*   color: #666;
        font-size: 14px;
        margin-bottom: 0px;*/
        color: #666;
        font-size: 14px;
        margin-bottom: 15px;
        flex-grow: 1;
    }

    .tool-info a {
        /*  display: inline-block;
        background: #1a2980;
        color: white;
        text-decoration: none;
        padding: 8px 15px;
        border-radius: 4px;
        font-size: 14px;*/
        background: #4b6cb7;
        color: white;
        padding: 8px 15px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 14px;
        transition: background 0.3s;
    }
        .tool-info a:hover {
            background: #3a5a9c;
            color:white
        }

.copyright {
    text-align: center;
    padding-top: 40px;
    color: #95a5a6;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menusheader{display:none}
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
        margin: 15px 0;
    }

    .user-actions {
        align-self: flex-end;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

        .nav-tabs a {
            flex: 1 0 33%;
            text-align: center;
            border-bottom: 1px solid #eaeaea;
        }

    .tool-categories {
        flex-wrap: wrap;
    }

        .tool-categories a {
            margin-bottom: 5px;
        }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .page-header .btn-group {
            margin-top: 15px;
            align-self: flex-end;
        }
}


/********************************************************************* 头部导航样式* *****************************************************/
/* 头部导航样式 */
header {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /*  position: sticky;*/
    top: 0;
    z-index: 1000;
    width: 1165px;
    border-radius: 3px;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}



.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

    .logo i {
        margin-right: 10px;
        font-size: 28px;
    }

.search-container {
    display: flex;
    width: 300px;
}

    .search-container input {
        flex: 1;
        padding: 10px 15px;
        border: none;
        border-radius: 4px 0 0 4px;
        font-size: 14px;
    }

    .search-container button {
        background: #ff6b6b;
        color: white;
        border: none;
        padding: 0 15px;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        transition: background 0.3s;
    }

        .search-container button:hover {
            background: #ff5252;
        }

/* 主导航菜单 */
.main-nav {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
}

    .nav-menu > li {
        position: relative;
    }

        .nav-menu > li > a {
            display: block;
            padding: 15px 20px;
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: background 0.3s;
        }

            .nav-menu > li > a:hover {
                background: rgba(255, 255, 255, 0.1);
                
            }

            .nav-menu > li > a i {
                margin-left: 5px;
                font-size: 12px;
            }

/* 下拉菜单样式 */
.dropdown {
    padding-left:0px !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    margin-bottom:0px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10002; /* 增加z-index确保在最上层 */
}

.nav-menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: auto;
}

.dropdown li {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

    .dropdown li:last-child {
        border-bottom: none;
    }

    .dropdown li a {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        transition: background 0.3s;
    }

        .dropdown li a:hover {
            background: #f8f9fa;
            color: #4b6cb7;
        }

/* 二级下拉菜单 */
.dropdown .sub-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 220px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 4px 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
}

.dropdown li:hover .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 内容区域样式 */
.content {
    padding: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}/*

    .section-header h2 {
        font-size: 24px;
        color: #333;
        display: flex;
        align-items: center;
    }

        .section-header h2 i {
            margin-right: 10px;
            color: #4b6cb7;
        }
*/
.search-box2 {
    display: flex;
}

    .search-box2 input {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px 0 0 4px;
        width: 250px;
    }

    .search-box2 button {
        background: #4b6cb7;
        color: white;
        border: none;
        padding: 0 15px;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
    }
 
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 10px 0 0 0;
    }

    .logo {
        margin-bottom: 10px;
    }

    .search-container {
        width: 100%;
        max-width: 400px;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

        .nav-menu > li {
            flex: 1 0 50%;
        }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-radius: 0;
    }

    .nav-menu > li:hover .dropdown {
        display: block;
    }

    .dropdown .sub-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
    }

    .dropdown li:hover .sub-dropdown {
        display: block;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
  
}

/********************************************************************* 头部导航样式* *****************************************************/