:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --gray: #6c757d;
    --border: #dee2e6;
}

.copy-notification {
    /* 添加动画效果 */
    animation: fadeInOut 3s ease forwards;
    opacity: 0;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    color: var(--dark);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.app-header {
    text-align: center;
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 16px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    transform: rotate(30deg);
    pointer-events: none;
}

.app-header h1 {
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
}

.app-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    background: white;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border: none;
    padding: 16px 20px;
    border-radius: 14px 14px 0 0 !important;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.card-header i {
    margin-right: 12px;
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.card-body {
    padding: 25px;
}

.nav-tabs {
    border-bottom: none;
    margin-bottom: 25px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    flex-wrap: nowrap;
    display: flex;
    -webkit-overflow-scrolling: touch;
}

/* 默认隐藏 */
.scroll-hint {
    display: none;
}

/* 在手机端显示并加动画 */
@media (max-width: 768px) {
    .scroll-hint {
        display: block;
        text-align: center;
        font-size: 0.85rem;
        font-weight: 600;
        margin-top: 5px;
        animation: colorCycle 4s linear infinite; /* 无限循环，速度适中 */
    }
}

/* 柔和三色渐变 */
@keyframes colorCycle {
    0%   { color: #ffb3b3; }  /* 浅红 */
    33%  { color: #ffe680; }  /* 明亮柔和黄 */
    66%  { color: #66b3ff; }  /* 天空蓝 */
    100% { color: #ffb3b3; }  /* 回到浅红 */
}


.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: var(--gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-tabs .nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.nav-tabs .nav-link:not(.active):hover {
    color: var(--primary);
    background-color: rgba(67, 97, 238, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 8px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.2);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
}

.btn-primary i {
    margin-right: 8px;
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.success-message {
    background-color: rgba(40, 167, 69, 0.12);
    color: #166b34;
    border-left: 4px solid var(--success);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.12);
    color: #b02a37;
    border-left: 4px solid var(--danger);
}

.info-message {
    background-color: rgba(23, 162, 184, 0.12);
    color: #0d6efd;
    border-left: 4px solid var(--primary);
}

.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.copy-notification i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.hint {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 6px;
    padding-left: 28px;
}

.result-link {
    display: block;
    background: rgba(67, 97, 238, 0.08);
    color: var(--primary);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all;
    border: 1px dashed var(--primary);
    position: relative;
    padding-left: 50px;
}

.result-link:hover {
    background: rgba(67, 97, 238, 0.15);
}

.result-link i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
}

.section-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 12px;
    background: rgba(67, 97, 238, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid var(--border);
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    border-radius: 12px;
    color: var(--gray);
    font-size: 0.9rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .app-header h1 {
        font-size: 1.8rem;
    }

    .app-header p {
        font-size: 1rem;
    }

    .card-body {
        padding: 20px;
    }

    .card-header {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .app-header {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .btn-primary {
        width: 100%;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-control, .form-select {
        padding: 10px 14px;
    }

    footer {
        padding: 15px;
        font-size: 0.8rem;
    }
}

// 下拉展开/折叠  Cron 表达式示例
.cron-examples {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 12px;
    border-left: 3px solid #0d6efd;
}
.cron-examples code {
    color: #d63384;
    background-color: rgba(214, 51, 132, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}
.cron-examples-toggle a:hover {
    color: #0d6efd !important;
}