/**
 * 物联网卡应用场景页面 - 专业大气样式
 * 支持主题色与场景一致，Hero 大图展示
 */

/* ========== 主题色变量（按场景分类） ========== */
/* 交通运输/车联网 */
body[data-sim-theme="transport"] {
    --sim-primary: #0ea5e9;
    --sim-primary-dark: #0284c7;
    --sim-accent: #38bdf8;
    --sim-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* 共享经济/消费终端 */
body[data-sim-theme="sharing"] {
    --sim-primary: #8b5cf6;
    --sim-primary-dark: #7c3aed;
    --sim-accent: #a78bfa;
    --sim-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* 抄表/公用事业 */
body[data-sim-theme="utility"] {
    --sim-primary: #06b6d4;
    --sim-primary-dark: #0891b2;
    --sim-accent: #22d3ee;
    --sim-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* 智慧城市/安防 */
body[data-sim-theme="city"] {
    --sim-primary: #f59e0b;
    --sim-primary-dark: #d97706;
    --sim-accent: #fbbf24;
    --sim-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 工业/制造业 */
body[data-sim-theme="industry"] {
    --sim-primary: #475569;
    --sim-primary-dark: #334155;
    --sim-accent: #64748b;
    --sim-gradient: linear-gradient(135deg, #475569 0%, #334155 100%);
}

/* 农业/环保/气象 */
body[data-sim-theme="agriculture"] {
    --sim-primary: #22c55e;
    --sim-primary-dark: #16a34a;
    --sim-accent: #4ade80;
    --sim-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* 物流/供应链 */
body[data-sim-theme="logistics"] {
    --sim-primary: #eab308;
    --sim-primary-dark: #ca8a04;
    --sim-accent: #facc15;
    --sim-gradient: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

/* 医疗健康 */
body[data-sim-theme="healthcare"] {
    --sim-primary: #ef4444;
    --sim-primary-dark: #dc2626;
    --sim-accent: #f87171;
    --sim-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 零售/服务业 */
body[data-sim-theme="retail"] {
    --sim-primary: #ec4899;
    --sim-primary-dark: #db2777;
    --sim-accent: #f472b6;
    --sim-gradient: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* 教育/文体 */
body[data-sim-theme="education"] {
    --sim-primary: #6366f1;
    --sim-primary-dark: #4f46e5;
    --sim-accent: #818cf8;
    --sim-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* 智能家电/生活 */
body[data-sim-theme="appliance"] {
    --sim-primary: #14b8a6;
    --sim-primary-dark: #0d9488;
    --sim-accent: #2dd4bf;
    --sim-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

/* 默认主题 */
body:not([data-sim-theme]) {
    --sim-primary: #3b82f6;
    --sim-primary-dark: #2563eb;
    --sim-accent: #60a5fa;
    --sim-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* ========== Hero 大图区域 ========== */
.sim-page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
    padding-top: 100px; /* 为固定 header 留出空间 */
}

.sim-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sim-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 100%);
}

.sim-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 20px 50px;
}

.sim-hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sim-page-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: 0.02em;
}

.sim-page-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    max-width: 640px;
    line-height: 1.6;
}

.sim-breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.sim-breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.sim-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========== 文章内容区 - 专业大气 ========== */
.sim-knowledge-article {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.sim-article-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 3.5rem 4rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.sim-article-content h2 {
    color: var(--sim-primary-dark, #1e293b);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--sim-primary, #3b82f6);
}

.sim-article-content h2:first-child {
    margin-top: 0;
}

.sim-article-content p {
    color: #475569;
    margin-bottom: 1.25rem;
    line-height: 1.85;
    font-size: 1rem;
}

.sim-article-content strong {
    color: var(--sim-primary-dark, #334155);
}

.sim-article-divider {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* ========== 相关链接 - 主题色 ========== */
.sim-related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.sim-related-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: all 0.25s ease;
    border-left: 4px solid var(--sim-primary, #3b82f6);
}

.sim-related-links a:hover {
    background: #f1f5f9;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sim-related-links a i {
    color: var(--sim-primary, #3b82f6);
    font-size: 1.1rem;
}

/* ========== CTA 区块 - 主题色 ========== */
.sim-scenario-page .cta {
    background: var(--sim-gradient, var(--gradient-primary));
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .sim-page-hero {
        min-height: 320px;
    }
    
    .sim-page-title {
        font-size: 2rem;
    }
    
    .sim-page-subtitle {
        font-size: 1rem;
    }
    
    .sim-hero-content {
        padding: 40px 16px 35px;
    }
    
    .sim-article-content {
        padding: 2rem 1.5rem;
        margin: 0 16px;
    }
    
    .sim-article-content h2 {
        font-size: 1.3rem;
    }
}
