/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    padding-top: 56px;
}

/* 导航栏样式 */
.navbar {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #2d7ff9, #7c4dff);
    border-radius: 10px;
}

.brand-logo i {
    font-size: 1.4rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo i {
    transform: rotate(20deg);
}

.brand-text {
    line-height: 1.1;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: #718096;
    letter-spacing: 0.5px;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    padding: 0.75rem 1rem;
    color: #4a5568;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 1rem;
    color: #718096;
    transition: color 0.2s;
}

.nav-link:hover {
    background: rgba(45, 127, 249, 0.05);
    color: #2d7ff9;
}

.nav-link:hover i {
    color: #2d7ff9;
}

.nav-link.active {
    background: rgba(45, 127, 249, 0.1);
    color: #2d7ff9;
    font-weight: 500;
}

.nav-link.active i {
    color: #2d7ff9;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        margin-top: 0.5rem;
        animation: slideDown 0.35s ease-out;
    }

    .navbar-nav {
        gap: 0;
    }

    .nav-link {
        padding: 1rem;
        border-radius: 8px;
    }

    .brand-subtitle {
        display: none;
    }

    /* 下拉菜单动画 */
    @keyframes slideDown {
        0% {
            transform: translateY(-10px);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* 头部横幅 */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(45deg, #2d7ff9 0%, #7c4dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: normal;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    box-shadow: 0 4px 25px rgba(45, 127, 249, 0.15);
}

.search-input {
    height: 50px;
    padding: 0 60px 0 25px;
    border: none;
    border-radius: 30px;
    background: transparent;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    pointer-events: none;
}

.search-tags {
    text-align: left;
    padding: 0 10px;
}

.search-label {
    color: #718096;
    font-size: 0.9rem;
    margin-right: 10px;
}

.search-tags a {
    color: #2d7ff9;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 15px;
    transition: color 0.2s;
}

.search-tags a:hover {
    color: #7c4dff;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(45deg, #2d7ff9, #7c4dff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #718096;
    margin: 0;
}

/* 分类标题 */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.section-title i {
    margin-right: 10px;
}

/* 工具卡片 */
.tool-card {
    background: #fff;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tool-link {
    display: block;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.tool-link:hover {
    color: inherit;
    text-decoration: none;
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.tool-icon i {
    font-size: 24px;
    color: #fff;
}


.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tool-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 分类卡片 */
.category-card .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.category-card .card-title i {
    margin-right: 10px;
}

.tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-list li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.tool-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tool-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    padding: 8px 0;
    display: block;
}

.tool-list a:hover {
    color: #007bff;
}

.tool-list a i.fa-chevron-right {
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.2s;
}

.tool-list a:hover i.fa-chevron-right {
    opacity: 1;
    transform: translateX(5px);
}

/* 返顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2d7ff9, #7c4dff);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(45, 127, 249, 0.3);
    color: #fff;
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* 页脚样式 */
.footer {
    border-top: 1px solid #eee;
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #007bff;
}

.social-links a {
    font-size: 1.2rem;
    color: #666;
}

.social-links a:hover {
    color: #007bff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .search-tags {
        text-align: center;
    }

    .search-tags a {
        margin: 5px 10px;
        display: inline-block;
    }

    .tool-card {
        padding: 10px;
    }

    .tool-card h3 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .tool-card p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .tool-icon {
        width: 45px;
        height: 45px;
        line-height: 45px;
        margin-bottom: 10px;
    }

    .tool-icon i {
        font-size: 18px;
    }

    .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .tool-link {
        padding: 10px;
    }
}

/* 汉堡菜单按钮样式 */
.navbar-toggler {
    width: 40px;
    height: 30px;
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* 汉堡菜单图标容器 */
.navbar-toggler .toggler-icon-container {
    width: 20px;
    height: 20px;
    position: relative;
}

.navbar-toggler .toggler-icon {
    display: block;
    position: absolute;
    height: 1.5px;
    width: 100%;
    background: #2d3748;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out, opacity 0.15s ease-in-out;
}

/* 三条线的位置 */
.navbar-toggler .top-bar {
    top: 3px;
    transform-origin: 10% 10%;
}

.navbar-toggler .middle-bar {
    top: 9px;
    opacity: 1;
}

.navbar-toggler .bottom-bar {
    top: 15px;
    transform-origin: 10% 90%;
}

/* 点击后的动画效果 */
.navbar-toggler:not(.collapsed) .top-bar {
    transform: rotate(45deg);
    transform-origin: 15% 15%;
}

.navbar-toggler:not(.collapsed) .middle-bar {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .bottom-bar {
    transform: rotate(-45deg);
    transform-origin: 15% 85%;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .brand-title {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-logo i {
        font-size: 1.2rem;
    }
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0 6rem;
    margin-bottom: -3rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, transparent, #fff);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #718096;
}

.tools-container {
    background: #fff;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .page-header {
        padding: 3rem 0 5rem;
        margin-bottom: -2rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-desc {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}

/* 工具卡片颜色样式 */
.bg-0 {
    background: var(--bs-primary);
}

.bg-1 {
    background: var(--bs-success);
}

.bg-2 {
    background: var(--bs-info);
}

.bg-3 {
    background: var(--bs-warning);
}

.bg-4 {
    background: var(--bs-danger);
}

.bg-5 {
    background: #8B5CF6;
    /* 紫色 */
}

.bg-6 {
    background: #14B8A6;
    /* 青色 */
}

.bg-7 {
    background: #F59E0B;
    /* 橙色 */
}

.bg-8 {
    background: #EC4899;
    /* 粉色 */
}

.bg-9 {
    background: #6366F1;
    /* 靛蓝色 */
}

.btn-outline-0 {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-0:hover {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-1 {
    color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-outline-1:hover {
    color: #fff;
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-outline-2 {
    color: var(--bs-info);
    border-color: var(--bs-info);
}

.btn-outline-2:hover {
    color: #fff;
    background-color: var(--bs-info);
    border-color: var(--bs-info);
}

.btn-outline-3 {
    color: var(--bs-warning);
    border-color: var(--bs-warning);
}

.btn-outline-3:hover {
    color: #fff;
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
}

.btn-outline-4 {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.btn-outline-4:hover {
    color: #fff;
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.btn-outline-5 {
    color: #8B5CF6;
    border-color: #8B5CF6;
}

.btn-outline-5:hover {
    color: #fff;
    background-color: #8B5CF6;
    border-color: #8B5CF6;
}

.btn-outline-6 {
    color: #14B8A6;
    border-color: #14B8A6;
}

.btn-outline-6:hover {
    color: #fff;
    background-color: #14B8A6;
    border-color: #14B8A6;
}

.btn-outline-7 {
    color: #F59E0B;
    border-color: #F59E0B;
}

.btn-outline-7:hover {
    color: #fff;
    background-color: #F59E0B;
    border-color: #F59E0B;
}

.btn-outline-8 {
    color: #EC4899;
    border-color: #EC4899;
}

.btn-outline-8:hover {
    color: #fff;
    background-color: #EC4899;
    border-color: #EC4899;
}

.btn-outline-9 {
    color: #6366F1;
    border-color: #6366F1;
}

.btn-outline-9:hover {
    color: #fff;
    background-color: #6366F1;
    border-color: #6366F1;
}