/* 头部栏，css */
.big-header-banner{
    background-color: #16181b;
}
/* 主要内容部分 */
.grid-bg{
    background-image: none !important;
    background-color: white !important;
}

.sticky {
    z-index: 99 !important;
}

.tag:hover {
    transform: translateY(-2px);
}
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    margin: 4px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 999px; /* 胶囊型 */
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* 轻微立体感 */
    box-shadow:
      0 1px 1px rgba(0, 0, 0, 0.04),
      inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition:
            transform 0.15s ease,
            box-shadow 0.15s ease;
}

/* 移除原来的 before 伪元素（移除双层箭头效果）*/
/*.tag:after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    right: -17px;*/
/*    transform: translateY(-50%);*/
/*    width: 16px;  !* 箭头区域宽度 *!*/
/*    height: 24px; !* 箭头区域高度 *!*/
/*    clip-path: polygon(0 0, 0 100%, 100% 50%); !* 创建三角形 *!*/
/*    border-width: 8px;*/
/*    border-style: solid;*/
/*    border-color: inherit;*/
/*    background-color: inherit;*/
/*}*/

/* 绿色标签 */
.tag-green {
    --tag-bg: rgba(74, 222, 128, 0.1);
    --tag-border: rgba(74, 222, 128, 0.2);
    --tag-color: #16a34a;
    background-color: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid var(--tag-border);
}

/* 黄色标签 */
.tag-yellow {
    --tag-bg: rgba(250, 204, 21, 0.1);
    --tag-border: rgba(250, 204, 21, 0.2);
    --tag-color: #ca8a04;
    background-color: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid var(--tag-border);
}

/* 红色标签 */
.tag-red {
    --tag-bg: rgba(239, 68, 68, 0.1);
    --tag-border: rgba(239, 68, 68, 0.2);
    --tag-color: #dc2626;
    background-color: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid var(--tag-border);
}
/*.tag-green:before {*/
/*    border-color: transparent transparent transparent var(--tag-border);*/
/*}*/
/*.tag-green:after {*/
/*    border-color: transparent transparent transparent var(--tag-bg);*/
/*}*/
/*.tag-yellow:before {*/
/*    border-color: transparent transparent transparent var(--tag-border);*/
/*}*/
/*.tag-yellow:after {*/
/*    border-color: transparent transparent transparent var(--tag-bg);*/
/*}*/

/*.tag-red:before {*/
/*    border-color: transparent transparent transparent var(--tag-border);*/
/*}*/
/*.tag-red:after {*/
/*    border-color: transparent transparent transparent var(--tag-bg);*/
/*}*/

.star-rating {
    color: #ffd700;
    font-size: 20px;
}
.desc-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}
.masonry-container {
    margin: 0 auto;
    padding: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.03);
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    scroll-margin-top: 100px;
}
.masonry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: rgba(74, 222, 128, 0.2);
}
.masonry-item p.section-title {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: -0.3px;
}

.masonry-item p.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: #4ade80;
}

.masonry-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
    text-align: justify;
    letter-spacing: 0.2px;
}
.masonry-item p:last-child {
    margin-bottom: 0;
}
.masonry-item ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}
.masonry-item li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.6;
}
.masonry-item li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #4CAF50;
    font-weight: bold;
}
.masonry-item li:last-child {
    margin-bottom: 0;
}
.stats-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.stats-number {
    font-size: 24px;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.tag-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.nav-links {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px 24px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow-x: auto;
}

.nav-link {
    position: relative;
    color: #64748b;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #4ade80;
    background-color: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.2);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: #4ade80;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    transform: scaleX(0.8);
}

.nav-link.active {
    color: #4ade80;
    background-color: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.2);
}

.nav-link.active::after {
    transform: scaleX(0.8);
}

@media (max-width: 768px) {
    .masonry-container {
        padding: 15px;
    }

    .masonry-item {
        padding: 20px;
        margin-bottom: 20px;
    }

    .masonry-item p.section-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .masonry-item p {
        font-size: 14px;
        line-height: 1.6;
    }

    .tag-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tag {
        padding: 6px 10px;
        font-size: 13px;
    }

    .nav-links {
        padding: 12px;
        gap: 6px;
        margin-bottom: 20px;
        top: 10px;
        border-radius: 8px;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .nav-link::after {
        bottom: 2px;
    }
}
@media (max-width: 480px) {
    .tag-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 添加悬停效果 */
.input-section:hover, .output-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.arrow-container:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.logo-preview:hover, .generated-logo:hover {
    border-color: #4ade80 !important;
    background: white !important;
}

/* 添加平滑过渡 */
.input-section, .output-section, .arrow-container, .logo-preview, .generated-logo {
    transition: all 0.3s ease !important;
}

/* 卡片悬停效果 */
.input-section, .output-section {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.input-section:hover, .output-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    border-color: #4ade80;
}

/* 箭头悬停效果 */
.arrow-container {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.arrow-container:hover {
    transform: scale(1.2) translateX(5px);
    color: #16a34a !important;
    filter: drop-shadow(0 4px 6px rgba(74, 222, 128, 0.2));
}

/* 文件预览区域悬停效果 */
.logo-preview, .generated-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-preview:hover, .generated-logo:hover {
    border-color: #4ade80 !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
    transform: translateY(-2px);
}

/* 可点击文本悬停效果 */
.logo-preview span, .generated-logo span {
    transition: all 0.3s ease;
}

.logo-preview:hover span[style*="color: #3b82f6"],
.generated-logo:hover span[style*="color: #3b82f6"] {
    color: #4ade80 !important;
    text-decoration: none !important;
}

/* 内容区块悬停效果 */
.content-display {
    transition: all 0.3s ease;
}

.content-display:hover {
    background: rgba(74, 222, 128, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.1);
}

/* 图片悬停效果 */
.generated-logo img {
    transition: all 0.3s ease;
}

.generated-logo:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

/* 图标悬停效果 */
h4 span.me-2 {
    transition: all 0.3s ease;
    display: inline-block;
}

h4:hover span.me-2 {
    transform: scale(1.2);
    filter: brightness(1.1);
}

/* 分开的悬停效果 */
.logo-preview:hover, .generated-logo:hover, .file-name:hover {
    border-color: #4ade80 !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
    transform: translateY(-2px);
}

.logo-preview img, .generated-logo img {
    transition: all 0.3s ease;
}

.logo-preview:hover img, .generated-logo:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-preview {
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.logo-preview:hover .image-preview,
.generated-logo:hover .image-preview {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.top-image-preview {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-image-preview:hover {
    border-color: #4ade80;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.15);
}

.top-image-preview img {
    transition: all 0.3s ease;
}

.top-image-preview:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.small-btn {
    font-size: 12px;
    padding: 4px 8px;
    margin-left: 0;
}

@media (max-width: 768px) {
    .small-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
}
