.tool-cards-section {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 48px 32px;
    margin: 32px 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.tool-cards-section h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.35);
    margin-bottom: 8px;
}

.tool-cards-section .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    margin-bottom: 36px;
}

.tool-cards-section .row {
    gap: 16px;
}

.tool-card-base {
    border-radius: 10px;
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none !important;
    color: inherit;
}
.tool-card-base a.card-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.tool-card-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.tool-card-base:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

.tool-card-large {
    padding: 24px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card-small {
    padding: 8px 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-icon-large {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tool-icon-small {
    width: 24px;
    height: 24px;
    margin: 0 auto 4px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.tool-card-base:hover .tool-icon-large,
.tool-card-base:hover .tool-icon-small {
    transform: rotate(12deg) scale(1.15);
    background: rgba(255,255,255,0.35);
}

.tool-icon-large img,
.tool-icon-small img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.tool-icon-small img {
    width: 18px;
    height: 18px;
}

.tool-icon-large .fa,
.tool-icon-small .fa {
    color: #fff;
    font-size: 24px;
}

.tool-icon-small .fa {
    font-size: 12px;
}

.tool-title-large {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.tool-title-small {
    font-size: 0.78rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 0.1px;
    text-align: center;
}

.tool-description-large {
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    line-height: 1.6;
    height: 1.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.tool-card-base:hover .tool-description-large {
    height: 3.2rem;
    -webkit-line-clamp: 2;
}

/* .tool-description-small 已移除，卡片不显示描述文字 */

.tool-badge-large {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tool-badge-small {
    display: none;
}

.badge-free {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #fff;
}

.badge-limited {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
}

.badge-paid {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
}

.tool-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    text-decoration: none;
}

.tool-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: #fff;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-decoration: none;
}

.tool-btn-large:hover,
.tool-btn-small:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    color: #fff;
}

.tool-btn-large .fa,
.tool-btn-small .fa {
    margin-right: 6px;
}

.tool-card-content {
    flex: 1;
}

.tool-card-footer {
    margin-top: auto;
}

.tool-color-generator {
    background: linear-gradient(135deg, #FEC4B7 0%, #e85a44 100%);
}

.tool-color-analyzer {
    background: linear-gradient(135deg, #93C5FD 0%, #60A5FA 100%);
}

.tool-color-harmony {
    background: linear-gradient(135deg, #C4B5FD 0%, #A78BFA 100%);
}

.tool-line-art {
    background: linear-gradient(135deg, #F9A8D4 0%, #F472B6 100%);
}

.tool-chinese-color {
    background: linear-gradient(135deg, #FDBA74 0%, #FB923C 100%);
}

.tool-japanese-color {
    background: linear-gradient(135deg, #dad355 0%, #e3cd25 100%);
}

.tool-color-enhance {
    background: linear-gradient(135deg, #6EE7B7 0%, #34D399 100%);
}

.tool-pantone {
    background: linear-gradient(135deg, #C7D9E0 0%, #9FB9C5 100%);
}

.tool-color-gradient {
    background: linear-gradient(135deg, #A5B4FC 0%, #818CF8 100%);
}

.tool-color-contrast {
    background: linear-gradient(135deg, #FCA5A5 0%, #F87171 100%);
}

@media (max-width: 991px) {
    .tool-cards-section {
        padding: 40px 24px;
    }
    
    .tool-cards-section h2 {
        font-size: 1.8rem;
    }
    
    .tool-cards-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }
}

@media (max-width: 768px) {
    .tool-cards-page {
        padding: 24px 12px;
    }

    .tool-cards-demo-section {
        margin-bottom: 40px;
    }
    
    .tool-cards-demo-section .demo-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    .tool-cards-section {
        padding: 28px 16px;
        margin: 20px 0;
        border-radius: 16px;
    }
    
    .tool-cards-section h2 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .tool-cards-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .tool-card-large {
        padding: 24px 18px;
    }
    
    .tool-card-small {
        padding: 16px 12px;
    }
    
    .tool-icon-large {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .tool-icon-small {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }
    
    .tool-icon-large .fa {
        font-size: 26px;
    }
    
    .tool-icon-small .fa {
        font-size: 14px;
    }
    
    .tool-title-large {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    
    .tool-title-small {
        font-size: 0.84rem;
        margin-bottom: 2px;
        text-align: center;
    }
    
    .tool-description-large {
        font-size: 0.85rem;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
        height: 2.72rem;
    }
    
    .tool-badge-large {
        padding: 3px 12px;
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    
    .tool-badge-small {
        display: none;
    }
    
    .tool-btn-large {
        padding: 8px 18px;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .tool-btn-small {
        padding: 3px 8px;
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }
    
    .tool-btn-large .fa,
    .tool-btn-small .fa {
        margin-right: 4px;
    }
}

@media (max-width: 576px) {
    .tool-cards-page {
        padding: 16px 8px;
    }

    .tool-cards-demo-section {
        margin-bottom: 32px;
    }
    
    .tool-cards-demo-section .demo-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .tool-cards-section {
        padding: 20px 12px;
        margin: 16px 0;
        border-radius: 12px;
    }
    
    .tool-cards-section h2 {
        font-size: 1.3rem;
    }
    
    .tool-cards-section .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .tool-card-large {
        padding: 16px 12px;
        border-radius: 16px;
    }
    
    .tool-card-small {
        padding: 12px 8px;
        border-radius: 12px;
    }
    
    .tool-icon-large {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }
    
    .tool-icon-small {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
    }
    
    .tool-icon-large .fa {
        font-size: 18px;
    }
    
    .tool-icon-small .fa {
        font-size: 14px;
    }
    
    .tool-title-large {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .tool-title-small {
        font-size: 0.78rem;
        text-align: center;
    }
    
    .tool-description-large {
        font-size: 0.75rem;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
        height: 2.4rem;
    }
    
    .tool-badge-large {
        padding: 2px 8px;
        font-size: 0.62rem;
        margin-bottom: 8px;
    }
    
    .tool-badge-small {
        display: none;
    }
    
    .tool-btn-large {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
    
    .tool-btn-small {
        padding: 3px 8px;
        font-size: 0.58rem;
    }
}

@media (max-width: 400px) {
    .tool-cards-section {
        padding: 16px 10px;
    }
    
    .tool-cards-section h2 {
        font-size: 1.15rem;
    }
    
    .tool-card-large {
        padding: 16px 12px;
    }
    
    .tool-card-small {
        padding: 12px 8px;
    }
    
    .tool-title-large {
        font-size: 0.95rem;
    }
    
    .tool-title-small {
        font-size: 0.78rem;
        text-align: center;
    }
    
    .tool-description-large {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        height: 2.4rem;
    }
}

/* 自定义列布局 - 每行5个 */
.col-custom-5 {
    /* 保持兼容，但主要用 grid 布局 */
}

/* 工具卡片区域使用 Grid 布局 */
.tool-cards-section .row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* 小版本网格布局 - 自动填充 */
.tool-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

@media (max-width: 1400px) {
    .tool-cards-section .row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .tool-cards-section .row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .tool-cards-section .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tool-cards-section .row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .col-custom-5 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
