﻿* {
    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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.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;
    }

/* 导航样式 */
nav {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

    .nav-tabs a {
        padding: 12px 20px;
        text-decoration: none;
        color: #555;
        font-weight: 500;
        border-right: 1px solid #eaeaea;
        transition: all 0.3s;
    }

        .nav-tabs a:hover, .nav-tabs a.active {
            background: white;
            color: #1a2980;
        }

        .nav-tabs a.active {
            border-bottom: 3px solid #1a2980;
        }

.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: 25px;
}

    .page-header h1 {
        color: #1a2980;
        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);
}

/* Cron生成器样式 */
.cron-generator {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.cron-header {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cron-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: white;
    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 {
    display: none;
    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: #f1f8ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    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: #1a2980;
        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;
}

    .tool-card:hover {
        transform: translateY(-5px);
    }

.tool-icon {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.tool-info {
    padding: 20px;
}

    .tool-info h3 {
        margin-bottom: 10px;
        color: #1a2980;
    }

    .tool-info p {
        color: #666;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .tool-info a {
        display: inline-block;
        background: #1a2980;
        color: white;
        text-decoration: none;
        padding: 8px 15px;
        border-radius: 4px;
        font-size: 14px;
    }


.copyright {
    text-align: center;
    padding-top: 40px;
    color: #95a5a6;
    font-size: 14px;
}

/* 响应式设计 */
@@media (max-width: 768px) {
    .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;
        }
}
