/* =========================================
   status.css - 现状分析页专用样式
   ========================================= */

/* 页面头部 - 金色/橙色调 */
.page-header {
    text-align: center;
    padding: 6rem 10% 2rem;
    background: radial-gradient(circle at 50% 10%, rgba(248, 172, 56, 0.08) 0%, rgba(15, 23, 42, 0) 35%); 
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.h1-icon { display: inline-block; margin-right: 0.5rem; }

/* 内容区块 */
.content-section {
    padding: 2rem 5% 6rem;   /* 左右留白减半 */
    max-width: 1600px;       /* 增加宽度 */
    margin: 0 auto;
}

/* 分析卡片 */
.analysis-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--code-border);
    border-left-width: 4px; /* 确保左侧边框覆盖 */
}

.analysis-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.analysis-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.analysis-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.analysis-card li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.analysis-card li strong { color: var(--text-main); }

.analysis-card li::before {
    content: '•';
    color: var(--accent-secondary);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
    line-height: 1;
}

/* 图表样式 (Chart Styles) */
.adoption-chart {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--code-border);
}

.bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 15px;
}

.bar:last-child { margin-bottom: 0; }

.bar-label {
    color: var(--accent-primary);
    width: 140px;
    flex-shrink: 0; 
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
}

.bar-visual-container {
    flex-grow: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 6px;
    width: 0; /* 初始宽度为0 */
    /* 增加动画属性，配合JS或CSS加载动画 */
    animation: growWidth 1.5s ease-out forwards;
    position: relative;
}

@keyframes growWidth {
    from { width: 0; }
    /* to 的值由 inline style 决定，这里不需要写 */
}

/* 增加光效 */
.bar-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.bar-percentage {
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    color: var(--text-main);
    width: 100px;
    flex-shrink: 0;
    text-align: left;
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .content-section { padding: 2rem 5% 6rem; }
    .analysis-card { padding: 1.5rem; }
    
    /* 图表适配 */
    .bar { flex-wrap: wrap; gap: 5px; }
    .bar-label { width: 100%; text-align: left; margin-bottom: 5px; }
    .bar-visual-container { width: 100%; margin-bottom: 5px; }
    .bar-percentage { width: 100%; text-align: right; }
}