:root {
    --primary-color: #6f42c1;
    --secondary-color: #0dcaf0;
}

body {
    /*background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);*/
    min-height: 100vh;
    /*padding-bottom: 3rem;*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-section {
    background: linear-gradient(120deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(37, 117, 252, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 30%);
    pointer-events: none;
}

.gradient-card {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    cursor: pointer;
}

.gradient-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gradient-preview {
    height: 200px;
    width: 100%;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.color-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-card:hover .color-overlay {
    opacity: 1;
}

.color-code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 0 5px;
}

.code-container {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    position: relative;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.card-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1rem;
}

/* 渐变样式 */
.gradient-1 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
.gradient-2 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.gradient-3 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.gradient-4 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.gradient-5 { background: linear-gradient(135deg, #a6c0fe 0%, #f68084 100%); }
.gradient-6 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.gradient-7 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.gradient-8 { background: linear-gradient(135deg, #cd9cf2 0%, #f6f3ff 100%); }
.gradient-9 { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.gradient-10 { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.gradient-11 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.gradient-12 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.gradient-13 { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); }
.gradient-14 { background: linear-gradient(135deg, #43cbff 0%, #9708cc 100%); }
.gradient-15 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-16 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-17 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gradient-18 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.gradient-19 { background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%); }
.gradient-20 { background: linear-gradient(135deg, #fd746c 0%, #ff9068 100%); }
.gradient-21 { background: linear-gradient(135deg, #5d69be 0%, #c89feb 100%); }
.gradient-22 { background: linear-gradient(135deg, #0fd850 0%, #f9f047 100%); }
.gradient-23 { background: linear-gradient(135deg, #d9afd9 0%, #97d9e1 100%); }
.gradient-24 { background: linear-gradient(135deg, #f83600 0%, #f9d423 100%); }

.card-footer {
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #2d3748;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    border-radius: 12px;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 3rem;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
}

.tag-warm { background: linear-gradient(to right, #ff9a9e, #fad0c4); color: #333; }
.tag-cool { background: linear-gradient(to right, #a1c4fd, #c2e9fb); color: #333; }
.tag-fresh { background: linear-gradient(to right, #d4fc79, #96e6a1); color: #333; }
.tag-neon { background: linear-gradient(to right, #fa709a, #fee140); color: #333; }

.filter-btn {
    border-radius: 30px;
    padding: 8px 20px;
    margin: 0 5px 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn.active, .filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
    border-color: var(--primary-color);
}

.search-container {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}

.search-container input {
    border-radius: 50px;
    padding: 12px 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: none;
}

.search-container button {
    border-radius: 50%;
}

.color-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    z-index: 1000;
    padding: 30px;
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.color-preview-lg {
    height: 250px;
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }

    .gradient-preview {
        height: 170px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

.floating {
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}