/* Tailwind CSS 公共样式文件 */
/* 包含所有页面共用的自定义样式 */

@layer utilities {
    /* 基础工具类 */
    .content-auto {
        content-visibility: auto;
    }

    /* 卡片悬停效果 */
    .card-hover {
        transition: all 0.3s ease;
    }

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    }

    /* 文字阴影效果 */
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* 进度条样式 - 用于检测页面和check页面 */
    .progress-bar {
        height: 8px;
        background-color: #e2e8f0;
        border-radius: 4px;
        overflow: hidden;
    }

    .progress-value {
        height: 100%;
        background-color: #3B82F6;
        border-radius: 4px;
        transition: width 1s ease-in-out;
    }

    /* 表格悬停效果 - 用于历史页面 */
    .table-hover {
        transition: background-color 0.2s ease;
    }

    .table-hover:hover {
        background-color: rgba(59, 130, 246, 0.05);
    }

    /* 报告按钮效果 - 用于历史页面 */
    .report-btn {
        transition: all 0.2s ease;
    }

    .report-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    /* 价格高亮效果 - 用于价格页面 */
    .price-highlight {
        position: relative;
        overflow: hidden;
    }

    .price-highlight::before {
        content: "推荐";
        position: absolute;
        top: 0;
        right: 0;
        background-color: #10B981;
        color: white;
        padding: 2px 12px;
        font-size: 12px;
        font-weight: bold;
        transform: rotate(45deg);
        transform-origin: center;
        right: -10px;
        top: 10px;
    }

    /* 代码标签样式 - 用于权益页面 */
    .code-tag {
        background-color: rgba(59, 130, 246, 0.1);
        color: #3B82F6;
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 0.875rem;
        margin-right: 8px;
        display: inline-block;
        margin-bottom: 8px;
    }

    /* 登录页面专用渐变背景 */
    .bg-gradient-custom {
        background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    }

    /* 表单切换效果 - 用于登录页面 */
    .form-section {
        display: none;
    }

    .form-section.active {
        display: block;
    }

    /* 历史报告表格优化样式 */
    .history-table {
        table-layout: fixed;
        width: 100%;
    }

    .history-table th,
    .history-table td {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 报告列按钮优化 */
    .report-column-btn {
        min-height: 28px;
        font-size: 11px;
        line-height: 1.2;
    }

    .report-column-text {
        font-size: 11px;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
}