﻿html {
    font-feature-settings: "lnum";
}

body {
    font-variant-numeric: lining-nums;
    -moz-font-feature-settings: "lnum";
    -webkit-font-feature-settings: "lnum";
    font-feature-settings: "lnum";
}

#mobileMenu {
    transition: all 0.3s ease;
    transform-origin: top;
}

    #mobileMenu:not(.hidden) {
        animation: slideDown 0.3s ease;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 扫描动画 */
@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.animate-scan {
    animation: scan 2s linear infinite;
}

/* 容器布局 */
.flex-col {
    display: flex;
    flex-direction: column;
}

/* 对比区域 */
.comparison-container {
    position: relative;
    width: 100%;
    flex: 1; /* 占据剩余空间 */
    min-height: 500px; /* 最小高度保证 */
}

/* 交互区域 */
.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 按钮组 */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {

    .image-switch-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-after {
    clip-path: inset(0 0 0 50%);
}

.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

/* 自定义样式 */
.analysis-image-container {
    width: 100%;
    padding-bottom: 100%; /* 保持1:1宽高比 */
    position: relative;
}

.analysis-image-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.comparison-divider::before,
.comparison-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    cursor: pointer;
}

.comparison-divider::before {
    left: -30px;
    content: "\f060";
}

.comparison-divider::after {
    right: -30px;
    content: "\f061";
}

.dragging .comparison-divider::before,
.dragging .comparison-divider::after {
    opacity: 0;
}


.score-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.score-item {
    text-align: center;
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #e545ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

    .circle::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 4px solid transparent;
        border-top-color: #6add54; /* 蓝色进度条 */
        transform: rotate(calc(var(--percentage) * 3.6deg)); /* 根据百分比旋转 */
    }

    .circle span {
        font-size: 16px; /* 调整字体大小 */
        font-weight: bold;
        color: #333;
    }

.score-label {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr); /* 第一行两列 */
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr); /* 剩余行三列 */
}

.text-gray-600 {
    color: #666;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-bold {
    font-weight: bold;
}
