/* 屏幕坏点检测工具样式 */

/* 头部区域 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 36px;
    box-sizing: border-box;
}

.back-btn:hover {
    background-color: #e8e8e8;
    color: #333;
    transform: translateY(-1px);
}

.header .header-actions {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 36px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
}

.favorite-button:hover {
    background-color: #e8e8e8;
    color: #333;
    transform: translateY(-1px);
}

.favorite-button.favorited {
    background-color: #fff8e1;
    color: #f9a825;
}

.favorite-button.favorited:hover {
    background-color: #ffecb3;
    color: #f57f17;
}

/* 工具内容区域 */
.tool-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 工具说明 */
.tool-description {
    margin-bottom: 30px;
}

.tool-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.tool-description p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.6;
}

.tool-description ul {
    list-style: none;
    padding: 0;
}

.tool-description li {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tool-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* 颜色预览 */
.color-preview {
    margin-bottom: 30px;
}

.color-preview h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-item {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 开始按钮区域 */
.start-section {
    text-align: center;
    padding: 20px 0;
}

.btn-start {
    padding: 16px 40px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-start:active {
    transform: translateY(0);
}

.btn-start i {
    font-size: 16px;
}

/* 全屏检测层 */
.fullscreen-layer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    cursor: pointer;
}

.fullscreen-layer.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.color-display {
    width: 100%;
    height: 100%;
    background-color: #000000;
}

.color-info {
    display: none;
}

.color-name {
    display: none;
}

.color-hint {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-content {
        padding: 20px;
    }
    
    .color-item {
        width: 40px;
        height: 40px;
    }
    
    .btn-start {
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tool-content {
        padding: 15px;
    }
    
    .color-item {
        width: 35px;
        height: 35px;
    }
    
    .btn-start {
        padding: 12px 28px;
        font-size: 15px;
    }
}