* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #02569B;
    --secondary-color: #0175C2;
    --accent-color: #13B9FD;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --gray: #6c757d;
    --success: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tab 导航样式 */
.tab-navigation {
    background: var(--white);
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(1, 87, 194, 0.3);
}

.tab-icon {
    font-size: 1rem;
}

.tab-text {
    font-size: 0.8rem;
}

/* Tab 内容容器 */
.tab-content-container {
    min-height: calc(100vh - 140px);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover,
.nav a.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--light-bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Getting Started */
.getting-started-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Tutorial Tabs */
.tutorial-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: var(--light-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tutorial-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.tutorial-item:hover {
    transform: translateY(-3px);
}

.tutorial-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tutorial-item p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.tutorial-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.tutorial-link:hover {
    text-decoration: underline;
}

/* Examples Section */
.example-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.example-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.example-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 代码块样式 */
.code-block {
    background: #282c34;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid #3b4048;
}

/* pre 元素的代码块样式 */
pre.code-block {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #282c34;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    position: relative;
    border: 1px solid #3b4048;
}

.code-block pre {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
    padding: 0;
}

.code-block code {
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

pre.code-block code {
    display: block;
}

/* Prism.js 语法高亮主题调整 */
pre[class*="language-"] {
    margin: 0;
    padding: 1.5rem;
    background: #282c34;
    border-radius: var(--border-radius);
    overflow-x: auto;
    border: 1px solid #3b4048;
}

code[class*="language-"] {
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 移除 Prism.js 默认的背景色 */
pre[class*="language-"], code[class*="language-"] {
    text-shadow: none;
}

/* 语法高亮颜色 */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #5c6370;
    font-style: italic;
}

.token.punctuation {
    color: #abb2bf;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #e06c75;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #98c379;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #56b6c2;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #c678dd;
}

.token.function,
.token.class-name {
    color: #61afef;
}

.token.regex,
.token.important,
.token.variable {
    color: #e5c07b;
}

/* 代码块折叠按钮 */
.code-block-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.code-block-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.code-block-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 代码块折叠状态 */
.code-block.collapsed pre,
.code-block.collapsed code,
pre.code-block.collapsed {
    max-height: 60px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* 复制按钮位置调整 */
.code-block .copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 5rem; /* 为折叠按钮留出空间 */
    z-index: 9;
}

/* 当只有复制按钮或只有折叠按钮时，调整位置 */
.code-block .copy-btn:not(:has(+ .code-block-toggle)) {
    right: 0.5rem;
}

.code-block-toggle:not(:has(+ .copy-btn)) {
    right: 0.5rem;
}

.copy-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: var(--secondary-color);
}

.copy-btn:active {
    transform: scale(0.98);
}

/* Resources Section */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.resource-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.resource-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-number {
        margin-bottom: 1rem;
    }

    .example-grid {
        grid-template-columns: 1fr;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent-color);
    color: var(--white);
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.tutorial-item,
.example-card,
.resource-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Code Syntax Highlighting (Simple) */
.keyword {
    color: #ff79c6;
}

.string {
    color: #f1fa8c;
}

.function {
    color: #8be9fd;
}

.comment {
    color: #6272a4;
    font-style: italic;
}

.number {
    color: #bd93f9;
}

/* 图表和表格样式 */
.flowchart-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    overflow-x: auto;
}

.flowchart-container h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.sequence-diagram {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    overflow-x: auto;
}

.sequence-diagram h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.interaction-diagram {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    overflow-x: auto;
}

.interaction-diagram h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.data-table caption {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    font-weight: 600;
    caption-side: top;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
}

.data-table tr:hover {
    background: var(--light-bg);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 流程图节点样式 */
.flow-node {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: var(--white);
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.flow-node.start-end {
    background: var(--primary-color);
    color: var(--white);
}

.flow-node.decision {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.flow-arrow {
    display: inline-block;
    margin: 0 1rem;
    color: var(--gray);
    font-size: 1.5rem;
}

/* 时序图参与者样式 */
.sequence-participant {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: var(--white);
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 100px;
    text-align: center;
}

.sequence-message {
    margin: 1rem 0;
    padding: 0.5rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    background: var(--light-bg);
}

/* 交互图样式 */
.interaction-box {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    background: var(--white);
}

.interaction-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.interaction-line {
    height: 2px;
    background: var(--gray);
    margin: 1rem 0;
    position: relative;
}

.interaction-line::before,
.interaction-line::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}

.interaction-line::before {
    left: 0;
}

.interaction-line::after {
    right: 0;
}

/* 教程标签样式 */
.tutorial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tutorial-tags .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.tutorial-tags .tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 教程列表项增强 */
.tutorial-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tutorial-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.tutorial-item p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Flutter 架构图样式 */
.architecture-diagram {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.arch-layer {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.arch-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.layer-framework {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.layer-framework::before {
    background: #4facfe;
}

.layer-engine {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.layer-engine::before {
    background: #fa709a;
}

.layer-embedder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: var(--white);
}

.layer-embedder::before {
    background: #00f2fe;
}

.arch-layer h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.arch-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.arch-sublayer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.arch-sublayer span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.arch-desc {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    text-align: center;
    font-style: italic;
}

.arch-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0.5rem 0;
    font-weight: bold;
}

.architecture-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.info-card h4 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* 组件系统样式 */
.component-system {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.component-system h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.component-diagram {
    width: 100%;
}

.component-layer {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.component-layer h4 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.component-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.component-category {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.component-category:hover::before {
    transform: scaleY(1);
}

.component-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.component-category h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.component-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.component-items span,
.component-items .component-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.component-items span:hover,
.component-items .component-link:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.component-items .component-link:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    text-decoration: none;
}

/* 组件关系样式 */
.component-relationships {
max-width: 1200px;
margin: 3rem auto;
padding: 2rem;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
}

.component-relationships h3 {
text-align: center;
color: var(--primary-color);
font-size: 1.8rem;
margin-bottom: 2rem;
}

.relationship-diagram {
width: 100%;
}

.relationship-container {
display: flex;
flex-direction: column;
gap: 2rem;
}

.relationship-node {
background: var(--white);
border-radius: var(--border-radius);
padding: 1.5rem;
text-align: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
border: 2px solid transparent;
text-decoration: none;
color: inherit;
display: block;
}

.relationship-node:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
text-decoration: none;
}

.node-root {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white;
}

.node-root .node-icon {
font-size: 3rem;
margin-bottom: 0.5rem;
}

.node-root h4 {
color: white;
margin-bottom: 0.5rem;
}

.node-root p {
color: rgba(255, 255, 255, 0.9);
margin: 0;
}

.node-icon {
font-size: 2.5rem;
margin-bottom: 0.75rem;
}

.relationship-node h4 {
color: var(--primary-color);
font-size: 1.1rem;
margin-bottom: 0.5rem;
}

.relationship-node p {
color: #666;
margin: 0;
font-size: 0.9rem;
}

.node-layout { border-color: #4CAF50; }
.node-basic { border-color: #2196F3; }
.node-input { border-color: #FF9800; }
.node-list { border-color: #9C27B0; }
.node-gesture { border-color: #F44336; }
.node-animation { border-color: #E91E63; }
.node-nav { border-color: #00BCD4; }
.node-dialog { border-color: #795548; }

.relationship-branch {
display: flex;
align-items: center;
gap: 1rem;
}

.branch-line {
width: 3px;
min-height: 200px;
background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
border-radius: 2px;
flex-shrink: 0;
}

.branch-nodes {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
flex: 1;
}

.relationship-connections {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.5);
border-radius: var(--border-radius);
}

.connection-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1rem;
background: var(--white);
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.conn-from {
font-weight: 600;
color: var(--primary-color);
}

.conn-arrow {
color: var(--accent-color);
font-size: 1.2rem;
}

.conn-to {
color: #666;
}

/* 第三方组件生态样式 */
.third-party-ecosystem {
max-width: 1200px;
margin: 3rem auto;
padding: 2rem;
background: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
}

.third-party-ecosystem h3 {
text-align: center;
color: var(--primary-color);
font-size: 1.8rem;
margin-bottom: 2rem;
}

.ecosystem-categories {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 1.5rem;
}

.ecosystem-category {
background: #f8f9fa;
border: 1px solid #e0e0e0;
border-radius: var(--border-radius);
overflow: hidden;
transition: all 0.3s ease;
}

.ecosystem-category:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
border-color: var(--accent-color);
}

.ecosystem-header {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white;
padding: 1rem 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
}

.eco-icon {
font-size: 2rem;
}

.ecosystem-header h4 {
margin: 0;
font-size: 1.2rem;
}

.ecosystem-packages {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.package-item {
background: var(--white);
padding: 0.75rem 1rem;
border-radius: 8px;
border-left: 3px solid var(--accent-color);
transition: all 0.2s ease;
}

.package-item:hover {
transform: translateX(4px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.package-name {
font-weight: 600;
color: var(--primary-color);
margin-bottom: 0.25rem;
}

.package-desc {
font-size: 0.85rem;
color: #666;
margin: 0;
}

/* Flutter 数据流程图样式 */
.architecture-dataflow {
max-width: 1200px;
margin: 3rem auto;
padding: 2rem;    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.architecture-dataflow h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.dataflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-content {
    text-align: center;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.step-content h4 {
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.flow-connector {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0 0.5rem;
}

/* 学习路径样式 */
.learning-path {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.learning-path h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.learning-path p {
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
}

.path-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.path-step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.path-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.path-text {
    flex: 1;
}

.path-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.path-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .architecture-diagram {
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .arch-layer h3 {
        font-size: 1.3rem;
    }
    
    .arch-sublayer span {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .arch-desc {
        font-size: 0.85rem;
    }
    
    .architecture-info {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        }
        
        .architecture-dataflow {
        padding: 1rem;
        margin: 2rem auto;
        }
        
        .component-system {
        padding: 1.5rem;
        margin: 2rem auto;
        }
        
        .component-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
        }
        
        .component-category {
        padding: 1rem;
        }
        
        .component-items span {
        
        font-size: 0.75rem;
        
        padding: 0.3rem 0.6rem;
        
        }
        
        
        
        .component-relationships {
        
        padding: 1rem;
        
        margin: 2rem auto;
        
        }
        
        
        
        .relationship-container {
        
        gap: 1rem;
        
        }
        
        
        
        .relationship-branch {
        
        flex-direction: column;
        
        }
        
        
        
        .branch-line {
        
        width: 100%;
        
        min-height: 3px;
        
        }
        
        
        
        .branch-nodes {
        
        grid-template-columns: 1fr;
        
        }
        
        
        
        .relationship-connections {
        
        padding: 1rem;
        
        }
        
        
        
        .connection-item {
        
        flex-direction: column;
        
        text-align: center;
        
        gap: 0.5rem;
        
        }
        
        
        
        .ecosystem-categories {
        
        
        
        grid-template-columns: 1fr;
        
        
        
        }
        
        
        
        
        
        
        
        .app-packaging {
        
        
        
        max-width: 1200px;
        
        
        
        margin: 3rem auto;
        
        
        
        padding: 2rem;
        
        
        
        background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
        
        
        
        border-radius: var(--border-radius);
        
        
        
        box-shadow: var(--box-shadow);
        
        
        
        }
        
        
        
        
        
        
        
        .app-packaging h3 {
        
        
        
        text-align: center;
        
        
        
        color: var(--primary-color);
        
        
        
        font-size: 1.8rem;
        
        
        
        margin-bottom: 2rem;
        
        
        
        }
        
        
        
        
        
        
        
        .packaging-overview {
        
        
        
        background: rgba(255, 255, 255, 0.6);
        
        
        
        padding: 1rem 1.5rem;
        
        
        
        border-radius: 8px;
        
        
        
        margin-bottom: 2rem;
        
        
        
        border-left: 4px solid var(--accent-color);
        
        
        
        }
        
        
        
        
        
        
        
        .packaging-overview p {
        
        
        
        margin: 0;
        
        
        
        color: #666;
        
        
        
        line-height: 1.6;
        
        
        
        }
        
        
        
        
        
        
        
        .platforms-grid {
        
        
        
        display: grid;
        
        
        
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        
        
        
        gap: 1.5rem;
        
        
        
        margin-bottom: 2rem;
        
        
        
        }
        
        
        
        
        
        
        
        .platform-card {
        
        
        
        background: var(--white);
        
        
        
        border-radius: var(--border-radius);
        
        
        
        padding: 1.5rem;
        
        
        
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        
        
        
        transition: all 0.3s ease;
        
        
        
        border: 2px solid transparent;
        
        
        
        }
        
        
        
        
        
        
        
        .platform-card:hover {
        
        
        
        transform: translateY(-4px);
        
        
        
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        
        
        
        }
        
        
        
        
        
        
        
        .platform-android:hover { border-color: #3DDC84; }
        
        
        
        .platform-ios:hover { border-color: #000000; }
        
        
        
        .platform-web:hover { border-color: #2196F3; }
        
        
        
        .platform-desktop:hover { border-color: #607D8B; }
        
        
        
        
        
        
        
        .platform-icon {
        
        
        
        font-size: 3rem;
        
        
        
        margin-bottom: 1rem;
        
        
        
        }
        
        
        
        
        
        
        
        .platform-card h4 {
        
        
        
        color: var(--primary-color);
        
        
        
        font-size: 1.3rem;
        
        
        
        margin-bottom: 1rem;
        
        
        
        }
        
        
        
        
        
        
        
        .platform-details {
        
        
        
        display: flex;
        
        
        
        flex-direction: column;
        
        
        
        gap: 0.75rem;
        
        
        
        margin-bottom: 1rem;
        
        
        
        }
        
        
        
        
        
        
        
        .detail-item {
        
        
        
        display: flex;
        
        
        
        justify-content: space-between;
        
        
        
        align-items: center;
        
        
        
        padding: 0.5rem 0;
        
        
        
        border-bottom: 1px solid #f0f0f0;
        
        
        
        }
        
        
        
        
        
        
        
        .detail-item:last-child {
        
        
        
        border-bottom: none;
        
        
        
        }
        
        
        
        
        
        
        
        .detail-label {
        
        
        
        font-weight: 500;
        
        
        
        color: #666;
        
        
        
        font-size: 0.9rem;
        
        
        
        }
        
        
        
        
        
        
        
        .detail-value {
        
        
        
        color: #333;
        
        
        
        font-size: 0.9rem;
        
        
        
        }
        
        
        
        
        
        
        
        .detail-code {
        
        
        
        background: #f8f9fa;
        
        
        
        padding: 0.3rem 0.6rem;
        
        
        
        border-radius: 4px;
        
        
        
        font-family: 'Courier New', monospace;
        
        
        
        font-size: 0.85rem;
        
        
        
        color: var(--primary-color);
        
        
        
        }
        
        
        
        
        
        
        
        .platform-features {
        
        
        
        display: flex;
        
        
        
        flex-wrap: wrap;
        
        
        
        gap: 0.5rem;
        
        
        
        }
        
        
        
        
        
        
        
        .feature-tag {
        
        
        
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        
        
        
        color: white;
        
        
        
        padding: 0.3rem 0.8rem;
        
        
        
        border-radius: 12px;
        
        
        
        font-size: 0.8rem;
        
        
        
        font-weight: 500;
        
        
        
        }
        
        
        
        
        
        
        
        .packaging-process {
        
        
        
        background: rgba(255, 255, 255, 0.6);
        
        
        
        border-radius: var(--border-radius);
        
        
        
        padding: 2rem;
        
        
        
        }
        
        
        
        
        
        
        
        .packaging-process h4 {
        
        
        
        text-align: center;
        
        
        
        color: var(--primary-color);
        
        
        
        font-size: 1.4rem;
        
        
        
        margin-bottom: 2rem;
        
        
        
        }
        
        
        
        
        
        
        
        .process-steps {
        
        
        
        display: flex;
        
        
        
        align-items: center;
        
        
        
        justify-content: space-between;
        
        
        
        gap: 1rem;
        
        
        
        flex-wrap: wrap;
        
        
        
        }
        
        
        
        
        
        
        
        .process-step {
        
        
        
        flex: 1;
        
        
        
        min-width: 120px;
        
        
        
        background: var(--white);
        
        
        
        border-radius: var(--border-radius);
        
        
        
        padding: 1.5rem;
        
        
        
        text-align: center;
        
        
        
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        
        
        
        transition: all 0.3s ease;
        
        
        
        }
        
        
        
        
        
        
        
        .process-step:hover {
        
        
        
        transform: translateY(-4px);
        
        
        
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        
        
        
        }
        
        
        
        
        
        
        
        .step-icon {
        
        
        
        font-size: 2.5rem;
        
        
        
        margin-bottom: 0.75rem;
        
        
        
        }
        
        
        
        
        
        
        
        .step-content h5 {
        
        
        
        color: var(--primary-color);
        
        
        
        font-size: 1.1rem;
        
        
        
        margin-bottom: 0.5rem;
        
        
        
        }
        
        
        
        
        
        
        
        .step-content p {
        
        
        
        color: #666;
        
        
        
        font-size: 0.85rem;
        
        
        
        margin: 0;
        
        
        
        line-height: 1.4;
        
        
        
        }
        
        
        
        
        
        
        
        .process-arrow {
        
        
        
        font-size: 2rem;
        
        
        
        color: var(--accent-color);
        
        
        
        flex-shrink: 0;
        
        
        
        }
        
        
        
        
        
        
        
        .dataflow-diagram {        flex-direction: column;
        align-items: flex-start;
    }
    
    .flow-step {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-content {
        flex: 1;
        text-align: left;
    }
    
    .flow-connector {
        transform: rotate(90deg);
        padding: 0.5rem 0;
        font-size: 1.2rem;
    }
    
    .learning-path {
        padding: 1.5rem;
    }
    
    .learning-path h3 {
        font-size: 1.3rem;
    }
    
    .path-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .path-text strong {
        font-size: 1rem;
    }
    
    .path-text span {
    font-size: 0.85rem;
    }
    
    .platforms-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    }
    
    .platform-card {
    padding: 1rem;
    }
    
    .platform-icon {
    font-size: 2rem;
    }
    
    .platform-card h4 {
    font-size: 1.1rem;
    }
    
    .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    }
    
    .detail-code {
    font-size: 0.8rem;
    }
    
    .process-steps {
    flex-direction: column;
    gap: 1rem;
    }
    
    .process-step {
    padding: 1rem;
    }
    
    .process-arrow {
    transform: rotate(90deg);
        }
    }
    
    /* 美化的应用打包样式 */
    .packaging-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    }
    
    .header-icon {
    font-size: 3.5rem;
    animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    }
    
    .header-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }
    
    .header-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    }
    
    .header-decoration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    }
    
    .decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    opacity: 0.1;
    }
    
    .circle-1 {
    width: 100px;
    height: 100px;
    right: 0;
    top: -30px;
    }
    
    .circle-2 {
    width: 60px;
    height: 60px;
    right: 80px;
    top: 10px;
    }
    
    .circle-3 {
    width: 40px;
    height: 40px;
    right: 140px;
    top: 40px;
    }
    
    .packaging-intro {
    margin-bottom: 3rem;
    }
    
    .intro-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-color);
    }
    
    .intro-icon {
    font-size: 2.5rem;
    }
    
    .intro-content h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    }
    
    .intro-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    }
    
    .platforms-section,
    .packaging-process-section {
    margin-bottom: 4rem;
    }
    
    .section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    }
    
    .title-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Georgia', serif;
    }
    
    .section-title h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    }
    
    .title-underline {
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    border-radius: 2px;
    }
    
    .platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    }
    
    .platform-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    }
    
    .platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    }
    
    .platform-card:hover::before {
    opacity: 1;
    }
    
    .platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    
    .platform-android:hover { border-color: #3DDC84; }
    .platform-ios:hover { border-color: #000000; }
    .platform-web:hover { border-color: #2196F3; }
    .platform-desktop:hover { border-color: #607D8B; }
    
    .platform-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    }
    
    .platform-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    }
    
    .platform-icon {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    }
    
    .platform-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
    }
    
    @keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
    }
    
    .platform-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 0.5rem 0;
    }
    
    .platform-desc {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
    }
    
    .platform-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    }
    
    .info-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    }
    
    .info-icon {
    font-size: 1.2rem;
    }
    
    .info-label {
    display: block;
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    }
    
    .info-value {
    display: block;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    }
    
    .platform-commands {
    margin-bottom: 1.5rem;
    }
    
    .cmd-block {
    display: block;
    background: #1a1a2e;
    color: #00ff00;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-left: 3px solid var(--accent-color);
    }
    
    .cmd-prompt {
    color: #ff6b6b;
    margin-right: 0.5rem;
    }
    
    .platform-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    }
    
    .feature-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid rgba(33, 150, 243, 0.2);
    }
    
    .feature-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    }
    
    .process-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .process-timeline {
    position: relative;
    padding-left: 3rem;
    }
    
    .timeline-line {
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    bottom: 2rem;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
    }
    
    .process-step {
    position: relative;
    margin-bottom: 2rem;
    }
    
    .process-step:last-child {
    margin-bottom: 0;
    }
    
    .step-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 32px;
    height: 32px;
    }
    
    .step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    }
    
    .step-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
    }
    
    .step-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    }
    
    .step-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    }
    
    .step-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    }
    
    .step-emoji {
    font-size: 1.8rem;
    }
    
    .step-content h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 0 0.3rem 0;
    }
    
    .step-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    }
    
    .step-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    }
    
    .last-step {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4CAF50;
    }
    
    .step-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    }

    /* Tab 导航响应式设计 */
    .tabs-container {
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .tab-text {
        font-size: 0.85rem;
    }
    
    /* 应用打包响应式设计 */
    @media (max-width: 768px) {
        .packaging-header {
            flex-direction: column;
            text-align: center;
        }
    
        .header-decoration {
            display: none;
        }
    
        .intro-card {
            flex-direction: column;
            text-align: center;
        }
    
        .platforms-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
    
        .platform-card {
            padding: 1.5rem;
        }
    
        .platform-icon-wrapper {
            width: 80px;
            height: 80px;
        }
    
        .platform-icon {
            font-size: 3rem;
        }
    
        .platform-info-grid {
            grid-template-columns: 1fr;
        }
    
        .process-wrapper {
            padding: 1.5rem;
        }
    
        .process-timeline {
            padding-left: 2rem;
        }
    
        .timeline-line {
            left: 1rem;
        }
    
        .step-marker {
            left: -2rem;
        }
    
        .step-card {
            flex-direction: column;
            text-align: center;
            gap: 1rem;
        }
    
        .step-arrow {
            transform: rotate(90deg);
        }
    }
}

