Files
张翔 929f3ed250 chore: 添加设计分析参考和辅助脚本
- IHG设计分析HTML参考页面
- 布局检查、DOM诊断、验收测试等辅助脚本
2026-06-07 16:22:11 +08:00

250 lines
7.2 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IHG设计模式分析 - Novalon产品架构</title>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Noto Sans SC', sans-serif;
background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
color: #e8e8e8;
min-height: 100vh;
padding: 40px 20px;
}
.container { max-width: 1400px; margin: 0 auto; }
header {
text-align: center;
margin-bottom: 60px;
}
h1 {
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, #fff 0%, #c41e3a 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 20px;
}
.subtitle { font-size: 1.1rem; color: #a0a0a0; }
.comparison-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
margin-bottom: 60px;
}
.panel {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 30px;
backdrop-filter: blur(10px);
}
.panel-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.panel-logo {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.2rem;
}
.ihg-logo { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); }
.novalon-logo { background: linear-gradient(135deg, #c41e3a 0%, #e11d48 100%); }
.panel-title { font-size: 1.5rem; font-weight: 600; }
.tabs {
display: flex;
gap: 8px;
margin-bottom: 24px;
background: rgba(255, 255, 255, 0.03);
padding: 6px;
border-radius: 10px;
}
.tab {
flex: 1;
padding: 12px 20px;
border: none;
background: transparent;
color: #a0a0a0;
border-radius: 8px;
cursor: pointer;
font-size: 0.95rem;
font-weight: 500;
transition: all 0.3s ease;
}
.tab:hover { color: #fff; }
.tab.active {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.brand-card {
display: grid;
grid-template-columns: 80px 1fr;
gap: 16px;
padding: 20px;
background: rgba(255, 255, 255, 0.04);
border-radius: 12px;
margin-bottom: 16px;
border: 1px solid transparent;
transition: all 0.3s ease;
cursor: pointer;
}
.brand-card:hover {
border-color: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.06);
}
.brand-icon {
width: 80px;
height: 80px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.5rem;
}
.brand-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.brand-info p { font-size: 0.9rem; color: #a0a0a0; line-height: 1.6; }
.principles {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 40px;
margin-bottom: 40px;
}
.principles h2 {
font-size: 1.8rem;
margin-bottom: 30px;
text-align: center;
}
.principle-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.principle {
text-align: center;
padding: 24px;
background: rgba(255, 255, 255, 0.04);
border-radius: 12px;
}
.principle-icon {
font-size: 2.5rem;
margin-bottom: 16px;
}
.principle h3 { font-size: 1.1rem; margin-bottom: 10px; }
.principle p { font-size: 0.9rem; color: #a0a0a0; line-height: 1.6; }
.architecture {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 40px;
}
.architecture h2 {
font-size: 1.8rem;
margin-bottom: 30px;
text-align: center;
}
.hierarchy {
display: flex;
flex-direction: column;
gap: 20px;
align-items: center;
padding: 40px;
}
.level {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
.level-title {
font-size: 0.85rem;
color: #c41e3a;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 600;
}
.level-cards {
display: flex;
gap: 16px;
flex-wrap: wrap;
justify-content: center;
}
.level-card {
padding: 16px 32px;
background: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, rgba(196, 30, 58, 0.1) 100%);
border: 1px solid rgba(196, 30, 58, 0.3);
border-radius: 10px;
font-weight: 500;
}
.connector {
width: 2px;
height: 30px;
background: linear-gradient(180deg, rgba(196, 30, 58, 0.5) 0%, rgba(196, 30, 58, 0.1) 100%);
}
.faq-section {
margin-top: 30px;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-item {
background: rgba(255, 255, 255, 0.04);
border-radius: 10px;
margin-bottom: 12px;
overflow: hidden;
}
.faq-question {
padding: 16px 20px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 500;
}
.faq-question:hover { background: rgba(255, 255, 255, 0.06); }
.faq-answer {
padding: 0