/* ============================================
   CenterPHP 首页样式
   主色：#23a894
   深色：#1a8677
   ============================================ */

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #23a894 0%, #1a8677 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 60px 16px 24px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn-large {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #23a894;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn-large:hover {
    background: #1a8677;
}

/* 分类区域 */
.categories {
    padding: 60px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 24px;
}
.category-card {
    background: white;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(35, 168, 148, 0.2);
    background: linear-gradient(135deg, #23a894 0%, #1a8677 100%);
    border-color: transparent;
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #e8f7f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #23a894;
    font-size: 28px;
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-name {
    font-size: 16px;
    font-weight: 500;
    color: #1e2b3c;
    transition: color 0.3s;
}

.category-card:hover .category-name {
    color: white;
}

/* 热门工具区域 */
.tools-section {
    padding: 60px 0 80px;
    background: #f8fafc;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e2b3c;
    text-align: center;
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tool-card {
    background: white;
    border-radius: 6px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(35, 168, 148, 0.15);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tool-icon {
    width: 40px;
    height: 40px;
    background: #e8f7f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #23a894;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.tool-card:hover .tool-icon {
    background: #23a894;
    color: white;
}

.tool-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e2b3c;
    flex: 1;
    transition: color 0.3s;
}

.tool-card:hover .tool-name {
    color: #23a894;
}

.tool-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    /* 限制最多显示2行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 平台优势区域 */
.advantages {
    padding: 80px 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.advantage-card {
    text-align: center;
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #e8f7f5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #23a894;
    font-size: 28px;
}

.advantage-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e2b3c;
    margin-bottom: 10px;
}

.advantage-description {
    font-size: 14px;
    color: #5e6f7d;
    line-height: 1.6;
}

/* ============================================
   首页响应式
   ============================================ */

/* 响应式 - 平板设备 */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式 - 移动设备 */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .categories {
        padding: 40px 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-card {
        padding: 20px 16px;
    }
    
    .category-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .tools-section {
        padding: 40px 0 60px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* 响应式 - 小屏设备 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .search-input {
        padding: 14px 50px 14px 20px;
    }
    
    .search-btn-large {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