/* 教程页面样式 */
.tutorial-page .info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196F3;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.tutorial-page .info-box h2 {
    color: #1976D2;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tutorial-page .info-box h3 {
    color: #1565C0;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.tutorial-page .info-box h4 {
    color: #0D47A1;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.tutorial-page .diagram-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.tutorial-page .diagram-container h3 {
    color: #424242;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.tutorial-page .feature-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.tutorial-page .feature-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #424242;
}

.tutorial-page .feature-list strong {
    color: #1976D2;
    font-weight: 600;
}

/* 鸿蒙系统打包适配样式 */
.harmony-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 16px;
    border: 2px solid #ffcccc;
}

.harmony-intro {
    margin-bottom: 2rem;
}

.harmony-card {
    background: linear-gradient(135deg, #ff4d4d 0%, #c41e3a 100%) !important;
    color: white !important;
}

.harmony-card .intro-icon {
    font-size: 3rem;
}

.harmony-card h4 {
    color: white !important;
    margin-bottom: 0.75rem;
}

.harmony-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.harmony-content h4 {
    color: #c41e3a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.requirement-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.1);
    border-left: 4px solid #ff4d4d;
}

.requirement-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.requirement-item h5 {
    color: #c41e3a;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.requirement-item ul {
    list-style: none;
    padding-left: 0;
}

.requirement-item li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.25rem;
}

