/* 基于现有的styles.css，为图吧工具箱添加特定样式 */
@import url('styles.css');

/* Hero区域的统计数据样式 */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* 内置工具展示区域样式 */
.tools-showcase {
    background-color: var(--white);
    padding: 3.5rem 0;
}

.tools-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.tools-category {
    background-color: var(--background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.category-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
}

.category-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.category-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary);
}

.tools-list {
    display: grid;
    gap: 0.75rem;
}

.tool-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.tool-item:hover {
    border-color: var(--primary);
}

.tool-info {
    flex: 1;
}

.tool-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
}

.tool-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tools-categories {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat .stat-number {
        font-size: 1.25rem;
    }
    
    .tools-category {
        padding: 1rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .category-icon {
        margin-right: 0;
    }
}

/* 针对FAQ区域的特殊布局调整 */
.faq-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* 确保按钮在小屏幕上的显示 */
@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 用户评论区样式 */
.comments {
    background-color: var(--background);
    padding: 3.5rem 0;
}

.comments-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.comment-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.1);
    border-color: var(--primary-light);
}

.comment-card:hover::before {
    opacity: 1;
}

.comment-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.user-avatar {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.user-avatar i {
    font-size: 2.5rem;
    color: var(--primary);
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    font-size: 0.875rem;
    color: #fbbf24;
}

.rating .far {
    color: var(--border);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-content {
    margin-top: 1rem;
}

.comment-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

/* 评论统计区域 */
.comments-stats {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 1rem;
    padding: 2rem;
    color: var(--white);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.stats-container .rating {
    justify-content: center;
    margin-top: 0.5rem;
}

.stats-container .rating i {
    color: #fbbf24;
    font-size: 1rem;
}

/* 响应式设计 - 评论区 */
@media (max-width: 992px) {
    .comments-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .comments-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comment-card {
        padding: 1.25rem;
    }
    
    .comment-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .user-avatar {
        margin-right: 0;
        align-self: center;
    }
    
    .comment-meta {
        justify-content: center;
    }
    
    .comments-stats {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .comment-card {
        padding: 1rem;
    }
    
    .user-avatar i {
        font-size: 2rem;
    }
    
    .user-info h4 {
        font-size: 0.9rem;
    }
    
    .comment-content p {
        font-size: 0.85rem;
    }
    
    .stats-container {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
}

/* 工具详情卡片样式 */
.tool-detail-card {
    background-color: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.tool-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.1);
    border-color: var(--primary-light);
}

.tool-detail-card:hover::before {
    opacity: 1;
}

.tool-detail-content {
    display: grid;
    gap: 1.5rem;
}

.tool-info-section h4,
.tool-features h4,
.tool-usage h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-info-section h4 i,
.tool-features h4 i,
.tool-usage h4 i {
    color: var(--primary);
    font-size: 0.9rem;
}

.tool-info-section p,
.tool-usage p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.feature-list li i {
    color: #10b981;
    font-size: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* 教程步骤区域美化样式 */
.guides-container {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

.guide-step {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guide-step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.guide-step-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: var(--secondary);
    font-weight: 600;
}

.tutorial-detail {
    margin-top: 1rem;
}

.tutorial-detail > p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
}

.tutorial-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.75rem;
}

.tutorial-steps li {
    background: var(--background);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
    font-size: 0.95rem;
    color: var(--text);
}

.tutorial-tip, .tutorial-warning {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tutorial-tip {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    color: #0c4a6e;
}

.tutorial-tip i {
    color: #0ea5e9;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.tutorial-warning {
    background: #fefce8;
    border: 1px solid #eab308;
    color: #713f12;
}

.tutorial-warning i {
    color: #eab308;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.tutorial-tip strong, .tutorial-warning strong {
    font-weight: 600;
}

/* 响应式设计 - 教程区域 */
@media (max-width: 768px) {
    .guide-step {
        padding: 1.5rem;
    }
    
    .guide-step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .guide-step-content h3 {
        font-size: 1.2rem;
    }
    
    .tutorial-steps li {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .tutorial-tip, .tutorial-warning {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
}

/* 官网地址页面样式 */
.website-info-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.website-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
}

.website-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.website-icon i {
    font-size: 2rem;
    color: var(--white);
}

.website-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.website-url {
    background: var(--background);
    border: 2px solid var(--primary);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.url-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.website-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .website-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .website-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .website-icon i {
        font-size: 1.5rem;
    }
    
    .website-card h3 {
        font-size: 1.3rem;
    }
    
    .url-text {
        font-size: 1rem;
    }
    
    .website-url {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
} 