// 自定义变量
:host {
    --page-padding: 20px;
    --primary-gradient: linear-gradient(135deg, var(--ion-color-primary), var(--ion-color-primary-shade));
}

// 头部样式
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--page-padding);

    .page-title {
        font-weight: 600;
        font-size: 1.2rem;
    }

    .help-icon {
        font-size: 24px;
        color: var(--ion-color-medium);
    }
}

// 内容区域
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

// 欢迎部分
.welcome-section {
    text-align: center;
    margin-bottom: 32px;

    h1 {
        font-size: 28px;
        font-weight: 700;
        color: var(--ion-color-dark);
        margin: 0 0 8px;
    }

    .subtitle {
        font-size: 16px;
        color: var(--ion-color-medium);
        margin: 0;
    }
}

// 操作按钮
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0 var(--page-padding);

    .main-button {
        --background: var(--primary-gradient);
        --border-radius: 12px;
        --padding-top: 16px;
        --padding-bottom: 16px;

        font-weight: 600;
        font-size: 16px;

        ion-icon {
            font-size: 20px;
            margin-right: 8px;
        }
    }

    .secondary-button {
        --border-radius: 12px;
        --padding-top: 16px;
        --padding-bottom: 16px;

        font-weight: 500;
        font-size: 16px;

        ion-icon {
            font-size: 20px;
            margin-right: 8px;
        }
    }
}

// 思维导图容器
.markmap-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 0 var(--page-padding);

    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 48px 24px;
        text-align: center;

        ion-icon {
            font-size: 48px;
            color: var(--ion-color-primary);
            margin-bottom: 16px;
        }

        h3 {
            font-size: 20px;
            font-weight: 600;
            color: var(--ion-color-dark);
            margin: 0 0 8px;
        }

        p {
            font-size: 14px;
            color: var(--ion-color-medium);
            margin: 0;
            max-width: 300px;
        }
    }

    .result-section {
        h2 {
            font-size: 20px;
            font-weight: 600;
            color: var(--ion-color-dark);
            margin: 0;
            padding: 20px;
            border-bottom: 1px solid var(--ion-color-light);
        }

        .markmap-wrapper {
            padding: 20px;
            height: 60vh;

            comp-markmap {
                width: 100%;
                height: 100%;
                display: block;
            }
        }
    }
}