.requirement-item li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff4d4d;
    font-weight: bold;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
}

.step-number-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4d 0%, #c41e3a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.step-details {
    flex: 1;
}

.step-details h5 {
    color: #c41e3a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-details p {
    color: #666;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    border-left: 4px solid #ff4d4d;
}

.code-block code {
    color: inherit;
    background: transparent;
    padding: 0;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.note-card {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.note-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #FF9800;
}

.note-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196F3;
}

.note-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4CAF50;
}

.note-card .note-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.note-card h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.note-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.resources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #ff4d4d;
    border-radius: 8px;
    color: #c41e3a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #c41e3a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.resource-icon {
    font-size: 1.2rem;
}

/* 鸿蒙平台卡片样式 */
.platform-harmony {
    border-color: #ff4d4d;
}

.platform-harmony .platform-badge {
    background: linear-gradient(135deg, #ff4d4d 0%, #c41e3a 100%);
}

.platform-harmony .platform-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.1) 0%, rgba(196, 30, 58, 0.1) 100%);
}

.platform-harmony .platform-glow {
    background: radial-gradient(circle, rgba(255, 77, 77, 0.4) 0%, transparent 70%);
}

.platform-harmony:hover {
    border-color: #c41e3a;
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.2);
}

/* ==================== 小程序打包章节样式 ==================== */
.miniprogram-section {
    margin-top: 2rem;
}

