/* 全局样式 */
/* body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.7;
    color: #334155;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 100% 150%, #f8fafc 24%, white 25%, white 28%, #f8fafc 29%, #f8fafc 36%, white 36%, white 40%, transparent 40%, transparent),
        radial-gradient(circle at 0 150%, #f8fafc 24%, white 25%, white 28%, #f8fafc 29%, #f8fafc 36%, white 36%, white 40%, transparent 40%, transparent),
        radial-gradient(circle at 50% 100%, white 10%, #f8fafc 11%, #f8fafc 23%, white 24%, white 30%, #f8fafc 31%, #f8fafc 43%, white 44%, white 50%, #f8fafc 51%, #f8fafc 63%, white 64%, white 71%, transparent 71%, transparent),
        radial-gradient(circle at 100% 50%, white 5%, #f8fafc 6%, #f8fafc 15%, white 16%, white 20%, #f8fafc 21%, #f8fafc 30%, white 31%, white 35%, #f8fafc 36%, #f8fafc 45%, white 46%, white 49%, transparent 50%, transparent),
        radial-gradient(circle at 0 50%, white 5%, #f8fafc 6%, #f8fafc 15%, white 16%, white 20%, #f8fafc 21%, #f8fafc 30%, white 31%, white 35%, #f8fafc 36%, #f8fafc 45%, white 46%, white 49%, transparent 50%, transparent);
    background-size: 100px 50px;
} */

/* 成分报告容器 */
.ingredient-report {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61, 178, 233, 0.1);
    border: 1px solid rgba(61, 178, 233, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 10px;
}

.ingredient-report:hover {
    box-shadow: 0 12px 40px rgba(61, 178, 233, 0.15);
    transform: translateY(-2px);
}



/* 头部样式 */
.report-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgb(61, 178, 233) 0%, rgba(61, 178, 233, 0.8) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.report-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

.ingredient-report h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* 章节样式 */
.report-section {
    padding: 2rem;
    border-bottom: 1px solid rgba(61, 178, 233, 0.1);
    transition: background-color 0.3s ease;
}

.report-section:hover {
    background-color: rgba(61, 178, 233, 0.02);
}

.report-section:last-child {
    border-bottom: none;
}

.ingredient-report h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.ingredient-report h3::before {
    content: '';
    width: 8px;
    height: 28px;
    background: linear-gradient(#165DFF, #3b82f6);
    border-radius: 4px;
    margin-right: 12px;
}

.ingredient-report h4 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* 内容样式 */
.ingredient-report p {
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #4a5568;
    font-size: 1rem;
    padding-left: 0;
}

.ingredient-report ul {
    padding-left: 0;
    margin-bottom: 1.5rem;
    list-style: none;
}

.ingredient-report ul li {
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
}

.ingredient-report ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: rgb(61, 178, 233);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* 表格样式 */
.ingredient-report table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(61, 178, 233, 0.1);
    transition: transform 0.2s ease;
}

.ingredient-report table:hover {
    transform: translateY(-1px);
}

.ingredient-report th,
.ingredient-report td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(61, 178, 233, 0.1);
    transition: all 0.2s ease;
}

.ingredient-report th {
    background: linear-gradient(135deg, rgba(61, 178, 233, 0.1) 0%, rgba(61, 178, 233, 0.05) 100%);
    color: rgb(61, 178, 233);
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.025em;
    font-size: 0.95rem;
}

.ingredient-report td {
    color: #4a5568;
    font-size: 0.95rem;
}

.ingredient-report tr:last-child td {
    border-bottom: none;
}

.ingredient-report tr:hover {
    background-color: rgba(61, 178, 233, 0.03);
}

/* 强调文本 */
.ingredient-report strong {
    color: #0f172a;
    font-weight: 600;
}

.ingredient-report em {
    font-style: italic;
    color: #64748b;
}

.ingredient-report sup,
.ingredient-report sub {
    font-size: 0.75em;
}

/* 颜色标记 */
.ingredient-report span[style*="color: #666666"] {
    color: #64748b !important;
    font-style: italic;
}

.ingredient-report span[style*="color: #cc0000"] {
    color: #ef4444 !important;
    font-weight: 500;
}

/* 特殊样式 */
.safety-rating {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    color: white;
    background-color: #10b981;
    margin-right: 0.5rem;
}

.caution {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    color: white;
    background-color: #f59e0b;
    margin-right: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ingredient-report {
        margin: 1rem;
        border-radius: 12px;
    }
    
    .report-header {
        padding: 2rem 1.5rem;
    }
    
    .ingredient-report h2 {
        font-size: 1.75rem;
    }
    
    .report-section {
        padding: 1.5rem;
    }
    
    .ingredient-report h3 {
        font-size: 1.2rem;
    }
    
    .ingredient-report table {
        font-size: 0.9rem;
    }
    
    .ingredient-report th,
    .ingredient-report td {
        padding: 0.75rem 1rem;
    }

    /* 移动端表格适配 */
    .ingredient-report table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .ingredient-report thead,
    .ingredient-report tbody,
    .ingredient-report th,
    .ingredient-report td,
    .ingredient-report tr {
        display: block;
    }

    .ingredient-report thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .ingredient-report tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        overflow: hidden;
    }

    .ingredient-report td {
        border: none;
        border-bottom: 1px solid #e2e8f0;
        position: relative;
        padding-left: 50%;
    }

    .ingredient-report td:before {
        position: absolute;
        left: 1rem;
        width: 45%;
        padding-right: 1rem;
        white-space: nowrap;
        font-weight: 600;
        content: attr(data-label);
    }
}

@media (max-width: 480px) {
    .ingredient-report {
        margin: -0.8rem;
    }
    
    .report-header {
        padding: 1.5rem 1rem;
    }
    
    .ingredient-report h2 {
        font-size: 1.5rem;
    }
    
    .report-section {
        padding: 1rem;
    }
    
    .ingredient-report h3 {
        font-size: 1.1rem;
    }
    
    .ingredient-report th,
    .ingredient-report td {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}