.miniprogram-intro {
    margin-bottom: 2rem;
}

.miniprogram-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.miniprogram-card .intro-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.miniprogram-card .intro-content h4 {
    color: #0369a1;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.miniprogram-card .intro-content p {
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* 小程序平台网格 */
.miniprogram-platforms {
    margin-bottom: 2.5rem;
}

.miniprogram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.miniprogram-card-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.miniprogram-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mp-color) 0%, var(--mp-color-light) 100%);
}

.miniprogram-card-item.wechat {
    --mp-color: #07c160;
    --mp-color-light: #34d086;
}

.miniprogram-card-item.alipay {
    --mp-color: #1677ff;
    --mp-color-light: #4096ff;
}

.miniprogram-card-item.douyin {
    --mp-color: #fe2c55;
    --mp-color-light: #ff4d73;
}

.miniprogram-card-item.baidu {
    --mp-color: #2932e1;
    --mp-color-light: #5258ff;
}

.miniprogram-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--mp-color);
}

.mp-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1) 0%, rgba(52, 208, 134, 0.1) 100%);
    border-radius: 50%;
}

.miniprogram-card-item.wechat .mp-icon-wrapper {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1) 0%, rgba(52, 208, 134, 0.1) 100%);
}

.miniprogram-card-item.alipay .mp-icon-wrapper {
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.1) 0%, rgba(64, 150, 255, 0.1) 100%);
}

.miniprogram-card-item.douyin .mp-icon-wrapper {
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.1) 0%, rgba(255, 77, 115, 0.1) 100%);
}

.miniprogram-card-item.baidu .mp-icon-wrapper {
    background: linear-gradient(135deg, rgba(41, 50, 225, 0.1) 0%, rgba(82, 88, 255, 0.1) 100%);
}

.mp-icon {
    font-size: 2.5rem;
}

.miniprogram-card-item h5 {
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.mp-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.mp-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.mp-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.mp-info-item:last-child {
    border-bottom: none;
}

.mp-label {
    color: #64748b;
    font-size: 0.85rem;
}

.mp-value {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 500;
}

.mp-command {
    background: #1e293b;
    border-radius: 6px;
    padding: 0.75rem;
    overflow-x: auto;
}

.mp-command code {
    color: #22d3ee;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* 方案详解样式 */
.solution-detail {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
}

.solution-detail h4 {
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
}

.solution-desc {
    color: #64748b;
    margin: 0 0 2rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-step {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #0ea5e9;
}

.solution-step .step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.solution-step h5 {
    color: #1e293b;
    margin: 0;
    font-size: 1.1rem;
}

.step-content-block {
    margin-top: 1rem;
}

.code-block-wrapper {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
}

.code-block-wrapper pre {
    margin: 0;
}

.code-block-wrapper code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tip-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.tip-box .tip-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tip-box span:last-child {
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tip-box code {
    background: rgba(146, 64, 14, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #92400e;
}

/* 代码示例标签页 */
.code-example-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
}

.code-example-section h4 {
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
}

.example-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.example-tab {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

.example-tab:hover {
    background: #f1f5f9;
    color: #0ea5e9;
}

.example-tab.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.example-content {
    display: none;
}

.example-content.active {
    display: block;
}

.example-content pre {
    background: #1e293b;
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
}

.example-content code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 注意事项样式 */
.notice-section {
    margin-bottom: 2.5rem;
}

.notice-section h4 {
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.notice-item {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fdba74;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(251, 146, 60, 0.2);
}

.notice-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.notice-item h5 {
    color: #c2410c;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.notice-item p {
    color: #7c2d12;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* 资源链接样式 */
.resources-section {
    margin-top: 2rem;
}

.resources-section h4 {
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .miniprogram-grid {
        grid-template-columns: 1fr;
    }

    .notice-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .example-tabs {
        flex-wrap: wrap;
    }

    .miniprogram-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .harmony-section {
        padding: 1.5rem;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .resources-list {
        justify-content: center;
    }
}